[issue7354] distutils.tests.test_msvc9compiler - dragfullwindows can have value 2

2009-11-18 Thread Tarek Ziadé
Tarek Ziadé added the comment: done in r76399, r76401 and r76402 Thx -- status: open -> closed versions: -Python 2.6 ___ Python tracker ___

[issue5890] Subclassing property doesn't preserve the auto __doc__ behavior

2009-11-18 Thread Moriyoshi Koizumi
Moriyoshi Koizumi added the comment: @r.david.murray > If MyProp is such a subclass, would > print Fro.baz.__doc__ print "Get a baz" in 2.6.2 but raise an error in > 2.6.3/4, or would it print None? Just let it return None as they were for now. I completely agree there's a better fix like del

[issue5037] unicode(x) for weakref.proxy objects invokes __str__ instead of __unicode__

2009-11-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r76395. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

[issue7206] 64 bit python fails on Windows 7

2009-11-18 Thread Rich Healey
Rich Healey added the comment: I looked into it a bit further. With some trial and error I narrowed the source of the problem to be the 'KernelModeDriverInstall' option under compatibility. I believe this isn't a problem, because python shouldn't be trying to install drivers, and even if it

[issue6738] Wrong doc strings in itertools

2009-11-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed. See r76391 to r76394. Thanks for the report. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue6454] Add "example" keyword argument to optparse constructor

2009-11-18 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> gward nosy: +gward ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue7263] Fix set.intersection docstring

2009-11-18 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue3976] pprint._safe_repr is not general enough in one instance

2009-11-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed. See r76389 and r76390. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue7349] StringIO.StringIO, io.BytesIO, and io.StringIO accept None in places where other file-like objects don't

2009-11-18 Thread R. David Murray
Changes by R. David Murray : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue5827] os.path.normpath doesn't preserve unicode

2009-11-18 Thread Matt Giuca
Matt Giuca added the comment: Thanks Ezio. I've updated the patch to incorporate your suggestions. Note that I too have only tested it on Linux, but I tested both posixpath and ntpath (and there is no OS-specific code, except for the filenames themselves). I'm not sure if using assertTrue(isi

[issue7354] distutils.tests.test_msvc9compiler - dragfullwindows can have value 2

2009-11-18 Thread Paul Moore
New submission from Paul Moore : It looks like the "Control Panel\Desktop\dragfullwindows" registry entry can have value 2 (it does on my buildbot!) The distutils test "test_msvc9compiler" assumes that only values 0 and 1 are valid. The following patch (against trunk) fixes this. I've tested it

[issue7353] Why was Include/intobject.h removed in 3.1?

2009-11-18 Thread Skip Montanaro
Changes by Skip Montanaro : -- nosy: +skip.montanaro ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue6816] Provide CPython command line functionality via runpy module

2009-11-18 Thread R. David Murray
Changes by R. David Murray : -- nosy: -r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue6816] Provide CPython command line functionality via runpy module

2009-11-18 Thread Nick Coghlan
Nick Coghlan added the comment: Antoine Pitrou wrote: > Antoine Pitrou added the comment: > >> (Was it one of the unstable buildbots that picked this up? I didn't see >> anything come through on the checkins list) > > Buildbot failures have stopped being e-mailed long ago it seems. > (ah, you

[issue5080] PyArg_Parse* should raise TypeError for float parsed with integer format

2009-11-18 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue7352] python2.6-config --ldflags out of /usr and missing -L

2009-11-18 Thread François Mauger
New submission from François Mauger : Hi Python! I installed python2.6 from official source tarball under Scientific Linux 5.2. I use the python2.6-config utility through makefiles to link against lipython2.6.so. The installation prefix is NOT /usr nor some standard /usr/local path. The problem

[issue7353] Why was Include/intobject.h removed in 3.1?

2009-11-18 Thread Dave Malcolm
New submission from Dave Malcolm : I'm attempting to package Python 3 for a Linux distribution, together with a stack of python extension modules; I'm currently using Python-3.1.1. (see https://fedoraproject.org/wiki/Features/Python3F13 ) Many of these extension modules are close to compili

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Lars Gustäbel
Lars Gustäbel added the comment: Mmm, chocolate... ;-) Okay, consider it done. -- resolution: -> accepted status: open -> closed ___ Python tracker ___

