[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2008-10-06 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: At least my one unicode char is one space suggestion corrects the case of Western languages, and all messages with single-width characters. I'm not happy with this solution. ;-( Doesn't the exact width depend on the terminal

[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2008-10-06 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: Experimental patch was experimental, wcswidth(3) returns 1 for East Asian Ambiguous character. debian:~/python-dev/py3k# ./python /mnt/windows/a.py File /mnt/windows/a.py, line 3 ♪xÅx abc ^ should point 'c'. And another

[issue4052] Build on 2.6 on AIX 5.3 fails (syntax error / undeclared identifier subtract)

2008-10-06 Thread Gerard
New submission from Gerard [EMAIL PROTECTED]: I'm using an IBM compiler running in AIX 5.3. Compilation of Python 2.6 fails (see explanation below). Compilation of Python 2.5.2 is ok. /home/xyz/python/Python-2.6$ lslpp -L | grep vac vac.C 10.1.0.0C FIBM XL C

[issue2574] Add RFC 3768 SSM Multicast support to socket

2008-10-06 Thread T.Morin
T.Morin [EMAIL PROTECTED] added the comment: I've applied the patch to the release26-maint branch, and I was able to properly compile, run and do some basic testing of the result. Find attached a patch applying cleanly to SVN release26-maint branch. -- versions: +Python 2.6 -Python 2.5

[issue4051] use of TCHAR under win32

2008-10-06 Thread Ulrich Eckhardt
Ulrich Eckhardt [EMAIL PROTECTED] added the comment: Add a patch that fixes a warning. -- keywords: +patch Added file: http://bugs.python.org/file11708/Python-unicode-redefine-warning.0.patch ___ Python tracker [EMAIL PROTECTED]

[issue4053] str.split unintentionally strips char 'I' from the string

2008-10-06 Thread Govind
New submission from Govind [EMAIL PROTECTED]: I tried to process a text file (with UTF-8 encoding) which has contents like this: FILE=India asbds FILE=Indonasia ssgsds FILE=Africa DBGDGDFG When I use the below code: f = open(e:\\temp\\file.txt, 'r') lines = f.readlines() for line in

[issue4054] str.split unintentionally strips char 'I' from the string

2008-10-06 Thread Govind
New submission from Govind [EMAIL PROTECTED]: I tried to process a text file (with UTF-8 encoding) which has contents like this: FILE=India asbds FILE=Indonasia ssgsds FILE=Africa DBGDGDFG When I use the below code: f = open(e:\\temp\\file.txt, 'r') lines = f.readlines() for line in

[issue4053] str.split unintentionally strips char 'I' from the string

2008-10-06 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: Duplicate of issue4054. -- nosy: +haypo resolution: - duplicate status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4053 ___

[issue4054] str.split unintentionally strips char 'I' from the string

2008-10-06 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: It's not a bug. Please read the documentation of the split() method: http://docs.python.org/library/stdtypes.html#str.split If you want to get the value after =, use: value = line.split(FILE=, 1)[1] or: value = line[len('FILE='):] or:

[issue4040] ignored exceptions in generators (regression?)

2008-10-06 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: This is not specific to generators, this is due to the fact that a lot of recursion checks have been added all over the place. When an internal function designed to ignore exceptions (for example PyErr_GivenExceptionMatches()) encounters such a

[issue4018] for me installer problem on x64 Vista

2008-10-06 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Here is a patch that fixes the problem as proposed. An installer built with that patch is available from http://www.dcl.hpi.uni-potsdam.de/home/loewis/u/python-3.0.14158.msi -- keywords: +patch Added file:

[issue1597850] Cross compiling patches for MINGW

2008-10-06 Thread Luke Kenneth Casson Leighton
Luke Kenneth Casson Leighton [EMAIL PROTECTED] added the comment: ok. what's not explained, and isn't clear, is exactly whether you're supposed to - or even _capable_ of - cross-compiling the _entire_ python sourcecode base with mingw32, or whether you're supposed to get _just_ the python.exe

[issue4028] Problem compiling the multiprocessing module on sunos5

2008-10-06 Thread Jesse Noller
Changes by Jesse Noller [EMAIL PROTECTED]: -- assignee: - jnoller nosy: +jnoller priority: - normal versions: +Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4028 ___

[issue3876] multiprocessing does not compile on *BSD and potentialy other systems

2008-10-06 Thread Jesse Noller
Changes by Jesse Noller [EMAIL PROTECTED]: -- assignee: - jnoller nosy: +jnoller priority: - normal ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3876 ___

[issue3876] multiprocessing does not compile on systems which do not define sem_timedwait

2008-10-06 Thread Jesse Noller
Changes by Jesse Noller [EMAIL PROTECTED]: -- title: multiprocessing does not compile on *BSD and potentialy other systems - multiprocessing does not compile on systems which do not define sem_timedwait ___ Python tracker [EMAIL PROTECTED]

[issue1597850] Cross compiling patches for MINGW

2008-10-06 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: So what's the status of this? Who is still interested in seeing what patches considered? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1597850 ___

[issue3740] PEP 3121 --- module state is not nul-initalized as claimed in the PEP

2008-10-06 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Here is a patch that should fix this. -- keywords: +needs review, patch priority: critical - release blocker Added file: http://bugs.python.org/file11712/init.diff ___ Python tracker [EMAIL

[issue4018] for me installer problem on x64 Vista

2008-10-06 Thread Martin v. Löwis
Changes by Martin v. Löwis [EMAIL PROTECTED]: -- keywords: +needs review priority: normal - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4018 ___

[issue1597850] Cross compiling patches for MINGW

2008-10-06 Thread rwmjones
rwmjones [EMAIL PROTECTED] added the comment: I'm very slowly working up a patch here (again 2.5.2). Since I haven't actually got even python.exe compiled yet I can't promise anything, but you never know ... ___ Python tracker [EMAIL PROTECTED]

[issue4014] Python-2.6-py2.6.egg-info contains Alpha reference

2008-10-06 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Ok, I have now removed the Alpha designation, in r66814, r66815, and r66816. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4014

[issue4018] for me installer problem on x64 Vista

2008-10-06 Thread Steve Lee
Steve Lee [EMAIL PROTECTED] added the comment: Works for me on Vista, Not tried on XP. Seems a reasonable temporary compromise though we are now stopping all possibility of an 'all' install but as noted there is probably little need for it when application installers are created.

[issue1202] zlib.crc32() and adler32() return value

2008-10-06 Thread Facundo Batista
Facundo Batista [EMAIL PROTECTED] added the comment: Let me reopen this, I think we have an issue with this fix. The conclusion of this discussion so far is that in 3.0 the crc32 will behave like the standard, which is a good thing (tm), but in 2.6 it will not: it should return a signed

[issue4055] Documentation on website is missing section numbers

2008-10-06 Thread Ignacio Vazquez-Abrams
New submission from Ignacio Vazquez-Abrams [EMAIL PROTECTED]: The documentation on the website seems to have lost the numbers identifying the various sections. It was useful to point a user to e.g. §3.6.2 of the libref in order to guide them to the string interpolation documentation. This is now

[issue2960] bsddb/test/test_replication.py bus error, segfault, assertion error, pass

2008-10-06 Thread Jesús Cea Avión
Jesús Cea Avión [EMAIL PROTECTED] added the comment: Greg, is this issue still pending?. Can we close it?. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2960 ___

[issue3439] math.frexp and obtaining the bit size of a large integer

2008-10-06 Thread Terry J. Reedy
Terry J. Reedy [EMAIL PROTECTED] added the comment: To add support to the proposal: there is currently yet another thread on c.l.p on how to calculate numbits efficiently. The OP needs it for prototyping cryptographic algorithms and found Python-level code slower than he wanted. --

[issue1202] zlib.crc32() and adler32() return value

2008-10-06 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: An int is 32-bits on all popular platforms. Anyways i'll double check things. What platforms did you run your test on? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1202

[issue4056] :Class: causes exception

2008-10-06 Thread Ian Bicking
New submission from Ian Bicking [EMAIL PROTECTED]: I used a reference like :Class:`something` (note the capitalization) and got this exception: Traceback (most recent call last): File /home/ianb/src/env/lib/python2.4/site-packages/sphinx/__init__.py, line 135, in main

[issue4051] use of TCHAR under win32

2008-10-06 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Please create a separate tracker item per individual change (or per group by enourmously similar changes). Each change will be reviewed separately, and will get accepted or rejected separately. This specific patch

[issue4058] markup in What's New in 2.6

2008-10-06 Thread Robert Lehmann
New submission from Robert Lehmann [EMAIL PROTECTED]: The markup in the Doc/whatsnew/2.6.rst document is somewhat messy in some places. I fixed indentation (spaces to tabs -- made some things readable in the docutils output but not in the source), code samples (- notation to Python prompt) and

[issue3740] PEP 3121 --- module state is not nul-initalized as claimed in the PEP

2008-10-06 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: I'm ok with that patch. -- keywords: -needs review nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3740 ___

[issue2744] Fix test_cProfile

2008-10-06 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Done in r66817. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2744 ___

[issue3574] compile() cannot decode Latin-1 source encodings

2008-10-06 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11698/tokenizer_iso-8859-1.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3574 ___

[issue4059] sqlite3 docs incomplete

2008-10-06 Thread Robert Lehmann
New submission from Robert Lehmann [EMAIL PROTECTED]: The sqlite3 documentation misses Row and Cursor.description. Additionally it does not use the best markup in all places (missing links, basically, and forgotten .. class:: statements). A patch is attached. -- assignee: georg.brandl

[issue3574] compile() cannot decode Latin-1 source encodings

2008-10-06 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: Added file: http://bugs.python.org/file11716/tokenizer_iso-8859-1-patch3.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3574 ___

[issue2384] [Py3k] line number is wrong after encoding declaration

2008-10-06 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: benjamin was afraid by the comment /* dirty hack */ in my previous comment. After reading tokenizer.c again and again, I can say that the fix is correct: the file is closed and then re-opened by fp_setreadl() (using io.open()), and so the

[issue4008] IDLE: checksyntax() doesn't support Unicode?

2008-10-06 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11677/idle_encoding-2.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4008 ___

[issue3574] compile() cannot decode Latin-1 source encodings

2008-10-06 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11715/python3_bytes_filename-3.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3574 ___

[issue3574] compile() cannot decode Latin-1 source encodings

2008-10-06 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: My patch version 2 included an unrelated fix for the issue2384. Added file: http://bugs.python.org/file11715/python3_bytes_filename-3.patch ___ Python tracker [EMAIL PROTECTED]

[issue2744] Fix test_cProfile

2008-10-06 Thread Alexandre Vassalotti
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: Have you verified the numbers? They don't look right to me. The problem is the 2nd argument of cProfile's constructor has a different semantic meaning than the one for profile.py. For profile.py, it is used to set the bias (I presume it

[issue2744] Fix test_cProfile

2008-10-06 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: No, I didn't look too hard at it; I just got it scraping along, so I can forward port a fix for it. I'll reopen this, so you can take more action, so you wish. :) -- resolution: fixed - status: closed - open

[issue2744] Fix test_cProfile

2008-10-06 Thread Alexandre Vassalotti
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: Unassigning myself as I don't have the time to fix this properly. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2744 ___

[issue2744] Fix test_cProfile

2008-10-06 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti [EMAIL PROTECTED]: -- assignee: alexandre.vassalotti - ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2744 ___ ___

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

2008-10-06 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: Added file: http://bugs.python.org/file11718/json_test.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3623 ___

[issue4060] PyUnicode_DecodeUTF16(..., byteorder=0) gets it wrong on Mac OS X/PowerPC

2008-10-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: Does this also affect sys.byteorder and the struct module ? I think those would be more important to get right than the UTF-16 codec, since this only uses the native byte ordering for increased performance and compatibility with other OS

[issue1565525] gc allowing tracebacks to eat up memory

2008-10-06 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: Similar issue: issue4034 proposes to be able to set tb.tb_frame=None. It's easy to implement this, I can write a patch for this. -- nosy: +haypo ___ Python tracker [EMAIL PROTECTED]

[issue3758] make check suggest a testing target under GNU coding standards

2008-10-06 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: 2.7 through r66819, 2.6 through r66820, and 3.0 through r66821. -- status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3758 ___

=?utf-8?q?[issue4060]_PyUnicode=5FDecodeUTF16(..., =09byteorder=3D0)_gets_it_wrong_on_Mac_OS_X/PowerPC?=

2008-10-06 Thread Trent Mick
Trent Mick [EMAIL PROTECTED] added the comment: Does this also affect sys.byteorder and the struct module ? Doesn't seem to affect sys.byteorder: $ /usr/bin/python -c import sys; print sys.byteorder big $ python2.6 -c import sys; print sys.byteorder big I think those would be more

[issue4034] traceback attribute error

2008-10-06 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: Instead of converting tb_frame attribute to read only, I prefer to allow the user to clear the traceback to free some memory bytes. So I wrote a different patch. marge$ ./python Python 2.7a0 (trunk:66786M, Oct 7 2008, 00:48:32) try: ... a

=?utf-8?q?[issue4060]_PyUnicode=5FDecodeUTF16(..., =09byteorder=3D0)_gets_it_wrong_on_Mac_OS_X/PowerPC?=

2008-10-06 Thread Trent Mick
Trent Mick [EMAIL PROTECTED] added the comment: BTW: Does this simplified approach really work for Python on Mac OS X It works for Python 2.5: http://svn.python.org/view/*checkout*/python/branches/release25-maint/configure.in?rev=66299 search for BIGENDIAN.

=?utf-8?q?[issue4060]_PyUnicode=5FDecodeUTF16(..., =09byteorder=3D0)_gets_it_wrong_on_Mac_OS_X/PowerPC?=

2008-10-06 Thread Trent Mick
Changes by Trent Mick [EMAIL PROTECTED]: -- keywords: +patch Added file: http://bugs.python.org/file11720/issue4060_macosx_endian.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4060 ___

=?utf-8?q?[issue4060]_PyUnicode=5FDecodeUTF16(..., _=09byteorder=3D0)_gets_it_wrong_on_Mac_OS_X/PowerPC?=

2008-10-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: On 2008-10-07 00:52, Trent Mick wrote: Trent Mick [EMAIL PROTECTED] added the comment: BTW: Does this simplified approach really work for Python on Mac OS X It works for Python 2.5:

[issue4061] summing two numbers-strange answer

2008-10-06 Thread Mehmet Yozcu
New submission from Mehmet Yozcu [EMAIL PROTECTED]: I don't know what's wrong but when I write on the IDLE 2.3+6.3 it gives an answer like 8.596 or similar when I write on the IDLE print 2.3+6.3 the answer is 8.6 as I expected I tried these two commands on the DrPython IDE;the result

[issue3187] os.listdir can return byte strings

2008-10-06 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: Would it possible to close this issue since os.listdir() is fixed and many other related functions (posix, posixpath, ntpath, macpath, etc.) are also fixed? I propose to open new issues for new bugs since this issue becomes a little big long

[issue4061] summing two numbers-strange answer

2008-10-06 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: This is a result of poor floating-point precision: 2.3 2.2998 6.3 6.2998 See http://docs.python.org/tutorial/floatingpoint.html for more information. -- nosy: +benjamin.peterson resolution: - invalid

[issue4061] summing two numbers-strange answer

2008-10-06 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: Use Decimal to get an exact result: from decimal import Decimal print Decimal('2.3') + Decimal('6.3') 8.6 -- nosy: +haypo ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4061

[issue3187] os.listdir can return byte strings

2008-10-06 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Would it possible to close this issue since os.listdir() is fixed and many other related functions (posix, posixpath, ntpath, macpath, etc.) are also fixed? IIUC, these fixes are still not complete: they lack documentation changes. Of

[issue4062] Reference to non-existent __version__ in ast module

2008-10-06 Thread Orestis Markou
New submission from Orestis Markou [EMAIL PROTECTED]: The docs for the ast module refer to a __version__ number, that should track the Subversion id. However, this doesn't exist: import ast ast.__version__ Traceback (most recent call last): File stdin, line 1, in module AttributeError:

[issue3187] os.listdir can return byte strings

2008-10-06 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: Le Tuesday 07 October 2008 01:13:22 Martin v. Löwis, vous avez écrit : IIUC, these fixes are still not complete: they lack documentation changes. (...) Of course, it would have been better if the original patches already contained the

[issue4061] summing two numbers-strange answer

2008-10-06 Thread Mehmet Yozcu
Mehmet Yozcu [EMAIL PROTECTED] added the comment: Dear Victor Stinner; Thank you very much for your answer. That was very helpful Best Wishes 2008/10/7 STINNER Victor [EMAIL PROTECTED]: STINNER Victor [EMAIL PROTECTED] added the comment: Use Decimal to get an exact result: from decimal

[issue4010] configure options don't trickle down to distutils

2008-10-06 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: I checked in r66823 to add the -R flag extraction like Brett's -L extraction. I'll leave the issue open while folks discuss Roumen's proposal. I have no particular desire to delve deeper into distutils.

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

2008-10-06 Thread Alexandre Vassalotti
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: The patch looks good to me. You may want to fix the refleak in the PyList_Append() calls (I counted 4) too: if (PyList_Append(chunks, chunk)) { goto bail; } should be: if

[issue4029] Documentation displays incorrectly in iexplore.

2008-10-06 Thread David W. Lambert
David W. Lambert [EMAIL PROTECTED] added the comment: I installed google chrome. The manual display is absolutely beautiful. Thanks for your good work! Proofreader Dave. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4029