[issue9253] argparse: optional subparsers

2010-11-16 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: I think the proposed API looks fine and should be backwards compatible since add_subparsers will currently throw an exception with a default= argument. In case someone feels like writing a patch, you'll want to look at

[issue1028088] Cookies without values are silently ignored (by design?)

2010-11-16 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Revisiting this issue. - Cookie: should contain name=value pairs - Set-Cookie: header can contain a single word like 'secure' The current design is along the same lines only. In the original comment, the request had asked to document the

[issue10394] subprocess Popen deadlock

2010-11-16 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Did you attach the correct files? You mention about two programs in the description, but you have attached only one file 'deadlock.py'. Also, it does not fail on Python 2.7.1. Please try it on the latest codeline from release27-maint too.

[issue10399] AST Optimization: inlining of function calls

2010-11-16 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10399 ___ ___ Python-bugs-list

[issue10403] Use member consistently

2010-11-16 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: It is 'attributes' instead of term 'members'. The term 'method' when it denotes methods can be left as such. -- assignee: d...@python - orsenthil nosy: +orsenthil ___ Python tracker

[issue10403] Use member consistently

2010-11-16 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- stage: - needs patch type: - behavior versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10403

[issue8458] buildbot: test_cmd_line failure on Tiger: [Errno 9] Bad file descriptor

2010-11-16 Thread Ned Deily
Ned Deily n...@acm.org added the comment: With 3.2a4, OS X 10.4 Tiger buildbot failures reported: == ERROR: test_run_code (test.test_cmd_line.CmdLineTest) --

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I have read and closed too fast, Johannes still has the bug on OS X. Can someone turn his example script into a patch adding a unit test? -- resolution: out of date - stage: committed/rejected - unit test needed status: closed - open

[issue10070] 2to3 wishes for already-2to3'ed files

2010-11-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: That's fair enough. :) Do you want to close this feature request then? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10070 ___

[issue7325] tempfile.mkdtemp() does not return absolute pathname when relative dir is specified

2010-11-16 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: -Python 2.6, Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7325 ___

[issue10431] Failed issue tracker submission

2010-11-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10431 ___

[issue10431] Failed issue tracker submission

2010-11-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- Removed message: http://bugs.python.org/msg121278 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10431 ___

[issue10431] Failed issue tracker submission

2010-11-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: Removed file: http://bugs.python.org/file19614/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10431 ___

[issue10431] Failed issue tracker submission

2010-11-16 Thread admin
New submission from admin roundup-ad...@psf.upfronthosting.co.za: You are not a registered user. Unknown address: Order Real Pfizer rep...@bugs.python.org -- files: unnamed messages: 121278 nosy: admin priority: normal severity: normal status: open title: Failed issue tracker

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-16 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: The issue is with a non-ascii character in a *Unicode* docstring. Python has to encode the string to write it to the terminal; the encode is implicit and so fails. The problem doesn't happen with Python 3 unless you run on an ascii

[issue10432] concurrent.futures.as_completed() spins waiting for futures to complete

2010-11-16 Thread Scott Dial
New submission from Scott Dial sc...@scottdial.com: The code in as_completed() waits on a FIRST_COMPLETED event, which means that after the first future completes, it will no longer wait at all. The proposed patch adds a _AsCompletedWaiter and uses a lock to swap out the finished list and

[issue10425] xmlrpclib support for None isn't compliant with XMLRPC

2010-11-16 Thread Adam Bielański
Adam Bielański abg...@gmail.com added the comment: Ok, I apologize for being to hasty. Below you can find my answers: 1. SlowParser used in xmlrpclib doesn't deal with namespaces in any reasonable way. If there's a namespace prefix for tag, it's not separated from tag name, but passed as part

[issue1553375] Add traceback.print_full_exception()

2010-11-16 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Note that my suggestion was to move the if statement out of the loop as-is: you would still be pulling the traceback to display from the caught exception rather than displaying the stack from the current point of execution. If you want the

[issue10425] xmlrpclib support for None isn't compliant with XMLRPC

