[issue1158231] string.Template does not allow step-by-step replacements

2010-07-12 Thread Stefan Behnel
Stefan Behnel added the comment: I actually am no longer interested (after 5 years), but if the patch solves the problem, it'd be good to apply it. Lacks a docs patch, though. -- ___ Python tracker

[issue9079] Make gettimeofday available in time module

2010-07-12 Thread Reid Kleckner
Reid Kleckner added the comment: The patch looks good to me FWIW. I would be interested in using this perhaps in issue8844, which involves lock timeouts. It may be true that the POSIX API uses nanoseconds, but pythreads only exposes microsecond precision. In order to use it from the thread

[issue5950] Make zipimport work with zipfile containing comments

2010-07-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: >I can't imagine anyone depending on this lack-of-feature, Neither can I, but I can imaging someone writing code that depended on the feature. If added to 3.1.3, then code that depended on it would not run on 3.1, 3.1.1, and 3.1.2. The same is true, of course

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

2010-07-12 Thread Reid Kleckner
Reid Kleckner added the comment: Alternatively, do you think it would be better to ignore interrupts when a timeout is passed? If a timeout is passed, the lock acquire will eventually fail in a deadlock situation, and the signal will be handled in the eval loop. However, if the timeout is su

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

2010-07-12 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +kbk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue7989] Add pure Python implementation of datetime module to CPython

2010-07-12 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file17978/issue9206b.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue7989] Add pure Python implementation of datetime module to CPython

2010-07-12 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file17976/issue9206b.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue7989] Add pure Python implementation of datetime module to CPython

2010-07-12 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file17977/issue9206b.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue7989] Add pure Python implementation of datetime module to CPython

2010-07-12 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file17977/issue9206b.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue7989] Add pure Python implementation of datetime module to CPython

2010-07-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: issue9206b.diff fixes test_datetime in issue9206a.diff by restoring sys.modules in-place in tearDown method. Based on python-dev discussion, I am marking this as accepted and uploading the patch to Rietveld for commit review. Please comment on the code

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

2010-07-12 Thread Graham Dumpleton
Graham Dumpleton added the comment: Nick, there is no main module in the same way there is when using the Python command line. Ie., there is no module that has __name__ being __main__. The closest thing is the WSGI script file which holds the application object for the WSGI application. There

[issue7738] IDLE hang when tooltip comes up in Linux

2010-07-12 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Works for me on 2.6.4, trunk, and 3.2a0 - arch linux Tk 8.4 -- keywords: +needs review resolution: -> works for me ___ Python tracker ___ _

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

2010-07-12 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

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

2010-07-12 Thread Greg Brockman
Greg Brockman added the comment: > For processes disappearing (if that can at all happen), we could solve > that by storing the jobs a process has accepted (started working on), > so if a worker process is lost, we can mark them as failed too. Sure, this would be reasonable behavior. I had cons

[issue5950] Make zipimport work with zipfile containing comments

2010-07-12 Thread Ryan Kelly
Changes by Ryan Kelly : Removed file: http://bugs.python.org/file17944/zipimport_with_comments.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue5950] Make zipimport work with zipfile containing comments

2010-07-12 Thread Ryan Kelly
Ryan Kelly added the comment: I can't imagine anyone depending on this lack-of-feature, but there's no arguing with the technicality of it. One more small incentive to make the jump to Python 3 then. Anyway, I've revisited the patch to clean up the logic and control flow, and added another

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

2010-07-12 Thread Diego Jacobi
New submission from Diego Jacobi : 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[ channels[i] ].pop() )

[issue9239] zipfile: truncating comment can corrupt the zipfile

2010-07-12 Thread Ryan Kelly
New submission from Ryan Kelly : 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 bug discovered

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

2010-07-12 Thread Joe Neeman
Joe Neeman added the comment: It's still an issue in Python 2.6.5 as packaged by openSUSE 11.2. -- nosy: +Joe.Neeman ___ Python tracker ___ __

[issue9238] zipfile incorrectly documented as not supporting archive comments

2010-07-12 Thread Ryan Kelly
New submission from Ryan Kelly : 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 set to modif

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

2010-07-12 Thread Alexander Belopolsky
Alexander Belopolsky 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 inconvenient. It is more natural to

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

