[issue9318] Py3k compilation on old MSVC

2010-09-09 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Patch for import.c was checked in (#9752), so last piece is just patch for Include/pythread.h. I'll commit this near future. I believe this is not problematic. -- assignee: -> ocean-city ___ Python tracker

[issue9503] print statement hangs Windows service

2010-09-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Closing as a duplicate of issue706263. Instead of changing all print statements, you could set sys.stdout to another file, for example: sys.stdout=StringIO() or another object that simply discards written data. -- nosy: +amaury.forgeotdarc r

[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2010-09-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: After more thought, I'm -1 on this. "Consistency" is a weak argument in favor of this. We need to be more use case drivenm and it there is no evidence that this is needed. Also, there is a reasonable concern that using negative indices in a format strin

[issue9813] Module Name Changed

2010-09-09 Thread Ned Deily
Ned Deily added the comment: Suggest you post your issue on the egenix-users mailing list (described here http://www.egenix.com/support/mailing-lists/) first and return here if there is agreement there that there might be a problem with a current version of Python itself. -- nosy: +n

[issue9814] subprocess isn't friendly to other Python implementations with different GCs

2010-09-09 Thread Dino Viehland
New submission from Dino Viehland : subprocess isn't very friendly to implementations with different GCs then CPython and in general relies on behavior that's not going to be very stable. I noticed the following issues but was able to work around all of them. First Popen is a finalizable obje

[issue9813] Module Name Changed

2010-09-09 Thread Charles M Norton
Charles M Norton added the comment: The download page said to report problems here. I don't know whether this is a bug or not. The problem exists in 2.66, but not in 2.6.5. I'm looking for a workaround. If not, here, where should I post my request? -- status: pending -> open

[issue9813] Module Name Changed

2010-09-09 Thread Brett Cannon
Changes by Brett Cannon : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue9813] Module Name Changed

2010-09-09 Thread STINNER Victor
STINNER Victor added the comment: Do you think that it is a Python bug? You should first try to report a bug on eGenenix bug tracker: http://www.egenix.com/services/support/ -- nosy: +haypo ___ Python tracker

[issue9813] Module Name Changed

2010-09-09 Thread Charles M Norton
New submission from Charles M Norton : In Python 2.6, I could import from mx.DateTime.ISO import ParseDateTimeUTC With 2.7 I cannot. Here is the error: File "util_lib.py", line 46, in from mx.DateTime.ISO import ParseDateTimeUTC ImportError: No module named mx.DateTime.ISO What change

[issue9752] MSVC Compiler warning in Python\import.c

2010-09-09 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Committed as r84659. Thanks for the patch! -- stage: patch review -> committed/rejected status: open -> closed type: -> compile error ___ Python tracker ___

[issue9808] Implement os.getlogin on Windows

2010-09-09 Thread Tim Golden
Tim Golden added the comment: +1 on the idea in general; I'm away at the moment and not in a position to review the patch. Hopefully Brian can review/commit -- ___ Python tracker ___

[issue5985] Implement os.path.samefile and os.path.sameopenfile on Windows

2010-09-09 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Both os.path.samefile and os.path.sameopenfile are now in py3k. And release27-maint is in feature freeze, so I think this issue should be closed. # Implemented on os.path.samefile: #1578269 os.path.sameopenfile: #7566 -- resolution: -> out of date

[issue9752] MSVC Compiler warning in Python\import.c

2010-09-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > BTW: should I be using the .patch extension or .diff extension? Both extensions are fine and handled the same way -- ___ Python tracker

[issue9804] ascii() does not always join surrogate pairs

2010-09-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Modified patch committed in r84655 (3.x) and r84656 (3.1). Thanks! -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker _

[issue9752] MSVC Compiler warning in Python\import.c

2010-09-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The patch is good, and fixes an incorrect call to the mkdir function. -- nosy: +amaury.forgeotdarc resolution: -> accepted ___ Python tracker ___

[issue1757072] Zipfile robustness

2010-09-09 Thread Mark Hirota
Mark Hirota added the comment: Yes, I'd be interested in this functionality. Anything that makes it more flexible to use with a wide variety of zipfiles (even bad ones :D) allows for increased reusability. Thanks! -- ___ Python tracker

[issue9807] deriving configuration information for different builds with the same prefix

2010-09-09 Thread Dave Malcolm
Dave Malcolm added the comment: In reply to Barry A. Warsaw: >@dmalcolm: I suspect you can reduce your diff for Python 3.2 now that PEP 3149 >has landed. Yeah, the patch I linked to is against the 3.2a1 tarball; I hoped to regenerate it for 3.2a2 but have been swamped this week :( --

[issue9807] deriving configuration information for different builds with the same prefix

2010-09-09 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: @Amaury: yes, that makes perfect sense. With PEP 3149, a debug (or any differently built) interpreter will pick up only the _sysconfig.blah.so that's appropriate for it, so baking it into there, with public API exposure through sysconfig seems like the righ

[issue9807] deriving configuration information for different builds with the same prefix

2010-09-09 Thread Matthias Klose
Matthias Klose added the comment: On 09.09.2010 21:51, Dave Malcolm wrote: > # * Debian's patch to dynload_shlib.c looks for module_d.so, then module.so, > # but this can potentially find a module built against the wrong DSO ABI. We > # instead search for just module_d.so in a debug build ri

[issue9807] deriving configuration information for different builds with the same prefix

2010-09-09 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: @dmalcolm: I suspect you can reduce your diff for Python 3.2 now that PEP 3149 has landed. -- ___ Python tracker ___ _

[issue9807] deriving configuration information for different builds with the same prefix

2010-09-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: You are right; but the data could not be appended to sysconfig.py, because this file is shared by the different builds. A new built-in C module is probably necessary. -- ___ Python tracker

[issue9807] deriving configuration information for different builds with the same prefix

2010-09-09 Thread Dave Malcolm
Dave Malcolm added the comment: For reference, the patch that I'm currently applying to Fedora's build of Python-3.2a1 can be seen at: http://pkgs.fedoraproject.org/gitweb/?p=python3.git;a=blob_plain;f=python-3.2a1-debug-build.patch;hb=HEAD It appears to be very similar to Matthias' patch (

[issue9807] deriving configuration information for different builds with the same prefix

2010-09-09 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Amaury, you mention a sys.build_config dictionary, but I think it should actually be baked into the sysconfig module, possibly as a _sysconfig extension module. sysconfig is the new goodness for getting at this, and I don't think it ought to have to go thro

[issue9807] deriving configuration information for different builds with the same prefix

2010-09-09 Thread Matthias Klose
Matthias Klose added the comment: +1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue1467929] %-formatting and dicts

2010-09-09 Thread Florent Xicluna
Florent Xicluna added the comment: Too late for 2.x and 3.1. -- nosy: +flox versions: -Python 2.7, Python 3.1 ___ Python tracker ___ _

[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2010-09-09 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue6081] str.format_from_mapping()

2010-09-09 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9418] Move _formatter_* methods from string type into _string module

2010-09-09 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9195] Link in docs from "String Formatting Operations" to "Template Strings"

