[issue6435] logging: cache the traceback text on formatter, instead of record

2009-07-08 Thread Vinay Sajip
Vinay Sajip added the comment: I fail to follow your logic, in the following respects: 1. The exception text cannot be cached in the formatter because a formatter will format lots and lots of records. Formatters live for a long time, records do not. 2. The exception text needs to be stored in t

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-08 Thread Ned Deily
Ned Deily added the comment: "... create_stdio passes PYTHONIOENCODING ..." -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-08 Thread Ned Deily
Ned Deily added the comment: Note, you can produce the same error on OS X or linux by setting PYTHONIOENCODING="", which effectively overrides the value returned nl_langinfo(CODESET). In pythonrun.c, create_stdio passes PYTHONENCODING, if set, on as the "encoding" value to TextIOWrapper. If

[issue6443] _winreg.QueryValueEx confused on double null terminated strings

2009-07-08 Thread Andrew Ziem
Andrew Ziem added the comment: The bug is noted in the Python source code in file PC/_winreg.c in in function fixupMultiSZ() where it admits Python does not mimic Microsoft regedit.exe -- ___ Python tracker ___

[issue6443] _winreg.QueryValueEx confused on double null terminated strings

2009-07-08 Thread Andrew Ziem
New submission from Andrew Ziem : QueryValueEx only returns one string when the contents are double null terminated, yet QueryValueEx works when the string is singly null terminated. In Python 2.5.4 on Windows XP Sp3, the first key-value only returns the first part up to \0\0. --

[issue6377] distutils compiler switch ignored

2009-07-08 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Cool, thanks. PyCrypto also works again now. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue6440] 2to3: convert deprecated string.maketrans to str.maketrans

2009-07-08 Thread R. David Murray
R. David Murray added the comment: Ah, I missed the fact that this was a 3.2 change. Somehow I thought it was a 3.1 thing. So you are right, IMO, this would be feature creap. -- ___ Python tracker ___

[issue6435] logging: cache the traceback text on formatter, instead of record

2009-07-08 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: A real-life recipe where this bug showed up: http://code.activestate.com/recipes/576836/ -- ___ Python tracker ___ _

[issue6440] 2to3: convert deprecated string.maketrans to str.maketrans

2009-07-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: It's the users wants not yours that matter. If someone already has 3.0 in production and is maintaining code in both 2.6 and 3.0, then this change will break their build. Also, it is not a necessary change. We already have a warning in-place to alert anyon

[issue6440] 2to3: convert deprecated string.maketrans to str.maketrans

2009-07-08 Thread R. David Murray
R. David Murray added the comment: I think 2to3 should target 3.1. We don't expect/want people to use 3.0 in production. -- nosy: +r.david.murray priority: -> normal stage: -> test needed ___ Python tracker

[issue6333] logging: ValueError: I/O operation on closed file

2009-07-08 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Perhaps there is an issue with py.test. My understanding is that: if the logging module is designed to let users implement their own custom handlers (like I did with ConsoleHandler), is it not expected that they may do whatever they want with it includin

[issue6399] Error reporting by logging.config.fileConfig()

2009-07-08 Thread Vinay Sajip
Vinay Sajip added the comment: Mike, That's just fine. Sorry if I appear unhelpful, but in the open source world we mostly scratch our own itches. I believe I have a reasonable record on accepting patches from the community (though I don't of course accept everything), and I unfortunately don't

[issue6333] logging: ValueError: I/O operation on closed file

2009-07-08 Thread Vinay Sajip
Vinay Sajip added the comment: Perhaps it's a py.test issue. Have you tried with unittest and nose? Remember, py.test has had little love for a while and so perhaps has a few rougher edges (though I hear in the blogosphere that the project may be rejuvenated shortly). -- __

[issue6358] os.popen exit code inconsistent

2009-07-08 Thread Retro
Retro added the comment: os.popen is deprecated. Use the subprocess module. -- nosy: +Retro ___ Python tracker ___ ___ Python-bugs-lis

[issue6442] Backwards __contains__/has_key in xml/sax/xmlreader.py

