[issue11568] docstring of select.epoll.register() is wrong

2011-06-27 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 0610f70e6694 by Senthil Kumaran in branch '3.2': Fix closes issue 11568 - update select.epoll.register docstring with mention of correct behavior. http://hg.python.org/cpython/rev/0610f70e6694 -- nosy: +python-dev

[issue11568] docstring of select.epoll.register() is wrong

2011-06-27 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset a6586cb660dc by Senthil Kumaran in branch '2.7': Fix closes issue 11568 - update select.epoll.register docstring with mention of correct behavior. http://hg.python.org/cpython/rev/a6586cb660dc --

[issue11568] docstring of select.epoll.register() is wrong

2011-06-27 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: On Sun, Jun 26, 2011 at 03:12:30PM +, Sandro Tosi wrote: The patch is fine: but would you be interested in trying to write a unittest for select.epoll.register ? it would be really nice to This is covered in test_epoll.py --

[issue11568] docstring of select.epoll.register() is wrong

2011-06-27 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Ah, I find the test file name a bit unhappy (why not test select.epoll in test_select? or add select in the filename?) but since it's covered - I'm fine! :) Next time I'll grep instead of simple file glob - thanks for your help, Senthil.

[issue1475523] gettext breaks on plural-forms header

2011-06-27 Thread Dirkjan Ochtman
Dirkjan Ochtman dirk...@ochtman.nl added the comment: This looks similar to https://bugs.gentoo.org/show_bug.cgi?id=373115. Is it the same thing, or should I file a separate bug for it? (Sorry, I don't intend to hijack this bug, but I don't know much about gettext and the patch here looks

[issue12417] Inappropriate copyright on profile files

2011-06-27 Thread Paul Hildebrandt
New submission from Paul Hildebrandt paul_hildebra...@yahoo.com: profile.py and pstats.py have an inappropriate copyright for some. These files were contributed by a company that was acquired by Disney. I have a patch that has passed Disney legal to resolve the problem. The following is the

[issue5375] Unified locals/consts array + register-based instructions

2011-06-27 Thread Dirkjan Ochtman
Dirkjan Ochtman dirk...@ochtman.nl added the comment: Yeah, I probably won't work on this anytime soon. I think this has also become less interesting as pypy has made progress. -- ___ Python tracker rep...@bugs.python.org

[issue12417] Inappropriate copyright on profile files

2011-06-27 Thread Paul Hildebrandt
Paul Hildebrandt paul_hildebra...@yahoo.com added the comment: This is the patch. It was created with hg diff WDAS.patch at the root of the hg repository. This patch is just a comment change and should apply to versions of Python currently being update. -- keywords: +patch

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-06-27 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: That would be incorrect for some systems. For example, FreeBSD does change sets of symbolic constants across system releases (mostly additions, but sometimes also removals). Back then, SunOS 4 and SunOS 5 were completely unrelated

[issue1475523] gettext breaks on plural-forms header

2011-06-27 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: It's difficult to tell whether it's the same thing. Is the po file in question available readily for inspection? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1475523

[issue6721] Locks in python standard library should be sanitized on fork

2011-06-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: If there's agreement that the general problem is unsolvable (so fork and threads just don't get along with each other), what we could attempt is trying to limit the side effects in the standard library, so that fewest users as possible are

[issue1475523] gettext breaks on plural-forms header

2011-06-27 Thread Dirkjan Ochtman
Dirkjan Ochtman dirk...@ochtman.nl added the comment: Looks like this was the problem: http://git.fedorahosted.org/git/?p=virt-manager.git;a=commitdiff;h=cb56316cf3702f03b05e30f406ff3028e45f7bfb. E.g., the empty Plural-Forms header is throwing off the python gettext parser. --

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le Sun, 26 Jun 2011 19:49:03 +, Vinay Sajip rep...@bugs.python.org a écrit : Added file: http://bugs.python.org/file22487/0feab4e7b27f.diff Just a nit, could you give descriptive file names to your patches? Hex numbers quickly get

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-06-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le Mon, 27 Jun 2011 08:05:05 +, Martin v. Löwis rep...@bugs.python.org a écrit : What I'm advocating is to special-case Linux (and any other system where major version numbers don't mean much). Actually, it would itself break