2010-07-12 Thread rocky bernstein
New submission from rocky bernstein : 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, and restore

[issue9193] Versioned .so files

2010-07-12 Thread Barry A. Warsaw
Barry A. Warsaw 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. In any case, here'

[issue9236] Invalid reads in fastsearch.h

2010-07-12 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

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

2010-07-12 Thread Nick Coghlan
Nick Coghlan 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

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

2010-07-12 Thread Ask Solem
Ask Solem 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 assumption tha

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

2010-07-12 Thread Andrew Farrell
Andrew Farrell 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. -- __

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

2010-07-12 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +dmalcolm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue9236] Invalid reads in fastsearch.h

2010-07-12 Thread Stefan Krah
New submission from Stefan Krah : 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) ==7341==by 0x4F17BD: bytearray

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

2010-07-12 Thread Jesse Noller
Jesse Noller 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 located in issue 9207 -

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

2010-07-12 Thread Andrew Farrell
Andrew Farrell 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 pleasure: ===

[issue3461] smtplib does not fully support IPv6 in EHLO

2010-07-12 Thread Giampaolo Rodola'
Giampaolo Rodola' 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 __

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

2010-07-12 Thread Greg Brockman
Greg Brockman 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 have lost a tas

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

2010-07-12 Thread Yaroslav Halchenko
Yaroslav Halchenko added the comment: sorry -- git describe was by mistake in there... report is based on SVN revision 82502 -- ___ Python tracker ___ __

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

2010-07-12 Thread Yaroslav Halchenko
New submission from Yaroslav Halchenko : 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 manually invoking th

[issue9079] Make gettimeofday available in time module

2010-07-12 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: mark.dickinson -> belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue8975] Bug in cookiejar

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

[issue3461] smtplib does not fully support IPv6 in EHLO

2010-07-12 Thread Derek Morr
Derek Morr 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. -- _

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