2009-07-08 Thread Corbin Simpson
New submission from Corbin Simpson : Not a big deal, but these two methods were backwards in AttributesImpl in xml/sax/xmlreader.py, and it was causing fun little problems in some of my code on Python 2.6.0, so I decided to whip up a patch. (Of course, this is fixed in Py3k since has_key() got n

[issue6377] distutils compiler switch ignored

2009-07-08 Thread Tarek Ziadé
Tarek Ziadé added the comment: done in r73895, r73896. (and tested with twisted trunk). -- ___ Python tracker ___ ___ Python-bugs-list

[issue6333] logging: ValueError: I/O operation on closed file

2009-07-08 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Note: It appears that py.test assigns a temporary file to sys.std[out| err]. -- ___ Python tracker ___ _

[issue6333] logging: ValueError: I/O operation on closed file

2009-07-08 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: I have attached a script that repros this bug. Run it using py.test (instructions inside the file). Workaround is by uncommenting the last few lines ('flush' method). -- Added file: http://bugs.python.org/file14474/issue6333repro.py _

[issue6440] 2to3: convert deprecated string.maketrans to str.maketrans

2009-07-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Doesn't that create an issue depending on whether your 2-to-3 target is 3.0 or 3.1? I don't think minor release changes should be conflated with the major release changes. -- nosy: +rhettinger ___ Python tracker

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-08 Thread Ned Deily
Ned Deily added the comment: This is a side effect of the fix for Issue6202. Prior to r73268, locale.getpreferredencoding always returned "mac-roman" regardless of the setting of LANG, so this wasn't a problem in py3k (or 3.0.x builds) up through 3.1rc1. I can reproduce it on current py3k a

[issue6377] distutils compiler switch ignored

2009-07-08 Thread Tarek Ziadé
Tarek Ziadé added the comment: I'll set back the compiler attribute when compiler_obj is set too, so third-party code will be able to work with it as before. The current code will deprecate this usage, by displaying a deprecation warning: - if the compiler is set to anything else than a strin

[issue4660] multiprocessing.JoinableQueue task_done() issue

2009-07-08 Thread Brian
Brian added the comment: Cool., let me know if there is anything I can do to help. On Mon, Jun 29, 2009 at 7:46 AM, Jesse Noller wrote: > > Jesse Noller added the comment: > > I'm leaning towards the properly protecting JoinableQueue.put() fix, I'm > not a terribly big fan of removing error c

[issue6434] buffer overflow in Zipfile when wrinting more than 2gig file

2009-07-08 Thread segfault42
segfault42 added the comment: yes it's zinfo.file_size which is bigger than the long specify in the struct.pack There's must have a solution with the extra header because a lot of tools can zip big file and these zip file can be open by zipfile.py it's easy to reproduice with a big file of 3

[issue6441] Tkinter cannot find *64 bit* Tcl/Tk on Mac OS X

2009-07-08 Thread Kevin Walzer
Changes by Kevin Walzer : -- nosy: +wordtech ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-08 Thread Philipp
Changes by Philipp : -- nosy: +Phil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailm

[issue6377] distutils compiler switch ignored

2009-07-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Roumen Petrov wrote: > Roumen Petrov added the comment: > > Trunk may be is not affected. I successfully cross-compile with GNU > compiler for windows (see issue 3871). It is affected in the sense that .compile was changed to .compile_obj and that change

[issue6377] distutils compiler switch ignored

2009-07-08 Thread Roumen Petrov
Roumen Petrov added the comment: Trunk may be is not affected. I successfully cross-compile with GNU compiler for windows (see issue 3871). -- nosy: +rpetrov ___ Python tracker _

[issue6439] Demo/embed/demo.c use of PySys_SetArgv() is invalid

2009-07-08 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue6377] distutils compiler switch ignored

2009-07-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Marc-Andre Lemburg wrote: > Tarek, the .compiler attribute is needed by bdist_ext, so cannot just be > removed or renamed to .compiler_obj. There's a lot of bdist_ext > distutils code out there relying on having the .compiler object available. Sorry, the ab

[issue6377] distutils compiler switch ignored

2009-07-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Added Python 2.7 since it fails there as well. -- versions: +Python 2.7 ___ Python tracker ___ _

[issue6377] distutils compiler switch ignored

