[issue1031213] Use correct encoding for printing SyntaxErrors

2007-10-11 Thread atsuo ishimoto
atsuo ishimoto added the comment: Sorry for insufficient comment. When a codec raised an exception, I think the exception should be reported. Otherwise, user cannot know why Python prints broken line of code. Should we silently clear the exception raised by codecs, or print a message such

[issue1031213] Use correct encoding for printing SyntaxErrors

2007-10-11 Thread Martin v. Löwis
Martin v. Löwis added the comment: Should we silently clear the exception raised by codecs, or print a message such as Codec raised an exception while processing compile error. ? Can you create a test case that triggers that specific problem? Regards, Martin

[issue1031213] Use correct encoding for printing SyntaxErrors

2007-10-11 Thread atsuo ishimoto
atsuo ishimoto added the comment: Codecs would hardly ever raises exception here. Usually, exception raised here would be a MemoryError. The unicode string we are trying to encode is just decoded by same codec. If codec raises exception other than MemoryError, the codec will likely have

[issue1261] PEP 3137: make bytesobject.c methods use PEP 3118 buffer API

2007-10-11 Thread Gregory P. Smith
New submission from Gregory P. Smith: This makes all existing bytesobject.c methods use the buffer API rather than explicitly requiring bytes objects as input. It also fixes input to append() and remove() that was not strict enough and improves a few unit tests in that area. NOTE: this patch

[issue1262] IDLE does not start if windows environment variable containing 'German Umlaute: äöü' exists

2007-10-11 Thread Reto Wehrli
New submission from Reto Wehrli: C:\devtools\Python30\Lib\idlelibset ... eRoomOfflineFiles=Z:\Documents and Settings\tgdwere3\My Documents\eRoom Dateien für die Offline-Bearbeitung\ ... C:\devtools\Python30\Lib\idlelib..\..\python.exe idle.pyw object : UnicodeDecodeError('utf8',

[issue1263] PEP 3137 patch - str8/str comparison should return false

2007-10-11 Thread Thomas Lee
New submission from Thomas Lee: The main patch - while exactly what is needed to make str8/str equality checks return False - breaks a bunch of tests due to PyString_* still being used elsewhere when it should be using PyUnicode. The second patch modifies structmember.c to use PyUnicode_* where

[issue1263] PEP 3137 patch - str8/str comparison should return false

2007-10-11 Thread Thomas Lee
Changes by Thomas Lee: __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1263 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1263] PEP 3137 patch - str8/str comparison should return false

2007-10-11 Thread Thomas Lee
Thomas Lee added the comment: Oops - use unicode-string-eq-false-r3.patch, not unicode-string-eq-false-r2.patch. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1263 __Index: Objects/unicodeobject.c

[issue1264] __file__ and co_filename as unicode

2007-10-11 Thread Christian Heimes
New submission from Christian Heimes: This is a *preliminary* patch for __file__ and co_filename which decodes char* / PyString using the FS default encoding. I'm still working on it. -- components: Interpreter Core files: py3k_file_fsenc.patch messages: 56345 nosy: tiran severity:

[issue1261] PEP 3137: make bytesobject.c methods use PEP 3118 buffer API

2007-10-11 Thread Guido van Rossum
Changes by Guido van Rossum: -- assignee: - gvanrossum nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1261 __ ___ Python-bugs-list mailing list

[issue1260] PEP 3137: Remove the buffer API from PyUnicode

2007-10-11 Thread Guido van Rossum
Changes by Guido van Rossum: -- assignee: - gvanrossum nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1260 __ ___ Python-bugs-list mailing list

[issue1263] PEP 3137 patch - str8/str comparison should return false

2007-10-11 Thread Guido van Rossum
Changes by Guido van Rossum: -- assignee: - gvanrossum nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1263 __ ___ Python-bugs-list mailing list

[issue1031213] Use correct encoding for printing SyntaxErrors

2007-10-11 Thread Guido van Rossum
Guido van Rossum added the comment: There are tons of situations where such an exception will be suppressed, ofr better or for worse. I don't think this one deserves such a radical approach. On 10/11/07, atsuo ishimoto [EMAIL PROTECTED] wrote: atsuo ishimoto added the comment: Codecs would