2010-07-12 Thread Andrew Farrell
Andrew Farrell 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 run `sh setuptools

[issue7696] Improve Memoryview/Buffer documentation

2010-07-12 Thread Antoine Pitrou
Antoine Pitrou 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 ___

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

2010-07-12 Thread Adrian Sampson
New submission from Adrian Sampson : 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 instance, in Mercurial, "hg

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

2010-07-12 Thread Ask Solem
Ask Solem 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 body are not e

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

2010-07-12 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for the report, fixed in r82839 (py3k), r82840 (release27-maint), and r82841 (release31-maint). -- ___ Python tracker ___

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

2010-07-12 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue9132] Documentation for comparing dictionaries is out of date

2010-07-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Looks good to me. Thanks Eli. -- stage: needs patch -> commit review ___ Python tracker ___ ___ Pyth

[issue849662] reading shelves is really slow

2010-07-12 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mail

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

2010-07-12 Thread Mark Dickinson
Mark Dickinson added the comment: And I see that test_float is passing again. Thanks, Matthias! -- ___ Python tracker ___ ___ Python-

[issue9079] Make gettimeofday available in time module

2010-07-12 Thread Mark Dickinson
Mark Dickinson added the comment: Assigning back to Alexander; sorry I haven't had time to look at this. -- ___ Python tracker ___ __

[issue9216] FIPS support for hashlib

2010-07-12 Thread Dave Malcolm
Dave Malcolm 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 been against Fedora's o

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

2010-07-12 Thread Andrew Farrell
Andrew Farrell 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: = afarrell:

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

2010-07-12 Thread Mark Dickinson
Mark Dickinson 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: http://bugs.python

[issue2190] MozillaCookieJar ignore HttpOnly cookies

2010-07-12 Thread John J Lee
John J Lee 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. -- ___ Python

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

2010-07-12 Thread Eli Bendersky
Eli Bendersky 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 ___ Python tracker

[issue2277] MozillaCookieJar does not support Firefox3 cookie files

2010-07-12 Thread John J Lee
John J Lee 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

[issue8975] Bug in cookiejar

2010-07-12 Thread John J Lee
John J Lee added the comment: This is a duplicate of issue3924 -- nosy: +jjlee ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue9132] Documentation for comparing dictionaries is out of date

2010-07-12 Thread Eli Bendersky
Eli Bendersky 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

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

2010-07-12 Thread Jesse Noller
Jesse Noller 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. -- ___ Python tracker

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

2010-07-12 Thread Greg Brockman
Greg Brockman 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 begins). It looks

[issue9079] Make gettimeofday available in time module

2010-07-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Jul 12, 2010 at 1:06 PM, Antoine Pitrou 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 > example, it is not critical for lock timeouts to benefit fr

[issue9079] Make gettimeofday available in time module

2010-07-12 Thread Antoine Pitrou
Antoine Pitrou 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 > gettim

[issue9079] Make gettimeofday available in time module

2010-07-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Jul 12, 2010 at 12:07 PM, Antoine Pitrou 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 proposed Py_gettimeofday inherits float_time logic of fa

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

2010-07-12 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: The attached test only fails for Python 2.7; removing Python 2.6 from this issue. -- ___ Python tracker ___ ___

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

2010-07-12 Thread Gregory P. Smith
Gregory P. Smith 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

[issue8954] wininst regression: errors when building on linux

2010-07-12 Thread Mark Hammond
Mark Hammond added the comment: With the caveat that I haven't tested it (I'm currently traveling), the patch looks good to me. -- ___ Python tracker ___ ___

[issue849662] reading shelves is really slow

2010-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: Raymond - can we close this ticket? -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Python-bugs-li

[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 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: +gvanrossum

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

2010-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: Andres, do you wish to provide more patches or can we close this issue? -- nosy: +BreamoreBoy ___ Python tracker ___

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

2010-07-12 Thread Antoine Pitrou
Antoine Pitrou 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 the user wante

[issue9079] Make gettimeofday available in time module

2010-07-12 Thread Antoine Pitrou
Antoine Pitrou 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

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

2010-07-12 Thread Stefan Krah
Stefan Krah added the comment: 3.2 is affected as well. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1076790] test test_codecs failed

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

[issue5723] Incomplete json tests

2010-07-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

2010-07-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +bob.ippolito, ezio.melotti stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue5723] Incomplete json tests

2010-07-12 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. 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

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

2010-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: I get the same error on Windows for 3.1.2 as the OP did for 3.1.1. -- ___ Python tracker ___ ___ Pyth

[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. : 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 instead of empty dic

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

2010-07-12 Thread Jack Diederich
Jack Diederich 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

[issue6290] cPickle can misread data type

2010-07-12 Thread Mark Dickinson
Mark Dickinson 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 __

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

2010-07-12 Thread Nick Coghlan
Nick Coghlan 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 ___

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

2010-07-12 Thread Alexander Belopolsky
Alexander Belopolsky 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 issues I am working on which

[issue6290] cPickle can misread data type

2010-07-12 Thread Mark Dickinson
Mark Dickinson 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 in a bugfix release

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

2010-07-12 Thread Nick Coghlan
Nick Coghlan 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 turn deadlocks

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

2010-07-12 Thread Reid Kleckner
Reid Kleckner 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 only applica

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

2010-07-12 Thread Alexander Belopolsky
Alexander Belopolsky 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 is invalidated by TZ change. Ple

[issue1616125] Cached globals+builtins lookup optimization

2010-07-12 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1610654] cgi.py multipart/form-data

2010-07-12 Thread Mark Lawrence
Mark Lawrence 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

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

2010-07-12 Thread Mark Dickinson
New submission from Mark Dickinson : 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 http://mail.python.org/p

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

2010-07-12 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: +pje ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

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

2010-07-12 Thread Mark Dickinson
Mark Dickinson 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

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

2010-07-12 Thread Mark Lawrence
Mark Lawrence 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

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

2010-07-12 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2010-07-12 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

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

2010-07-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +belopolsky, brett.cannon versions: +Python 3.2 -Python 2.6 ___ Python tracker ___ ___ Python-bugs

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

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

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

2010-07-12 Thread Jan Killian
Changes by Jan Killian : Added file: http://bugs.python.org/file17963/which.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

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

2010-07-12 Thread Jan Killian
Jan Killian 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 only helper module-level

[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 : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2010-07-12 Thread Antoine Pitrou
Antoine Pitrou 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"). They shou

[issue8954] wininst regression: errors when building on linux

2010-07-12 Thread anatoly techtonik
Changes by anatoly techtonik : Removed file: http://bugs.python.org/file17960/suffix.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8954] wininst regression: errors when building on linux

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

  1   2   >