[issue9164] 2.7 sysconfig should handle arch duplicates while building universal on OS X

2010-07-12 Thread Jyrki Wahlstedt
Jyrki Wahlstedt jyrki.wahlst...@wahlstedt.fi added the comment: Ok, here's a bit of the missing information: - as per the first message, I'm not using command line to build, I use MacPorts (having been able to build 2.5, 2.6, and 3.1 with no problems) - I checked some of internal workings (by

[issue6643] Throw away more radioactive locks that could be held across a fork in threading.py

2010-07-12 Thread Adam Olsen
Adam Olsen rha...@gmail.com added the comment: I don't have any direct opinions on this, as it is just a bandaid. fork, as defined by POSIX, doesn't allow what we do with it, so we're reliant on great deal of OS and library implementation details. The only portable and robust solution would

[issue9218] pop multiple elements of a list at once

2010-07-12 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: -1 on multi-popping. The semantics aren't obvious -- is the order the same as s[-n:] or the same as a [s.pop() for i in range(n)] ? Also, this is an unnecessary extension of the list API, one that has not been previously

[issue444582] Finding programs in PATH, adding shutil.which

2010-07-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Jan, new features don’t go in stable releases. Your patch targets 3.2 (see the versions field at the top of the page). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue444582

[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-07-12 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: ipatrol, thanks, I forgot to change ValueError. New patch attached. -- Added file: http://bugs.python.org/file17959/vcvars4.diff ___ Python tracker rep...@bugs.python.org

[issue8954] wininst regression: errors when building on linux

2010-07-12 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: http://codereview.appspot.com/1774043 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8954 ___

[issue8954] wininst regression: errors when building on linux

2010-07-12 Thread anatoly techtonik
Changes by anatoly techtonik techto...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file17960/suffix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8954 ___

[issue8954] wininst regression: errors when building on linux

2010-07-12 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Did you test that patch? ISTM that it contains a syntax error: +if not self.distribution.has_ext_modules() +and not self.distribution.has_c_libraries(): -- ___ Python tracker

[issue9231] IDLE interactive interpreter crash

2010-07-12 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: After a few keystrokes in the interactive interpreter, I got the following traceback: Traceback (most recent call last): File Lib/idlelib/idle.py, line 11, in module idlelib.PyShell.main() File

[issue9231] IDLE interactive interpreter crash

2010-07-12 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +kbk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9231 ___ ___ Python-bugs-list mailing list

[issue9227] can't import Tkinter / use IDLE after installing Python 2.7 on Mac OS X

2010-07-12 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I don't particularly mind what the fix is - but at the moment users can download and install Python from a python.org installer and then have an (apparently) non functioning IDLE and Tkinter. At the very least we should advise users to

[issue9231] IDLE interactive interpreter crash

2010-07-12 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Closing as duplicate of #1028 (and #6144, #6512, #7884, #6920, #6424, #5156). -- nosy: +ezio.melotti resolution: - duplicate stage: needs patch - committed/rejected status: open - closed ___

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2010-07-12 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This has been reported in #9231 (and #6144, #6512, #7884, #6920, #6424, #5156) too. -- components: +IDLE keywords: +needs review stage: - patch review versions: +Python 3.2 -Python 3.0 ___

[issue7696] Improve Memoryview/Buffer documentation

2010-07-12 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: teoliphant - pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7696 ___ ___

[issue9229] memoryview of mmap object not working in 2.7

2010-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: True, not all modules in 2.7 have converted to support the new buffer interface (which memoryview() requires, as opposed to the old buffer interface used by buffer()). Unfortunately, it's probably too late to care about this now that the 2.7

[issue9225] Replace DUP_TOPX with DUP_TOP_TWO

2010-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Oddly, at least with pybench, use of PREDICT(BINARY_SUBSCR) in DUP_TOP_TWO seems to show an always right PREDICT as slower than FAST_DISPATCH The main point of computed gotos is to allow the CPU's branch predictor to predict opcode pairs by

[issue8954] wininst regression: errors when building on linux

2010-07-12 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: reuploaded correct version to rietveld. -- Added file: http://bugs.python.org/file17961/suffix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8954

[issue8954] wininst regression: errors when building on linux

2010-07-12 Thread anatoly techtonik
Changes by anatoly techtonik techto...@gmail.com: Removed file: http://bugs.python.org/file17960/suffix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8954 ___

[issue444582] Finding programs in PATH, adding shutil.which

2010-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Some comments on the patch: - shouldn't getdir_id use os.path.normcase() rather than manually switch on `windows`? - the patch adds lots of names at the top-level which aren't part of the public API (windows, getdir_id, defpath, defpath_ext).

[issue9230] pdb.Pdb.checkline() throws AttributeError if called before starting a debug session

2010-07-12 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9230 ___ ___

[issue444582] Finding programs in PATH, adding shutil.which

2010-07-12 Thread Jan Killian
Jan Killian jan.kill...@gmail.com added the comment: @ Éric and Antoine: Thanks for the useful hints! * PATH and PATHEXT are now evaluated when needed, not only on module init. The rationale is, that the lib user may change them, eg. to include a directory with additional commands. * the

[issue444582] Finding programs in PATH, adding shutil.which

2010-07-12 Thread Jan Killian
Changes by Jan Killian jan.kill...@gmail.com: Added file: http://bugs.python.org/file17963/which.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue444582 ___

[issue6478] time.tzset does not reset _strptime's locale time cache

2010-07-12 Thread Mihai Ibanescu
Mihai Ibanescu mihai.ibane...@gmail.com added the comment: Proposed patch attached. -- keywords: +patch Added file: http://bugs.python.org/file17964/_strptime.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6478

[issue8098] PyImport_ImportModuleNoBlock() may solve problems but causes others.

2010-07-12 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +belopolsky, brett.cannon versions: +Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8098 ___

[issue6478] time.tzset does not reset _strptime's locale time cache

2010-07-12 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- assignee: - belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6478 ___

[issue8098] PyImport_ImportModuleNoBlock() may solve problems but causes others.

2010-07-12 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8098 ___ ___ Python-bugs-list

[issue8114] python 2.6.4 installation is not working for the single user mode in vista.

2010-07-12 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Python cannot be installed on Vista in single user mode, this is a limitation of Vista. -- nosy: +BreamoreBoy resolution: - invalid status: open - closed ___ Python tracker

[issue2009] Grammar change to prevent shift/reduce problem with varargslist

2010-07-12 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Applied in r82837. I'll open a separate issue for the trailing commas. -- resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue8138] wsgiref.simple_server.SimpleServer claims to be multithreaded

2010-07-12 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +pje ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8138 ___ ___ Python-bugs-list

[issue9232] Allow trailing comma in any function argument list.

2010-07-12 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: Python's current grammar allows a trailing comma after the argument list in: def f(a, b,): pass but not in def f(*, a, b,): pass I propose allowing trailing commas in both situations. See python-dev discussion starting at

[issue1610654] cgi.py multipart/form-data

2010-07-12 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Chui Tey does this issue still apply? If yes, could you please provide a patch according to the guidelines here. python.org/dev/patches -- nosy: +BreamoreBoy ___ Python tracker

[issue1616125] Cached globals+builtins lookup optimization

2010-07-12 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1616125 ___ ___

[issue6478] time.tzset does not reset _strptime's locale time cache

2010-07-12 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Thank you for the bug report and a patch. This does look like a bug and proposed patch seems to be the simplest way to fix it. It is unfortunate that the entire TimeRE cache needs to be recalculated when only 'Z' entry

[issue6643] Throw away more radioactive locks that could be held across a fork in threading.py

2010-07-12 Thread Reid Kleckner
Reid Kleckner r...@mit.edu added the comment: I completely agree, but the cat is out of the bag on this one. I don't see how we could get rid of fork until Py4K, and even then I'm sure there will be people who don't want to see it go, and I'd rather not spend my time arguing this point. The

[issue8098] PyImport_ImportModuleNoBlock() may solve problems but causes others.

2010-07-12 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Interesting. Your example code doesn't run afoul of any of the don't do this flags relating to import that I put into the threading docs, so it seems like a fair complaint to me. As Christian pointed out on c.l.p, the idea with this API is to

[issue6290] cPickle can misread data type

2010-07-12 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I think this can be closed. It should no longer be a problem in Python 2.7 or Python 3.x, and there's a workaround (use protocol 1 or 2) for Python 2.6. In theory, it *could* still be fixed for Python 2.6.6, but changing the pickle output

[issue8098] PyImport_ImportModuleNoBlock() may solve problems but causes others.

2010-07-12 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Composed before reading Nick's comment: This issue is broader in scope than just the time module example that is given, so I am not taking this over. With respect to datetime and time modules, there are several related

[issue8098] PyImport_ImportModuleNoBlock() may solve problems but causes others.

2010-07-12 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I'm curious - do the mod_wsgi problems go away if you arrange for the main module to run with the import lock held? Or do they turn into deadlocks? -- ___ Python tracker rep...@bugs.python.org

[issue6290] cPickle can misread data type

2010-07-12 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: However, here's a patch. I haven't tested it on Windows. -- keywords: +patch Added file: http://bugs.python.org/file17965/issue6290.patch ___ Python tracker rep...@bugs.python.org

[issue7761] telnetlib Telnet.interact fails on Windows but not Linux

2010-07-12 Thread Jack Diederich
Jack Diederich jackd...@gmail.com added the comment: Can you check this on 3.1.2 or 3.2? There were a few bugfixes of the bytes handling in that timeframe. -- assignee: - jackdied nosy: +jackdied priority: high - normal ___ Python tracker

[issue9233] json.load failure when C optimizations aren't built

2010-07-12 Thread Fred L. Drake, Jr.
New submission from Fred L. Drake, Jr. fdr...@acm.org: The json decoder doesn't pass tests when the C optimizations in the _json module aren't available. The actual test failures appear fairly superficial, but aren't the limit of the problems. Empty objects are converted to empty lists

[issue7761] telnetlib Telnet.interact fails on Windows but not Linux

2010-07-12 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I get the same error on Windows for 3.1.2 as the OP did for 3.1.1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7761 ___

[issue5723] Incomplete json tests

2010-07-12 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: This lack of tests is an issue for Python 2.6 as well. Issue 9233 might have been avoided were the pure-Python implementation tested. -- nosy: +fdrake versions: +Python 2.6 ___ Python tracker

[issue9233] json.load failure when C optimizations aren't built

2010-07-12 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +bob.ippolito, ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9233 ___

[issue5723] Incomplete json tests

2010-07-12 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5723 ___ ___ Python-bugs-list

[issue1076790] test test_codecs failed

2010-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Amaury's suggestion sounds good to me. -- nosy: +pitrou status: pending - closed superseder: - remove --with-wctype-functions configure option ___ Python tracker rep...@bugs.python.org

[issue7761] telnetlib Telnet.interact fails on Windows but not Linux

2010-07-12 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: 3.2 is affected as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7761 ___ ___

[issue9079] Make gettimeofday available in time module

2010-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Instead of being defined in _time.h, perhaps the new API function should be provided by core Python? It would probably help in certain threading primitives. -- nosy: +pitrou ___ Python tracker

[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2010-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Actually, there is a problem in Lock.acquire and RLock.acquire. If a signal occurs and signal handling returns successfully, acquiring the lock will be retried without decrementing the timeout first. Therefore, we may end up waiting longer than

[issue4932] Little improvement on urlparse module, urlparse function.

2010-07-12 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Andres, do you wish to provide more patches or can we close this issue? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4932

[issue5321] I/O error during one-liner gives no (!) diagnostic (and fails to return OS error status)

2010-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I agree that errors while flushing stdout shouldn't be silenced but instead reported (on stderr, obviously :-)). It is especially important when scripts are used for data processing. I'd like to have Guido's opinion, though. -- nosy:

[issue849662] reading shelves is really slow

2010-07-12 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Raymond - can we close this ticket? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue849662 ___

[issue8954] wininst regression: errors when building on linux

2010-07-12 Thread Mark Hammond
Mark Hammond mhamm...@users.sourceforge.net added the comment: With the caveat that I haven't tested it (I'm currently traveling), the patch looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8954

[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2010-07-12 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Accepting that the timeout is not perfect in the face of signals as a caveat is fine (document the possibility) and can be improved later. -- ___ Python tracker rep...@bugs.python.org

[issue9233] json.load failure when C optimizations aren't built

2010-07-12 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: The attached test only fails for Python 2.7; removing Python 2.6 from this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9233

[issue9079] Make gettimeofday available in time module

2010-07-12 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Jul 12, 2010 at 12:07 PM, Antoine Pitrou rep...@bugs.python.org wrote: .. Instead of being defined in _time.h, perhaps the new API function should be provided by core Python? This is an interesting idea, but

[issue9079] Make gettimeofday available in time module

2010-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Instead of being defined in _time.h, perhaps the new API function should be provided by core Python? This is an interesting idea, but proposed Py_gettimeofday inherits float_time logic of falling back on ftime and then plain time in case

[issue9079] Make gettimeofday available in time module

2010-07-12 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Jul 12, 2010 at 1:06 PM, Antoine Pitrou rep...@bugs.python.org wrote: .. Indeed, the GIL code would probably still use its own code paths. However, other less sensitive code could rely on the new API. For

[issue9207] multiprocessing occasionally spits out exception during shutdown (_handle_workers)

2010-07-12 Thread Greg Brockman
Greg Brockman g...@ksplice.com added the comment: With pool.py:272 commented out, running about 50k iterations, I saw 4 tracebacks giving an exception on pool.py:152. So this seems to imply the race does exist (i.e. that the thread is in _maintain_pool rather than time.sleep when shutdown

[issue9207] multiprocessing occasionally spits out exception during shutdown (_handle_workers)

2010-07-12 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Thank you for doing that footwork Greg, it means a lot to me. I'm leaning towards the patch to swallow the errors - I just wanted to ponder it just a tiny bit longer before I pull the trigger. --

[issue9132] Documentation for comparing dictionaries is out of date

2010-07-12 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: I agree with Terry's proposal. Here's a patch file for Doc/reference/expressions.rst that implements the change. -- Added file: http://bugs.python.org/file17967/issue9132.2.patch ___ Python tracker

[issue8975] Bug in cookiejar

2010-07-12 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: This is a duplicate of issue3924 -- nosy: +jjlee ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8975 ___

[issue2277] MozillaCookieJar does not support Firefox3 cookie files

2010-07-12 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: There is code in PyPI project mechanize that implements this feature. That code is marked experimental though, due to lack of testing. -- nosy: +jjlee ___ Python tracker

[issue9222] IDLE: Fix open/saveas 'Files of type' choices

2010-07-12 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Attaching a patch file for Lib/idlelib/IOBinding.py, diffed against the latest SVN trunk. -- keywords: +patch nosy: +eli.bendersky Added file: http://bugs.python.org/file17968/issue9122.1.patch ___

[issue2190] MozillaCookieJar ignore HttpOnly cookies

2010-07-12 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Is deprecation really necessary? lynx still uses that format. lynx doesn't write the header that MozillaCookieJar insists on being present, but a trivial subclass can read cookies files written by lynx. --

[issue9232] Allow trailing comma in any function argument list.

2010-07-12 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Here's a patch. I've checked with PEP 306, but besides changing Grammar, test_grammar.py and the parser module (which there's a separate issue open for), I don't think any other changes are required. -- keywords: +patch Added file:

[issue6026] test_(zipfile|zipimport|gzip|distutils|sqlite) fail if zlib is not available

2010-07-12 Thread Andrew Farrell
Andrew Farrell afarr...@mit.edu added the comment: In the midst of installing from http://www.python.org/ftp/python/2.7/Python-2.7.tgz I get this same error on test_distutils when I run make test. this is on debian lenny, amd64 distutils_test output:

[issue9216] FIPS support for hashlib

2010-07-12 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: Attached is a patch against the py3k branch which implements this. I've checked that it builds against openssl-0.9.8o.tar.gz, openssl-1.0.0a.tar.gz, and against Fedora 12 and 13's heavily-patched openssl-1.0.0. The bulk of my testing has

[issue9079] Make gettimeofday available in time module

2010-07-12 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Assigning back to Alexander; sorry I haven't had time to look at this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9079 ___

[issue9215] test_float crashes with assertion failure on Ubuntu buildbot.

2010-07-12 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: And I see that test_float is passing again. Thanks, Matthias! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9215 ___

[issue849662] reading shelves is really slow

2010-07-12 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue849662 ___

[issue9132] Documentation for comparing dictionaries is out of date

2010-07-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Looks good to me. Thanks Eli. -- stage: needs patch - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9132 ___

[issue9222] IDLE: Fix open/saveas 'Files of type' choices

2010-07-12 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9222 ___ ___ Python-bugs-list

[issue6026] test_(zipfile|zipimport|gzip|distutils|sqlite) fail if zlib is not available

2010-07-12 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Thanks for the report, fixed in r82839 (py3k), r82840 (release27-maint), and r82841 (release31-maint). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6026

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-12 Thread Ask Solem
Ask Solem a...@opera.com added the comment: termination.patch, in the result handler you've added: while cache and thread._state != TERMINATE and not failed why are you terminating the second pass after finding a failed process? Unpickleable errors and other errors occurring in the worker

[issue9234] argparse: aliases for positional arguments (subparsers)

2010-07-12 Thread Adrian Sampson
New submission from Adrian Sampson asamp...@cs.washington.edu: The argparse module supports subparsers, which allow CLI tools to support invocation of subcommands (much like the svn or hg programs). For these subcommands, it is often useful to allow multiple names for the same command. For

[issue7696] Improve Memoryview/Buffer documentation

2010-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Craig, thanks for pointing it out. I've committed a patch to fix the doc. It should probably appear online soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7696

[issue6026] test_(zipfile|zipimport|gzip|distutils|sqlite) fail if zlib is not available

2010-07-12 Thread Andrew Farrell
Andrew Farrell afarr...@mit.edu added the comment: The attempt to install setuptools indicates that zlib may actually be required it seems. I download setuptools-0.6c11-py2.7.egg from http://pypi.python.org/pypi/setuptools and, as instructed at http://pypi.python.org/pypi/setuptools#id4 and

[issue3461] smtplib does not fully support IPv6 in EHLO

2010-07-12 Thread Derek Morr
Derek Morr derekm...@psu.edu added the comment: I'm not sure how to best write a unit test for this. The patch should only be invoked if the client doesn't have a name-served hostname and has IPv6 enabled. Also, there are several IPv4-isms in the smtplib tests. --

[issue8975] Bug in cookiejar

2010-07-12 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - cookielib chokes on non-integer cookie version, should ignore it instead type: crash - behavior ___ Python

[issue9079] Make gettimeofday available in time module

2010-07-12 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: mark.dickinson - belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9079 ___ ___

[issue9235] missing import sys in Tools/gdb/libpython.py

2010-07-12 Thread Yaroslav Halchenko
New submission from Yaroslav Halchenko yarikop...@gmail.com: as you can see from below, sys. is used, but never imported (besides a docstring) $ git describe upstream/0.5.0.dev-875-gf06319e $ grep -5 'sys' /home/yoh/proj/misc/python/Tools/gdb/libpython.py During development, I've been

[issue9235] missing import sys in Tools/gdb/libpython.py

2010-07-12 Thread Yaroslav Halchenko
Yaroslav Halchenko yarikop...@gmail.com added the comment: sorry -- git describe was by mistake in there... report is based on SVN revision 82502 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9235

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-12 Thread Greg Brockman
Greg Brockman g...@ksplice.com added the comment: Thanks much for taking a look at this! why are you terminating the second pass after finding a failed process? Unfortunately, if you've lost a worker, you are no longer guaranteed that cache will eventually be empty. In particular, you may

[issue3461] smtplib does not fully support IPv6 in EHLO

2010-07-12 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: You might want to take a look at Lib/test/test_ftplib.py which contains IPv6 tests including the necessary logic to decide whether or not running them. -- ___ Python tracker

[issue6026] test_(zipfile|zipimport|gzip|distutils|sqlite) fail if zlib is not available

2010-07-12 Thread Andrew Farrell
Andrew Farrell afarr...@mit.edu added the comment: No dice. unless I'm mistaken, this needs to be included in the distribution. My current best solution looks like finding the source to zlib, putting it in my path to install setuptools. then installing zlib properly traceback for your

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-12 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Greg - I asked Ask to take a look - his celery package is a huge consumer of multiprocessing, and so I tend to run things past him as well. That said - to both of you - the fundamental problem the shutdown patch is trying to scratch is

[issue9236] Invalid reads in fastsearch.h

2010-07-12 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: In test_bytes Valgrind finds two reads with negative array indices. test_bytes ==7341== Invalid read of size 1 ==7341==at 0x4EDA24: fastsearch (fastsearch.h:143) ==7341==by 0x4F170E: bytearray_find_internal (find.h:42)

[issue9235] missing import sys in Tools/gdb/libpython.py

2010-07-12 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9235 ___ ___ Python-bugs-list

[issue6026] test_(zipfile|zipimport|gzip|distutils|sqlite) fail if zlib is not available

2010-07-12 Thread Andrew Farrell
Andrew Farrell afarr...@mit.edu added the comment: Apologies. Error on my part. For those that run into the same problem: Though zlib is installed on an earlier version of python, you need to have (ob debian) the package zlib1g-dev installed when you build python. --

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-12 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Unfortunately, if you've lost a worker, you are no longer guaranteed that cache will eventually be empty. In particular, you may have lost a task, which could result in an ApplyResult waiting forever for a _set call. More generally, my chief

[issue9232] Allow trailing comma in any function argument list.

2010-07-12 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I take it the AST generation just throws the extra comma away? You're sure this doesn't upset any of the node counts in that stage of the compiler? -- nosy: +ncoghlan ___ Python tracker

[issue9236] Invalid reads in fastsearch.h

2010-07-12 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9236 ___ ___ Python-bugs-list

[issue9193] Versioned .so files

2010-07-12 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Actually, the changes to distutils are not strictly necessary for PEP 3149 implementation (what the PEP-in-progress will be numbered). Once PEP 384 is implemented, it might be useful, but OTOH there might be a better way to support that.

[issue9237] Add sys.call_tracing to on-line sys module documentation

2010-07-12 Thread rocky bernstein
New submission from rocky bernstein ro...@gnu.org: sys.call_tracing doesn't appear in Python documents and I think it should. For a start, one could use the docstring from sysmodule.c: call_tracing(func, args) - object Call func(*args), while tracing is enabled. The tracing state is saved,

[issue3196] Option in pydoc to show docs from private methods

2010-07-12 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: This option would be more useful if it became an optional argument to the help() function. For someone working at the python command line prompt, having to switch to pydoc to see private method documentation may be

[issue9238] zipfile incorrectly documented as not supporting archive comments

2010-07-12 Thread Ryan Kelly
New submission from Ryan Kelly r...@rfk.id.au: The zipfile module is prominently documented as This module does not currently handle...ZIP files which have appended comments. But as far as I can tell, it handles them fine - there's even a comment property on the ZipFile object that you can

[issue3290] python-config --cflags includes irrelevant flags

2010-07-12 Thread Joe Neeman
Joe Neeman joenee...@gmail.com added the comment: It's still an issue in Python 2.6.5 as packaged by openSUSE 11.2. -- nosy: +Joe.Neeman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3290

[issue9239] zipfile: truncating comment can corrupt the zipfile

2010-07-12 Thread Ryan Kelly
New submission from Ryan Kelly r...@rfk.id.au: If you open a ZipFile in append mode and modify the comment to be shorter than what was originally there, the file will become corrupted. Truncated data from the original comment is left dangling at the end of the zipfile. A much more trivial

[issue9240] different behaviour with for loop... interpreted vs scripted

2010-07-12 Thread Diego Jacobi
New submission from Diego Jacobi jacobidi...@gmail.com: Hi. I am not a python expert and i was trying to reduce this next code: data = [] i = 0 for j in range(packetlen+1): print i, self.channels_in[ channels[i] ] data.append( self.channels_in[

  1   2   >