2009-07-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Note that the config command also uses a .compiler instance for actually doing work, rather than as command option. -- ___ Python tracker __

[issue6377] distutils compiler switch ignored

2009-07-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Tarek, the .compiler attribute is needed by bdist_ext, so cannot just be removed or renamed to .compiler_obj. There's a lot of bdist_ext distutils code out there relying on having the .compiler object available. A much better fix would be to map the option

[issue6422] timeit called from within Python should allow autoranging

2009-07-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would like to look at this in context of all the other proposed build- outs to timeit. -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___

[issue6377] distutils compiler switch ignored

2009-07-08 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: It looks like this change may have broken some parts of distutils. For example, Twisted's setup.py now produces this output when running the build_ext command: $ ~/Projects/python/trunk/python setup.py build_ext running build_ext Traceback (most recent ca

[issue6399] Error reporting by logging.config.fileConfig()

2009-07-08 Thread Mike
Mike added the comment: Hi Vinay, I will bow to your greater expertise on this and will let this go. It looks like it will be far more easier and robust just to invent my own logging config file format and read it myself. Thanks for your help. Mike. -- status: open -> closed __

[issue6422] timeit called from within Python should allow autoranging

2009-07-08 Thread Scott David Daniels
Changes by Scott David Daniels : -- keywords: +patch Added file: http://bugs.python.org/file14472/timeit.patch ___ Python tracker ___ _

[issue1008086] socket.inet_aton returns 8 bytes on LP64 platforms

2009-07-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Ping? This has been merged to py3k with r69560 and is present in 3.1, what about 2.6? -- nosy: +amaury.forgeotdarc ___ Python tracker _

[issue6441] Tkinter cannot find *64 bit* Tcl/Tk on Mac OS X

2009-07-08 Thread Adam Ginsburg
Adam Ginsburg added the comment: Sorry Ronald, I had misinterpreted your last message. Look at these posts: http://buffalothedestroyer.blogspot.com/2009/07/installing-64-bit-tcltk-on-mac-os-x.html http://www.nabble.com/Error-compiling-tk-8.5.7-on-Mac-OS-X-10.5-td23790967.html or try this scrip

[issue6441] Tkinter cannot find *64 bit* Tcl/Tk on Mac OS X

2009-07-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: Adam: where can I download a 64-bit version of Tcl/Tk? -- ___ Python tracker ___ ___ Python-bugs-li

[issue6441] Tkinter cannot find *64 bit* Tcl/Tk on Mac OS X

2009-07-08 Thread Adam Ginsburg
New submission from Adam Ginsburg : While it is possible to compile 64 bit python on Mac OS X, the default tcl/tk is NOT 64 bit. If you do install a 64 bit version of tcl/tk, python still will not find it - lines 1503-1515 prevent it: if 'x86_64' in archs or 'ppc64' in archs:

[issue6440] 2to3: convert deprecated string.maketrans to str.maketrans

2009-07-08 Thread Eric Eisner
New submission from Eric Eisner : string.maketrans has been deprecated in 3.x in favor of the more specific bytes.maketrans and str.maketrans (see issue5675). It would be nice if 2to3 would automatically translate this to one of those two (probably str.maketrans). I briefly looked at lib2to3/fix

[issue6439] Demo/embed/demo.c use of PySys_SetArgv() is invalid

2009-07-08 Thread Campbell Barton
Changes by Campbell Barton : -- type: -> compile error ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue6439] Demo/embed/demo.c use of PySys_SetArgv() is invalid

2009-07-08 Thread Campbell Barton
New submission from Campbell Barton : in python 3.2 (current rev 73893) Demo/embed/demo.c passes a 'char **' to PySys_SetArgv rather then a 'wsize_t **' Im also confused as to how this conversion should be made in a portable way, without copying some farily large static functions from python's c

[issue5329] os.popen2 and os.popen3 in python 2.6 incompatible with os.popen* in python 2.5

2009-07-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The test is the proof the the regression, and shows the change in behavior and the purpose of the development. There happens to be a test for os.popen3 (in Lib/test/test_popen2.py) which passes a list; this one at least passes. os.popen3() accepts a seque

[issue6431] Fraction fails equality test with a user-defined type

