[issue7293] test_msvc9compiler test_reg_class failure on new Windows box

2009-11-08 Thread David Bolen
New submission from David Bolen : This is a pretty tiny bug.. The test_reg_class test in test_msvc9compiler.py assumes that there is a Notepad registry key on Windows systems. That appears to be false until Notepad is run the very first time. I ran into this setting up a build slave VM, where

[issue7291] urllib2 cannot handle https with proxy requiring auth

2009-11-08 Thread Tatsuhiro Tsujikawa
Tatsuhiro Tsujikawa added the comment: I created a patch. I added additional argument 'headers' to HTTPConnection::set_tunnel() method, which is a mapping of HTTP headers to sent with CONNECT method. Since authorization credential is already set to Request object, in AbstractHTTPHandler::do_open

[issue7292] Multiprocessing Joinable race condition?

2009-11-08 Thread Jonathan
New submission from Jonathan : In multiprocessing.JoinableQueue when task_done is called self._unfinished_tasks.acquire(False) is called non-blocking. My program reliably crashes with the "task_done() called too many times" message. If I change the .acquire() call to True (blocking) then my pro

[issue7291] urllib2 cannot handle https with proxy requiring auth

2009-11-08 Thread Tatsuhiro Tsujikawa
New submission from Tatsuhiro Tsujikawa : urllib2 cannot handle https with proxy requiring authorization. After https_proxy is set correctly, Python 2.6.4 (r264:75706, Oct 29 2009, 15:38:25) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import

[issue7290] Update 'how do I set a global variable' faq entry

2009-11-08 Thread R. David Murray
Changes by R. David Murray : Added file: http://bugs.python.org/file15295/UnboundLocalError-faq.rst ___ Python tracker ___ ___ Python-bugs-list

[issue7290] Update 'how do I set a global variable' faq entry

2009-11-08 Thread R. David Murray
New submission from R. David Murray : Someone else closed issue 7276, but I was thinking of doing so but wanted to include a pointer to the relevant documentation. I'm not sure where that documentation is, but I figured there ought to be a FAQ entry for it. And there is, sort of...the first two

[issue7274] json module apparently fails regression found at http://json.org/JSON_checker/test.zip.

2009-11-08 Thread Douglas Shawhan
Douglas Shawhan added the comment: Fair enough. Thanks. On Fri, Nov 6, 2009 at 5:45 PM, Bob Ippolito wrote: > > Bob Ippolito added the comment: > > The json module departs slightly from the spec in that it will allow you > to consume and produce documents that don't have an array or object >

[issue3999] Real segmentation fault handler

2009-11-08 Thread STINNER Victor
STINNER Victor added the comment: My idea was rejected on python-dev mailing list. But I'm unable to write a patch to dump a backtrace on segfault. Anyway it would be a complelty different patch (and so a different issue). So I prefer to close this (old) issue. -- status: open -> closed

[issue6986] _json crash on scanner/encoder initialization error

2009-11-08 Thread STINNER Victor
STINNER Victor added the comment: Oops, you forget json-crash-2.patch, the patch was completly wrong. Check the json-crash-3.patch. -- Added file: http://bugs.python.org/file15292/json-crash-3.patch ___ Python tracker

[issue6986] _json crash on scanner/encoder initialization error

2009-11-08 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file15291/json-crash-2.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue7288] Detect improper leading whitespace in C files for Vim

2009-11-08 Thread Brett Cannon
Brett Cannon added the comment: Ah nuts, you're right. I guess it will only work for starting with tabs when spaces are being used for the indentation. -- ___ Python tracker ___

[issue6986] _json crash on scanner/encoder initialization error

2009-11-08 Thread STINNER Victor
STINNER Victor added the comment: New version of my patch: * don't create file in Lib/json/tests/: add new tests in Lib/json/tests/test_speedups.py as asked by pitrou * use json.scanner.c_make_scanner and json.encoder.c_make_encoder in the test, instead of using directly the _json module

[issue1294] Management of KeyboardInterrupt in cmd.py

2009-11-08 Thread Ilya Sandler
Ilya Sandler added the comment: Is not this patch backward incompatible? E.g any cmd-based application which expects Ctrl-C to propagate to the top level will be broken by this patch. As for pdb, I don't think pdb will benefit from this patch: as I believe that pdb needs something along the li

[issue7289] bad import in redemo.py script in v3.1

2009-11-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r76156. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue7289] bad import in redemo.py script in v3.1

2009-11-08 Thread Alan Gauld
New submission from Alan Gauld : The Tkinter import in redemo.py in Tools/Scripts folder of the 3.1 distribution uses the old spelling of Tkinter. Changing it to lower case fixes it. I've just noticed there is a 3.2 listed, I haven't checked whether it's been fixed there but its not mentioned

[issue7288] Detect improper leading whitespace in C files for Vim

2009-11-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: As a non-Vim user, I don't really care, but lines beginning with spaces are valid if you want to indent by something smaller than a tab (this is common in comments). -- nosy: +pitrou ___ Python tracker

[issue7288] Detect improper leading whitespace in C files for Vim

2009-11-08 Thread Brett Cannon
New submission from Brett Cannon : With the proper detection for C files using either tabs or spaces now in there should also be proper highlighting when the wrong leading whitespace is used, e.g. if the file uses tabs then any lines with "^ +" should be flagged as wrong. -- assignee:

[issue5611] Auto-detect indentation in C source in vimrc

2009-11-08 Thread Brett Cannon
Brett Cannon added the comment: in r76154 for trunk and r76155 for py3k. Thanks for the help, guys! -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue6233] ElementTree (py3k) doesn't properly encode characters that can't be represented in the specified encoding

2009-11-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch looks ok to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3475] _elementtree.c import can fail silently

2009-11-08 Thread Fredrik Lundh
Fredrik Lundh added the comment: Note that "fail silently" is a bit of a misnomer - if the embedded import doesn't work, portions of the library will fail pretty loudly. Feel free to use some variation of the suggested patch, or just wait until the next upstream release gets imported (if eve

[issue3475] _elementtree.c import can fail silently

2009-11-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: For 2.5, this will not be fixed, as it is not security-critical. -- versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker __

[issue3001] RLock's are SLOW

2009-11-08 Thread STINNER Victor
STINNER Victor added the comment: rlock4.patch looks correct and pass test_threading.py tests. -- ___ Python tracker ___ ___ Python-bu

[issue7281] copysign() with NaN arguments on OpenSolaris

2009-11-08 Thread Stefan Krah
Stefan Krah added the comment: I hope this won't be getting too complex. :) Firstly, I agree that this is perhaps not a bug at all. I reported it because I seemed possible that Python2.x had a deliberate workaround for this issue which somehow got lost in 3.x. Secondly, I didn't mention that I

[issue7287] import hook demo does not work

2009-11-08 Thread Baptiste Lepilleur
New submission from Baptiste Lepilleur : The import hook demo in the source directory Python-3.1.1\Demo\imputil\knee.py fails to run correctly: Python 3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more informat

[issue7279] decimal.py: == and != comparisons involving NaNs

2009-11-08 Thread Mark Dickinson
Mark Dickinson added the comment: There's a second issue to consider here, which is that Python uses equality as specified by the == operator as the basic equivalence relation for set and dict membership tests. So as a general rule, an equality test between two objects of the same type shoul