[issue7856] cannot decode from or encode to big5 \xf9\xd8

2010-02-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: perky, what do you think? -- assignee: -> hyeshik.chang nosy: +hyeshik.chang ___ Python tracker ___ __

[issue7856] cannot decode from or encode to big5 \xf9\xd8

2010-02-04 Thread Xuefer x
Xuefer x added the comment: sure after enlighten by your url which is OBSOLETE see: http://www.unicode.org/Public/MAPPINGS/EASTASIA/ReadMe.txt i found http://unicode.org/charts/unihan.html then http://www.unicode.org/Public/UNIDATA/ then http://www.unicode.org/Public/UNIDATA/Unihan.zip in side t

[issue7856] cannot decode from or encode to big5 \xf9\xd8

2010-02-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: In particular, the Unicode consortium mapping table, now at http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/BIG5.TXT doesn't map f9d8 to anything; the current version of that table (in unihan.zip) has these mappings for U+88CF: U+88CF kCCCII

[issue7856] cannot decode from or encode to big5 \xf9\xd8

2010-02-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: That iconv supports it is not convincing, IMO. Do you have other sources (like tables in the web somewhere) that support your request? -- nosy: +loewis ___ Python tracker ___

[issue7856] cannot decode from or encode to big5 \xf9\xd8

2010-02-04 Thread Xuefer x
New submission from Xuefer x : using iconv: $ printf "\xf9\xd8" | iconv -f big5 -t utf-8 | xxd 000: e8a3 8f ... $ printf "\xe8\xa3\x8f" | iconv -f utf-8 -t big5 | xxd 000: f9d8 .. using python >>> print "\xf9\xd8".decod

[issue5680] Command-line arguments when running in IDLE

2010-02-04 Thread Gabriel Genellina
Gabriel Genellina added the comment: A different patch to solve the same issue. This one uses a standard tkSimpleDialog to prompt for the command line, and follows the directives found at the top of the source (only took 8 years to implement... not so bad :) ) XXX GvR Redesign this interface

[issue7853] on __exit__(), exc_value does not contain the exception.

2010-02-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r77983. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

[issue7847] Remove 'python -U' or document it

2010-02-04 Thread Georg Brandl
Georg Brandl added the comment: If you document -X, you should also document -J. -- nosy: +georg.brandl ___ Python tracker ___ ___ Pyt

[issue7728] test_timeout should use "find_unused_port" helper

2010-02-04 Thread Florent Xicluna
Florent Xicluna added the comment: Patch. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file16138/issue7728_timeout.diff ___ Python tracker __

[issue7853] on __exit__(), exc_value does not contain the exception.

2010-02-04 Thread Florent Xicluna
Florent Xicluna added the comment: Patch. -- keywords: +patch stage: test needed -> patch review Added file: http://bugs.python.org/file16137/issue7853_cm_exit.diff ___ Python tracker __

[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2010-02-04 Thread Zvezdan Petkovic
Zvezdan Petkovic added the comment: I forgot to add that the patch for 2.6.5 is based on: http://svn.python.org/view?rev=74970&view=rev -- ___ Python tracker ___

[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2010-02-04 Thread Zvezdan Petkovic
Zvezdan Petkovic added the comment: The readline-libedit-2.6.5.patch is attached. The patch was applied and python built in several configurations on Mac OS X 10.6 (Snow Leopard). There is no regression (details below). Can somebody else test on Mac OS X 10.5 (Leopard)? 32-bit == Config

[issue7853] on __exit__(), exc_value does not contain the exception.

2010-02-04 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Dino Viehland
Dino Viehland added the comment: Ahh, so it is in 2.7, apparently I was in a 2.6 enlistment. I've updated the 2.x patch to use the context manager as well. I've also switched to using assertTrue(x is True) and assertTrue(x is False) so that it's not checking precisely for the bool value base

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Dino Viehland
Changes by Dino Viehland : Added file: http://bugs.python.org/file16135/patch30.diff ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Dino Viehland
Changes by Dino Viehland : Added file: http://bugs.python.org/file16134/patch.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue7847] Remove 'python -U' or document it

2010-02-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'm +0 on such a change - I don't think it makes anything better (it will only cause more users asking what this is, why it was added, and demand that something should be done about it). Feel free to commit it, anyway. -- assignee: loewis -> barry

[issue4772] undesired switch fall-through in socketmodule.c

2010-02-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in all four branches, thank you. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue7851] WatchedFileHandler needs to be references as handlers.WatchedFileHandler in conf files

2010-02-04 Thread Vinay Sajip
Changes by Vinay Sajip : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue7851] WatchedFileHandler needs to be references as handlers.WatchedFileHandler in conf files