2010-09-09 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8913] Document that datetime.__format__ is datetime.strftime

2010-09-09 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9804] ascii() does not always join surrogate pairs

2010-09-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I agree with the feature and the patch, with two minor nits: - Py_UCS4 should be used in place of "unsigned long" - "*p >= 0xD800" is the most selective test and should be the first -- nosy: +amaury.forgeotdarc ___

[issue8556] Confusing string formatting examples

2010-09-09 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue7300] Unicode arguments in str.format()

2010-09-09 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9807] deriving configuration information for different builds with the same prefix

2010-09-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: IMO there should not be any need to fetch information from config.h or the Makefile. What about a sys.build_config dictionary containing all the necessary data? -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue9410] Add Unladen Swallow's optimizations to Python 3's pickle.

2010-09-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch was finally committed in r84653. Thanks to everyone who participated in this. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue9812] cPickle segfault with nested dicts in threaded env

2010-09-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Python has several known crashers, they are not considered as security holes. It seems that FreeBSD has a small stack size for threads (64k); did you try to increase it with thread.stack_size(10**6)? -- nosy: +amaury.forgeotdarc, loewis

[issue9808] Implement os.getlogin on Windows

2010-09-09 Thread Jon Anglin
Jon Anglin added the comment: Here is an updated patch with the updated test. This test does not use either the LOGNAME or USERNAME environment variables. -- Added file: http://bugs.python.org/file18814/issue9808.diff ___ Python tracker

