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

2009-11-08 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

[issue7287] import hook demo does not work

2009-11-08 Thread Baptiste Lepilleur
New submission from Baptiste Lepilleur b...@users.sourceforge.net: 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

[issue7281] copysign() with NaN arguments on OpenSolaris

2009-11-08 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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.

[issue3001] RLock's are SLOW

2009-11-08 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: rlock4.patch looks correct and pass test_threading.py tests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3001 ___

[issue3475] _elementtree.c import can fail silently

2009-11-08 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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 rep...@bugs.python.org

[issue3475] _elementtree.c import can fail silently

2009-11-08 Thread Fredrik Lundh
Fredrik Lundh fred...@effbot.org 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

[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 pit...@free.fr added the comment: The patch looks ok to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6233 ___ ___

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

2009-11-08 Thread Brett Cannon
Brett Cannon br...@python.org 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 rep...@bugs.python.org

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

2009-11-08 Thread Brett Cannon
New submission from Brett Cannon br...@python.org: 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.

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

2009-11-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2009-11-08 Thread Alan Gauld
New submission from Alan Gauld alan.ga...@btinternet.com: 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

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

2009-11-08 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r76156. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7289

[issue1294] Management of KeyboardInterrupt in cmd.py

2009-11-08 Thread Ilya Sandler
Ilya Sandler ilya.sand...@gmail.com 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

[issue6986] _json crash on scanner/encoder initialization error

2009-11-08 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2009-11-08 Thread Brett Cannon
Brett Cannon br...@python.org 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 rep...@bugs.python.org http://bugs.python.org/issue7288

[issue6986] _json crash on scanner/encoder initialization error

2009-11-08 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file15291/json-crash-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6986 ___

[issue6986] _json crash on scanner/encoder initialization error

2009-11-08 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue3999] Real segmentation fault handler

2009-11-08 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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.

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

2009-11-08 Thread Douglas Shawhan
Douglas Shawhan doug.shaw...@gmail.com added the comment: Fair enough. Thanks. On Fri, Nov 6, 2009 at 5:45 PM, Bob Ippolito rep...@bugs.python.org wrote: Bob Ippolito b...@redivi.com added the comment: The json module departs slightly from the spec in that it will allow you to consume and

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

2009-11-08 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: 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,

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

2009-11-08 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: Added file: http://bugs.python.org/file15295/UnboundLocalError-faq.rst ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7290 ___

[issue7291] urllib2 cannot handle https with proxy requiring auth

2009-11-08 Thread Tatsuhiro Tsujikawa
New submission from Tatsuhiro Tsujikawa tsujik...@gp.hitachi.co.jp: 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

[issue7292] Multiprocessing Joinable race condition?

2009-11-08 Thread Jonathan
New submission from Jonathan jonat...@kc8onw.net: 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

[issue7291] urllib2 cannot handle https with proxy requiring auth

2009-11-08 Thread Tatsuhiro Tsujikawa
Tatsuhiro Tsujikawa tsujik...@gp.hitachi.co.jp 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

[issue7293] test_msvc9compiler test_reg_class failure on new Windows box

2009-11-08 Thread David Bolen
New submission from David Bolen db3l@gmail.com: 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