[issue1265] pdb bug with with statement

2007-10-11 Thread Guido van Rossum
Changes by Guido van Rossum: -- nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1265 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1266] segfault in curses when calling redrawwin() before refresh()

2007-10-11 Thread Thorben
New submission from Thorben: attached file makes python 2.5.1 segfault -- components: Library (Lib) files: curses-01.py messages: 56348 nosy: Thorben severity: critical status: open title: segfault in curses when calling redrawwin() before refresh() type: crash versions: Python 2.5

[issue1203] ctypes doesn't work on Mac with --disable-toolbox-glue

2007-10-11 Thread Thomas Heller
Thomas Heller added the comment: IMO os.uname() is preferable. Committed as SVN rev 58415 in trunk. Thanks. -- assignee: - theller resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1203

[issue1263] PEP 3137 patch - str8/str comparison should return false

2007-10-11 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- keywords: +patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1263 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1264] __file__ and co_filename as unicode

2007-10-11 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- keywords: +patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1264 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue756576] Recursion limit too high for MacOSX

2007-10-11 Thread Brett Cannon
Changes by Brett Cannon: -- status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue756576 ___ Python-bugs-list mailing list Unsubscribe:

[issue1267] Py3K cannot run as ``python -S``

2007-10-11 Thread Brett Cannon
New submission from Brett Cannon: If Py3K is executed without importing site, it fails horribly. This is because site.py sets __builtins__.open, sys.stdout, sys.stderr, and sys.stdin. The setting of sys.stderr is especially bad as exception printing requires sys.stderr, otherwise it reports

[issue1261] PEP 3137: make bytesobject.c methods

2007-10-11 Thread Gregory P. Smith
Changes by Gregory P. Smith: __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1261 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1261] PEP 3137: make bytesobject.c methods

2007-10-11 Thread Guido van Rossum
Guido van Rossum added the comment: Patch updated. It now implements the is*() methods for PyBytes. It moves common code into a shared bytes_ctype.c and .h file so that stringobject.c and bytesobject.c can share as much as possible. Did you move this into the stringlib subdirectory? That's

[issue1268] array unittest problems with UCS4 build

2007-10-11 Thread Christian Heimes
New submission from Christian Heimes: The array module is using a different typecode for unicode array depending on UCS2 or UCS4: #define Py_UNICODE_SIZE 4 #if Py_UNICODE_SIZE = 4 #define Py_UNICODE_WIDE #endif #ifdef Py_UNICODE_WIDE #define PyArr_UNI 'w' #define PyArr_UNISTR w #else #define

[issue1261] PEP 3137: make bytesobject.c methods

2007-10-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: Patch updated. It now implements the is*() methods for PyBytes. It moves common code into a shared bytes_ctype.c and .h file so that stringobject.c and bytesobject.c can share as much as possible. Did you move this into the stringlib subdirectory?

[issue1261] PEP 3137: make bytesobject.c methods

2007-10-11 Thread Gregory P. Smith
Changes by Gregory P. Smith: __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1261 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1261] PEP 3137: make bytesobject.c methods

2007-10-11 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- nosy: -gps __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1261 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1266] segfault in curses when calling redrawwin() before refresh()

2007-10-11 Thread Neal Norwitz
Neal Norwitz added the comment: What platform are you on? I can reproduce this with 2.5.1+ and trunk on Ubuntu. I can reproduce with a trivial C program that does the same thing. This could be a bug in the curses implementation. Or it could be misuse of the API. I don't know enough to

[issue1233] bsddb.dbshelve.DbShelf.append doesn't work

2007-10-11 Thread Neal Norwitz
Neal Norwitz added the comment: Gregory, could you take a look at this? -- assignee: - gregory.p.smith components: +Extension Modules -Library (Lib) nosy: +gregory.p.smith, nnorwitz __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1233

[issue1216] Python2.5.1 fails to compile under VC.NET2002 ( 7.0 )

2007-10-11 Thread Neal Norwitz
Neal Norwitz added the comment: Martin, it looks like you made some changes in rev 46064. Can you suggest anything? -- assignee: - loewis components: +Extension Modules nosy: +loewis, nnorwitz __ Tracker [EMAIL PROTECTED]