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

2011-02-18 Thread Tom Loredo
Tom Loredo added the comment: The attached patch does the trick. -- Added file: http://bugs.python.org/file20792/Python-2.7.1-patch.txt ___ Python tracker ___ __

[issue11247] Error sending packets to multicast IPV4 address

2011-02-18 Thread Case Van Horsen
Case Van Horsen 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 client" Send dat

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

2011-02-18 Thread Raymond Hettinger
Raymond Hettinger 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 ___

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

2011-02-18 Thread Tom Loredo
Tom Loredo 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 $(LIPO_32BIT_FLAGS) -output $

[issue11247] Error sending packets to multicast IPV4 address

2011-02-18 Thread Dan Mahn
Dan Mahn added the comment: This has occurred in RC3 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue11247] Error sending packets to multicast IPV4 address

2011-02-18 Thread Dan Mahn
New submission from Dan Mahn : 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 sending packets to multica

[issue11247] e

2011-02-18 Thread Dan Mahn
Changes by Dan Mahn : -- nosy: dmahn priority: normal severity: normal status: open title: e ___ Python tracker ___ ___ Python-bugs-li

[issue11166] No exit when daemon thread is running.

2011-02-18 Thread Dan Mahn
Dan Mahn added the comment: Seems to be fixed in RC3 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue11244] Negative tuple elements produce inefficient code.

2011-02-18 Thread Antoine Pitrou
Antoine Pitrou 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

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

2011-02-18 Thread Éric Araujo
Éric Araujo 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 _

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

2011-02-18 Thread Merlijn van Deen
Merlijn van Deen 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

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

2011-02-18 Thread Éric Araujo
Éric Araujo added the comment: BTW, on which platforms did you notice the bug? (python -m platform) -- ___ Python tracker ___ ___ Py

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

2011-02-18 Thread Éric Araujo
Éric Araujo 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 needed _

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

2011-02-18 Thread Merlijn van Deen
Merlijn van Deen 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: valhallasw@dorthonion:~/src/pythonpa

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

2011-02-18 Thread Éric Araujo
Éric Araujo 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 fix in a diff form,

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

2011-02-18 Thread Raymond Hettinger
Raymond Hettinger 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: accepted -> __

[issue11244] Negative tuple elements produce inefficient code.

2011-02-18 Thread Jeffrey Harper
Jeffrey Harper 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: http://bugs.python.org/file20787/test_peepholer.patch _

[issue11244] Negative tuple elements produce inefficient code.

2011-02-18 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

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

2011-02-18 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

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

2011-02-18 Thread STINNER Victor
New submission from STINNER Victor : 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. -- messages: 128816 no

[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 : -- assignee: docs@python -> rhettinger nosy: +georg.brandl priority: normal -> release blocker resolution: -> accepted ___ Python tracker ___ __

[issue10740] sqlite3 module should allow DDL statements in transactions

2011-02-18 Thread dholth
dholth 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 for any kind of sta

[issue11245] Implementation of IMAP IDLE in imaplib?

2011-02-18 Thread Shay Rojansky
New submission from Shay Rojansky : 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 asynchronous appro

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

2011-02-18 Thread Shay Rojansky
Shay Rojansky 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 messages. The main pr

[issue11244] Negative tuple elements produce inefficient code.

2011-02-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ouch. Obviously test_peephole doesn't have enough tests... -- ___ Python tracker ___ ___ Python-bug

[issue11231] bytes() constructor is not correctly documented

2011-02-18 Thread Terry J. Reedy
Terry J. Reedy 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

[issue11244] Negative tuple elements produce inefficient code.

2011-02-18 Thread Jeffrey Harper
Jeffrey Harper 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:\tmp>c:\Python32\python.exe --version Python 3.2rc3 C:\tmp>c:\Python32\python.exe

[issue11244] Negative tuple elements produce inefficient code.

2011-02-18 Thread Antoine Pitrou
Antoine Pitrou 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

[issue11243] email/message.py str conversion

2011-02-18 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 self._tickets.extend(Ticket.process_message(msg)) File

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

2011-02-18 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +ezio.melotti, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

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

2011-02-18 Thread Éric Araujo
Éric Araujo 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 _

[issue11231] bytes() constructor is not correctly documented

2011-02-18 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11244] Negative tuple elements produce inefficient code.

