[issue6247] should we include argparse

2009-06-09 Thread Ritesh Raj Sarraf
New submission from Ritesh Raj Sarraf r...@researchut.com: Shoudl argparse be included in the Python Standard Library. I know we already have getopt and optparse but optparse doesn't support many features easily. (like options without hyphen, nargs=*) Here a little about argparse: argparse:

[issue6247] should we include argparse

2009-06-09 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: One important prerequisite for including it is that the author of the code contributes it for inclusion (irrespective of any license that may allow us to fork the code), and that he, or somebody else, volunteers to maintain it. IIUC, you are

[issue6203] 3.x locale does not default to C, contrary to the documentation and to 2.x behavior

2009-06-09 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: To add a little bit more analysis: posix.device_encoding requires that the LC_CTYPE is set. Setting it just in this function would not be possible, as setlocale is not thread-safe. So for 3.1, it seems that Python must set LC_CTYPE. If

[issue5623] test_fdopen fails with vs2005, release build on Windows 2000

2009-06-09 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Why is this still open? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5623 ___ ___

[issue6247] should we include argparse

2009-06-09 Thread Ritesh Raj Sarraf
Ritesh Raj Sarraf r...@researchut.com added the comment: From the author, Steven Berthard: Sorry about the delay - conferences and moving means that I haven't had as much time for argparse as I'd like. Basically, the way things get into the Python standard library is if a

[issue6006] ffi.c compile failures on AIX 5.3 with xlc

2009-06-09 Thread rubisher
rubisher rubis...@scarlet.be added the comment: Just to mention the same issue for Python-2.6.2 and gcc-4.2.0 on aix 5.3 too. -- nosy: +rubisher ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6006

[issue5623] test_fdopen fails with vs2005, release build on Windows 2000

2009-06-09 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Closing this defect, as the issues seems worked around on our end. Btw, here is the issue on Microsoft's end. They've marked it as won't fix. https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?

[issue6245] Add intel universal architecture on OSX

