[issue7310] Unhelpful __repr__() in os.environ

2009-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: New patch that includes a unittest. I was also considering to replace the repr() with something that looks like _Environ({dict-here}). That will still contain all the information and also clarify that os.environ is not just a simple dict. (Even if it's probably n

[issue7310] Unhelpful __repr__() in os.environ

2009-11-16 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file15327/issue7310.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue1087] py3k os.popen result is not iterable, patch attached

2009-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: While I was working on EnvironTests I found 'test_os_popen_iter' (added in r58912) and I don't see why it is there. Christian, did you put it in the wrong place by mistake or is it somehow related to os.environ? (the test should also use unittest.skipUnless(os.pat

[issue7334] XML file locking in Jython 2.5 (OSError on Windows)

2009-11-16 Thread Philip Jenvey
Changes by Philip Jenvey : -- assignee: -> pjenvey nosy: +pjenvey versions: +Python 2.7, Python 3.2 -Python 2.5 ___ Python tracker ___ ___

[issue1757126] [PATCH] Fix ptcp154 encoding cyrillic_asian alias

2009-11-16 Thread Philip Jenvey
Philip Jenvey added the comment: fixed in r76337, r76338 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue7336] traceback module not properly printing exceptions on interpreter shutdown

2009-11-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Library (Lib) -Interpreter Core nosy: +gps, jyasskin priority: -> normal stage: -> needs patch title: threading module not properly handling shutdown -> traceback module not properly printing exceptions on interpreter shutdown type: crash ->

[issue7333] Add initgroups to the posix/os modules

2009-11-16 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Good point. Updated patch attached. -- Added file: http://bugs.python.org/file15347/initgroups-2.patch ___ Python tracker ___

[issue7333] Add initgroups to the posix/os modules

2009-11-16 Thread Philip Jenvey
Philip Jenvey added the comment: The test should skip when not hasattr(os, 'initgroups') since it's optional -- nosy: +pjenvey ___ Python tracker ___ ___

[issue7336] threading module not properly handling shutdown

2009-11-16 Thread Marien Zwart
Changes by Marien Zwart : -- nosy: +marienz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue7336] threading module not properly handling shutdown

2009-11-16 Thread R. Tyler Ballance
New submission from R. Tyler Ballance : Receiving a traceback when shutting down an interpreter with threads spawned inside of it: Traceback (most recent call last): File "/usr/lib/python2.6/threading.py", line 497, in __bootstrap self.__bootstrap_inner() File "/usr/lib/python2.6/thread

[issue7268] 2to3 execfile conversion changes behavior

2009-11-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: I've fixed underlying compile() newline problem in the trunk and py3k. However, I think that change is big enough that I don't want to to backport it. I'm leaving this open to think about what to do with 2to3 in this situation. -- priority: -> norma

[issue7333] Add initgroups to the posix/os modules

2009-11-16 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: In case anyone is concerned about licensing issues, please see -- ___ Python tracker _

[issue7335] int/long discrepancy when formatting zero with "%.0d"

2009-11-16 Thread Mark Dickinson
Changes by Mark Dickinson : -- title: int/long discrepancy when formatting zero with ".0d" -> int/long discrepancy when formatting zero with "%.0d" ___ Python tracker ___ ___

[issue7310] Unhelpful __repr__() in os.environ

2009-11-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: A unit test would be appreciated. It should check that the output looks like a dict. -- nosy: +amaury.forgeotdarc ___ Python tracker ___ _

[issue2054] add ftp-tls support to ftplib - RFC 4217

2009-11-16 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Can you attach the 3.x patch so that I can test it myself? I tried to apply the current 2.x patch against the 3.x trunk but I get conflicts. -- ___ Python tracker _

[issue7335] int/long discrepancy when formatting zero with ".0d"

2009-11-16 Thread Mark Dickinson
New submission from Mark Dickinson : In Python 2.x we have: >>> "%.0d" % 0 '' >>> "%.0d" % 0L '0' In Python 3.x: >>> "%.0d" % 0 '0' I think the 2.x behaviour for int comes directly from C's sprintf behaviour: section 7.19.6.1, p8 of the C99 standard says: "The result of converting a zero v