[issue7352] python2.6-config --ldflags out of /usr and missing -L

2009-11-18 Thread François Mauger
Changes by François Mauger : -- components: Installation nosy: mauger severity: normal status: open title: python2.6-config --ldflags out of /usr and missing -L type: feature request versions: Python 2.6 ___ Python tracker

[issue7351] Documentation typos found in "zipfile — Work with ZIP archives"

2009-11-18 Thread Retro
Retro added the comment: Thanks for upcassing 'Python'. I have to ask you why are all other classes named in the form of ...ZipFile, like - exception: LargeZipFile - class: ZipFile - class: PyZipFile Please at least consider of making the class BadZipfile consistent to other classes and let it

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I have always tried to be very conservative with backporting stuff that > is not clearly a bugfix but alters any kind of behaviour. I am always > very concerned about compatibility, especially if code has been around > for as long as this code has. > But as I

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Lars Gustäbel
Lars Gustäbel added the comment: I have always tried to be very conservative with backporting stuff that is not clearly a bugfix but alters any kind of behaviour. I am always very concerned about compatibility, especially if code has been around for as long as this code has. But as I don't want

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Alright then. I applied the change to the trunk (r76381) and py3k > (r76383). What about release26-maint and release31-maint? IMO this is > not necessary. Unless it might cause compatibility concerns I think it would be better to backport it. In general it's

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Lars Gustäbel
Lars Gustäbel added the comment: Alright then. I applied the change to the trunk (r76381) and py3k (r76383). What about release26-maint and release31-maint? IMO this is not necessary. -- ___ Python tracker

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2009-11-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oops. I meant "better with tests" of course... -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2009-11-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Based on the various comments the current patch should be ok, shouldn't it? Although it would certainly be better with a patch ;) -- assignee: barry -> nosy: +pitrou stage: -> patch review versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-11-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> janssen nosy: +janssen stage: -> patch review versions: +Python 3.2 -Python 3.0 ___ Python tracker ___ __

[issue2499] Fold unary + and not on constants

2009-11-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Closing this. The Unary Positive is already implemented and there are no known use cases for constant folding a Unary Not. -- resolution: -> out of date status: open -> closed ___ Python tracker

[issue7347] Patch - add RegCreateKeyEx to _winreg

2009-11-18 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7351] Documentation typos found in "zipfile — Work with ZIP archives"

2009-11-18 Thread Georg Brandl
Georg Brandl added the comment: BadZipfile is actually the correct name of the exception. Fixed the other nit in r76376. -- resolution: -> fixed status: open -> closed ___ Python tracker _

[issue7117] Backport py3k float repr to trunk

2009-11-18 Thread Mark Dickinson
Mark Dickinson added the comment: r76373: Backport round. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue7343] "What's new in 3.0" says % operator will be deprecated in 3.1

2009-11-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed in r76372: * :ref:`pep-3101`. Note: the 2.6 description mentions the :meth:`format` method for both 8-bit and Unicode strings. In 3.0, only the :class:`str` type (text strings with Unicode support) supports this method; the :class:`bytes` type

[issue7351] Documentation typos found in "zipfile — Work with ZIP archives"

2009-11-18 Thread Retro
New submission from Retro : There are some minor typos in the docs. The section zipfile has twp typos: exception zipfile.BadZipfile The error raised for bad ZIP files (old name: zipfile.error). this should be exception zipfile.BadZipFile The error raised for bad ZIP files (old name: zi

[issue7343] "What's new in 3.0" says % operator will be deprecated in 3.1

2009-11-18 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7350] csv doesn't handle escaped characters properly

2009-11-18 Thread Eric Torstenson
New submission from Eric Torstenson : When I use CSV with a separator, if there is an escaped separator in the field, it causes the next field to become part of the current one: file = csv.reader(open(filename), delimiter='\t', quotechar="'") for words in file: print words[0-8] If, say line

[issue7349] StringIO.StringIO, io.BytesIO, and io.StringIO accept None in places where other file-like objects don't

2009-11-18 Thread Philip Jenvey
Philip Jenvey added the comment: The original pure-python impl. of io accepted None, and still does. This is a regression in C impl. -- nosy: +pjenvey ___ Python tracker ___ ___