2010-02-04 Thread Vinay Sajip
Vinay Sajip added the comment: Fix checked into trunk (r77973). -- assignee: georg.brandl -> vinay.sajip ___ Python tracker ___ ___ Py

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Ezio Melotti
Ezio Melotti added the comment: For your purpose indeed assertTrue() is not appropriate, however assertEqual(x, True) works for several different x, including 1.0 or 1. Also assertRaises can be used as a context manager on 2.7 too. -- priority: -> normal stage: -> patch review _

[issue5673] Add timeout option to subprocess.Popen

2010-02-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I agree. Does subprocess.TimeoutExpired sound good? Yes. > It won't be possible with the current implementation to put the partial output > in the exception, because read blocks. Fair enough :) > I think call and check_call should clean up after themselve

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Dino Viehland
Dino Viehland added the comment: Ezio: I'm going to stick w/ assertEqual here as Michael points out these are different. In particular I want to make sure that you can assign any true value to the ctypes field but when you read it back you get True or False regardless of the value assigned.

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Dino Viehland
Changes by Dino Viehland : Added file: http://bugs.python.org/file16133/patch30.diff ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Dino Viehland
Dino Viehland added the comment: I'll switch to the context manager form in the 3.x branch - it looks like that's not available in the 2.x branch. -- ___ Python tracker ___

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Michael Foord
Michael Foord added the comment: Dino - if you use assertRaises as a context manager the exception is kept as an attribute on the context. You can make assertions about the exception after the with block has executed. -- ___ Python tracker

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Brian Curtin
Brian Curtin added the comment: Rather than calling QueryValue and using fail(...) if it doesn't throw, assertRaises(...) would do the trick. -- assignee: theller -> keywords: +needs review nosy: +brian.curtin, michael.foord priority: -> normal stage: -> patch review __

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Michael Foord
Michael Foord added the comment: Hmm... assertTrue(...) is semantically different from assertEqual(True, ...). -- ___ Python tracker ___ _

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Dino Viehland
Dino Viehland added the comment: The problem with assertRaises is I need to actually check the errno on the exception and assertRaises doesn't let me do that. -- ___ Python tracker

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Ezio Melotti
Ezio Melotti added the comment: Also assertEqual(..., True) can be replaced by assertTrue(...) (same for False and assertFalse). -- assignee: -> theller keywords: -needs review nosy: +ezio.melotti priority: normal -> stage: patch review -> ___ P

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Dino Viehland
Changes by Dino Viehland : -- type: -> behavior versions: +Python 3.2 Added file: http://bugs.python.org/file16132/patch30.diff ___ Python tracker ___ ___

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Dino Viehland
New submission from Dino Viehland : This adds new test cases for bugs reported by Thomas Heller against IronPython for ctypes and winreg: ctypes: the variant bool type isn't supported winreg: errno is not correctly set when QueryValue fails -- assignee: theller components: Windows

[issue7854] term paper

2010-02-04 Thread Brian Curtin
Changes by Brian Curtin : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/opti

[issue7854] term paper

2010-02-04 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Py

[issue7854] term paper

2010-02-04 Thread allisonlong
New submission from allisonlong : affordable http://www.term-paper.biz/custom-term-paper.html";>term paper writing services -- components: None messages: 98843 nosy: allisonlong severity: normal status: open title: term paper type: performance versions: Python 3.2 _

[issue5341] A selection of spelling errors and typos throughout source

2010-02-04 Thread Ezio Melotti
Changes by Ezio Melotti : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue5341] A selection of spelling errors and typos throughout source

2010-02-04 Thread Éric Araujo
Changes by Éric Araujo : Added file: http://bugs.python.org/file16130/fix-builtin_3.2.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5341] A selection of spelling errors and typos throughout source

2010-02-04 Thread Éric Araujo
Éric Araujo added the comment: Hello I fixed a few remaining misuses of “builtin” in the source. There is some diff noise due to reformatting paragraphs where the addition of the hyphen caused the line to get over 80 characters. Note that I didn’t check the use of “built-in”, for fear of hav

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-04 Thread Chris Rebert
Chris Rebert added the comment: Thanks to all for the copious feedback & suggestions, and R. David Murray for his superior docs writing skills! -- ___ Python tracker ___ ___

[issue7851] WatchedFileHandler needs to be references as handlers.WatchedFileHandler in conf files

2010-02-04 Thread R. David Murray
Changes by R. David Murray : -- nosy: +vinay.sajip priority: -> normal stage: -> needs patch type: -> behavior versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-04 Thread R. David Murray
R. David Murray added the comment: Merged as part of r77961 (2.6), r77962 (py3k), and r77963 (3.1). Print fixed for py3. -- stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue7728] test_timeout should use "find_unused_port" helper

2010-02-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can you provide a patch? -- keywords: +easy type: -> behavior ___ Python tracker ___ ___ Python-bug

[issue7848] copy.copy corrupts objects that return false value from __getstate__

2010-02-04 Thread R. David Murray
Changes by R. David Murray : -- priority: -> normal resolution: -> duplicate stage: -> committed/rejected superseder: -> deepcopy erroneously doesn't call __setstate__ if __getstate__ returns empty dict ___ Python tracker

[issue6827] deepcopy erroneously doesn't call __setstate__ if __getstate__ returns empty dict

2010-02-04 Thread R. David Murray
R. David Murray added the comment: At the very least the documentation should be updated to warn that cooperating __getstate__ and __setstate__ methods must make sure the state object can never take on a False value. -- ___ Python tracker

[issue6827] deepcopy erroneously doesn't call __setstate__ if __getstate__ returns empty dict

2010-02-04 Thread R. David Murray
R. David Murray added the comment: The documentation also says, "if the object defines both a __getstate__ and a __setstate__ method, the state object does not need to be a dictionary and the methods can do what they want." In issue 7848 (which I will close as a duplicate of this issue), the

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-04 Thread Eric Smith
Eric Smith added the comment: When merging to py3k, don't forget to modify the print statement to be a function. -- status: pending -> open ___ Python tracker ___ __

[issue7853] on __exit__(), exc_value does not contain the exception.

2010-02-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: No, it's also in 2.6. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue7853] on __exit__(), exc_value does not contain the exception.

2010-02-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: Has this behavior changed between 2.6 and 2.7? -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue7853] on __exit__(), exc_value does not contain the exception.

2010-02-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, it seems the exception isn't always normalized. -- nosy: +benjamin.peterson, pitrou ___ Python tracker ___ _

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-04 Thread Nick Coghlan
Nick Coghlan added the comment: Committed for 2.7 as r77959. Still needs to be merged to the other branches. -- resolution: -> accepted status: open -> pending ___ Python tracker _

[issue7848] copy.copy corrupts objects that return false value from __getstate__

2010-02-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +alexandre.vassalotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue5677] Serious interpreter crash and/or arbitrary memory leak using .read() on writable file

2010-02-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm, test_file.py is for the new IO library (backported from 3.x). You should use test_file2k.py for tests against the 2.x file object. Also, readinto() should take something such as a bytearray() as argument, not a string. -- versions: +Python 2.7

[issue5677] Serious interpreter crash and/or arbitrary memory leak using .read() on writable file

2010-02-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-04 Thread Nick Coghlan
Changes by Nick Coghlan : Removed file: http://bugs.python.org/file16098/subprocess.rst.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue5211] Fix complex type to avoid coercion in 2.7.

2010-02-04 Thread Mark Dickinson
Mark Dickinson added the comment: > Yes, that was what I was proposing. But as you point out, the new > behaviour wouldn't even match the behaviour of Python 3.x, so it really > wouldn't be a terribly useful change. Hmm. I take this back: if complex were made 'new-style' in 2.7, then it *wo

[issue5211] Fix complex type to avoid coercion in 2.7.

2010-02-04 Thread Mark Dickinson
Mark Dickinson added the comment: > As you pointed out in issue 3734, the patch is basically: > Yes, that's the essence of it. In addition, each of the functions implementing a complex special method would need to do its own argument conversion. (Compare the implementation of complex_add i

[issue5211] Fix complex type to avoid coercion in 2.7.

2010-02-04 Thread Mark Dickinson
Mark Dickinson added the comment: Blair: I don't think you'll have any problems getting the behaviour you in Python 3. For example: Python 3.2a0 (py3k:77952, Feb 4 2010, 10:56:12) [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin Type "help", "copyright", "credits" or "license" for mor

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-04 Thread Eric Smith
Eric Smith added the comment: I think this is an improvement to the existing docs, and should be committed. -- ___ Python tracker ___

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-04 Thread Chris Rebert
Changes by Chris Rebert : Removed file: http://bugs.python.org/file16109/subprocess.rst.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-04 Thread Chris Rebert
Chris Rebert added the comment: Okay, now if this could just get dev review... -- Added file: http://bugs.python.org/file16128/subprocess.rst.patch ___ Python tracker ___ ___

[issue4978] allow unicode keyword args

2010-02-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Maybe not. It's arguably a bug that adding unicode_literals breaks keyword arguments. Guido seems to (mostly) agree that it's a bug we just never got around to fixing. http://www.mail-archive.com/python-...@python.org/msg45346.html -- ___

[issue7847] Remove 'python -U' or document it

2010-02-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: This is really all I'm thinking about. -- keywords: +needs review, patch stage: -> patch review versions: +Python 2.6 Added file: http://bugs.python.org/file16127/7847.patch ___ Python tracker

[issue4978] allow unicode keyword args

2010-02-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Why backport? Isn't this a new feature? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue7848] copy.copy corrupts objects that return false value from __getstate__

2010-02-04 Thread Albertas Agejevas
Albertas Agejevas added the comment: This bug is a duplicate of issue6827, sorry. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2010-02-04 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue4978] allow unicode keyword args

2010-02-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: release blocker for 2.6.5 -- priority: -> release blocker ___ Python tracker ___ ___ Python-bugs-l

[issue7788] segfault when deleting from a list using slice with very big `step' value

2010-02-04 Thread Marcin Bachry
Marcin Bachry added the comment: I had odd problems matching line numbers reported by Windows compiler to actual sources, so I used "gcc -Wextra" to produce (even more) signedness warnings against Python 2.x r77957: listobject.c:132: warning: comparison between signed and unsigned integer ex

[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2010-02-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: release blocker for 2.6.5 -- priority: -> release blocker ___ Python tracker ___ ___ Python-bugs-l

[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2010-02-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: The readline-libedit-2.patch no longer applies against the 2.6 branch because of changes in setup.py since then. If this is fixed and the subsequent patch is reviewed and approved, then this can be landed for Python 2.6.5. -- __

[issue7853] on __exit__(), exc_value does not contain the exception.

2010-02-04 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file16126/case_contextmanager_exit.py ___ Python tracker ___ ___ Python-bugs-li

[issue7853] on __exit__(), exc_value does not contain the exception.

2010-02-04 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file16125/case_contextmanager_exit.py ___ Python tracker ___ ___ Python-bugs-

[issue7853] on __exit__(), exc_value does not contain the exception.

2010-02-04 Thread Florent Xicluna
New submission from Florent Xicluna : On __exit__(), the 3rd argument "exc_value" should contain the instance of the exception. But in most cases, it contains only the string representation of the exception. See attached test case. Same behavior for KeyError, AttributeError, RuntimeError, ...

[issue4978] allow unicode keyword args

2010-02-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Really trivial back port of r68805 from trunk. -- assignee: -> benjamin.peterson components: +Interpreter Core -Library (Lib) keywords: +needs review resolution: accepted -> stage: -> patch review status: closed -> open type: feature request -> beha

[issue4978] allow unicode keyword args

2010-02-04 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7852] [PATCH] Drop "Computer" from "Apple Computer" in plistlib

2010-02-04 Thread Wang Chun
New submission from Wang Chun : Apple's official utilities had been dropped the word "Computer". We should follow them. imac:~$ cat test.py __import__('plistlib').writePlist({}, 'test.plist') imac:~$ python test.py imac:~$ cat test.py __import__('plistlib').writePlist({}, 'test.plist') imac:~$