[issue1067702] urllib fails with multiple ftp transfers

2011-06-27 Thread Stefan Schwarzer
Stefan Schwarzer sschwar...@sschwarzer.net added the comment: Hi Senthil, I don't yet understand what was going on before it resulted in the traceback. I also don't understand _why_ the patch fixes _this_ bug. (That's not to say it doesn't, but I think it's not obvious either. :-) ) Were you

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-27 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- nosy: +djc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12291 ___ ___ Python-bugs-list mailing

[issue5375] Unified locals/consts array + register-based instructions

2011-06-27 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - postponed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5375 ___

[issue12139] Add CCC command support to ftplib

2011-06-27 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset d2eacbbdaf57 by Giampaolo Rodola' in branch 'default': Issue 12139: add CCC command support to FTP_TLS class to revert the SSL connection back to clear-text. http://hg.python.org/cpython/rev/d2eacbbdaf57 -- nosy:

[issue12139] Add CCC command support to ftplib

2011-06-27 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12139

[issue1475523] gettext breaks on plural-forms header

2011-06-27 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1475523 ___

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-27 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Typical example: (... smtplib ...) Another example (yesterday): -- [355/356/2] test_subprocess ... Re-running test test_subprocess in verbose mode ... Ran 228 tests in 322.313s OK (skipped=20) -- --

[issue12139] Add CCC command support to ftplib

2011-06-27 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: http://www.python.org/dev/buildbot/all/builders/x86%20Ubuntu%20Shared%203.x/builds/4043/steps/test/logs/stdio == ERROR: test_ccc (test.test_ftplib.TestTLS_FTPClass)

[issue12139] Add CCC command support to ftplib

2011-06-27 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: http://www.python.org/dev/buildbot/all/builders/x86%20Tiger%203.x/builds/2792/steps/test/logs/stdio == ERROR: test_ccc (test.test_ftplib.TestTLS_FTPClass)

[issue12139] Add CCC command support to ftplib

2011-06-27 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Hmm... Reopening. I'll look into this later. -- resolution: fixed - status: closed - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12139

[issue12376] unittest.TextTestResult.__init__ does not pass on its init arguments in super call

2011-06-27 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I have a feeling I added the arguments to TestResult.__init__ to allow it to be used as a silent test result directly in place of TextTestResult. I still need to check this. Not adding the arguments to the super call in TextTestResult

[issue12376] unittest.TextTestResult.__init__ does not pass on its init arguments in super call

2011-06-27 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- assignee: - michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12376 ___ ___

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-27 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Nick, you know a lot about this issue and I'm probably missing many things here. I misunderstood your concept of PyManagedBuffer, so my previous posting might have been hard to understand. I'd appreciate if you (or anyone in this thread)

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-27 Thread Pauli Virtanen
Pauli Virtanen p...@iki.fi added the comment: skrah writes: I think slicing (esp. multidimensional slicing) would be greatly simplified if we added a requirement for the *exporting* object to provide a sliced view. (The same applies to sub-views, also see source comments below [1]). For

[issue11302] Add more tests to test_ast.py

2011-06-27 Thread Vincent Legoll
Vincent Legoll vincent.leg...@gmail.com added the comment: OK I'll look at it and respin with the comments in mind -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11302 ___

[issue12418] python should inherit the library search path from the compiler for stdlib extensions

2011-06-27 Thread Steve Langasek
New submission from Steve Langasek steve.langa...@ubuntu.com: related to http://bugs.python.org/issue11715 python 2.7 and 3.1 now include a patch for behavior specific to Ubuntu and Debian to search in multiarch directories for libraries needed for building stdlib extensions. This

[issue12419] Add ident parameter to SysLogHandler

2011-06-27 Thread Floris Bruynooghe
New submission from Floris Bruynooghe floris.bruynoo...@gmail.com: It would be nice if the SysLogHandler also accepted an ident parameter in line with the syslog.openlog() function. This simply prepends the string passed in as ident to each log message which currently needs to be implemented

[issue12419] Add ident parameter to SysLogHandler

2011-06-27 Thread Floris Bruynooghe
Changes by Floris Bruynooghe floris.bruynoo...@gmail.com: -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12419 ___ ___

[issue12420] distutils crashes if PATH is not defined

2011-06-27 Thread Henry Precheur
New submission from Henry Precheur he...@precheur.org: The function find_executable crashes if PATH is not defined. I admit that it's an extreme case, but it's probably better to on the safe side of things. What about using the current directory only if PATH is not defined? This seems to be

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-27 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Just a nit, could you give descriptive file names to your patches? Hex numbers quickly get confusing. Ok - I was under the impression that those names were generated automatically from the changeset hash, and that changing the name

[issue12401] unset PYTHON* environment variables when running tests

2011-06-27 Thread Henry Precheur
Henry Precheur he...@precheur.org added the comment: Here's a small patch to call regression tests without any environment variable defined. It's probably a good thing to run all the tests with a clean state, this way they are less likely to fail for mysterious external reasons. For example

[issue12421] Use PYTHON when calling Parser/asdl_c.py

2011-06-27 Thread Henry Precheur
New submission from Henry Precheur he...@precheur.org: Parser/asdl_c.py uses `/usr/bin/env python' as an interpreter. But Python executable is not always `python'. With OpenBSD's ports, CPython's interpreters are installed as pythonX.Y. There's a variable PYTHON in the Makefile, that's what

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-27 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: Here is a test file that will replicate the problem, I added it as a gist so it could support contributions ;) Py 2.7 works Py ==2.7 fails Py =3.0 works after minor changes required by py3k https://gist.github.com/1047551 --

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-27 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I'll try to do a summary of the conversation so far, since it's quite long and hard to follow. The basic issue is that memoryview needs to support copying and slicing that creates a new memoryview object. The major problem with that is that

