[issue10709] Misc/AIX-NOTES needs updating

2011-02-18 Thread Sébastien Sablé
Sébastien Sablé sa...@users.sourceforge.net added the comment: Here is a new version of the file: It integrates the corrections by R. David, and I also modified the memory limitations section in order to use ldedit rather than some flags for the linker. -- Added file:

[issue11212] Python memory limit on AIX

2011-02-18 Thread Sébastien Sablé
Sébastien Sablé sa...@users.sourceforge.net added the comment: I updated the documentation in issue 10709 so that it mentions ldedit rather than the linker flags (more convenient to activate support for more memory). Once Python 3.2 is released, we may add LDR_CNTRL or ldedit in the Makefile

[issue11242] urllib.request.url_open() doesn't support SSLContext

2011-02-18 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: Issue #9003 added cafile and capath arguments to url_open(), but it is not possible to reuse a SSLContext object (which would avoid to reload certificates, CRL, etc.). -- components: Library (Lib) messages: 128779 nosy:

[issue9523] Improve dbm modules

2011-02-18 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: An updated patch, based on latest several reviews on http://codereview.appspot.com/4185044/ update: 1, Refactoring the common tests between test_dbm_gnu and test_dbm_ndbm. 2, Move the abc registering in Lib/dbm/ndbm.py and Lib/dbm/gnu.py. 3, Other

[issue9523] Improve dbm modules

2011-02-18 Thread Ray.Allen
Changes by Ray.Allen ysj@gmail.com: Removed file: http://bugs.python.org/file20771/issue_9523.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9523 ___

[issue5537] LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms

2011-02-18 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oh, my patch is incomplete: time2netscape() has the same issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5537 ___

[issue11242] urllib.request.url_open() doesn't support SSLContext

2011-02-18 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11242 ___ ___ Python-bugs-list

[issue11243] email/message.py str conversion [patch]

2011-02-18 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: Hy David, while hacking a bit on my thing i've found two places where header.Header needs to be explicitely converted via str(). Have a nice weekend. -- files: email_message.patch keywords: patch messages: 128782 nosy:

[issue11243] email/message.py str conversion [patch]

2011-02-18 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: (Will get that tracker right as time goes by.) -- type: - behavior versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11243

[issue11243] email/message.py str conversion

2011-02-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for the report. I probably won't have time to look at this for a bit. -- assignee: - r.david.murray stage: - patch review title: email/message.py str conversion [patch] - email/message.py str conversion versions:

[issue7330] PyUnicode_FromFormat segfault

2011-02-18 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: No you don't. You can copy a substring of the input string with Py_UNICODE_COPY: just pass a smaller length. Oh, yes, I got your meaning now. I'll follow this. You can truncate the input char* on the call to PyUnicode_DecodeUTF8: Oh, what if

[issue7330] PyUnicode_FromFormat segfault

2011-02-18 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oh, what if the trunked char* cannot be decoded correctly? e.g. a tow-bytes character is divided in the middle? Yes, but PyUnicode_FromFormatV() uses UTF-8 decoder with replace error handler, and so the incomplete byte sequence

[issue11243] email/message.py str conversion

2011-02-18 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: We all know EMail 6.0 will blow them off the streets in the end. -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11243

[issue5537] LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms

2011-02-18 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Victor, I don't see your patch. Did you remove it? -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5537

[issue5537] LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms

2011-02-18 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: No, I forgot to upload it... -- keywords: +patch Added file: http://bugs.python.org/file20785/cookiejar_datetime.patch ___ Python tracker rep...@bugs.python.org

[issue7330] PyUnicode_FromFormat segfault

2011-02-18 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: Can you add tests for %.s? I would like to know if %.s is different than %s :-) Oh sorry~~ I made an mistake. There is no bug here. I have attached tests that show that '%.s' is the same as '%s'. Here is the updated patch: 1, changed the

[issue5537] LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms

2011-02-18 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: While it is unlikely that a purely numeric format such as %Y-%m-%d %H:%M:%S will be locale dependent, it is possible that some pre-C99 systems would format dates using exotic digits is some locales. Given that format is so

[issue5537] LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms

2011-02-18 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: If datetime.strftime() is not reliable, we should maybe fix it instead of using a workaround? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5537

[issue5537] LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms

2011-02-18 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Fri, Feb 18, 2011 at 11:04 AM, STINNER Victor rep...@bugs.python.org wrote: .. If datetime.strftime() is not reliable, we should maybe fix it instead of using a workaround? The real fix would be to rewrite strftime

[issue11240] Running unit tests in a command line tool leads to infinite loop with multiprocessing on Windows

2011-02-18 Thread Matt Chaput
Matt Chaput m...@whoosh.ca added the comment: I don't know what to tell you... to the best of my knowledge there's absolutely no way for my code to kick off the entire test suite -- I always do that through PyDev (which doesn't cause the bug, by the way). The closest thing is the boilerplate

[issue11244] Negative tuple elements produce inefficient code.

2011-02-18 Thread Jeffrey Harper
New submission from Jeffrey Harper jhar...@yapdc.com: In Python 3.2, a tuple like (1,-2,3) will not be optimized into a constants at compile time. The tuple is built at run-time. Earlier versions of Python optimized these tuples at compile time. Here's an example program. # test.py from

[issue11238] sets - refer to sets/frozenset in stdtypes

2011-02-18 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Good catch, done in r88436. Thanks Sandro and Davide, if you’re subscribed to the docs@python mailing-list and can read this. -- assignee: sandro.tosi - eric.araujo nosy: +docs@python, eric.araujo resolution: accepted - fixed stage:

[issue11240] Running unit tests in a command line tool leads to infinite loop with multiprocessing on Windows

2011-02-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Nose works correctly for me with multiprocessing. In a directory, I have: == run_nose.py = from nose import main if __name__ == '__main__': main() == test_me.py ==

[issue7284] argparse - display version in usage by default

2011-02-18 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +bethard -aronacher resolution: wont fix - stage: committed/rejected - title: optparse - display version in usage by default - argparse - display version in usage by default ___ Python tracker

[issue11203] gzip doc is behind

2011-02-18 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report. Would you like to propose a patch? -- nosy: +eric.araujo versions: +Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11203

[issue11240] Running unit tests in a command line tool leads to infinite loop with multiprocessing on Windows

2011-02-18 Thread Matt Chaput
Matt Chaput m...@whoosh.ca added the comment: If I do c:\python27\python run_nose.py it works correctly. If I do nosetests I get the process explosion. Maybe the bug is in how distutils and nose work from the command line? I'm confused. -- ___

[issue10887] Add link to development ML

2011-02-18 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Changed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10887 ___ ___ Python-bugs-list mailing

[issue11244] Negative tuple elements produce inefficient code.

2011-02-18 Thread Jeffrey Harper
Jeffrey Harper jhar...@yapdc.com added the comment: I have also determined that negative elements interfere with the frozenset optimization described in issue6690. http://bugs.python.org/issue6690. Here's an example program: # test.py from dis import dis def x(var): return var in {1,2,3} #

[issue11060] distutils2 sdist does not complain about version that is not PEP 386 compliant

2011-02-18 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think Version should be strict, then Metadata could have an option for strictness (defaulting to true), so that mkcfg, sdist and other would strict mode but users could get more flexibility when needed. -- nosy: +swamiyeswanth

[issue11244] Negative tuple elements produce inefficient code.

2011-02-18 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11244 ___ ___ Python-bugs-list

[issue11240] Running unit tests in a command line tool leads to infinite loop with multiprocessing on Windows

2011-02-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Ah, is 'nosetests' a .exe file? A frozen executable? In this case, can you try the solution proposed at http://docs.python.org/library/multiprocessing.html#multiprocessing.freeze_support --

[issue11205] Evaluation order of dictionary display is different from reference manual.

2011-02-18 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11205 ___ ___ Python-bugs-list

[issue11240] Running unit tests in a command line tool leads to infinite loop with multiprocessing on Windows

2011-02-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: If I do c:\python27\python run_nose.py it works correctly. If I do nosetests I get the process explosion. Maybe the bug is in how distutils and nose work from the command line? I'm confused. The bug is in nose itself. You should report a bug

[issue11244] Negative tuple elements produce inefficient code.

2011-02-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I wonder if this has anything to do with issue 9011? -- nosy: +mark.dickinson, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11244

[issue11244] Negative tuple elements produce inefficient code.

2011-02-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The culprit is r82043: Issue #9011: Remove buggy and unnecessary ST-AST compilation code. -- assignee: - mark.dickinson nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue11231] bytes() constructor is not correctly documented

2011-02-18 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11231 ___ ___ Python-bugs-list

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-02-18 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report. Would you like to contribute a patch? If so, guidelines are found at http://docs.python.org/devguide/ -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue11204] re module: strange behaviour of space inside {m, n}

2011-02-18 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +ezio.melotti, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11204 ___ ___

[issue11243] email/message.py str conversion

2011-02-18 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: P.S.: maybe this completes the byte. Have a nice weekend nevertheless - if you can. Traceback (most recent call last): File /Users/steffen/usr/bin/s-postman.py, line 1419, in _walk

[issue11244] Negative tuple elements produce inefficient code.

2011-02-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The problem is that the UNARY_NEGATIVE + LOAD_CONST optimization, which occurs first in bytecode order, inserts a NOP and prevents the tuple optimization to work. -- ___ Python tracker

[issue11244] Negative tuple elements produce inefficient code.

2011-02-18 Thread Jeffrey Harper
Jeffrey Harper jhar...@yapdc.com added the comment: I think r82043 may also explain why 3.1.3 can fold the expression 2 * -3 into -6 while 3.2rc3 cannot. # test.py from dis import dis def y(): 2 * -3 print(dis y:) dis(y) C:\tmpc:\Python32\python.exe --version Python 3.2rc3

[issue11231] bytes() constructor is not correctly documented

2011-02-18 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: You sort of left out bytes() == bytes(0) == b''. I did not know about case 5 -- not surprisingly ;-). -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11231