2011-02-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: The culprit is r82043: "Issue #9011: Remove buggy and unnecessary ST->AST compilation code". -- assignee: -> mark.dickinson nosy: +pitrou ___ Python tracker

[issue11244] Negative tuple elements produce inefficient code.

2011-02-18 Thread R. David Murray
R. David Murray added the comment: I wonder if this has anything to do with issue 9011? -- nosy: +mark.dickinson, r.david.murray ___ Python tracker ___ _

[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 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 there. -

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

2011-02-18 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[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 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 -- ___ Python tracker

[issue11244] Negative tuple elements produce inefficient code.

2011-02-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2011-02-18 Thread Éric Araujo
Éric Araujo 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 Jeffrey Harper
Jeffrey Harper 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} # Note curly braces.

[issue10887] Add link to development ML

2011-02-18 Thread Éric Araujo
Éric Araujo added the comment: Changed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[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 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. -- ___ Python tracker

[issue11203] gzip doc is behind

2011-02-18 Thread Éric Araujo
Éric Araujo 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 ___

[issue7284] argparse - display version in usage by default

2011-02-18 Thread Éric Araujo
Changes by Éric Araujo : -- 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

[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 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 == from multiprocessing

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

2011-02-18 Thread Éric Araujo
Éric Araujo 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: patch review -> co

[issue11244] Negative tuple elements produce inefficient code.

2011-02-18 Thread Jeffrey Harper
New submission from Jeffrey Harper : 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 dis import dis def

[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 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 at the bottom o

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

2011-02-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Feb 18, 2011 at 11:04 AM, STINNER Victor 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 so that it does not call system strftime. See issue31

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

2011-02-18 Thread STINNER Victor
STINNER Victor added the comment: If datetime.strftime() is not reliable, we should maybe fix it instead of using a workaround? -- ___ Python tracker ___ ___

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

2011-02-18 Thread Alexander Belopolsky
Alexander Belopolsky 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 simple, I would just use expli

[issue7330] PyUnicode_FromFormat segfault

2011-02-18 Thread Ray.Allen
Ray.Allen 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 function name

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

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

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

2011-02-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Victor, I don't see your patch. Did you remove it? -- type: -> behavior ___ Python tracker ___

[issue11243] email/message.py str conversion

2011-02-18 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: We all know EMail 6.0 will blow them off the streets in the end. -- components: +Library (Lib) ___ Python tracker ___ _

[issue7330] PyUnicode_FromFormat segfault

2011-02-18 Thread STINNER Victor
STINNER Victor 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 will be replaced by � (it d

[issue7330] PyUnicode_FromFormat segfault

2011-02-18 Thread Ray.Allen
Ray.Allen 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 the trunked char*

[issue11243] email/message.py str conversion

2011-02-18 Thread R. David Murray
R. David Murray 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: +Python 3.3

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

2011-02-18 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: (Will get that tracker right as time goes by.) -- type: -> behavior versions: +Python 3.2 ___ Python tracker ___ _

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

2011-02-18 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso : 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: r.david.murray, sdaoden

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

2011-02-18 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2011-02-18 Thread STINNER Victor
STINNER Victor added the comment: Oh, my patch is incomplete: time2netscape() has the same issue. -- ___ Python tracker ___ ___ Python

[issue9523] Improve dbm modules

2011-02-18 Thread Ray.Allen
Changes by Ray.Allen : Removed file: http://bugs.python.org/file20771/issue_9523.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue9523] Improve dbm modules

2011-02-18 Thread Ray.Allen
Ray.Allen 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 changes pointed o

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

2011-02-18 Thread STINNER Victor
New submission from STINNER Victor : 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: haypo, pitrou priority: norma

[issue11212] Python memory limit on AIX

2011-02-18 Thread Sébastien Sablé
Sébastien Sablé 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 when running buildbottest.

[issue10709] Misc/AIX-NOTES needs updating

2011-02-18 Thread Sébastien Sablé
Sébastien Sablé 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: http://bugs.python.org/file20782/AIX-NOTES