2010-11-16 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: On Tue, Nov 16, 2010 at 11:32:03AM +, Adam Bielański wrote: just accept ex:nil as well as nil and not try to analyze namespaces at all. But even that seems specific to Java/ Apache Extension. If it is, then it might go in as part of

[issue10432] concurrent.futures.as_completed() spins waiting for futures to complete

2010-11-16 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- assignee: - bquinlan nosy: +bquinlan stage: - patch review versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10432 ___

[issue10425] xmlrpclib support for None isn't compliant with XMLRPC

2010-11-16 Thread Adam Bielański
Adam Bielański abg...@gmail.com added the comment: It is. It might go. Didn't notice issue8792 before, thanks for pointing it out. Whole ex:nil issue is discussed there, so this issue might be closed. -- ___ Python tracker rep...@bugs.python.org

[issue10425] xmlrpclib support for None isn't compliant with XMLRPC

2010-11-16 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- resolution: - duplicate stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10425 ___

[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords

2010-11-16 Thread Eugene Kapun
Eugene Kapun abacabadabac...@gmail.com added the comment: Actually, this can't be fixed without modifying C API methods PyArg_ParseTuple and PyArg_ParseTupleAndKeywords, because it's possible to make an object deallocated before PyArg_ParseTuple returns, so Py_INCREF immediately after parsing

[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords

2010-11-16 Thread Eugene Kapun
Changes by Eugene Kapun abacabadabac...@gmail.com: Added file: http://bugs.python.org/file19617/test-ctypes.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6083 ___

[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords

2010-11-16 Thread Eugene Kapun
Changes by Eugene Kapun abacabadabac...@gmail.com: Added file: http://bugs.python.org/file19618/test-functools.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6083 ___

[issue10070] 2to3 wishes for already-2to3'ed files

2010-11-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: -haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10070 ___ ___

[issue10134] test_email failures on Windows: end of line issue?

2010-11-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: -haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10134 ___ ___

[issue10425] xmlrpclib support for None isn't compliant with XMLRPC

2010-11-16 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- superseder: - Support Apache extensions to XML-RPC in xmlrpclib ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10425 ___

[issue10425] xmlrpclib support for None isn't compliant with XMLRPC

2010-11-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: There's no need to apologize, we welcome contributions like your report and are open to discuss patches :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10425

[issue8792] Support Apache extensions to XML-RPC in xmlrpclib

2010-11-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: An addition: It was reported in #10425 that None values are incorrectly serialized as valuenil//value, instead of just nil/, or maybe {namespace prefix for extensions defined by Apache}:nil/. -- nosy: +Adam.Bielański, eric.araujo,

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Johannes, can you paste the output of the locale command? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10417 ___

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I agree with Stephen. The test in question is *not a valid test* on OSX. Therefore on OSX it should be skipped. If you can think of a way to test the actual behavior of getgroups on OSX, that's even better. --

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-16 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- nosy: -michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7900 ___ ___

[issue8792] Support Apache extensions to XML-RPC in xmlrpclib

2010-11-16 Thread Adam Bielański
Adam Bielański abg...@gmail.com added the comment: To make example provided by Amaury complete I'll add that in order to support both ways you also need to replace xmlrpclib.dumps() with code from attached file. Changes to original xmlrpclib.dumps() function are outlined with comments. In

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-16 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Please explain how the failure can be reproduced. I've done some testing on my machine using Apple's copy of python 2.6.1 (on OSX 10.6), which has the same getgroups implementation as the current heads of the active branches.

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Having just reread this issue more carefully, my understanding is that Ronald had elected to make the results returned from os.getgroups match that returned by system tools (by which I understood him to mean the 'id' command). Since

[issue10433] Document unique behavior of 'getgroups' on OSX

2010-11-16 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: Per issue 7900, os.getgroups on OSX does not behave the same way as on any other unix platform. This seems worthy of a documentation note, since anyone trying to write portable code could get bit by this. I don't really understand

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: In Python 3, sys.stderr uses the 'backslashreplace' error handler. With C locale, sys.stderr uses the ASCII encoding and so the é unicode character is printed as \xe9. In Python 2, sys.stderr.errors is strict by default. It works

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: And it's entirely possible (even likely) that what Stephen is seeing here is a platform bug in OSX's quirky implementation of group management. -- ___ Python tracker rep...@bugs.python.org

[issue10413] Comments in unicode.h are out of date

2010-11-16 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed in revision 86478. Should this go in 3.1? This is a comments-only change, so it is fairly safe and merging may help future maintenance. On the other hand, it is very unlikely that the header file will need to

[issue10434] Document the rules for public names

2010-11-16 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: As discussed in Breaking undocumented API thread [1] on python-dev, a definition of public names is buried deep in the language reference manual: The public names defined by a module are determined by checking the

[issue10433] Document unique behavior of 'getgroups' on OSX

2010-11-16 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10433 ___ ___

[issue10433] Document unique behavior of 'getgroups' on OSX

2010-11-16 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- assignee: - d...@python components: +Documentation, Macintosh nosy: +d...@python versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10433

[issue10413] Comments in unicode.h are out of date

2010-11-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Alexander Belopolsky wrote: Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed in revision 86478. Should this go in 3.1? This is a comments-only change, so it is fairly safe and merging may help

[issue10413] Comments in unicode.h are out of date

2010-11-16 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg m...@egenix.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10413 ___ ___

[issue10434] Document the rules for public names

2010-11-16 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Michael Foord suggested adding the following to developer documentation such as PEP 8. [1] I am not sure PEP 8 is the right place for it. In my opinion, PEP 8 is mostly about stylistic choices that don't have a major

[issue10413] Comments in unicode.h are out of date

2010-11-16 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed to 3.1 branch in revision 86481. -- status: pending - closed type: - behavior versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue10413] Comments in unicode.h are out of date

2010-11-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Alexander Belopolsky wrote: Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed to 3.1 branch in revision 86481. Thanks. -- ___ Python tracker

[issue10435] Document unicode C-API in reST

2010-11-16 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: The following C-APIs are only documented in comments inside unicode.h: PyUnicode_GetMax PyUnicode_Resize PyUnicode_InternImmortal PyUnicode_FromOrdinal PyUnicode_GetDefaultEncoding PyUnicode_AsDecodedObject

[issue10433] Document unique behavior of 'getgroups' on OSX

2010-11-16 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +ned.deily, ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10433 ___ ___

[issue8649] Py_UNICODE_* functions are undocumented

2010-11-16 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: There are more undocumented functions in unicode.h. It makes sense to fix all of them in one patch. Closing this as superseded by #10435. -- nosy: +belopolsky resolution: - duplicate status: open - closed

[issue10434] Document the rules for public names

2010-11-16 Thread Ron Adam
Ron Adam ron_a...@users.sourceforge.net added the comment: You may also want to update help topics. help(PRIVATENAMES). Identifiers (Names) *** An identifier occurring as an atom is a name. See section *Identifiers and keywords* for lexical definition and section *Naming and

[issue9076] Add C-API documentation for PyUnicode_AsDecodedObject/Unicode and PyUnicode_AsEncodedObject/Unicode

2010-11-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Documenting Unicode C APIs is now tracked in #10435. -- nosy: +georg.brandl resolution: - out of date status: open - closed superseder: - Document unicode C-API in reST ___ Python tracker

[issue2799] Remove _PyUnicode_AsString(), rework _PyUnicode_AsStringAndSize(), add PyUnicode_AsChar()

2010-11-16 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- components: +Interpreter Core stage: - needs patch versions: +Python 3.3 -Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2799

[issue10433] Document unique behavior of 'getgroups' on OSX

2010-11-16 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10433 ___ ___

[issue10318] make altinstall installs many files with incorrect shebangs

2010-11-16 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10318 ___ ___ Python-bugs-list mailing list

[issue10429] bug in test_imaplib

2010-11-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This was a real bug in IMAP.starttls() actually. Fixed in r86485. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue2901] error: can't allocate region from mmap() when receiving big chunk of data

2010-11-16 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: I'm not sure whether it's related but on psutil we have a similar error message by using Python 2.6.1 64-bit: http://code.google.com/p/psutil/issues/detail?id=135 -- nosy: +giampaolo.rodola status: pending - open

[issue2901] error: can't allocate region from mmap() when receiving big chunk of data

2010-11-16 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +ixokai ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2901 ___ ___ Python-bugs-list

[issue10436] tarfile.extractfile in r| stream mode fails with filenames or members from getmembers()

2010-11-16 Thread David Nesting
New submission from David Nesting da...@fastolfe.net: When opening a tarfile with mode r| (streaming mode), extractfile(filename) and extractfile(mytarfile.getmembers()[0]) raise tarfile.StreamError: seeking backwards is not allowed. extractfile(mytarfile.next()) succeeds. A more complete

[issue2901] error: can't allocate region from mmap() when receiving big chunk of data

2010-11-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: This still needs to be verified that there is a problem with a *current* release. That means 2.7.1 (rc just out) or 3.2 (a4 just out). If this would be considered a security issue (I do not know) then 'current' includes 2.5.5, 2.6.6, and

[issue10394] subprocess Popen deadlock

2010-11-16 Thread Christoph Mathys
Christoph Mathys erase...@gmail.com added the comment: Yes, it's the correct file. Sorry, I'm making quite a mess in my description about program: The attached program is deadlock.py. Program One and Two are python scripts executed using python -c, the code is inside deadlock.py. I installed

[issue10437] ThreadPoolExecutor should accept max_workers=None

2010-11-16 Thread Daniel Stutzbach
New submission from Daniel Stutzbach stutzb...@google.com: ProcessPoolExecutor allows the max_workers parameter to the constructor to be omitted or None, in which case it will set the max_workers based on the number of CPUs. It would be nice if ThreadPoolExecutor's constructor worked the same

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-16 Thread Stephen Hansen
Stephen Hansen me+pyt...@ixokai.io added the comment: On 11/16/10 5:44 AM, Ronald Oussoren wrote: Ronald Oussoren ronaldousso...@mac.com added the comment: Please explain how the failure can be reproduced. I have. But to do so more directly: 1. Launch Terminal.app; leave the window console

[issue2901] error: can't allocate region from mmap() when receiving big chunk of data

2010-11-16 Thread Stephen Hansen
Stephen Hansen me+pyt...@ixokai.io added the comment: I can try to do some testing to reproduce w/ 2.7: 2.5 was IIRC 32-bit on leopard by default though, so should I force a non-64-bit build to test this? I'm not entirely sure if that'll change things, but want to make sure. I can test with

[issue10438] list an example for calling static methods from WITHIN classes

2010-11-16 Thread Ian
New submission from Ian ifreeca...@gmail.com: Concerning this section of the docs: http://docs.python.org/library/functions.html#staticmethod There is no example for calling a static method from another static method within the same class. As I discovered later, it's simple: C.f() -- from

[issue10438] list an example for calling static methods from WITHIN classes

2010-11-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: IMO this follows logically from Python's self-consistent rules. I'm not convinced that the amount of extra verbiage required to detail this particular case would make the docs clearer, but you are welcome to suggest a wording for us to

[issue10438] list an example for calling static methods from WITHIN classes

2010-11-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Woops, I see you did suggest a wording. However, what you wrote is imprecise and confused me when I first read it (I thought you meant that self.f() didn't work!). -- ___ Python tracker

[issue10438] list an example for calling static methods from WITHIN classes

2010-11-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I tend to agree with David. Especially since calling base class methods also uses the explicit class name. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org

[issue6745] (curses) addstr() takes str in Python 3

2010-11-16 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: We'll try to solve this for 3.2. -- assignee: - lukasz.langa nosy: +lukasz.langa priority: normal - high versions: +Python 3.2 -Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue10438] list an example for calling static methods from WITHIN classes

2010-11-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: However, what you wrote is imprecise and confused me when I first read it (I thought you meant that self.f() didn't work!). Well, it doesn't work in the specific case he mentioned of calling from another static method :) --

[issue10438] list an example for calling static methods from WITHIN classes

2010-11-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Only because you don't *have* self. Which is why I said imprecise and not incorrect :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10438

[issue10435] Document unicode C-API in reST

2010-11-16 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, Nov 16, 2010 at 10:38 AM, M.-A. Lemburg m...@egenix.com wrote: Alexander Belopolsky wrote: .. I also have a similar question about C API.  Here, in absence of __all__, the answer should be clear: all symbols in

[issue10435] Document unicode C-API in reST

2010-11-16 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +haypo, lemburg, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10435 ___

[issue10430] _sha.sha().digest() method is endian-sensitive. and hexdigest()

2010-11-16 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10430 ___ ___ Python-bugs-list

[issue10438] list an example for calling static methods from WITHIN classes

2010-11-16 Thread Ian
Ian ifreeca...@gmail.com added the comment: Am I to understand that self.f() is a valid way to call a static method? Can you see how that would run counter to intuition for someone who is familiar with other languages? Given that, I would make the following (more precise) change: It can be

[issue10435] Document unicode C-API in reST

2010-11-16 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: PyUnicode_AsDecodedObject() and PyUnicode_AsDecodedUnicode() appear to be broken as well: both start with a PyUnicode_Check(unicode) and then pass unicode to PyCodec_Decode() which expects bytes. --

[issue10438] list an example for calling static methods from WITHIN classes

2010-11-16 Thread Ian
Ian ifreeca...@gmail.com added the comment: Disregard my previous comment; calling self.f() does not work from a static method. I stand by my previous suggestion, but I'll clarify it like this: Note: you must also use the C.f() syntax when calling from a static method within the C class

[issue10435] Document unicode C-API in reST

2010-11-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Please note that PyCodec_Encode()/PyCodec_Decode() will return whatever the codec returns for these operations. The codec system is not limited to converting between Unicode and bytes only. A typical example is a same-type codec such as

[issue10435] Document unicode C-API in reST

2010-11-16 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, Nov 16, 2010 at 5:54 PM, Marc-Andre Lemburg rep...@bugs.python.org wrote: Marc-Andre Lemburg m...@egenix.com added the comment: Please note that PyCodec_Encode()/PyCodec_Decode() will return whatever the codec

[issue9173] logger statement not guarded in shutil._make_tarball

2010-11-16 Thread v_peter
v_peter leanmeandonothingmach...@gmail.com added the comment: Added a test to the patch -- nosy: +v_peter Added file: http://bugs.python.org/file19620/shutil_logger_with_test.py27.patch ___ Python tracker rep...@bugs.python.org

[issue10435] Document unicode C-API in reST

2010-11-16 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Attached patch documents all previously undocumented unicode C API functions. Note that for the PyUnicode_As{En,De}codedObject() and PyUnicode_As{En,De}DecodedUnicode() functions I attempted to capture what they are

[issue10439] PyCodec C API is not documented in reST

2010-11-16 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: Python Codec Registry and support functions are well documented in codecs.h header file. It should be easy to convert that to reST. -- assignee: d...@python components: Documentation keywords: easy messages:

[issue10435] Document unicode C-API in reST

2010-11-16 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, Nov 16, 2010 at 7:19 PM, Marc-Andre Lemburg rep...@bugs.python.org wrote: .. * Decoding converts a bytes object encoded using a particular character set encoding to a string object.

[issue10439] PyCodec C API is not documented in reST

2010-11-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10439 ___ ___

[issue10435] Document unicode C-API in reST

2010-11-16 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I agree and will handle this in #10435 because codecs.h s/#10435/#10439/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10435

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-16 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The problem Stephen is seeing with the buildbot machine is ABI-dependent; the behavior of getgroups(2) changed in 10.6. You can demonstrate this all on a 10.6 system. Open a terminal session and verify the process's groups: $ id -G 20 40200 401 204

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-16 Thread Ned Deily
Ned Deily n...@acm.org added the comment: (Argh! Just to be very clear, those ./configure commands are all one line, including the MACOSX_DEPLOYMENT_TARGET as an argument to the configure script.) -- ___ Python tracker rep...@bugs.python.org