[issue7349] StringIO.StringIO, io.BytesIO, and io.StringIO accept None in places where other file-like objects don't

2009-11-18 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : The actual file type rejects None in places like as the argument to read or readlines. StringIO.StringIO, io.BytesIO, and io.StringIO all accept None to mean the same as passing no argument at all. This makes it tricky to write code that might operate o

[issue7348] StringIO.StringIO.readline(-1) returns the wrong result compared to other file-like objects

2009-11-18 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : cStringIO and file both accept -1 to readline to mean the same thing as not passing any argument at all. StringIO, on the other hand, gets totally confused: >>> from StringIO import StringIO >>> StringIO('a\nb\nfoo').readline(-1) 'a\nb\nfo' >>>

[issue7343] "What's new in 3.0" says % operator will be deprecated in 3.1

2009-11-18 Thread Brett Cannon
Brett Cannon added the comment: The % operator has not been deprecated, although talk of removing it flares up from time to time. We are still encouraging people to use the new str.format(). -- nosy: +brett.cannon ___ Python tracker

[issue7347] Patch - add RegCreateKeyEx to _winreg

2009-11-18 Thread Brian Curtin
Brian Curtin added the comment: Updated patch - c&p mistake in a comment -- Added file: http://bugs.python.org/file15360/winreg_add_createkeyex.patch ___ Python tracker ___ _

[issue7347] Patch - add RegCreateKeyEx to _winreg

2009-11-18 Thread Brian Curtin
Changes by Brian Curtin : Removed file: http://bugs.python.org/file15359/winreg_add_createkeyex.patch ___ Python tracker ___ ___ Python-bugs-li

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Paul Moore
Paul Moore added the comment: I can confirm it fixes the issue, too. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue7347] Patch - add RegCreateKeyEx to _winreg

2009-11-18 Thread Brian Curtin
New submission from Brian Curtin : The _winreg module could use the addition of the RegCreateKeyEx call, as evidenced by this thread on c.l.py: http://mail.python.org/pipermail/python-list/2009-November/614023.html This expanded API would benefit users trying to create keys with access masks (lik

[issue7346] Redirected stdout fires [Errno 9]

2009-11-18 Thread Ecir Hana
New submission from Ecir Hana : I try to log all the output of a program written in Python and C to a buffer. I create a pipe, redirect stdout to its write-end and then read its content afterward. However, printing from Python fires "IOError: [Errno 9] Bad file descriptor". Please see the attache

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Still, I have attached another version of it with a > slightly smaller try-except clause. Is it feasible to test if the patch > actually solves the problem? Yes, it does. -- ___ Python tracker

[issue3976] pprint._safe_repr is not general enough in one instance

2009-11-18 Thread David W. Lambert
Changes by David W. Lambert : -- nosy: +LambertDW ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue7344] wsgiref tests failing on Windows 7 buildbot

2009-11-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: [In case the URL disappears, the error message contains "AssertionError: Environmental variable TCL_LIBRARY is not a string"] This issue is another effect of issue6906. -- nosy: +amaury.forgeotdarc resolution: -> duplicate status: open -> closed

[issue7345] calendar.TextCalendar().formatyear wrong argument list

