[issue7231] Windows installer does not add \Scripts folder to the path
sorin sorin.sbar...@gmail.com 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. Imagine that you want to deploy Python plus some extensions to many Windows computers - you will have a hard time adding Script directory to the path. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7231 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7337] Add lossy queue to queue library module
Ben Bass benpaulb...@googlemail.com 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 normal queue (excepting the 'task' functions) could just use a deque, but it wouldn't feel natural. Use cases: non-critical event/status reporting is my canonical example. Specific examples: - a program which executes a long running process in a thread. It wants to update a GUI progress bar or similar, which must occur in a different thread because of the GUI model. By using a LossyQueue, the server thread is simplified; it doesn't have to care whether anything is listening on the other end, allowing greater decoupling (e.g. no changes required if there isn't a GUI). LossyQueues become part of the interface which can be used or not as required. - emulating/providing wrapper around UDP sockets - many application protocols support a get/set/report type interface with the addition of asynchronous events (e.g. SNMP, Netconf, SCPI). In these type of applications a suitable abstraction might be a normal Queue(s) for the standard commands and a LossyQueue for the events (which some applications might not care about). The point is that to the user of this abstraction, these two interfaces look the same. The 'server' doesn't care if a client is listening or not (it won't block and it won't use unlimited memory) The 'client' (if it wants to use it) doesn't know that it isn't a normal queue (same API). - decouples server and client tasks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7337 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7006] The replacement suggested for callable(x) in py3k is not equivalent
Nick Coghlan ncogh...@gmail.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr 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 bad it has a stupid module placement) Yes, I was very surprised not to find it as abc.Callable... Regards, Nick. -- title: The replacement suggested for callable(x) in py3k is not equivalent - The replacement suggested for callable(x) in py3k is not equivalent ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7006 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7293] test_msvc9compiler test_reg_class failure on new Windows box
Tarek Ziadé ziade.ta...@gmail.com added the comment: r76358 and r76360 and r76361 Thanks David ! -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7293 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6816] Provide CPython command line functionality via runpy module
Nick Coghlan ncogh...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue6816 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2029] python -m pydoc -g fails
Nick Coghlan ncogh...@gmail.com 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 directory from sys.path when using '-m' has been applied to the 2.6 and 3.1 maintenance branches as well as the main development branches for 2.7 and 3.2. -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2029 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6816] Provide CPython command line functionality via runpy module
Nick Coghlan ncogh...@gmail.com 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 checkins list) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6816 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7344] wsgiref tests failing on Windows 7 buildbot
New submission from Nick Coghlan ncogh...@gmail.com: 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 -- keywords: buildbot messages: 95421 nosy: ncoghlan severity: normal status: open title: wsgiref tests failing on Windows 7 buildbot type: behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7344 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5037] unicode(x) for weakref.proxy objects invokes __str__ instead of __unicode__
Nick Coghlan ncogh...@gmail.com added the comment: Patch looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5037 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4486] Exception traceback is incorrect for strange exception handling
Nick Coghlan ncogh...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue4486 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs
Nick Coghlan ncogh...@gmail.com added the comment: Unassigned from Barry since this isn't an RM review issue anymore -- assignee: barry - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5949 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs
Changes by Nick Coghlan ncogh...@gmail.com: -- priority: - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5949 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots
Lars Gustäbel l...@gustaebel.de 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? -- Added file: http://bugs.python.org/file15357/issue7341-3.x.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6749] Support for encrypted zipfiles when interpreting zipfile as script
Nick Coghlan ncogh...@gmail.com 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 execution to support password protected zipfiles, general zipimport would need to support them as well. However, this runs into the problem that invocation of the zipimport module is largely implicit - the import engine invokes sys.path_hooks entries (which includes ZipImporter automatically) for a given sys.path entry and finds that, sure enough, ZipImporter recognises it and creates an appropriate object to handle it. So the trick lies in getting the password to the importer that needs to know it in order to open the zipfile. For the general case, you could create a new path hook that had a list of filename pattern-password pairs that could be placed in sys.path_hooks ahead of the normal zipimport hook. If it saw a pattern it recognised, it could use the appropriate password to open the zipfile and return a corresponding importer object (you could do this largely independently of the standard library itself - PEP 302 is expressly designed to let third party developers run with this kind of idea). That wouldn't help much with zipfile execution though, as you still wouldn't have a mechanism for providing the password on the command line. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6749 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7344] wsgiref tests failing on Windows 7 buildbot
Changes by Tim Golden m...@timgolden.me.uk: -- nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7344 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6816] Provide CPython command line functionality via runpy module
Antoine Pitrou pit...@free.fr 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) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6816 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots
Antoine Pitrou pit...@free.fr added the comment: Le mercredi 18 novembre 2009 à 12:11 +, Lars Gustäbel a écrit : Lars Gustäbel l...@gustaebel.de 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 traceback with them in 3.x, which keeps alive a reference cycle long enough for `fileobj` not to be garbage collected before the next test run. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots
Paul Moore p.f.mo...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue7341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7345] calendar.TextCalendar().formatyear wrong argument list
New submission from dingle xinjiang...@gmail.com: 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, georg.brandl severity: normal status: open title: calendar.TextCalendar().formatyear wrong argument list versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7345 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7344] wsgiref tests failing on Windows 7 buildbot
Amaury Forgeot d'Arc amaur...@gmail.com 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 superseder: - Tkinter sets an unicode environment variable on win32 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7344 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3976] pprint._safe_repr is not general enough in one instance
Changes by David W. Lambert b49p23t...@stny.rr.com: -- nosy: +LambertDW ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3976 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org http://bugs.python.org/issue7341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7346] Redirected stdout fires [Errno 9]
New submission from Ecir Hana ecir.h...@gmail.com: 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 attached test-case. It is happening on Windows XP, Python 2.6 and MinGW GCC and I used this to compile: gcc -o std.exe std.c -Ic:/dev/include/python2.6 -l python26 PS: It might be that the problem is that Python was compiled with MSVC2008 and I'm using MinGW but I'm not sure... -- components: IO, Windows files: std.c messages: 95433 nosy: ecir.hana severity: normal status: open title: Redirected stdout fires [Errno 9] versions: Python 2.6 Added file: http://bugs.python.org/file15358/std.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7346 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7347] Patch - add RegCreateKeyEx to _winreg
New submission from Brian Curtin cur...@acm.org: 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 (like KEY_WOW64_64KEY), which you can't set through _winreg.CreateKey. The patch includes the change to _winreg.c, along with doc and test changes. Comments/suggestions appreciated. -- components: Extension Modules files: winreg_add_createkeyex.patch keywords: patch messages: 95434 nosy: brian.curtin severity: normal status: open title: Patch - add RegCreateKeyEx to _winreg type: feature request versions: Python 2.7 Added file: http://bugs.python.org/file15359/winreg_add_createkeyex.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7347 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots
Paul Moore p.f.mo...@gmail.com added the comment: I can confirm it fixes the issue, too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7347] Patch - add RegCreateKeyEx to _winreg
Changes by Brian Curtin cur...@acm.org: Removed file: http://bugs.python.org/file15359/winreg_add_createkeyex.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7347 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7347] Patch - add RegCreateKeyEx to _winreg
Brian Curtin cur...@acm.org added the comment: Updated patch - cp mistake in a comment -- Added file: http://bugs.python.org/file15360/winreg_add_createkeyex.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7347 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7343] What's new in 3.0 says % operator will be deprecated in 3.1
Brett Cannon br...@python.org 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 rep...@bugs.python.org http://bugs.python.org/issue7343 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7348] StringIO.StringIO.readline(-1) returns the wrong result compared to other file-like objects
New submission from Jean-Paul Calderone exar...@divmod.com: 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' -- components: Library (Lib) messages: 95438 nosy: exarkun severity: normal status: open title: StringIO.StringIO.readline(-1) returns the wrong result compared to other file-like objects ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7348 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7349] StringIO.StringIO, io.BytesIO, and io.StringIO accept None in places where other file-like objects don't
New submission from Jean-Paul Calderone exar...@divmod.com: 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 on any of these types (as many APIs accepting a file-like object try to). Testing with one will not demonstrate that code works with any. In particular, it's common to start test with StringIO, which is more liberal, and only discover a problem when code is run for real against an actual file. -- components: Library (Lib) messages: 95439 nosy: exarkun severity: normal status: open title: StringIO.StringIO, io.BytesIO, and io.StringIO accept None in places where other file-like objects don't ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7349 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7349] StringIO.StringIO, io.BytesIO, and io.StringIO accept None in places where other file-like objects don't
Philip Jenvey pjen...@underboss.org 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 rep...@bugs.python.org http://bugs.python.org/issue7349 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7350] csv doesn't handle escaped characters properly
New submission from Eric Torstenson e_torsten...@hotmail.com: 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 3 contains: '1709' 'PF01322' 'Cytochrom_C_2' 'Cytochrome_C_2; ' 'Cytochrome C\'''Finn RD, Bateman A''anon' 'Sarah Teichmann' Column 4 will be printed as: Cytochrome C\'\tFinn RD, Bateman A' I've checked this with a spreadsheet application, and it opened this line just fine, but when I used csv to parse, I had to remove that escaped single quote to get my columns to work out properly for that line. -- components: Extension Modules messages: 95441 nosy: est_python_tracker severity: normal status: open title: csv doesn't handle escaped characters properly type: behavior versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7350 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7343] What's new in 3.0 says % operator will be deprecated in 3.1
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7343 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7351] Documentation typos found in zipfile — Work with ZIP archives
New submission from Retro vinet...@gmail.com: 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: zipfile.error). Note: There needs to be a capital F in the exception class name BadZipFile. There's also a typo in the sentence Decryption is extremely slow as it is implemented in native python rather than C. which should be Decryption is extremely slow as it is implemented in native Python rather than C. This sentence is found just above the previous BadZipfile typo. Note: The word 'python' is needed to be capitalized. These typos exist since the creation of the zipfile docs. Please correct the docs for the selected versions. Thank you. -- assignee: georg.brandl components: Documentation messages: 95442 nosy: Retro, georg.brandl severity: normal status: open title: Documentation typos found in zipfile — Work with ZIP archives versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7351 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7343] What's new in 3.0 says % operator will be deprecated in 3.1
Raymond Hettinger rhettin...@users.sourceforge.net 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 does not. The plan is to make this the preferred API for string formatting and to de-emphasize the ``%`` string formatting operator. -- nosy: +rhettinger resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7343 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7117] Backport py3k float repr to trunk
Mark Dickinson dicki...@gmail.com added the comment: r76373: Backport round. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7117 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7351] Documentation typos found in zipfile — Work with ZIP archives
Georg Brandl ge...@python.org 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 rep...@bugs.python.org http://bugs.python.org/issue7351 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7347] Patch - add RegCreateKeyEx to _winreg
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7347 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2499] Fold unary + and not on constants
Raymond Hettinger rhettin...@users.sourceforge.net 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 rep...@bugs.python.org http://bugs.python.org/issue2499 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - janssen nosy: +janssen stage: - patch review versions: +Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5949 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets
Antoine Pitrou pit...@free.fr 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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3890 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets
Antoine Pitrou pit...@free.fr added the comment: Oops. I meant better with tests of course... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3890 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots
Lars Gustäbel l...@gustaebel.de 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 rep...@bugs.python.org http://bugs.python.org/issue7341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots
Lars Gustäbel l...@gustaebel.de 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 to waste anybody's time with a lengthy discussion, just say a word and I apply it to 2.6 and 3.1 as well ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots
Antoine Pitrou pit...@free.fr 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 to waste anybody's time with a lengthy discussion, just say a word and I apply it to 2.6 and 3.1 as well ;-) What if I say chocolate? Regardless, I think you should backport it at least to 3.1, and that it makes sense to backport it to 2.6 too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7351] Documentation typos found in zipfile — Work with ZIP archives
Retro vinet...@gmail.com 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 be renamed to BadZipFile. Thank you again. -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7351 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7352] python2.6-config --ldflags out of /usr and missing -Linstall_lib_dir
Changes by François Mauger mau...@lpccaen.in2p3.fr: -- components: Installation nosy: mauger severity: normal status: open title: python2.6-config --ldflags out of /usr and missing -Linstall_lib_dir type: feature request versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7352 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots
Lars Gustäbel l...@gustaebel.de added the comment: Mmm, chocolate... ;-) Okay, consider it done. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7353] Why was Include/intobject.h removed in 3.1?
New submission from Dave Malcolm dmalc...@redhat.com: 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 compiling under both python 2 and python 3. The page http://wiki.python.org/moin/PortingExtensionModulesToPy3k; refers to using the macros in intobject.h, so that all PyInt_* calls in the python 3 build are aliased to PyLong_ API hooks. Similarly, the page: http://docs.python.org/howto/cporting.html recommends using this file. However, that header file was removed in this commit: http://svn.python.org/view?view=revrevision=71697 with this message: Issue #4910: PyNumber_Int is deprecated in 3.0.1; will be removed in 3.1. (which links to this issue: http://bugs.python.org/issue4910 ; that issue refers to removal of the nb_long slot). This seems to make it harder to port modules. Is is acceptable if I ship that header file in my distribution packages of python-3.1.1 ? (possibly with a reworded deprecation warning?) Alternatively, is the fix to migrate all usage of the PyInt_ API to the PyLong_ equivalents ? That would cause a change of behavior for the python 2 builds, assuming a shared source tree. (I'd much prefer to ship the latest in the py3k branch than to stay with 3.0.1 for this) In any case, it seems like the porting documentation isn't in sync with the code. Hope this is helpful. -- components: Interpreter Core messages: 95455 nosy: dmalcolm severity: normal status: open title: Why was Include/intobject.h removed in 3.1? versions: Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7353 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7352] python2.6-config --ldflags out of /usr and missing -Linstall_lib_dir
New submission from François Mauger mau...@lpccaen.in2p3.fr: 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 is that the python2.6-config --ldflags does not print the linker -Linstall shared library path so 'ld' failed with some non found lipython2.6.so error. Is it a feature or a mistake in the build/installation process of Python2.6 ? Thanks a lot to give any useful hint. Some details of my config follow: bash-3.2$ cat /etc/redhat-release Scientific Linux SL release 5.3 (Boron) bash-3.2$ uname -a Linux XX 2.6.18-164.6.1.el5 #1 SMP Tue Nov 3 23:02:51 EST 2009 x86_64 x86_64 x86_64 GNU/Linux bash-3.2$ python -V Python 2.6.4 bash-3.2$ python2.6-config --prefix /some_path/sw/python/install_2.6.4_Linux-x86_64 bash-3.2$ ls -l /some_path/sw/python/install_2.6.4_Linux-x86_64/lib total 5419 lrwxr-xr-x 1 mauger nemo 19 Nov 18 11:03 libpython2.6.so - libpython2.6.so.1.0 -r-xr-xr-x 1 mauger nemo 5524796 Nov 18 11:03 libpython2.6.so.1.0 drwxr-xr-x 25 mauger nemo 22528 Nov 18 11:04 python2.6 bash-3.2$ python2.6-config --cflags -I/some_path/sw/python/install_2.6.4_Linux-x86_64/include/python2.6 -I/some_path/sw/python/install_2.6.4_Linux-x86_64/include/python2.6 -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes HERE I don't get the -L/some_path/sw/python/install_2.6.4_Linux-x86_64/lib: bash-3.2$ python2.6-config --ldflags -lpthread -ldl -lutil -lm -lpython2.6 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7352 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5080] PyArg_Parse* should raise TypeError for float parsed with integer format
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: - mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5080 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6816] Provide CPython command line functionality via runpy module
Nick Coghlan ncogh...@gmail.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr 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) I knew the stable list was a lot shorter than the full list, so I thought it was remotely possible :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6816 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6816] Provide CPython command line functionality via runpy module
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: -r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6816 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7353] Why was Include/intobject.h removed in 3.1?
Changes by Skip Montanaro s...@pobox.com: -- nosy: +skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7353 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7354] distutils.tests.test_msvc9compiler - dragfullwindows can have value 2
New submission from Paul Moore p.f.mo...@gmail.com: 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 on my buildbot machine and it seems to do the trick. -- assignee: tarek components: Distutils, Tests files: msvc9compiler.patch keywords: buildbot, patch, patch messages: 95458 nosy: pmoore, tarek severity: normal status: open title: distutils.tests.test_msvc9compiler - dragfullwindows can have value 2 versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file15361/msvc9compiler.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7354 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5827] os.path.normpath doesn't preserve unicode
Matt Giuca matt.gi...@gmail.com 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(isinstance ...) is better than assertEqual(type ...), because the type equality checking produces this error: AssertionError: type 'str' != type 'unicode' while isinstance produces this unhelpful error: AssertionError: False is not True But oh well, I made the change anyway as most test cases use isinstance. -- Added file: http://bugs.python.org/file15362/normpath.2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5827 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7349] StringIO.StringIO, io.BytesIO, and io.StringIO accept None in places where other file-like objects don't
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7349 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3976] pprint._safe_repr is not general enough in one instance
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Fixed. See r76389 and r76390. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3976 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7263] Fix set.intersection docstring
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7263 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6454] Add example keyword argument to optparse constructor
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: rhettinger - gward nosy: +gward ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6454 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6738] Wrong doc strings in itertools
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Fixed. See r76391 to r76394. Thanks for the report. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6738 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7206] 64 bit python fails on Windows 7
Rich Healey ri...@psych0tik.net 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 needed to presumably that would be nested in something loaded dynamically, rather than the original image so it could catch the issue and deal with it. I will try to reproduce this on another machine to double check my logic. Thanks again for all your help Martin. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7206 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5037] unicode(x) for weakref.proxy objects invokes __str__ instead of __unicode__
Benjamin Peterson benja...@python.org added the comment: Fixed in r76395. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5037 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5890] Subclassing property doesn't preserve the auto __doc__ behavior
Moriyoshi Koizumi mozo+pyt...@mozo.jp 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 delegating the access to __doc__ to the base class (property class in this specific case). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5890 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7354] distutils.tests.test_msvc9compiler - dragfullwindows can have value 2
Tarek Ziadé ziade.ta...@gmail.com added the comment: done in r76399, r76401 and r76402 Thx -- status: open - closed versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7354 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com