[issue12419] Add ident parameter to SysLogHandler

2011-06-27 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- assignee: - vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12419 ___ ___

[issue12421] Use PYTHON when calling Parser/asdl_c.py

2011-06-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I don't believe we have any desire to support unix systems that do not define 'python', and 'python3' executables in the path. If the distribution wishes to do that they'll have to patch everything to accommodate it. That however is

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: rdmurraypython2.6 py27-str-unicode-bytes.py type(b)=type 'str' Traceback (most recent call last): File py27-str-unicode-bytes.py, line 17, in module unicode_str += b # this line will throw UnicodeDecodeError on Python 2.7

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-27 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12398 ___ ___

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: To clarify: if I convert your program to using strings pre2.6, it still fails with a UnicodeDecodeError, as one would expect. bytes are strings in 2.x. -- ___ Python tracker

[issue12421] Use PYTHON when calling Parser/asdl_c.py

2011-06-27 Thread Henry Precheur
Henry Precheur he...@precheur.org added the comment: Indeed, I didn't realize that PYTHON was the name of the target interpreter and not the name a an already installed interpreter. -- ___ Python tracker rep...@bugs.python.org

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: And finally, your program does *not* succeed on Python3, except in the trivial sense that on python3 you never attempt to add the string and bytes data. It is exactly this kind of programming error that Python3 is designed to avoid:

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-27 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: Right, so you have some binary data and you want to sent it to `httplib`. This worked in the past when `msg` was a non-unicode string, but starting with Python 2.7 this became an unicode string, so when you try to append the `message` if will

[issue12420] distutils crashes if PATH is not defined

2011-06-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report. Can you tell how you ran into this? Did you call the function directly, or did you get the bug while running a setup.py command? Also, what do you mean by crash? We use that for CPython segmentation faults, not

[issue12416] packaging does not have hooks callable during distribution removal

