Hi
I try to write a python backend for pamcan-g2, for that I should write a
callback for *trans_cb_conv
In python I've write :
trans_cb_event = CFUNCTYPE(ctypes.c_char_p,ctypes.c_void_p,POINTER(ctypes.c_int)
...
def fpm_trans_conv(event,pkg,response):
foo...
response=1
and for call the
I hope that the interested parties who offered me help will remember
this thread title. It has been a few weeks.
After fussing around with an alternate installation of Python 2.7.2 on
top of Ubuntu Linux 10.04, I decided it would be easier to upgrade to
Ubuntu 11.10, for which Python 2.7.2 is
On 12/27/11 11:02 PM, roze...@volny.cz wrote:
Hallo,
I have kind of special question when extening python with C++
implemented modules.
I try to implement a class, behaving also like an array. And I need
to implement slice-getters. I implemented PySequenceMethods.sq_slice
to get simple slices
Hello All,
What is the downside of using globals function
Regards,
Janus
--
*Satajanus Nig. Ltd
*
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 27, 11:57 pm, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
On Mon, 26 Dec 2011 13:41:34 -0800, Eelco wrote:
On Dec 25, 6:05 pm, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
On Sun, 25 Dec 2011 07:38:17 -0800, Eelco wrote:
[...]
How is 'head,
On Dec 28, 2:11 am, Rick Johnson rantingrickjohn...@gmail.com wrote:
On Dec 27, 5:10 pm, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
On Sun, 25 Dec 2011 07:47:20 -0800, Eelco wrote:
Your original use-case, where you want to change the type of tail from a
list to something
Hello All,
I have seen what I am looking for.. __dict__.
Thanks!
Regards,
Janus
On Wed, Dec 28, 2011 at 1:05 PM, Emeka emekami...@gmail.com wrote:
Hello All,
Say I have a class like below
class Town:
state = StateClass()
cities = CityClass()
Is there way to introspect
On Dec 28, 8:08 am, Chris Angelico ros...@gmail.com wrote:
On Wed, Dec 28, 2011 at 5:25 PM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
On Wed, 28 Dec 2011 15:06:37 +1100, Chris Angelico wrote:
... suppose you have a huge
set/frozenset using tuples as the keys,
On Dec 28, 12:07 am, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
On Mon, 26 Dec 2011 13:51:50 -0800, Eelco wrote:
[...]
If your point is that parens are used more often than
packing/unpacking, that's almost certainly true, since function calls
(including method
On Dec 28, 2:56 am, Rick Johnson rantingrickjohn...@gmail.com wrote:
On Dec 27, 3:44 pm, Eelco hoogendoorn.ee...@gmail.com wrote:
Despite the fact that you mis-attributed that quote to me, im going to
be a little bit offended in the name of its actual author anyway.
Thats a lot of words to
Dear Robert,
thank you very much for your answer. I understand what you mean and
I have looked at slice object and C-api methods it provides. It
should be easy to implement it.
The only question is how exactly yo implement the general getter,
since sq_item you mention (assume you mean
On 12/28/11 1:01 PM, roze...@volny.cz wrote:
Dear Robert,
thank you very much for your answer. I understand what you mean and
I have looked at slice object and C-api methods it provides. It
should be easy to implement it.
The only question is how exactly yo implement the general getter,
since
Online Data Entry Jobs Without Investment
http://ponlinejobs.yolasite.com/
--
http://mail.python.org/mailman/listinfo/python-list
Online Data Entry Jobs Without Investment
http://ponlinejobs.yolasite.com/
--
http://mail.python.org/mailman/listinfo/python-list
On 12/27/2011 5:45 PM, 8 Dihedral wrote:
I am getting lousy in the news group in my writing?
I mean the non-trivial decoding of the key decomposition.
Of course RSA is symmetric in encoding and decoding of data.
You really are a markov chain bot.
--
CPython 3.2.2 | Windows NT
Hello,
I've written a C extension for Python which works so far, but now I've
stumbled onto a simple problem for which I just can't find any example
on the web, so here I am crying for help ;-)
I'll trying to reduce the problem to a minimal example. Let's say I
need to call from Python
On 12/27/2011 7:31 PM, W. eWatson wrote:
On 12/27/2011 6:27 PM, Ian Kelly wrote:
On Tue, Dec 27, 2011 at 6:21 PM, W. eWatsonwolftra...@invalid.com
wrote:
Well, it found several problems. These DLLs
MSVCP1
EFSADU
MSJAVA.
I'm guessing MSVCP1 is a typo for MSVCP71? If that is missing then
that
A new dilemma. The PC XP in question with Python has the the msvcp71.dll
file in System32. The one I took off my other laptop has a slightly
newer one. Feb 2003 vs Aug 2003.
Perhaps the (python PC) has a corrupt one?
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
i've found here (http://python-gtk-3-tutorial.readthedocs.org/en/latest/
layout.html#table) this code:
[quote]
If omitted, xoptions and yoptions defaults to
Gtk.AttachOptions.EXPAND | Gtk.AttachOptions.FILL.
[end quote]
xoptions have 3 flags: EXPAND, FILL, SHRINK
so, how it is supposed
On Wed, Dec 28, 2011 at 9:33 AM, W. eWatson wolftra...@invalid.com wrote:
Well, thing went slightly awry. The link gave me two choices. Download
msv...dll fixer, and download fixer. I took the latter. However, just
checking on the other one, found that I got the same exe file. I installed
it
I have installed an application called pycocuma on my xubuntu 11.10
system. It works OK and I'm aiming to develop it a little as its
'owner' has long since stopped work on it.
However I'm a little puzzled by the way it has installed itself (it's
a standard package from the Ubuntu repositories),
On 12/28/2011 11:57 AM, Rick Johnson wrote:
On Dec 27, 3:38 pm, Terry Reedytjre...@udel.edu wrote:
On 12/27/2011 1:04 PM, Rick Johnson wrote:
But this brings up a very important topic. Why do we even need triple
quote string literals to span multiple lines? Good question, and one i
have
On Wed, Dec 28, 2011 at 10:16 AM, Tracubik affdfsdfds...@b.com wrote:
Hi all,
i've found here (http://python-gtk-3-tutorial.readthedocs.org/en/latest/
layout.html#table) this code:
[quote]
If omitted, xoptions and yoptions defaults to
Gtk.AttachOptions.EXPAND | Gtk.AttachOptions.FILL.
[end
I am trying to pass the id to thanks view through reverse. But it's not
working. I'm getting this error
Reverse for 'reg.views.thanks' with arguments '(20,)' and keyword arguments
'{}' not found.
I posted the question with the code in stackoverflow:
On 12/29/2011 05:02 AM, Nirmal Kumar wrote:
I am trying to pass the id to thanks view through reverse. But it's not
working. I'm getting this error
Reverse for 'reg.views.thanks' with arguments '(20,)' and keyword arguments
'{}' not found.
I posted the question with the code in
In the (rather sparse) documentation for the vobject package it has,
in the section about parsing iCalendar objects, the following:-
Parsing iCalendar objects
=
To parse one top level component from an existing iCalendar stream or
string, use the readOne
On Dec 28, 12:58 am, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
On Tue, 27 Dec 2011 21:34:19 -0800, Rick Johnson wrote:
I am also thinking that ANY quote char is a bad choice for string
literal delimiters. Why? Well because it is often necessary to embed
single or double
On 12/28/2011 11:36 AM, Rick Johnson wrote:
On Dec 28, 12:58 am, Steven D'Apranosteve
+comp.lang.pyt...@pearwood.info wrote:
On Tue, 27 Dec 2011 21:34:19 -0800, Rick Johnson wrote:
I am also thinking that ANY quote char is a bad choice for string
literal delimiters. Why? Well because it is
On 12/29/2011 06:36 AM, Rick Johnson wrote:
mlstr = |||
this is a
multi line sting that is
delimited by triple pipes. Or we
could just 'single pipes' if we like, however, i think
the triple pipe' is easier to see. Since the pipe char
is so rare in Python source, it becomes the obvious
choice.
On 12/28/2011 2:04 PM, tinn...@isbd.co.uk wrote:
In the (rather sparse) documentation for the vobject package it has,
in the section about parsing iCalendar objects, the following:-
Parsing iCalendar objects
=
To parse one top level component from an
On Thu, Dec 29, 2011 at 6:04 AM, tinn...@isbd.co.uk wrote:
In the (rather sparse) documentation for the vobject package it has,
in the section about parsing iCalendar objects, the following:-
parsedCal = vobject.readOne(icalstream)
Presumably you have this vobject package. Assuming it's
On Wed, Dec 28, 2011 at 12:36 PM, Rick Johnson
rantingrickjohn...@gmail.com wrote:
My point was... while Greg's idea is nice, it is not the answer.
HOWEVER, he did find the perfect char, and that char is the pipe! --
|
mlstr = |||
this is a
multi line sting that is
delimited by triple
On 12/28/2011 04:34 PM, Rick Johnson wrote:
On Dec 27, 9:49 pm, Rick Johnsonrantingrickjohn...@gmail.com wrote:
The fact is...even with the multi-line issue solved, we still have two
forms of literal delimiters that encompass two characters resulting in
*four* possible legal combinations of
On 12/28/2011 9:37 AM, Ian Kelly wrote:
On Wed, Dec 28, 2011 at 9:33 AM, W. eWatsonwolftra...@invalid.com wrote:
Well, thing went slightly awry. The link gave me two choices. Download
msv...dll fixer, and download fixer. I took the latter. However, just
checking on the other one, found that I
Lie,
And of course, I can't believe you forget Guido's favourite version, g,
available in musical and sirloin cloth flavor.
LMAO! That was brilliant! :)
Cheers!
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
Quotes are obnoxious in the nesting sense because everyone uses quotes
for string delimiters. By the same token, quotes are wonderful
because not only are they intuitive to programmers, but they are
intuitive in general. Parenthesis are pretty much in the same boat...
I *HATE* them nested, but
On Thu, Dec 29, 2011 at 8:24 AM, Nathan Rice
nathan.alexander.r...@gmail.com wrote:
Quotes are obnoxious in the nesting sense because everyone uses quotes
for string delimiters. By the same token, quotes are wonderful
because not only are they intuitive to programmers, but they are
intuitive
On Wed, Dec 28, 2011 at 4:42 PM, Chris Angelico ros...@gmail.com wrote:
On Thu, Dec 29, 2011 at 8:24 AM, Nathan Rice
nathan.alexander.r...@gmail.com wrote:
Quotes are obnoxious in the nesting sense because everyone uses quotes
for string delimiters. By the same token, quotes are wonderful
On 12/28/2011 11:08 PM, Eelco wrote:
I personally feel any performance benefits are but a plus; they are
not the motivating factor for this idea. I simply like the added
verbosity and explicitness, thats the bottom line.
Any performance benefits are a plus, I agree, as long as it doesn't make
Hi All
I'm trying to import the MySQLdb for python. I downloaded the proper
setuptools egg (ver2.7) for a Mac with OSX10.6
I then downloaded the MySQL-python-1.2.3 and ran the following commands
python setup.py build
sudo python setup.py install
Then to test that the module was properly
On Wed, 28 Dec 2011 11:36:17 -0800, Rick Johnson wrote:
The point is people, we should be using string delimiters that are
ANYTHING besides and '. Stop being a sheep and use your brain!
ANYTHING, hey?
I propose we use ئ and ร as the opening and closing string delimiters.
Problem solved!
On Thu, Dec 29, 2011 at 9:54 AM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
Thank you Rick for yet another brilliant, well-thought-out idea. I look
forward to seeing your fork of Python with this change. How is it going?
I hope you aren't going to disappoint the legions of your
Great, it's working! Thank you very much, Robert!
Dan T.
- PŮVODNÍ ZPRÁVA -
Od: Robert Kern robert.k...@gmail.com
Komu: python-list@python.org
Předmět: Re: Slices when extending python with C++
Datum: 28.12.2011 - 14:18:36
On 12/28/11 1:01 PM, roze...@volny.cz wrote:
Dear Robert,
Hello All,
Say I have a class like below
class Town:
state = StateClass()
cities = CityClass()
Is there way to introspect such that one can list the properties keys and
their values in such a way that it would look like playing around
dictionary ?
Regards,
Janus
--
*Satajanus
On Wed, Dec 28, 2011 at 11:13 PM, Emeka emekami...@gmail.com wrote:
Hello All,
I have seen what I am looking for.. __dict__.
Yep! You may also want to look at the dir() function.
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 28 Dec 2011 22:54:16 +, Steven D'Aprano wrote:
On Wed, 28 Dec 2011 11:36:17 -0800, Rick Johnson wrote:
The point is people, we should be using string delimiters that are
ANYTHING besides and '. Stop being a sheep and use your brain!
ANYTHING, hey?
I propose we use ئ and ร
How does this line work? How do I get my logger to point to a file to
be named as /tmp/modulename.log : I can do this using inspect, but
there probably is a better way?
Thanks,
--Ram
--
http://mail.python.org/mailman/listinfo/python-list
On 12/28/2011 12:55 PM, W. eWatson wrote:
On 12/28/2011 9:37 AM, Ian Kelly wrote:
On Wed, Dec 28, 2011 at 9:33 AM, W. eWatsonwolftra...@invalid.com
wrote:
Well, thing went slightly awry. The link gave me two choices. Download
msv...dll fixer, and download fixer. I took the latter. However,
On Wed, Dec 28, 2011 at 10:04 PM, W. eWatson wolftra...@invalid.com wrote:
On 12/28/2011 12:55 PM, W. eWatson wrote:
On 12/28/2011 9:37 AM, Ian Kelly wrote:
On Wed, Dec 28, 2011 at 9:33 AM, W. eWatsonwolftra...@invalid.com
wrote:
Well, thing went slightly awry. The link gave me two
On 12/28/2011 08:04 PM, W. eWatson wrote:
I'm going to save the msvcp71.dll from the Python laptop somewhere, then
insert the one from my other XP laptop. Finally, I'll register it.
regsvr32. Just to review, I presume not from cmd, but Run?
Seems like the bulk of your problems are coming
On 12/28/2011 9:09 PM, Michael Torrie wrote:
On 12/28/2011 08:04 PM, W. eWatson wrote:
I'm going to save the msvcp71.dll from the Python laptop somewhere, then
insert the one from my other XP laptop. Finally, I'll register it.
regsvr32. Just to review, I presume not from cmd, but Run?
Seems
Online Data Entry Jobs Without Investment
http://ponlinejobs.yolasite.com/
--
http://mail.python.org/mailman/listinfo/python-list
Online Data Entry Jobs Without Investment
http://ponlinejobs.yolasite.com/
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Dec 29, 2011 at 4:09 PM, Michael Torrie torr...@gmail.com wrote:
The Run dialog is mainly to be
used to launch a cmd window!
On any Windows computer that I use, that's strictly true. The only
program I ever Start|Run is cmd.
ChrisA
--
New submission from João Bernardo jbv...@gmail.com:
Hi, I'm working on a class which implements the __contains__ method but the way
I would like it to work is by generating an object that will be evaluated later.
It'll return a custom object instead of True/False
class C:
def
Georg Brandl ge...@python.org added the comment:
an object is true is a short way of saying bool(obj) is True. So the docs
match the behavior.
Returning the actual object instead of True/False from the in operator is a
feature request.
--
assignee: docs@python -
nosy: +georg.brandl
João Bernardo jbv...@gmail.com added the comment:
@Georg Brandl
Oh sorry, now I see... true != True
But still, why is that the default behavior? Shouldn't it use whatever the
method returns?
--
type: enhancement - behavior
versions: +Python 3.2
___
Changes by João Bernardo jbv...@gmail.com:
--
type: behavior - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13667
___
___
Georg Brandl ge...@python.org added the comment:
Well, usually what you want *is* a boolean indicating whether the element is in
the collection or not.
Being able to overload in, mostly for metaprogramming purposes, is a request
that probably nobody thought of when implementing in.
Changes by Anthony Kong anthony.hw.k...@gmail.com:
--
nosy: +Anthony.Kong
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13641
___
___
Zbyszek Szmek zbys...@in.waw.pl added the comment:
Seems to work also on kfreebsd/debian (with eglibc).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13609
___
New submission from Zhiping Deng kofreesty...@gmail.com:
If python was configured without-threads:
% ./python
Python 2.7.2+ (2.7:e71e4bd45c89, Dec 28 2011, 21:03:59)
[GCC 4.4.3] on linux2
Type help, copyright, credits or license for more information.
import dummy_threading as _threading
a =
New submission from Zbyszek Szmek zbys...@in.waw.pl:
Extended attribute support was added in issue 12720. Doesn't compile on
kfreebsd/debian, which uses eglibc and gcc. The error is that the symbols
XATTR_LIST_MAX and XATTR_SIZE_MAX are not defined.
After
Changes by Antoine Pitrou pit...@free.fr:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13609
___
___
New submission from andrea crotti andrea.crott...@gmail.com:
This patch increases test coverage for pstats.py from 25 to 36%.
It's my first proposed patch so sorry in advance if there are problems. Much
more can be done for pstats.py (which is also not much commented) but I want to
get some
Changes by Brian Curtin br...@python.org:
--
nosy: +brian.curtin
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13670
___
Georg Brandl ge...@python.org added the comment:
I don't understand this comment:
+#TODO: add more complicated tests, which might almost compile
Also, please don't use docstrings for the test methods because of unittest's
feature to display them instead of the test method names.
andrea crotti andrea.crott...@gmail.com added the comment:
It's really hard to understand true, and if should not go in the patch in
general of course.
The sense was that the only test I added is trivial, but I haven't produced
something better yet.
And ok I will remove the docstrings, I was
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset a7744f778646 by Jason R. Coombs in branch 'default':
Limit test scope to those platforms that can save the target filenames.
Reference #11638.
http://hg.python.org/cpython/rev/a7744f778646
--
Jason R. Coombs jar...@jaraco.com added the comment:
I've limited the scope of the patch to attempt to only test on those platforms
that can actually create unicode-named files. I'll watch the buildbots to see
if that corrects the failures (since I don't have the failing platforms
available
Benjamin Peterson benja...@python.org added the comment:
Are you telling me that XATTR_SIZE_MAX is defined nowhere on eglibc?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13669
___
Benjamin Peterson benja...@python.org added the comment:
I think the idea has some merit. I think it should be well vetted on
python-ideas, though. One thing that will certianly weigh against it is that
implementation would not be trivial.
--
___
Changes by Nikolaus Rath nikol...@rath.org:
--
nosy: -Nikratio
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5689
___
___
Python-bugs-list
Zbyszek Szmek zbys...@in.waw.pl added the comment:
Unless I'm completely confused, XATTR_SIZE_MAX is defined by linux kernel
headers, not the libc.
On my linux debian box:
$ grep -r XATTR_SIZE_MAX -I /usr
include/linux/limits.h:#define XATTR_SIZE_MAX 65536
$ dpkg -l libc6
libc6
Zbyszek Szmek zbys...@in.waw.pl added the comment:
Forgot to add (on the fedora box):
$ rpm -q glibc
glibc-2.14.90-13.x86_64
(The GNU libc libraries from http://www.gnu.org/software/glibc/)
So the glibc/eglibc split is not important here.
--
___
Antoine Pitrou pit...@free.fr added the comment:
On my linux debian box:
$ grep -r XATTR_SIZE_MAX -I /usr
include/linux/limits.h:#define XATTR_SIZE_MAX 65536
$ dpkg -l libc6
libc6 2.11.2-10 Embedded GNU C Library: Shared libraries
$ dpkg -S /usr/include/linux/limits.h
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 9b681e0c04ed by Jason R. Coombs in branch '2.7':
Limit test scope to those platforms that can save the target filenames.
Reference #11638.
http://hg.python.org/cpython/rev/9b681e0c04ed
--
Jason R. Coombs jar...@jaraco.com added the comment:
The changes to the default branch seem to have cleaned up the test failures on
most platforms (still waiting on the ARM results). So I've backported the test
skips to the Python 2.7 branch as well.
--
Zbyszek Szmek zbys...@in.waw.pl added the comment:
Yes, it must be, because XATTR_SIZE_MAX is only defined in
linux/limits.h. The problem is that with the kfreebsd kernel,
/usr/include/sys/limits.h doesn't define or include anything that
defines XATTR_SIZE_MAX.
Maybe the test should be
João Bernardo jbv...@gmail.com added the comment:
I see that every other comparison operator (, , =, =, ==, !=) except for
`is` work the way I expect and is able to return anything.
e.g.
numpy.arange(5) 3
array([ True, True, True, False, False], dtype=bool)
I didn't checked the code (and
Benjamin Peterson benja...@python.org added the comment:
2011/12/28 João Bernardo rep...@bugs.python.org:
João Bernardo jbv...@gmail.com added the comment:
I see that every other comparison operator (, , =, =, ==, !=) except for
`is` work the way I expect and is able to return anything.
Stefan Krah stefan-use...@bytereef.org added the comment:
So the problem occurs on:
http://www.debian.org/ports/kfreebsd-gnu/
Did I get that right? Is __FreeBSD__ defined on that system?
I'm not sure though if we should start supporting hybrid systems.
--
New submission from Александр Балезин geschei...@gmail.com:
In conf file:
keyе_ = ,,
Get next exception:
File /usr/lib/python2.6/dist-packages/configobj.py, line 1230, in __init__
self._load(infile, configspec)
File /usr/lib/python2.6/dist-packages/configobj.py, line 1306, in _load
João Bernardo jbv...@gmail.com added the comment:
Using my poor grep abilities I found that on Objects/typeobject.c
(I replaced some declarations/error checking from the code with ...)
static int
slot_sq_contains(PyObject *self, PyObject *value) {
...
func = lookup_maybe(self,
Zbyszek Szmek zbys...@in.waw.pl added the comment:
That's the one.
No. I'm putting the complete list below.
Actually python2.5-7 and 3.2 is normally packaged by debian for
is arch, so it mostly works.
$ gcc -dM -E - /dev/null
#define __DBL_MIN_EXP__ (-1021)
#define __UINT_LEAST16_MAX__ 65535
Georg Brandl ge...@python.org added the comment:
It's defined that way because it's a slot returning a bool, so it doesn't need
to return anything except for 0 or 1.
Changing this to return a PyObject would mean that every extension module (i.e.
module written in C) that defines a custom
James B skilletau...@gmail.com added the comment:
I have encountered this issue(python 2.7) with respect to positional arguments
that begin with a dash (linux/ bash).
In the following example, the parser requires three positional arguments. I
attempted to encase the arguments in single-quotes
Changes by Hynek Schlawack h...@ox.cx:
Added file: http://bugs.python.org/file24099/23e6204efe20.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12715
___
Hynek Schlawack h...@ox.cx added the comment:
Added another patch fixing the issues pointed out by Antoine and
Charles-François.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12715
___
New submission from Arfrever Frehtes Taifersar Arahesis
arfrever@gmail.com:
PEP 3155 added qualified name as __qualname__ attribute in classes and
functions. It would be useful if qualified name was also available as
co_qualname attribute of code objects.
import sys
class A:
...
Eric Snow ericsnowcurren...@gmail.com added the comment:
with f_func (see #12857) you would get that for free:
frame.f_func.__qualname__
'A.f1'
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13672
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
-1 on this proposal. It has everyone paying a price for a questionable feature
that would benefit very few.
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
Alex Gaynor alex.gay...@gmail.com added the comment:
For what it's worth I proposed this on -ideas a while ago, the sticking points
were what does `not in` do (no one had an answer anyone was happy with for
this), and do we need a way to override it from the other perspective (e.g. if
I want
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12857
___
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
co_qualname could still be useful if somebody has code object without frame
object.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13672
Eric Snow ericsnowcurren...@gmail.com added the comment:
True. I wonder, though if perhaps a co_func (as a weak ref) or co_orig_func
would be better, since co_qualname would be built from the original function
anyway. Then you could call code.co_func.func_qualname.
One sticky point is that
Zbyszek Szmek zbys...@in.waw.pl added the comment:
[Why does roundup remove quoted text being replied to???]
On 12/28/2011 06:05 PM, Stefan Krah wrote:
http://www.debian.org/ports/kfreebsd-gnu/
That's the one.
Is __FreeBSD__ defined on that system?
No. I'm putting the complete list below.
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13609
___
New submission from sbt shibt...@gmail.com:
If SIGINT arrives while a function implemented in C is executing, then it
prevents the function from raising an exception unless the function first calls
PyErr_CheckSignals(). (If the function returns an object (instead of NULL)
then
Anders Kaseorg ande...@mit.edu added the comment:
James: That’s not related to this issue. This issue is about options taking
arguments beginning with dash (such as a2x --asciidoc-opts --safe, where --safe
is the argument to --asciidoc-opts), not positional arguments beginning with
dash.
1 - 100 of 108 matches
Mail list logo