[issue4652] IDLE does not work with Unicode

2009-11-04 Thread Jean-Christophe Helary
Jean-Christophe Helary added the comment: I've installed Python 3.1.1 on OSX today. 1) When I use the Japanese input from OSX, IDLE interprets any character I attempt to type as a space. 2) When I paste a Japanese string from a different place, it is correctly handled. For ex: >>> print('ここ')

[issue7257] Improve documentation of list.sort and sorted()

2009-11-04 Thread Ole Laursen
Ole Laursen added the comment: OK, thanks! :) Sorry about the unintended nosy list removal, my browser got me there. -- ___ Python tracker ___ __

[issue7261] Document 2.x -> 3.x round changes in "Whats New" documents.

2009-11-04 Thread Mark Dickinson
New submission from Mark Dickinson : The round builtin function changed in three fairly significant ways between 2.x and 3.x: (1) In 2.x, halfway cases are rounded using the round-half-away-from-zero rule, while in 3.x they're rounded using round-half-to-even. (2) The single argument ve

[issue7261] Document 2.x -> 3.x round changes in "What's New" documents.

2009-11-04 Thread Mark Dickinson
Changes by Mark Dickinson : -- title: Document 2.x -> 3.x round changes in "Whats New" documents. -> Document 2.x -> 3.x round changes in "What's New" documents. ___ Python tracker _

[issue7261] Document 2.x -> 3.x round changes in "What's New" documents.

2009-11-04 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: georg.brandl -> mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue7224] One obvious way to do interning

2009-11-04 Thread Nick Coghlan
Nick Coghlan added the comment: If the idea is to create the "one obvious way" for interning, calling the method and corresponding C function "intern" isn't painting a bikeshed, it's meeting the design spec :) Adding a new method also avoids a whole host of issues with the Set ABC. --

[issue7262] codecs.open() + eol (windows)

2009-11-04 Thread shamilbi
New submission from shamilbi : different eol when writing to fp = codecs.open(.., 'w', 'cp866') (windows, python-2.6.4) def write(fp): fp.write("""\ a """) # eol=0d0a (windows, python-2.6.4) with open('0d0a.tmp', 'w') as fp: write(fp) # eol=0d0a (windows, python-2.6.4) with codecs.open

[issue7206] 64 bit python fails on Windows 7

2009-11-04 Thread Carey
Carey added the comment: yes, please do -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue7224] One obvious way to do interning

2009-11-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Nov 4, 2009 at 9:46 AM, Nick Coghlan wrote: > > Nick Coghlan added the comment: > > If the idea is to create the "one obvious way" for interning, calling > the method and corresponding C function "intern" isn't painting a > bikeshed, it's meeting

[issue7217] IDLE Subprocess Startup Error {Solved}

2009-11-04 Thread ali
ali added the comment: {Solved} Thanks for following up Amaury But my problem was solved yesterday. There was a few programs in the main python directory which I didn't want to delete, so I moved them to another directory and manually deleted C:\Python26 and then restarted my computer. After ins

[issue7263] Fix set.intersection docstring