2009-07-08 Thread Mark Dickinson
Mark Dickinson added the comment: A good solution should ensure that all 6 comparison operators behave in the same way for the same input types: that is, if x == y returns NotImplemented for some particular Python objects x and y, then x < y, x <= y, etc. should also return NotImplemented, a

[issue6422] timeit called from within Python should allow autoranging

2009-07-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: You can still upload available patches to this tracker. -- nosy: +amaury.forgeotdarc ___ Python tracker ___ __

[issue1448934] urllib2+https+proxy not working

2009-07-08 Thread Senthil
Changes by Senthil : -- assignee: -> orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1448934] urllib2+https+proxy not working

2009-07-08 Thread Senthil
Senthil added the comment: I noticed this one yesterday. There is a similar issue Issue1424152, the fix for which is available in Py2.7. Would you try to that patch? -- versions: +Python 3.1, Python 3.2 ___ Python tracker

[issue1448934] urllib2+https+proxy not working

2009-07-08 Thread Peter Funk
Peter Funk added the comment: I stumbled about this here because of testing the Ubuntuone project: http://en.oreilly.com/oscon2009/public/schedule/detail/8843 The client for the ubuntuone cloud computing suffers from being unable to connect through a HTTPS proxy. May be some of the folks at C

[issue6434] buffer overflow in Zipfile when wrinting more than 2gig file

2009-07-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I don't see how it can be a buffer overflow. Or is it an exception raised by the struct.pack function? -- nosy: +amaury.forgeotdarc ___ Python tracker ___

[issue6438] cygwincompiler regular expressions broken

2009-07-08 Thread Tarek Ziadé
New submission from Tarek Ziadé : The regular expressions used in distutils to build a extension using the mingw32 compiler are messed up because they try to work with bytes (since Popen behavior changed) using string patterns. I have to cleanup these regular expressions before any new 3.x relea

[issue5329] os.popen2 and os.popen3 in python 2.6 incompatible with os.popen* in python 2.5

2009-07-08 Thread Max Bowsher
Max Bowsher added the comment: With or without tests, this is a regression from Python 2.5 - shouldn't something be done about that? -- ___ Python tracker ___ ___

[issue5329] os.popen2 and os.popen3 in python 2.6 incompatible with os.popen* in python 2.5

2009-07-08 Thread Max Bowsher
Changes by Max Bowsher : -- nosy: +maxb ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue6395] Infinite Recursion during Unpickling a codecs Object

2009-07-08 Thread ThomasH
ThomasH added the comment: Sounds good to me. The main intention of this bug is not to make codecs objects pickleable by all means (I don't know if this would be sensible and/or possible), but at least to have them degrade gracefully during pickling, particularly without infinite recursion. I've

[issue6437] Personal invitation from Manas

2009-07-08 Thread Mark Dickinson
Changes by Mark Dickinson : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue6437] Personal invitation from Manas

2009-07-08 Thread Manas
http://www.w3.org/TR/html4/strict.dtd";> UNYK If you are not able to click these links, click the following: « Show content » and try again. E-mail sent 7/8/2009 3:57:22 AM, by Manas

[issue6426] imaplib.IMAP4 "command illegal in this state" is unhelpful error message

2009-07-08 Thread Sjoerd
Sjoerd added the comment: See http://bugs.python.org/issue1605192 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue6425] imaplib.IMAP4.fetch() is missing documentation for message_set parameter

2009-07-08 Thread Sjoerd
Sjoerd added the comment: Thanks, I missed that. I only read the documentation for the methods. -- ___ Python tracker ___ ___ Python-b

[issue6431] Fraction fails equality test with a user-defined type

2009-07-08 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks. Could you provide some tests? (If you don't have time then that's fine: I'll probably get to this eventually, but it might take a while...) -- assignee: -> marketdickinson priority: -> normal stage: needs patch -> test needed

[issue2931] optparse: various problems with unicode and gettext

2009-07-08 Thread Alexey Shamrin
Alexey Shamrin added the comment: More than a year passed since I reported this... Could someone suggest how to move this forward? If needed, I can try to improve patch, test or description of this issue. Should I, for example, split this into separate issues? -- __