2009-11-18 Thread dingle
New submission from dingle : class calendar.TextCalendar([firstweekday]): formatyear(theyear, themonth[, w[, l[, c[, m) Should delete "themonth". Found this problem with all 2.6, 2.7, 3K documentation. -- assignee: georg.brandl components: Documentation messages: 95430 nosy: dingle,

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Paul Moore
Paul Moore added the comment: I can run a test on my buildbot - but I may not have a chance until tomorrow. I'll do that and report back unless someone else reports that they have managed to run a test before me. -- ___ Python tracker

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le mercredi 18 novembre 2009 à 12:11 +, Lars Gustäbel a écrit : > Lars Gustäbel added the comment: > > Any idea why the 2.x buildbots aren't failing? The code is basically the > same. Coincidence? No, the difference is that exception objects carry the tra

[issue6816] Provide CPython command line functionality via runpy module

2009-11-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > (Was it one of the unstable buildbots that picked this up? I didn't see > anything come through on the checkins list) Buildbot failures have stopped being e-mailed long ago it seems. (ah, you really thought our buildbots were all green in all that time? :P)

[issue7344] wsgiref tests failing on Windows 7 buildbot

2009-11-18 Thread Tim Golden
Changes by Tim Golden : -- nosy: +tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue6749] Support for encrypted zipfiles when interpreting zipfile as script

2009-11-18 Thread Nick Coghlan
Nick Coghlan added the comment: A few pointers in case anyone decides to follow this up further: Zipfile execution is just a special case of normal zipimport: the zipfile's name is placed at the head of sys.path and a (very) rough equivalent of "import __main__" is then invoked. So for zipfile

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Lars Gustäbel
Lars Gustäbel added the comment: Any idea why the 2.x buildbots aren't failing? The code is basically the same. Coincidence? The patch is okay. Still, I have attached another version of it with a slightly smaller try-except clause. Is it feasible to test if the patch actually solves the problem

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-11-18 Thread Nick Coghlan
Changes by Nick Coghlan : -- priority: -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-11-18 Thread Nick Coghlan
Nick Coghlan added the comment: Unassigned from Barry since this isn't an RM review issue anymore -- assignee: barry -> ___ Python tracker ___ __

[issue4486] Exception traceback is incorrect for strange exception handling

2009-11-18 Thread Nick Coghlan
Nick Coghlan added the comment: Reviewed patch diff - looks good to me. It's an obscure corner case, but the patch is pretty straightforward so we may as well clean it up. -- ___ Python tracker

[issue5037] unicode(x) for weakref.proxy objects invokes __str__ instead of __unicode__

2009-11-18 Thread Nick Coghlan
Nick Coghlan added the comment: Patch looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue7344] wsgiref tests failing on Windows 7 buildbot

2009-11-18 Thread Nick Coghlan
New submission from Nick Coghlan : As the subject line says: the wsgiref unit tests fail on the new Windows 7 buildbot. It appears to be happening every run, but here's one example: http://www.python.org/dev/buildbot/trunk/builders/x86%20Windows7%20trunk/builds/25/steps/test/logs/stdio

[issue6816] Provide CPython command line functionality via runpy module

2009-11-18 Thread Nick Coghlan
Nick Coghlan added the comment: I fixed the tests to use the proper escaping function from the re module instead of directly doubling backslashes, so that error shouldn't happen any more. (Was it one of the unstable buildbots that picked this up? I didn't see anything come through on the checki

[issue2029] "python -m pydoc -g" fails

2009-11-18 Thread Nick Coghlan
Nick Coghlan added the comment: It turns out this problem was breaking pydoc -m completely in Python 3.x (os.popen was breaking since it couldn't find the subprocess module - see #7238). A more robust fix that retains the three lines, but modifies them to avoid deleting the standard library dir

[issue6816] Provide CPython command line functionality via runpy module

2009-11-18 Thread Nick Coghlan
Nick Coghlan added the comment: Hmm, I think I need to use a more robust regex escaping approach... I never knew the OS level temp dir creation could get that creative. -- ___ Python tracker ___

[issue7293] test_msvc9compiler test_reg_class failure on new Windows box

2009-11-18 Thread Tarek Ziadé
Tarek Ziadé added the comment: r76358 and r76360 and r76361 Thanks David ! -- status: open -> closed ___ Python tracker ___ ___ Pytho

[issue7006] The replacement suggested for callable(x) in py3k is not equivalent

2009-11-18 Thread Nick Coghlan
Nick Coghlan added the comment: Antoine Pitrou wrote: > Antoine Pitrou added the comment: > > I also think isinstance(x, collections.Callable) is the correct > replacement. Even though it might give a different answer on weird > corner cases, it is semantically what you are looking for. > (too

[issue7337] Add lossy queue to queue library module

2009-11-18 Thread Ben Bass
Ben Bass added the comment: 'connectionless' is from how I see it as an analogy with UDP (vs TCP); why not just use a deque is primarily about having the same API - a client (getter) of the queue shouldn't know or care whether it is a 'lossy' queue or a normal queue. I guess most uses of a n

[issue7231] Windows installer does not add \Scripts folder to the path

2009-11-18 Thread sorin
sorin added the comment: Thanks Isaul, Anyway I made the required change before submitting the bug first time and additionally to what you wrote it is enough to logout/login to update the path - no reboot required. The bug is about repairing/improving Python experience for all Windows users. Im