[issue9609] make cProfile multi-stack aware

2010-09-09 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- nosy: +georg.brandl stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue9609] make cProfile multi-stack aware

2010-09-09 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Here is a new patch. When 'allthreads' is specified to cProfile.Profile.enable(), profling is enabled on all threads. The testsuite tests to see that all threads do indeed register, it does not attempt to validate the timings. It turns it on for all

[issue9808] Implement os.getlogin on Windows

2010-09-09 Thread Jon Anglin
Jon Anglin added the comment: I can't answer that for the 'LOGNAME' environment variable on non-Windows systems, I was just keying off of what the docs claimed. As for Windows, I just came across this article http://support.microsoft.com/kb/273633 that shows we can not rely on this in the tes

[issue9811] strftime strips '%' from unknown format codes on OS X

2010-09-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > I think there have been some rumblings about writing our own strftime Yes, see issue #3173. Another related issue is #9650 which discusses how to properly document strftime codes. -- ___ Python tracker

[issue9805] Documentation on old-style formatting of dicts is overly restrictive

2010-09-09 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> %-formatting and dicts ___ Python tracker ___

[issue9809] Wrong Registery Entries on win64

2010-09-09 Thread Brian Curtin
Brian Curtin added the comment: Wow6432Node registry entries are for applications running WOW - aka 32-bit applications on a 64-bit platform. The 64-bit Python installer is placing its entries in the appropriate location. See the winreg documentation for information that might help fixing thi

[issue9812] cPickle segfault with nested dicts in threaded env

2010-09-09 Thread Kenneth Dombrowski
New submission from Kenneth Dombrowski : FreeBSD 8.0-RELEASE-p2 Python 2.5.5 amd64 attached diff provides a test for cpickle which reproduces a segfault when pickling >15 nested dicts in a threaded environment cpickle.patch attached to http://bugs.python.org/issue3640 applys cleanly to the 2

[issue9805] Documentation on old-style formatting of dicts is overly restrictive

2010-09-09 Thread Ken Basye
Ken Basye added the comment: I think Eric is correct; it's a dupe. And I was wrong about not otherwise being able to format an empty dictionary - "%s" % (d,) will always work and is arguably the right thing to do anyway. -- type: behavior -> versions: -Python 3.1, Python 3.2 _

[issue9811] strftime strips '%' from unknown format codes on OS X

2010-09-09 Thread R. David Murray
R. David Murray added the comment: Python's strftime is a thin wrapper around the system strftime. This means, for example, that a slightly different set of % codes is supported on windows vs linux. So, from Python's point of view this is at *most* a doc bug. That said, I think there have b

[issue2745] Add support for IsWow64Process

2010-09-09 Thread R. David Murray
R. David Murray added the comment: See also Issue7860. -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue9808] Implement os.getlogin on Windows

2010-09-09 Thread Brian Curtin
Brian Curtin added the comment: After a quick glance the patch looks alright, just cleaned a few things up in issue9808.diff (moved the #include up with others, removed 'is not None' from tests). The test skip decorator could also be moved to the LoginTests class level. Is there any reason t

[issue9609] make cProfile multi-stack aware

2010-09-09 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- nosy: +stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue9757] Add context manager protocol to memoryviews

2010-09-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r84649. Thanks for the comments! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-09-09 Thread STINNER Victor
STINNER Victor added the comment: See also #9713 (Py_CompileString fails on non decode-able paths) and #9738 (Document the encoding of functions bytes arguments of the C API). -- ___ Python tracker ___

[issue9713] Py_CompileString fails on non decode-able paths.

2010-09-09 Thread STINNER Victor
STINNER Victor added the comment: #6543 changed the encoding of the filename argument of PyRun_SimpleFileExFlags() (and all functions based on PyRun_SimpleFileExFlags) and c_filename attribute of the compiler (private) structure in Python 3.1.3: use utf-8 in strict mode instead of filesystem

[issue9738] Document the encoding of functions bytes arguments of the C API

2010-09-09 Thread STINNER Victor
STINNER Victor added the comment: #6543 changed the encoding of the filename argument of PyRun_SimpleFileExFlags() (and all functions based on PyRun_SimpleFileExFlags) and c_filename attribute of the compiler (private) structure in Python 3.1.3: use utf-8 in strict mode instead of filesystem

[issue9757] Add context manager protocol to memoryviews

2010-09-09 Thread Nick Coghlan
Nick Coghlan added the comment: Sounds good - I'd say just commit whenever you're happy with it then. -- ___ Python tracker ___ ___ Py

[issue3111] multiprocessing ppc Debian/ ia64 Ubuntu compilation error

2010-09-09 Thread Ask Solem
Ask Solem added the comment: As no one is able to confirm that this is still an issue, I'm closing it. It can be reopened if necessary. -- resolution: -> out of date ___ Python tracker ___

[issue3125] test_multiprocessing causes test_ctypes to fail

2010-09-09 Thread Ask Solem
Ask Solem added the comment: As no one has been able to confirm that this is still an issue, I'm closing it as "out of date". The issue can be reopened if necessary. -- resolution: accepted -> out of date status: open -> closed ___ Python tracker <

[issue9804] ascii() does not always join surrogate pairs

2010-09-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: New patch with tests. -- Added file: http://bugs.python.org/file18810/backslashsurrogates2.patch ___ Python tracker ___

[issue9799] Compilation error for branch py3k on AIX 6

2010-09-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue9811] strftime strips '%' from unknown format codes on OS X

2010-09-09 Thread Sverre Johansen
Sverre Johansen added the comment: This is because of differences in GNU and BSD C stdlib; I get the same results using the BSD and GNU versions of `date`. $ date +"%q" What does Python typically do in cases like this? -- ___ Python tracker <

[issue9799] Compilation error for branch py3k on AIX 6

2010-09-09 Thread Sébastien Sablé
Sébastien Sablé added the comment: OK for me to close it as a compiler bug since there is a workaround. It would be great if we could detect this compiler and deactivate this optimization automatically, but I am too lazy to search the xlc compiler documentation for a way to do that. I suppos

[issue9796] Add summary tables for unittest API

2010-09-09 Thread Michael Foord
Michael Foord added the comment: This has been on my 'todo list' for a long time. Feel free to get to it before me. Please *don't* include the now deprecated assert* methods in the table. I'd like to move all the deprecated methods to a separate section of the documentation. As Raymond says

[issue9811] strftime strips '%' from unknown format codes on OS X

2010-09-09 Thread Sverre Johansen
New submission from Sverre Johansen : There seems to be a platform difference in the way stftime handles unknown format codes. In OSX Python removes the percentage sign from the returned string when the format code is unknown. In Linux it leaves it. Look at the following example: This is Pyt

[issue9733] Can't iterate over multiprocessing.managers.DictProxy

2010-09-09 Thread Ask Solem
Ask Solem added the comment: > I expected I could iterate over a DictProxy as I do over a > regular dict. DictProxy doesn't support iterkeys(), itervalues(), or iteritems() either. So while iter(d) could do iter(d.keys()) behind the scenes, it would mask the fact that this would not

[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2010-09-09 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Here is the patch. On VS8.0 or above, * Avoid DebugBreak() call by IsDebuggerPresent(). * Tell abort() not to print message to console or window. -- keywords: +patch Added file: http://bugs.python.org/file18809/py3k_fix_test_capi_crash.patch ___

[issue9622] Allow to set profile/trace function globally

2010-09-09 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9609] make cProfile multi-stack aware

2010-09-09 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9810] bzip2 build sometimes fails (VS8.0)

2010-09-09 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : bzip2 project sometimes fails to build pyd file. This is because (snip) nmake /nologo /f makefile.msc lib (snip) nmake /nologo /f makefile.msc clean is run by bzip2.vcproj, but "lib" command won't create bzip2.exe nor bzip2recover.exe, wheres "clean" will