[issue6906] Tkinter sets an unicode environment variable on win32

2009-11-16 Thread Michał Pasternak
Michał Pasternak added the comment: I hit that bug with Twisted too - I tried to use AMP: http://twistedmatrix.com/trac/ticket/3931 -- ___ Python tracker ___ ___

[issue7228] %lld for PyErr_Format (Modules/_io/bufferedio.c)

2009-11-16 Thread Mark Dickinson
Mark Dickinson added the comment: ocean-city, now that "lld" and "llu" support has been added, could you retest this patch (offt_formats.patch) for me? -- Added file: http://bugs.python.org/file15346/offt_formats.patch ___ Python tracker

[issue7286] odd exec() behavior or documentation

2009-11-16 Thread Georg Brandl
Georg Brandl added the comment: The docs already contain the following note: .. note:: The default *locals* act as described for function :func:`locals` below: modifications to the default *locals* dictionary should not be attempted. Pass an explicit *locals* dictionary if

[issue7228] %lld for PyErr_Format (Modules/_io/bufferedio.c)

2009-11-16 Thread Mark Dickinson
Mark Dickinson added the comment: Merged to py3k in r76328. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7302] Wrong link to Python Language Mapping Specification

2009-11-16 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r76326. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue7334] XML file locking in Jython 2.5 (OSError on Windows)

2009-11-16 Thread Gareth Doutch
Gareth Doutch added the comment: This is on the Jython list: http://bugs.jython.org/issue1479 -- ___ Python tracker ___ ___ Python-bug

[issue7334] XML file locking in Jython 2.5 (OSError on Windows)

2009-11-16 Thread Gareth Doutch
New submission from Gareth Doutch : I have a problem with an xml file locking after read and/or write. I have a short sample code with unit test available here: http://bugs.jython.org/file741/lock.py Below are the outputs from Jython and CPython (v 2.5.4). I am using Jython 2.5.1 on Windows X

[issue7333] Add initgroups to the posix/os modules

2009-11-16 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : initgroups(2) is a function for initializing the aux group id list from site-specific configuration (typically /etc/groups, but not necessarily). Attached is a patch based on some code from Zope, expanded to have a test and some docs. Presumably Zope wi

[issue6906] Tkinter sets an unicode environment variable on win32

2009-11-16 Thread ivank
ivank added the comment: The bug on the Twisted side may be of interest: http://twistedmatrix.com/trac/ticket/3964 -- nosy: +ivank ___ Python tracker ___

[issue6906] Tkinter sets an unicode environment variable on win32

2009-11-16 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- nosy: +srid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

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

2009-11-16 Thread R. David Murray
R. David Murray added the comment: Well, I haven't worked with boost or any other extension class that defines a subclass of property. 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? Regardless of which

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

2009-11-16 Thread Moriyoshi Koizumi
Moriyoshi Koizumi added the comment: Sorry, I don't quite have an idea on the part "these patches reenable the bug". The script of the first message yields exactly the same result both with the original 2.6.4 and the patched. Assuming the weirdness you referred to is different from 5890, I'd sa

[issue7293] test_msvc9compiler test_reg_class failure on new Windows box

2009-11-16 Thread Tarek Ziadé
Tarek Ziadé added the comment: Ooops my bet, that's a typo, it's backlashes you are right. I'll change the test now, thanks a lot for all the feedback ! -- priority: -> normal resolution: -> accepted ___ Python tracker

[issue7293] test_msvc9compiler test_reg_class failure on new Windows box