2011-06-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I have no objection, but you may want to ask on the fellowship ML first. Should the hooks be run before the removal or just after? (Debian for example has both, which makes four hooks: preinst, postinst, prerm, postrm). Our setup_hooks (used

[issue11302] Add more tests to test_ast.py

2011-06-27 Thread Vincent Legoll
Vincent Legoll vincent.leg...@gmail.com added the comment: Here we are, I left the exact messages for raised exceptions as comments so they can easily be checked in case of test failure... Does that look OK ? -- Added file:

[issue12406] msi.py needs updating for Python 3.3

2011-06-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I've realised there are more additions due to packaging - for example there is a whole set of wininst-X.Y[-amd64].exe files Oh thanks, I had forgotten about msi.py. Copying the similar section that already exists for distutils wininst

[issue12420] distutils crashes if PATH is not defined

2011-06-27 Thread Henry Precheur
Henry Precheur he...@precheur.org added the comment: Sorry crash wasn't the right term. It's just that distutils tests fail. I ran into that when trying to run unit tests without any environment variable (see #12401). $ env -i ./python ./Lib/test/regrtest.py test_distutils [1/1] test_distutils

[issue11493] Add python.exe-gdb.py to .hgignore

2011-06-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Ah, it’s for Mac. gdb + .exe sounded strange in my head :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11493 ___

[issue12417] Inappropriate copyright on profile files

2011-06-27 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 55219254eb77 by Benjamin Peterson in branch '2.7': update profile license (closes #12417) http://hg.python.org/cpython/rev/55219254eb77 New changeset e50963c3119d by Benjamin Peterson in branch '3.2': update profile license (closes

[issue12420] distutils crashes if PATH is not defined

2011-06-27 Thread Henry Precheur
Henry Precheur he...@precheur.org added the comment: I don't know exactly in which context find_executable should be used, but after taking a closer look it seems that returning None when PATH is not defined could work. -- ___ Python tracker

[issue12417] Inappropriate copyright on profile files

2011-06-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Great news for Debian users! Thanks to all involved. -- nosy: +eric.araujo versions: -Python 2.6, Python 3.1, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12417

[issue12420] distutils crashes if PATH is not defined

2011-06-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Okay, I see the original use case (#12401). I think the proper thing to do is to skip tests that rely on the environment being non-empty. -- ___ Python tracker rep...@bugs.python.org

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: But senthil already demonstrated in the previous issue that it does not become a unicode string unless you use unicode input. You also claimed that your test program here succeeded in python2.6, but it does not. This casts a little bit

[issue12296] Minor clarification in devguide

2011-06-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Okay for a new sentence. I think repeating new is clearer: (This obviously does not apply to new classes or functions, or new optional arguments.) -- ___ Python tracker rep...@bugs.python.org

[issue12169] Factor out common code for d2 commands register, upload and upload_docs

2011-06-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file22309/patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12169 ___

[issue12169] Factor out common code for d2 commands register, upload and upload_docs

2011-06-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file22330/patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12169 ___

[issue12419] Add ident parameter to SysLogHandler

2011-06-27 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 6baa90fa2b6d by Vinay Sajip in branch 'default': Closes #12419: Added ident to SysLogHandler. http://hg.python.org/cpython/rev/6baa90fa2b6d -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open

[issue11302] Add more tests to test_ast.py

2011-06-27 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: You still haven't explained why including multiline literals is a good idea. Also, the reason we avoid matching exact messages is it can vary across implementations. You can still do an accurate test with something like

[issue12169] Factor out common code for d2 commands register, upload and upload_docs

2011-06-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Great patch, thanks! It’s on the top of my commit list. -- priority: normal - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12169 ___

[issue12419] Add ident parameter to SysLogHandler

2011-06-27 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: N.B. I did not add an additional constructor arg - instead, it's a class-level attribute which can be overridden at class or instance level. -- ___ Python tracker rep...@bugs.python.org

[issue10020] docs for sqlite3 describe functions not available without recompiling

2011-06-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I just noticed that the blocks in reST should use three-space indent, not two. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10020 ___

[issue12419] Add ident parameter to SysLogHandler

2011-06-27 Thread Floris Bruynooghe
Floris Bruynooghe floris.bruynoo...@gmail.com added the comment: That was quick, thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12419 ___

[issue4296] Python assumes identity implies equivalence; contradicts NaN

2011-06-27 Thread Sven Marnach
Sven Marnach s...@marnach.net added the comment: The behaviour discussed in this thread does not seem to be reflected in Python's documentation. The documentation of __eq__() [1] doesn't mention that objects should compare equal to themselves. [1]:

[issue11302] Add more tests to test_ast.py

2011-06-27 Thread Vincent Legoll
Vincent Legoll vincent.leg...@gmail.com added the comment: I was testing exact matches on the strings because I think pypy wants to be as compliant as possible with cpython, and IMHO that include exception msgs as far as possible. I don't see any reason to be different just for the sake of it.

[issue11302] Add more tests to test_ast.py

2011-06-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think pypy wants to be as compliant as possible with cpython, and IMHO that include exception msgs as far as possible. I don't see any reason to be different just for the sake of it. As a user I'd find strange not to get same exc msgs from

[issue11302] Add more tests to test_ast.py

2011-06-27 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2011/6/27 Vincent Legoll rep...@bugs.python.org: Vincent Legoll vincent.leg...@gmail.com added the comment: I was testing exact matches on the strings because I think pypy wants to be as compliant as possible with cpython, and IMHO

[issue12416] packaging does not have hooks callable during distribution removal

2011-06-27 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Sounds good. Also, we should make the assumption that this hook might be deactivated or might fail. So it should not break the uninstallation in this case (a warning seem fine) -- ___ Python

[issue12416] packaging does not have hooks callable during distribution removal

2011-06-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Definitely, hooks do not stop operation. I’ll double-check that. We may want an option to turn hooks failures into fatal errors. -- ___ Python tracker rep...@bugs.python.org

[issue12420] distutils crashes if PATH is not defined

2011-06-27 Thread Henry Precheur
Henry Precheur he...@precheur.org added the comment: I think that returning None would be a better option. The function documentation says: Tries to find 'executable' in the directories listed in 'path'. A string listing directories separated by 'os.pathsep'; defaults to

[issue12420] distutils tests fail if PATH is not defined

2011-06-27 Thread Henry Precheur
Changes by Henry Precheur he...@precheur.org: -- title: distutils crashes if PATH is not defined - distutils tests fail if PATH is not defined ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12420

[issue12416] packaging does not have hooks callable during distribution removal

2011-06-27 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: We need to make it crystal clear in the doc: developers need to understand this behavior. Also, for a fatal error, I am -1 for activating this for an uninstall hook because we want to uninstall wathever happens in the hooks, +1 for others

[issue11302] Add more tests to test_ast.py

2011-06-27 Thread Vincent Legoll
Vincent Legoll vincent.leg...@gmail.com added the comment: * removed the comments for exc msgs * added explanation to multiline statements * added 2 tests to test_AST_objects() Regarding Éric's comment, I'm starting to wonder if those Exception tests should be added to cpython's testsuite.

[issue12422] When deepcopying, don't store immutable objects in the memo dict

2011-06-27 Thread Alex Gaynor
New submission from Alex Gaynor alex.gay...@gmail.com: All storing immutable objects in the memo dict does is slow stuff down, due to having a larger hash table, and on some other Python's causing hilarious levels of GC pressure. Using http://paste.pocoo.org/show/421310/ as a benchmark,

[issue12420] distutils tests fail if PATH is not defined

2011-06-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: To explain my position: distutils is a very brittle codebase that’s used and monkey-patched by a lot of third-party code. In the past, before the forking of distutils/packaging, Tarek tried to gradually improve distutils but he got a lot of

[issue12416] packaging does not have hooks callable during distribution removal

2011-06-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The setup.cfg spec says only this: The callables are executed in the order they’re found in the file; if one of them cannot be found, tools should not stop, but for example produce a warning and continue with the next line.

[issue12422] When deepcopying, don't store immutable objects in the memo dict

2011-06-27 Thread Carl Friedrich Bolz
Changes by Carl Friedrich Bolz cfb...@gmx.de: -- nosy: +Carl.Friedrich.Bolz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12422 ___ ___

[issue8617] Better document user site-packages in site module doc

2011-06-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- keywords: +patch Added file: http://bugs.python.org/file22498/pep370-doc.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8617 ___

[issue8617] Better document user site-packages in site module doc

2011-06-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- keywords: +needs review stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8617 ___

[issue12422] When deepcopying, don't store immutable objects in the memo dict

2011-06-27 Thread Alex Gaynor
Alex Gaynor alex.gay...@gmail.com added the comment: A slightly cleverer version (or less clever, depending on how you approach the issue) that also works with tuples of immutable content. -- Added file: http://bugs.python.org/file22499/d.diff ___

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-27 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: I updated the gist and made a minimal test https://gist.github.com/1047551 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12398 ___

[issue10020] docs for sqlite3 describe functions not available without recompiling

2011-06-27 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Eric, you mean for the whole of sqlite3 docmentation or the part in the footnote? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10020

[issue10020] docs for sqlite3 describe functions not available without recompiling

2011-06-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I mean in the two commits. I can check the whole file later (and also use automatic reST footnotes, [#] instead of [#fn1]). -- ___ Python tracker rep...@bugs.python.org

[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2011-06-27 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: On 2011-06-26, at 2:04 PM, Terry J. Reedy wrote: Terry J. Reedy tjre...@udel.edu added the comment: Sridhar, is there still a problem with current 3.2/3? If you are no longer working on this, I think we should close as

[issue12385] the help for bytearray.maketrans describes bytes.maketrans

2011-06-27 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 586745894ab8 by Senthil Kumaran in branch '3.2': Fix closes Issue12385 - Clarify maketrans method docstring for bytes and bytearray object. http://hg.python.org/cpython/rev/586745894ab8 -- nosy: +python-dev resolution: -

[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2011-06-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: « Python 3.2 was released on February 20th, 2011. » (from python.org) -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5999

[issue12043] Update shutil documentation

2011-06-27 Thread Sandro Tosi
Changes by Sandro Tosi sandro.t...@gmail.com: -- versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12043 ___ ___

[issue12043] Update shutil documentation

2011-06-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Can you add links, a list of problems, dependency bugs or a patch? Otherwise this is an empty placeholder. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12043

[issue12043] Update shutil documentation

2011-06-27 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: I'm starting to work on a patch right now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12043 ___

[issue10403] Use member consistently

2011-06-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Alexander, could you comment on the review page about datetime.rst changes? -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10403

[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2011-06-27 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: On 2011-06-27, at 9:11 AM, Éric Araujo wrote: Éric Araujo mer...@netwok.org added the comment: « Python 3.2 was released on February 20th, 2011. » (from python.org) My mistake; I meant to say 3.2.1 final. --

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-27 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Pauli Virtanen rep...@bugs.python.org wrote: skrah writes: For example, an exporting object could provide a sliced view by adding a getslicedbufferproc to PyBufferProcs: int PyObject_GetSlicedBuffer(PyObject *obj, Py_buffer

[issue12422] When deepcopying, don't store immutable objects in the memo dict

2011-06-27 Thread Alex Gaynor
Alex Gaynor alex.gay...@gmail.com added the comment: Switched to using assertIs, as merwok suggested. -- Added file: http://bugs.python.org/file22500/d.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12422

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-27 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Nick Coghlan rep...@bugs.python.org wrote: [Snip liberally] The lifecycle problem is unrelated to the details of the buffer *contents* though - it's entirely about the fact that clients can't safely copy all those pointers (as some

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le Mon, 27 Jun 2011 13:17:57 +, Nick Coghlan rep...@bugs.python.org a écrit : The TL;DR version of the above is that I would like to see it become: typedef struct { PyObject_HEAD PyManagedBuffer source_data; // shared read-only

[issue12420] distutils tests fail if PATH is not defined

2011-06-27 Thread Henry Precheur
Henry Precheur he...@precheur.org added the comment: OK it makes sense. I'm working on fixing the tests. I'm not done yet, but I've attached a patch with my work in progress (some tests still fail). Do you have any comments? I'll post a complete version later today or tomorrow. --

[issue12423] signal handler dpes

2011-06-27 Thread Kamil Kisiel
Changes by Kamil Kisiel ka...@kamilkisiel.net: -- nosy: kisielk priority: normal severity: normal status: open title: signal handler dpes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12423

  1   2   >