2009-11-04 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : """ intersection(...) Return the intersection of two sets as a new set. (i.e. all elements that are in both sets.) """ Is incorrect because set.intersection takes two or more sets. Attached patch changes that to """ intersection(...)

[issue7263] Fix set.intersection docstring

2009-11-04 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: georg.brandl -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue7250] wsgiref.handlers.CGIHandler caches os.environ, leaking info between requests

2009-11-04 Thread Phillip J. Eby
Phillip J. Eby added the comment: I've forwarded the suggested fix to the GAE team; it is to add this line: os_environ = {} # Handle GAE and other multi-run CGI use cases to the class body of CGIHandler. This should also be done in the Python stdlib. Btw, this fix can also be applied

[issue7251] Mark expected failures of test_math, test_cmath and test_round as such.

2009-11-04 Thread Skip Montanaro
Skip Montanaro added the comment: For 2.6.4 I get a test_float failure on Solaris as well: test test_float failed -- Traceback (most recent call last): File "/home/tuba/skipm/src/python/Python-2.6.4/Lib/test/test_float.py", line 765, in test_roundtrip self.identical(-x, roundtrip(-x)) File

[issue7217] IDLE Subprocess Startup Error {Solved}

2009-11-04 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue7262] codecs.open() + eol (windows)

2009-11-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The docs say:: Files are always opened in binary mode, even if no binary mode was specified. This is done to avoid data loss due to encodings using 8-bit values. This means that no automatic conversion of '\n' is done on reading and writing. But t

[issue7211] select module - kevent ident field 64 bit issue

2009-11-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: For me, the patch is worth trying out on the buildbots - to see if there are any configuration problems we might have overlooked. -- ___ Python tracker

[issue6292] Fix tests to work with -OO

2009-11-04 Thread Brian Curtin
Brian Curtin added the comment: I've attached a patch against trunk (r76107) which I think implements more of what Antoine is looking for. It builds on Collin's patch but uses unittest.skipIf to skip tests which shouldn't be run with -OO. It also checks sys.flags.optimize in DocTestSuite and ret

[issue7262] codecs.open() + eol (windows)

2009-11-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Amaury Forgeot d'Arc wrote: > > Amaury Forgeot d'Arc added the comment: > > The docs say:: > Files are always opened in binary mode, even if no binary mode was > specified. This is done to avoid data loss due to encodings using > 8-bit values. This

[issue7144] imp.load_module in thread causes core dump on OSX 10.6

2009-11-04 Thread Adam Doherty
Adam Doherty added the comment: Hello: Having the same issues in a web app I've written. Tested with the default 2.5 and 2.6 on Snow Leopard and 2.5 on Ubuntu 8.04 (no problems under Linux) Replaced the default Python with 2.6.4 from python.org, my app no longer crashes. Hope it helps. -

[issue7264] test_threading_local sometimes hangs when run with -R

2009-11-04 Thread Antoine Pitrou
New submission from Antoine Pitrou : If I run something like: ./python -m test.regrtest -R3:2: test_threading_local Python sometimes hangs and I have to "kill -9" it. Running through gdb shows it gets stuck at the following point: /home/antoine/cpython/debug/Lib/threading.py (239): wait /hom

[issue7264] test_threading_local sometimes hangs when run with -R

2009-11-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: It turns out that the __del__ method in _threading_local.py tries to call threading.enumerate() which itself takes the _active_limbo_lock. The problem is that __del__ can be called at any point in time (because of the GC), including at a point where the same thr

[issue7264] test_threading_local sometimes hangs when run with -R

2009-11-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue7264] test_threading_local sometimes hangs when run with -R

2009-11-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 2.6, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list U

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

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

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

2009-11-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: I noticed you were using ftp.python.org in the example strings, but that service doesn't seem to be alive. I don't know if there's another public FTP-TLS server you could rely on...? -- ___ Python tracker

[issue7251] Mark expected failures of test_math, test_cmath and test_round as such.

2009-11-04 Thread Roumen Petrov
Roumen Petrov added the comment: May be one day python modules will deal with TANH_PRESERVES_ZERO_SIGN set by configure check. -- nosy: +rpetrov ___ Python tracker ___ __

[issue7211] select module - kevent ident field 64 bit issue

2009-11-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch was committed in r76108 (trunk) and r76111 (py3k) and didn't introduce any regression on the FreeBSD and OS X buildbots. Thanks! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___

[issue2499] Fold unary + and not on constants

2009-11-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Folding UNARY_POSITIVE was done by Raymond in r75601. -- nosy: +pitrou ___ Python tracker ___ ___ Py

[issue3754] minimal cross-compilation support for configure

2009-11-04 Thread Roumen Petrov
Changes by Roumen Petrov : Added file: http://bugs.python.org/file15260/python-trunk-20091104-CROSS.patch ___ Python tracker <http://bugs.python.org/issue3754> ___ ___

[issue3871] cross and native build of python for mingw32 with distutils

2009-11-04 Thread Roumen Petrov
Changes by Roumen Petrov : Added file: http://bugs.python.org/file15261/python-trunk-20091104-MINGW.patch ___ Python tracker <http://bugs.python.org/issue3871> ___ ___

[issue5774] _winreg.OpenKey() is documented with keyword arguments, but doesn't take them

2009-11-04 Thread Brian Curtin
Brian Curtin added the comment: Attached is a patch against trunk r76107 which fixes OpenKey to take keyword arguments as the documentation states. There is also a small fix to test_winreg - the third param to OpenKey on line 45 is the `res` positional param, which should always be zero accordin

[issue6509] re.py - encounter unexpected str-object

2009-11-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch nosy: +effbot stage: -> patch review Added file: http://bugs.python.org/file15263/parse_template.patch ___ Python tracker

[issue4199] add shorthand global and nonlocal statements

2009-11-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: critical -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue7264] test_threading_local sometimes hangs when run with -R

2009-11-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: How about defining this in threading.py: def _enumerate(): """Internal use only: enumerate() without the lock.""" return _active.values() + _limbo.values() And calling it from _threading_local instead of accessing _active and _limbo directly. --

[issue7264] test_threading_local sometimes hangs when run with -R

2009-11-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Good point. Here is a new patch. -- Added file: http://bugs.python.org/file15264/threading_local2.patch ___ Python tracker ___ _

[issue2499] Fold unary + and not on constants

2009-11-04 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue7206] 64 bit python fails on Windows 7

2009-11-04 Thread Rich Healey
Rich Healey added the comment: Download the debugging suite from http://www.microsoft.com/whdc/devtools/debugging/install64bit.mspx# Open windbg Press Ctrl + E to load an executable Select your python binary Step through by typing g in the text box at the bottom of the Command window. The appl