2009-11-16 Thread David Bolen
David Bolen added the comment: Yes to both examples (the first on my VS 2008 full installs on XP and Windows 7, and the second on my XP with VC++ Express). Two caveats (that I don't think invalidates the result) though. First, I can't use forward slashes in the path I supply to Reg.get_value,

[issue7293] test_msvc9compiler test_reg_class failure on new Windows box

2009-11-16 Thread Tarek Ziadé
Tarek Ziadé added the comment: Ok so, can you confirm this is working on your side ? VisualStudio 9: >>> from distutils.msvc9compiler import Reg >>> path = r'Software/Microsoft/VisualStudio/9.0' >>> Reg.get_value(path, u"applicationid") 'VisualStudio' >>> import _winreg >>> HKCU = _winreg.HKEY

[issue7293] test_msvc9compiler test_reg_class failure on new Windows box

2009-11-16 Thread David Bolen
David Bolen added the comment: Oh, BTW, you were missing the VC part of the path in your test. But if I run the same code with that corrected on my Win7 box, I get: >>> from distutils.msvc9compiler import Reg >>> path = r'Software\Microsoft\VisualStudio\9.0' >>> Reg.get_value(path, u"fullscree

[issue7293] test_msvc9compiler test_reg_class failure on new Windows box

2009-11-16 Thread David Bolen
David Bolen added the comment: The "Build Timing" key (not Build Time) is the only one at all under HKCU/VisualStudio/9.0/VC (and actually the only key under the entire HKCU/VisualStudio tree) on both my XP and Win7 new VS 2008 installation. I can't rule out it being part of SP1 which I include

[issue7293] test_msvc9compiler test_reg_class failure on new Windows box

2009-11-16 Thread Tarek Ziadé
Tarek Ziadé added the comment: I made a test on my Express edition on the "FullScreen" value, but I don't have a "Build Time" one. Do you have a "FullScreen" key ? can you run this in a shell, to see what value you get for FullScreen, and for build time ? (I find it strange that this one has

[issue1616979] cp720 encoding map

2009-11-16 Thread Alexander Belchenko
Alexander Belchenko added the comment: OK, thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue1616979] cp720 encoding map

2009-11-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I think it is, see r74006 and http://docs.python.org/dev/library/codecs.html#standard-encodings (this is the doc for the future 2.7 version) -- ___ Python tracker

[issue7309] crasher in str(Exception())

2009-11-16 Thread Eric Smith
Eric Smith added the comment: Thanks, Walter. I'll finish my patch, then. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue7309] crasher in str(Exception())

2009-11-16 Thread Walter Dörwald
Walter Dörwald added the comment: >> I'm not sure what the functions should do when start and end are >> out of range. > > I think the best approach would be to prevent these values to be out of > range in the first place. The start and end values should be clipped, just like normal slices in

[issue7293] test_msvc9compiler test_reg_class failure on new Windows box

2009-11-16 Thread David Bolen
David Bolen added the comment: Oh, Tarek, something I missed in your last comment - for the "Build Timing" key, it should probably permit the value to be either 0 or 1, just as the current test does. Just in case someone happens to have build timing turned on. -- _

[issue7329] global statements outside functions/methods should raise SyntaxError

2009-11-16 Thread Gabriel Genellina
Gabriel Genellina added the comment: The compiler doesn't know how the code is going to be used apart from the "mode" parameter: py> c=compile("x=1","","exec") py> import dis py> dis.dis(c) 1 0 LOAD_CONST 0 (1) 3 STORE_NAME 0 (x)

[issue1616979] cp720 encoding map

2009-11-16 Thread Alexander Belchenko
Alexander Belchenko added the comment: As the author of original patch I want to note that it seems your merged patch does not update the documentation (list of standard encodings). Please, update the docs as well. -- ___ Python tracker

[issue3881] IDLE won't start in custom directory.

2009-11-16 Thread Gabriel Genellina
Gabriel Genellina added the comment: This patch had unintended consequences; see #6906 -- ___ Python tracker ___ ___ Python-bugs-list

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2009-11-16 Thread Thomas Courbon
Thomas Courbon added the comment: It seems that there wasn't work on that issue (which look complicated by the way). I'll wait, there is so much other aspects of a web framework to play with :) Thank anyway for the pointer. -- ___ Python tracker

[issue7298] reversed(range(x, -1, -1)) is empty when x > 1

2009-11-16 Thread Mark Dickinson
Mark Dickinson added the comment: Looks like Benjamin already fixed the refleak in r76319, r76320. -- ___ Python tracker ___ ___ Pytho

[issue7298] reversed(range(x, -1, -1)) is empty when x > 1

2009-11-16 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, Antoine. I'll investigate. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu