[issue1276] LookupError: unknown encoding: X-MAC-JAPANESE

2008-08-23 Thread Hye-Shik Chang
Hye-Shik Chang [EMAIL PROTECTED] added the comment: Committed patch cjkmactemporary.diff as r65988 in the py3k branch. I'll open another issue for cjkcodecs implementation of Mac codecs. -- resolution: - fixed status: open - closed ___ Python

[issue3649] IA5 Encoding should be in the default encodings

2008-08-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: You could start with utf_8.py, and of course replace the calls to codecs.utf_8_encode and codecs.utf_8_decode. - your ia5_encode follows this interface: http://docs.python.org/dev/library/codecs.html#codecs.Codec.encode - your

[issue3640] test_cpickle crash on AMD64 Windows build

2008-08-23 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Le samedi 23 août 2008 à 01:26 +, Mark Hammond a écrit : cpickle.patch does make test_cpickle pass for me. FWIW, find_recursionlimit.py now causes a segfault on 32 and 64bit Windows (the comments imply a MemoryError is expected there),

[issue3640] test_cpickle crash on AMD64 Windows build

2008-08-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Adapted the patch to python 3.0 Added file: http://bugs.python.org/file11228/cpickle-3.0.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3640

[issue3566] httplib persistent connections violate MUST in RFC2616 sec 8.1.4.

2008-08-23 Thread C. Scott Ananian
C. Scott Ananian [EMAIL PROTECTED] added the comment: FWIW, the following code works around the issue for me: class HTTPConnection(httplib.HTTPConnection): def request(self, method, url, body=None, headers={}): # patch upstream to recv() after we send, so that a closed #

[issue3623] _json: fix raise_errmsg(), py_encode_basestring_ascii() and linecol()

2008-08-23 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- priority: - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3623 ___ ___

[issue3643] Add more checks to testcapi

2008-08-23 Thread Daniel Diniz
Changes by Daniel Diniz [EMAIL PROTECTED]: -- nosy: +ajaksu2 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3643 ___ ___ Python-bugs-list mailing list

[issue3653] segfault calling sys.excepthook with non-Exception argument

2008-08-23 Thread Daniel Diniz
New submission from Daniel Diniz [EMAIL PROTECTED]: Calling sys.excepthook(1,'1',1) crashes 3.0: Python 3.0b3+ (py3k:65987, Aug 23 2008, 10:04:31) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2 Type help, copyright, credits or license for more information. import sys;

[issue3653] segfault calling sys.excepthook with non-Exception argument

2008-08-23 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- keywords: +needs review priority: - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3653 ___

[issue3601] test_unicode.test_raiseMemError fails in UCS4

2008-08-23 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: This patch is ok on both UCS2 and UCS4 builds (on 32-bit machines). Someone should test it on a 64-bit machine. -- keywords: +needs review, patch Added file: http://bugs.python.org/file11230/memerror2.patch

[issue3643] Add more checks to testcapi

2008-08-23 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Still, _testcapi is built even for non-debug builds, so it is a gratuitous way for bad code to crash or internally invalidate a Python interpreter, so this should be treated like a bugfix. -- nosy: +georg.brandl priority: normal - high

[issue3653] segfault calling sys.excepthook with non-Exception argument

2008-08-23 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Patch looks good. -- nosy: +georg.brandl ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3653 ___ ___

[issue3653] segfault calling sys.excepthook with non-Exception argument

2008-08-23 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Ok. Applied in r65998. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3653

[issue3654] Duplicated test name in regex test script

2008-08-23 Thread Matthew Barnett
New submission from Matthew Barnett [EMAIL PROTECTED]: The regex test script test_re.py has 2 tests called 'test_ignore_case'. -- components: Tests messages: 71813 nosy: mrabarnett severity: normal status: open title: Duplicated test name in regex test script versions: Python 2.5

[issue3643] Add more checks to testcapi

2008-08-23 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Fair enough. Fixed in r66000 (trunk) and r66001 (py3k). -- resolution: - fixed status: open - closed versions: +Python 2.6, Python 3.0 -Python 2.7, Python 3.1 ___ Python tracker [EMAIL

[issue3653] segfault calling sys.excepthook with non-Exception argument

2008-08-23 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: The patch should probably used PyErr_Format() followed by PyErr_WriteUnraisable(). -- nosy: +pitrou ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3653

[issue3653] segfault calling sys.excepthook with non-Exception argument

2008-08-23 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Attaching new patch... Added file: http://bugs.python.org/file11231/use_unraiseable.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3653 ___

[issue3655] latexwriter: \footnotemark can only take numbers as arguments

2008-08-23 Thread Pauli Virtanen
New submission from Pauli Virtanen [EMAIL PROTECTED]: LaTeXTranslator.visit_footnote_reference generates improper Latex if the footnote marker given is not a number. This will result in a Latex error if the RST document contains footnotes where the marker is not a number. The problem is that

[issue874900] threading module can deadlock after fork

2008-08-23 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: This is also causing hangs in 2.5. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue874900 ___ ___

[issue3651] eval() leaks 1 reference every time

2008-08-23 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: Ignoring the question of whether owning the reference is the right thing or not, the patch looks fine, although I don't see a reason for the decrements to not be Py_DECREF since the function calls just won't even happen if the object that the

[issue3642] Objects/obmalloc.c:529: warning: comparison is always false due to limited range of data type

2008-08-23 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: There is no patch here, so undoing the needs review flag. -- keywords: -needs review nosy: +brett.cannon ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3642

[issue3651] eval() leaks 1 reference every time

2008-08-23 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Hi, Making Py_buffer INCREF the original object is IMO the right thing to do, because in most cases letting the original object disappear means the memory region will become invalid as well. If you don't want the INCREF, you can pass NULL as

[issue2351] Using __(get|set|del)slice__ needs a Py3K warning

2008-08-23 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: I reviewed the patch and made some changes (which I uploaded). Mostly changed the punctuation of the warning, made sure that PyErr_WarnPy3k() was used for all cases, and simplified the code for the test. Assigning to Benjamin for him to decide

[issue2351] Using __(get|set|del)slice__ needs a Py3K warning

2008-08-23 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Those changes are great; thanks for the review! Are you happy enough with it to let me apply? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2351 ___

[issue874900] threading module can deadlock after fork

2008-08-23 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: it passes on release25-maint for me on linux. i don't see it hanging in any of the 2.5 buildbots. looks like your r66003 change was a decent fix for windows judging by the buildbot. (fwiw, that test you patched in 66003 should probably use

[issue3637] 2to3 refactoring

2008-08-23 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- keywords: +needs review ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3637 ___ ___ Python-bugs-list

[issue3656] unicode encoding has lots of leaks of bytes

2008-08-23 Thread Neal Norwitz
New submission from Neal Norwitz [EMAIL PROTECTED]: Some of these leaks reported by valgrind are likely duplicates. I don't know how many individual cases of these leaks there are. 11,119 bytes in 14 blocks are possibly lost in loss record 86 of 119 realloc (vg_replace_malloc.c:429)

[issue3656] unicode encoding has lots of leaks of bytes

2008-08-23 Thread Neal Norwitz
Neal Norwitz [EMAIL PROTECTED] added the comment: There are also tons of reference leaks when running regrtest.py with -R. Even code as simple as this leaks: eval('1') 1 [40731 refs] eval('1') 1 [40732 refs] eval('1') 1 [40733 refs] eval('1') 1 [40734 refs] eval('1') 1 [40735 refs]

[issue1346] Error using from OpenGL.GLUT import *

2008-08-23 Thread Igor do Valle Campbell
Igor do Valle Campbell [EMAIL PROTECTED] added the comment: You have to put the glut32.dll in Windows/system32 folder. You can get glut32.dll here: http://www.xmission.com/~nate/glut/glut-3.7.6-bin.zip extract the glut32.dll to the Windows/system32 folder and voila. -- nosy:

[issue3651] eval() leaks 1 reference every time

2008-08-23 Thread Neal Norwitz
Neal Norwitz [EMAIL PROTECTED] added the comment: This is a partial (or complete) duplicate of 3656. -- nosy: +nnorwitz ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3651 ___

[issue3656] unicode encoding has lots of leaks of bytes

2008-08-23 Thread Neal Norwitz
Neal Norwitz [EMAIL PROTECTED] added the comment: This is a partial (or complete) duplicate of 3651. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3656 ___ ___