2009-06-09 Thread John Szakmeister
John Szakmeister j...@szakmeister.net added the comment: I think Ronald is trying to say that a 10.6 SDK is likely not to support building 64-bit binaries at all for the PPC (since there won't be 64-bit versions of the supporting libraries). So you need this patch, if you're going to build

[issue5924] When setting complete PYTHONPATH on Python 3.x, paths in the PYTHONPATH are ignored

2009-06-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Here is a patch: fix+test. I left the initial code, #ifdef'd for PC platforms different than MS_WINDOWS. Just in case someone wants to port py3k to OS/2... -- keywords: +patch Added file:

[issue6203] 3.x locale does not default to C, contrary to the documentation and to 2.x behavior

2009-06-09 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6203 ___ ___ Python-bugs-list

[issue6242] Fix reference leak in io.StringIO

2009-06-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Why do you need all this? Isn't it enough to take a weakref and check the callback is triggered? (besides, we should avoid tests which only work in debug mode) -- ___ Python tracker

[issue6006] ffi.c compile failures on AIX 5.3 with xlc

2009-06-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: AIX doesn't seem listed in the platforms supported by libffi. http://sourceware.org/libffi/ suggests you send platform test results to libffi-disc...@sourceware.org On the other hand, perhaps the libffi version which comes with Python is

[issue6198] test_float fails on Windows

2009-06-09 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: In r73314, I restored the one test erroneously removed (%#.0f 1.5 - 2.). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6198

[issue6247] should we include argparse

2009-06-09 Thread Senthil
Senthil orsent...@gmail.com added the comment: I hope you read this thread which discusses the same issue. * http://mail.python.org/pipermail/python-list/2007-January/592646.html MvL,effbot and jjlee had shared their views to the original author of argparse module. It did not go anywhere from

[issue6247] should we include argparse

2009-06-09 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6247 ___ ___

[issue6096] SimpleXMLRPCServer not suitable for HTTP/1.1 keep-alive

2009-06-09 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Here is a better patch. Remove the individual flush() operations from the implementation classes, rather do it in the BaseHTTPRequestHandler(). This allows any request handler to be write buffered. -- Added file:

[issue6247] should we include argparse

2009-06-09 Thread Ritesh Raj Sarraf
Ritesh Raj Sarraf r...@researchut.com added the comment: Thanks for the link. As a user, I see many of the features that argparse brings, to be helpful. Since they are missing in optparse, and since it doesn't look like argparse will be included, should I open new bugs for those features

[issue6195] Serious regression in doctest in Py3.1rc1

2009-06-09 Thread Lisandro Dalcin
Lisandro Dalcin dalc...@gmail.com added the comment: I've tested latest David's patch against Cython test suite (doctests living in extension modules), and all is working as expected. -- ___ Python tracker rep...@bugs.python.org

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2009-06-09 Thread Robert Cronk
Robert Cronk cron...@gmail.com added the comment: Thanks Vinay. I ran the newest revised script with virus protection turned off and got the same failures as before (see console output below). If you comment out the os.system() calls, everything works just fine. Uncomment them and logging

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2009-06-09 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Debugging threading problems is never as simple as it seems. I don't believe logging is breaking because of some interaction with the system calls - rather, the presence of the system calls is changing the real-time characteristics of the

[issue6248] TCP Sockets not closed by TCPServer and StreamRequestHandler

2009-06-09 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson krist...@ccpgames.com: When an error occurs in a StreamRequestHandler, its wfile and rfile members are not closed. This causes the underlaying socket to stay alive and and it is therefore not closed, even when the SocketServer closes it in

[issue6137] Make pickle generated by Python 3.x compatible with 2.x and vice-versa.

2009-06-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Guido, Raymond suggested we ask your input on this one, although it's obviously a bit late (the patch has been committed). -- nosy: +gvanrossum ___ Python tracker rep...@bugs.python.org

[issue6137] Make pickle generated by Python 3.x compatible with 2.x and vice-versa.

2009-06-09 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: I'm not on IRC. What exactly is your question for me? What is Raymond's view? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6137 ___

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2009-06-09 Thread Robert Cronk
Robert Cronk cron...@gmail.com added the comment: I'll thoroughly look through every piece of software that's running to see if I can turn eveything off that might be causing the problem. Were you able to reproduce the problem with my original script? I'm sure you have all of your

[issue6137] Make pickle generated by Python 3.x compatible with 2.x and vice-versa.

2009-06-09 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I vaguely remember you rejecting a proposal along these lines when Brett was doing the library renaming. The patch (as applied) turns on the renaming automatically when used with protocol 2 (i.e. all object names are stored

[issue6137] Make pickle generated by Python 3.x compatible with 2.x and vice-versa.

2009-06-09 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Ah. How about only doing back-translation when protocol=2 (or lower) is explicitly selected? I don't much like that 3.0 will be to read pickles written by 3.1 with the default protocol (i.e. 3), but I don't mind breaking protocol 2, since

[issue6137] Make pickle generated by Python 3.x compatible with 2.x and vice-versa.

2009-06-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ah. How about only doing back-translation when protocol=2 (or lower) is explicitly selected? Well, this is exactly what is implemented! I don't much like that 3.0 will be to read pickles written by 3.1 with the default protocol (i.e. 3), I

[issue6137] Make pickle generated by Python 3.x compatible with 2.x and vice-versa.

2009-06-09 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: On Tue, Jun 9, 2009 at 12:16 PM, Antoine Pitrourep...@bugs.python.org wrote: Antoine Pitrou pit...@free.fr added the comment: Ah. How about only doing back-translation when protocol=2 (or lower) is explicitly selected? Well, this is

[issue6137] Make pickle generated by Python 3.x compatible with 2.x and vice-versa.

2009-06-09 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Thanks for taking a look and opining. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6137 ___

[issue6136] Make logging configuration files easier to use

2009-06-09 Thread Geoffrey Bache
Geoffrey Bache gjb1...@users.sourceforge.net added the comment: My comp.lang.python thread is here: http://groups.google.com/group/comp.lang.python/browse_thread/thread/a0c35c3c9ad210a4 It was met by deafening silence though. I don't see why a simple format would need to be customer-specific.

[issue6242] Fix reference leak in io.StringIO

2009-06-09 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Why do you need all this? Isn't it enough to take a weakref and check the callback is triggered? No, because you would need a weak reference to the instance's __dict__, which is unavailable for io.StringIO. Anyway, here's a

[issue6215] Backport the IO lib to trunk

2009-06-09 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: I think the build configuration for _io on Windows is missing. Modules/Setup.dist probably needs to be updated too. -- ___ Python tracker rep...@bugs.python.org

[issue6245] Add intel universal architecture on OSX

2009-06-09 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: FWIW, it's the --with-universal-archs option that he said wasn't 100% usable, not the binaries. Ah, ok. That clarifies it. -- ___ Python tracker rep...@bugs.python.org

[issue6215] Backport the IO lib to trunk

2009-06-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think the build configuration for _io on Windows is missing. Yes. Modules/Setup.dist probably needs to be updated too. Not sure, I don't think any of these modules are built-in. -- ___ Python

[issue5924] When setting complete PYTHONPATH on Python 3.x, paths in the PYTHONPATH are ignored

2009-06-09 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The patch looks right to me, please apply. -- assignee: - amaury.forgeotdarc resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5924

[issue6215] Backport the IO lib to trunk

2009-06-09 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Not sure, I don't think any of these modules are built-in. Ah true. Although there are built-in in py3k, you are right that it doesn't make sense to make the trunk versions built-in. --

[issue6247] should we include argparse

2009-06-09 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Since they are missing in optparse, and since it doesn't look like argparse will be included, should I open new bugs for those features against optparse ? I think chances are very low that any such bug report would be reacted on within

[issue5924] When setting complete PYTHONPATH on Python 3.x, paths in the PYTHONPATH are ignored

2009-06-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Fixed in r73322 (py3k) and r73323 (3.0) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5924 ___

[issue5924] When setting complete PYTHONPATH on Python 3.x, paths in the PYTHONPATH are ignored

2009-06-09 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- resolution: accepted - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5924 ___

[issue6136] Make logging configuration files easier to use

2009-06-09 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: It was met by deafening silence though. Give it time - it's only been a few days. For some reason, Google Groups doesn't show your post in the first page of results when I search for logging configuration by date (i.e. most recent on top):

[issue2919] Merge profile/cProfile in 3.0

2009-06-09 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Jean Brouwers wrote: All tests passed after regenerating the expected results The tests for profile are output test. If you regenerate them, they pass for sure. Merging cProfile/profile will require a lot more work than just

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2009-06-09 Thread Robert Cronk
Robert Cronk cron...@gmail.com added the comment: I turned off anti-virus again as well as file indexing and google desktop too and still got the errors when I disabled the locks around the os.system() calls. Vinay - when the locks aren't around the os.system() calls, do you get the rotating

[issue6201] test_winreg fails

2009-06-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Fixed with r73325. 2.7 really introduces an incompatibility here; I added an entry in the whatsnew file. -- nosy: +amaury.forgeotdarc resolution: - fixed status: open - closed ___ Python

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2009-06-09 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I've just run a test several times - it's your original script with joins added at the end. I kept the acquire_lock and release_lock calls but made them only do anything if a constant USE_LOCK was True. I set this to False, so that no

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2009-06-09 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: Added file: http://bugs.python.org/file14248/thredio.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4749 ___

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2009-06-09 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- resolution: - invalid status: open - closed Added file: http://bugs.python.org/file14249/python-io-capture.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4749

[issue1254718] GCC detection for runtime_library_dirs when ccache is used

2009-06-09 Thread Jason Kankiewicz
Jason Kankiewicz jkankiew...@acm.org added the comment: I've attached a patch, based on the original, that will fix distutils for both GCC and ICC. -- nosy: +jkankiewicz Added file: http://bugs.python.org/file14250/distutils-rpath-gcc_and_icc.patch

[issue1254718] GCC detection for runtime_library_dirs when ccache is used

2009-06-09 Thread Jason Kankiewicz
Changes by Jason Kankiewicz jkankiew...@acm.org: Removed file: http://bugs.python.org/file14250/distutils-rpath-gcc_and_icc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1254718 ___

[issue1254718] GCC detection for runtime_library_dirs when ccache is used

2009-06-09 Thread Jason Kankiewicz
Jason Kankiewicz jkankiew...@acm.org added the comment: I've updated my patch to resemble the patch from issue1032 and also because profiling showed that using str.__contains__ is more efficient than using str.find. -- Added file:

[issue6249] Error Prompt

2009-06-09 Thread SonMarvin
New submission from SonMarvin marvi...@gmail.com: When I open a Python File Prompt closes it quickly.My friends do not have this problem. Now reinstall, download older versions and the problem continued. -- components: Windows messages: 89177 nosy: SonMarvin severity: normal status:

[issue1254718] GCC detection for runtime_library_dirs when ccache is used

2009-06-09 Thread Seo Sanghyeon
Seo Sanghyeon sanx...@gmail.com added the comment: any() built-in is new in 2.5. PEP 291 specifies 2.3 compatibility for distutils. (tarek: Why?) The original patch used str.find because backward-compatibility requirement used to be stricter. -- ___

[issue1254718] GCC detection for runtime_library_dirs when ccache is used

2009-06-09 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: FWIW, min() can usually be substituted for any(). -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1254718

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2009-06-09 Thread Robert Cronk
Robert Cronk cron...@gmail.com added the comment: Vinay - that's great news! Are you going to create a new bug for this issue with a proper title? It would seem to me that the fix for this would be to put locks internal to the os.system() call around where it spawns cmd so multiple spawns

[issue1032] Improve the hackish runtime_library_dirs support for gcc

2009-06-09 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti alexan...@peadrop.com: -- resolution: - duplicate status: open - closed superseder: - GCC detection for runtime_library_dirs when ccache is used ___ Python tracker rep...@bugs.python.org

[issue5437] Singleton MemoryError can hold traceback data and locals indefinitely

2009-06-09 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Honestly, I don't think it is a big issue. MemoryErrors are rare and typically cause the interpreter to shutdown. By the way, do you think the static PyExc_RecursionErrorInst object is affected by this bug? -- nosy:

[issue6247] should we include argparse

2009-06-09 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: I'm happy to contribute argparse to the standard library and volunteer to maintain it. For what it's worth, I don't agree that there are already too many argument parsing libraries in the standard library. I do agree that there are

[issue6250] Python compiles dead code

2009-06-09 Thread James Abbatiello
New submission from James Abbatiello abb...@gmail.com: Python currently emits bytecode for code that is unreachable (e.g. following a return statement). This doesn't hurt anything but it takes up space doing nothing. This patch attempts to avoid generating any bytecode in this situation.