[issue4998] __slots__ on Fraction is useless

2009-01-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Arghh! Decimal is NOT supposed to inherit or register with numbers. Guido has pronounced on this and we've discussed it multiple times. See the comments in numbers.py which were supposed to serve as a reminder. Decimals are not interoperable with floats

[issue4998] __slots__ on Fraction is useless

2009-01-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: For the Fractions issue, consider adding an empty __slots__ declaration to every level in numbers.py. That will preclude unintended dictionary creation for anything inheriting from the numbers abcs. We should also be an issue for the other abcs. The collec

[issue4998] __slots__ on Fraction is useless

2009-01-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Py3.0.1 should not go out without this being fixed. -- priority: critical -> release blocker ___ Python tracker ___ _

[issue5006] Duplicate UTF-16 BOM if a file is open in append mode

2009-01-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue5002] multiprocessing/pipe_connection.c compiler warning (conn_poll)

2009-01-19 Thread Jesse Noller
Jesse Noller added the comment: checked in, trunk, r68787 tests pass. Sorry about that, don't have a windows machine handy and I hadn't had a chance to check the buildbots ___ Python tracker ___

[issue5002] multiprocessing/pipe_connection.c compiler warning (conn_poll)

2009-01-19 Thread Jesse Noller
Jesse Noller added the comment: r68788 on py3k -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-

[issue5008] Wrong tell() result for a file opened in append mode

2009-01-19 Thread STINNER Victor
New submission from STINNER Victor : The following code must display 3 instead of 0: --- with open("x", "w") as f: f.write("xxx") with open("x", "a") as f: print(f.tell()) --- The example works with Python 2.x, because file object is implemented using the FILE structure (fopen, ftell, e

[issue5008] Wrong tell() result for a file opened in append mode

2009-01-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: -> release blocker type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue5008] Wrong tell() result for a file opened in append mode

2009-01-19 Thread STINNER Victor
STINNER Victor added the comment: Patch _including a test_: + if (append) + lseek(self->fd, 0, SEEK_END); -- keywords: +patch Added file: http://bugs.python.org/file12803/fileio_append.patch ___ Python tracker

[issue5008] Wrong tell() result for a file opened in append mode

2009-01-19 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file12803/fileio_append.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue5008] Wrong tell() result for a file opened in append mode

2009-01-19 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file12804/fileio_append.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue4978] allow unicode keyword args

2009-01-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: Interesting, I didn't know that about _PyUnicode_AsDefaultEncodedString. Here's another patch. Added file: http://bugs.python.org/file12805/unicode_kwargs3.patch ___ Python tracker

[issue5005] 3.0 sqlite doc: most examples refer to pysqlite2, use 2.x syntax.

2009-01-19 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: 3.0 sqlite doc: most refers to pysqlite2, use 2.x syntax. -> 3.0 sqlite doc: most examples refer to pysqlite2, use 2.x syntax. ___ Python tracker __

[issue3826] Problem with SocketIO for closing the socket

2009-01-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: backported to release30-maint in r68796. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue4428] io.BufferedWriter does not observe buffer size limits

2009-01-19 Thread Gregory P. Smith
Changes by Gregory P. Smith : Removed file: http://bugs.python.org/file12157/issue4428-io-bufwrite-gps02.diff ___ Python tracker ___ ___ Python

[issue4428] io.BufferedWriter does not observe buffer size limits

2009-01-19 Thread Gregory P. Smith
Changes by Gregory P. Smith : Added file: http://bugs.python.org/file12806/issue4428-io-bufwrite-gps04.diff ___ Python tracker ___ ___ Python-b

[issue4428] io.BufferedWriter does not observe buffer size limits

2009-01-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: Updated patch with unit tests to verify the write behavior attached in -gps04. Up for code review at http://codereview.appspot.com/12470/show -- keywords: +needs review ___ Python tracker

[issue4428] io.BufferedWriter does not observe buffer size limits

2009-01-19 Thread Gregory P. Smith
Changes by Gregory P. Smith : Removed file: http://bugs.python.org/file12158/issue4428-io-bufwrite-gps03.diff ___ Python tracker ___ ___ Python

[issue4998] __slots__ on Fraction is useless

2009-01-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed the decimal issue in r68800 and r68799 . Still needs a fix to Fractions, preferably adding an empty __slots__ to all levels of numbers.py. ___ Python tracker _

<    1   2