[issue1580] Use shorter float repr when possible

2007-12-22 Thread Tim Peters
Tim Peters added the comment: If someone has a more recent version of MS's compiler, I'd be interested to know what this does: inc = 2.0**-43 base = 1024.0 xs = ([base + i*inc for i in range(-4, 0)] + [base] + [base + 2*i*inc for i in (1, 2)]) print xs print ["%.16g" % x for x in xs]

[issue1688] Incorrectly displayed non ascii characters in prompt using "input()" - Python 3.0a2

2007-12-22 Thread Vlastimil Brom
New submission from Vlastimil Brom: While testing the 3.0a2 build (on Win XPh SP2, Czech), I found a possible bug in the input() function; if the prompt text contains non-ascii characters (even those present in the default charset of the system locale - Czech in this case) the prompt is displ

[issue1170] shlex have problems with parsing unicode

2007-12-22 Thread Colin Walters
Colin Walters added the comment: Patch to add Unicode support. Note: this patch recodes shlex.py from iso-8859-1 to utf-8, so it has mixed encodings. -- nosy: +cgwalters Added file: http://bugs.python.org/file9025/shlex-unicode.patch __ Tracker <[EMAIL P

[issue1687] plistlib.py restricts to Python int when writing

2007-12-22 Thread lafcadio
New submission from lafcadio: In PlistWriter.writeValue() the line "elif isinstance(value, int):" should be changed to "elif isinstance(value, int) or isinstance(value, long):" since in http://www.apple.com/DTDs/PropertyList-1.0.dtd is no limitation to signed 32-bit integer. It occured an e

[issue1657] [patch] epoll and kqueue wrappers for the select module

2007-12-22 Thread Thomas Herve
Thomas Herve added the comment: > What do you suggest as sort criteria? The natural sort of the tuple you used for equality, I'd say. __ Tracker <[EMAIL PROTECTED]> __

[issue1657] [patch] epoll and kqueue wrappers for the select module

2007-12-22 Thread Christian Heimes
Christian Heimes added the comment: > I attached a patch with a more complete test of kqueue. It's not that > great, but it's a thing. I've only tested on OS X, but it works. A small unit test is better than no unit test :) > Regarding the ability of building an epoll object from a fd, it mi

[issue1646] Make socket support TIPC.

2007-12-22 Thread Christian Heimes
Christian Heimes added the comment: I've chatted with albertito a few days ago and adviced him to post the patch here. I'll take it. >From the first review the patch looks good. The code is written cleanly and it uses the appropriate API. The new code is surrounded by ifdefs and it has a patch f