[issue11244] Negative tuple elements produce inefficient code.

2011-02-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ouch. Obviously test_peephole doesn't have enough tests... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11244 ___

[issue11216] email.message.Message set_charset does not encode properly?

2011-02-18 Thread Shay Rojansky
Shay Rojansky r...@roji.org added the comment: Sorry for disappearing, will be following this closer from now on. Thanks for the responses (and the acknowledgement of a problem), David and Steffen. I understand the API design philosophy and the need to allow the production of invalid

[issue11245] Implementation of IMAP IDLE in imaplib?

2011-02-18 Thread Shay Rojansky
New submission from Shay Rojansky r...@roji.org: IMAP IDLE support is not implemented in the current imaplib. A drop-in replacement called imaplib2 exists (), but uses internally managed threads - a heavy solution that is not always appropriate (e.g. when handling many IMAP accounts an

[issue10740] sqlite3 module should allow DDL statements in transactions

2011-02-18 Thread dholth
dholth dho...@fastmail.fm added the comment: I want transactional DDL too. I was tremendously surprised that I could not duplicate the way sqlite3 behaves on the command line from witin pysqlite. Instead of this patch, I would rather be able to instruct pysqlite to always begin a transaction

[issue11234] Possible error in What's new Python3.2(rc3) documentation (sysconfig.get_config_var)

2011-02-18 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: docs@python - rhettinger nosy: +georg.brandl priority: normal - release blocker resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11234

[issue11246] PyUnicode_FromFormat(%V) decodes the byte string from ISO-8859-1

2011-02-18 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: While testing a patch fixing issue #7330, I found a bug in PyUnicode_FromFormat() in the %V format: it decodes the byte string from ISO-8859-1, whereas I would expect that the string is decodes from UTF-8, as the %s format.

[issue11246] PyUnicode_FromFormat(%V) decodes the byte string from ISO-8859-1

2011-02-18 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11246 ___ ___

[issue11244] Negative tuple elements produce inefficient code.

2011-02-18 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- priority: normal - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11244 ___

[issue11244] Negative tuple elements produce inefficient code.

2011-02-18 Thread Jeffrey Harper
Jeffrey Harper jhar...@yapdc.com added the comment: Here's a patch against the version of test_peepholer.py in 3.2rc3. It verifies that expressions like the following are optimized: 3*-4 (1,-2,3) a in {1,-2,3) -- keywords: +patch Added file:

[issue11234] Possible error in What's new Python3.2(rc3) documentation (sysconfig.get_config_var)

2011-02-18 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I'll look at this later tonight. Eric, no marking accepted for tracker items without a patch. Accepted means that a patch has been reviewed and is okay to apply. -- priority: release blocker - high resolution:

[issue11234] Possible error in What's new Python3.2(rc3) documentation (sysconfig.get_config_var)

2011-02-18 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: In this case, I thought that the suggested addition of one dot in one place was equivalent to a patch, and maybe more useful (we don’t know if you have local edits in your file that would make the diff fuzzy). Anyway, I’m attaching the same

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-02-18 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: Sorry, I'm not going to run my patch through the entire test suite, I've got better things to do with my time than setting up a working python-development-test-bench. Especially for a one-line-revert. The result now is:

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-02-18 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the patch. Someone will write a test and we’ll check that it works correctly on all supported platforms. -- keywords: +needs review nosy: +belopolsky, gregory.p.smith, p...@fodder.org.uk, pitrou stage: needs patch - test

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-02-18 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: BTW, on which platforms did you notice the bug? (python -m platform) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11236 ___

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-02-18 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: Linux-2.6.22.18-co-0.7.4-i686-with-Ubuntu-10.04-lucid (the 'on linux2' versions) and Solaris-2.10-i86pc-i386-32bit-ELF (the 'on sunos5'). -- ___ Python tracker rep...@bugs.python.org

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-02-18 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Patch fixes the bug for 3.2 on my Debian (Linux-2.6.32-5-amd64-x86_64-with-debian-wheezy-sid). getpass currently has no unit tests. -- ___ Python tracker rep...@bugs.python.org

[issue11244] Negative tuple elements produce inefficient code.

2011-02-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch that enables advanced (recursive) constant folding. Example: python -c import dis; f=lambda x: x in {(3*-5)+(-1-6),(1,-2,3)*2,None};dis.dis(f) With 3.1: 1 0 LOAD_FAST0 (x) 3 LOAD_CONST

[issue11166] No exit when daemon thread is running.

2011-02-18 Thread Dan Mahn
Dan Mahn dan.m...@digidescorp.com added the comment: Seems to be fixed in RC3 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11166 ___ ___

[issue11247] e

2011-02-18 Thread Dan Mahn
Changes by Dan Mahn dan.m...@digidescorp.com: -- nosy: dmahn priority: normal severity: normal status: open title: e ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11247 ___

[issue11247] Error sending packets to multicast IPV4 address

2011-02-18 Thread Dan Mahn
New submission from Dan Mahn dan.m...@digidescorp.com: Can't send UDP packet to multicast address. See traceback. s.sendto( bytearray, (227.5.6.7, 6543)) socket.error: [Errno 10065] A socket operation was attempted to an unreachable host -- components: +None title: e - Error

[issue11247] Error sending packets to multicast IPV4 address

2011-02-18 Thread Dan Mahn
Dan Mahn dan.m...@digidescorp.com added the comment: This has occurred in RC3 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11247 ___ ___

[issue11217] python-32 not linked in /usr/local/bin in framework builds

2011-02-18 Thread Tom Loredo
Tom Loredo lor...@astro.cornell.edu added the comment: I believe this is a bug. The -32 part of Mac/Makefile.in builds and links the -32 versions here: ifneq ($(LIPO_32BIT_FLAGS),) lipo $(LIPO_32BIT_FLAGS) -output $(DESTDIR)$(prefix)/bin/python$(VERSION)-32 pythonw lipo

[issue11234] Possible error in What's new Python3.2(rc3) documentation (sysconfig.get_config_var)

2011-02-18 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Antoine, I'm traveling and don't have immediate access to my svn checkout. Can you fix this please? -- assignee: rhettinger - pitrou nosy: +pitrou ___ Python tracker

[issue11247] Error sending packets to multicast IPV4 address

2011-02-18 Thread Case Van Horsen
Case Van Horsen cas...@gmail.com added the comment: I tested multicast without any issues using the attached script. I used RC3 on both Windows 7 and Linux. I did need to disable the firewall on my Windows system before multicast would work. Start one or more clients using: python mtest1.py

[issue11217] python-32 not linked in /usr/local/bin in framework builds

2011-02-18 Thread Tom Loredo
Tom Loredo lor...@astro.cornell.edu added the comment: The attached patch does the trick. -- Added file: http://bugs.python.org/file20792/Python-2.7.1-patch.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11217