[issue2652] 64 bit python memory leak usage

2008-04-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Please provide a main function to test with. I tried to write one based on your code; but memory usage was stable after a few seconds. -- nosy: +amaury.forgeotdarc __ Tracker [EMAIL PROTECTED]

[issue2653] string to float to int

2008-04-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Yes, and 1.005 * 1000 1004.9 Please read http://www.python.org/doc/faq/general/#why-are-floating-point-calculations-so-inaccurate To perform exact base-10 calculation, you may use the Decimal module. Or use round()

[issue2653] string to float to int

2008-04-18 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: int('%.0f' % (float('1.005')*1000)) 1005 int(Decimal('1.005')*1000) 1005 -- nosy: +rhettinger __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2653 __

[issue2630] repr() should not escape non-ASCII characters

2008-04-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: On 2008-04-18 05:35, atsuo ishimoto wrote: atsuo ishimoto [EMAIL PROTECTED] added the comment: Is a codec which encode() returns an Unicode allowed in Python3? Sure, why not ? I think you have to ask another question: Is repr()

[issue2632] performance problem in socket._fileobject.read

2008-04-18 Thread Ralf Schmitt
Ralf Schmitt [EMAIL PROTECTED] added the comment: However it should be fixed in release25-maint. Can anyone install curt's patch? It does what the original fix intended to do. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2632

[issue2651] Strings passed to KeyError do not round trip

2008-04-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Here is another form of the same inconsistency: [].pop(0) IndexError: pop from empty list {}.pop(0) KeyError: 'pop(): dictionary is empty' And my preferred one: unicodedata.lookup('') KeyError: 'undefined character name \'\''

[issue2014] xmlrpclib cannot send datetime objects with dates before 1900

2008-04-18 Thread Ralf Schmitt
Ralf Schmitt [EMAIL PROTECTED] added the comment: guido says it's ok to fix the issue in xmlrpclib only: http://mail.python.org/pipermail/python-dev/2008-April/078396.html I'm also attaching a dummy.diff in order to have a patch keyword... If someone is willing to commit this, I'll check if it

[issue1731717] race condition in subprocess module

2008-04-18 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: This popped up on the mailing list today. Please give this bug a proper review. I *believe* it's fixed but I'm not sure. -- nosy: +tiran priority: normal - critical type: - behavior versions: +Python 2.5, Python 2.6, Python 3.0

[issue2014] xmlrpclib cannot send datetime objects with dates before 1900

2008-04-18 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: working on it -- assignee: - skip.montanaro nosy: +skip.montanaro __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2014 __

[issue2250] rlcompleter raises Exception on bad input

2008-04-18 Thread Lorenz Quack
Lorenz Quack [EMAIL PROTECTED] added the comment: I attached a patch for the docs. It now states that the rlcompleter.Completer will catch and silence all exceptions raised by evaluating the expression passed to complete() Added file: http://bugs.python.org/file10054/rlcompleter.rst.diff

[issue2250] rlcompleter raises Exception on bad input

2008-04-18 Thread Lorenz Quack
Lorenz Quack [EMAIL PROTECTED] added the comment: In the last patch I used the wrong ticks. I hope it's fine like this. Added file: http://bugs.python.org/file10055/rlcompleter.rst.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2250

[issue2250] rlcompleter raises Exception on bad input

2008-04-18 Thread Lorenz Quack
Changes by Lorenz Quack [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10054/rlcompleter.rst.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2250 __ ___

[issue2636] Regexp 2.6 (modifications to current re 2.2.2)

2008-04-18 Thread Jeffrey C. Jacobs
Jeffrey C. Jacobs [EMAIL PROTECTED] added the comment: This simple patch adds (?P#...)-style comment support. Added file: http://bugs.python.org/file10056/issue2636-05.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2636

[issue2654] Typo at http://docs.python.org/dev/3.0/howto/doanddont.html

2008-04-18 Thread A.M. Kuchling
A.M. Kuchling [EMAIL PROTECTED] added the comment: Fixed in r62373; thanks for reporting this! -- assignee: georg.brandl - akuchling nosy: +akuchling resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2654

[issue1184112] Missing trailing newline with comment raises SyntaxError

2008-04-18 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: Yeah, it's actually still blowing up for me to. I have no idea what I actually tested when I thought it was working in 2.6/3.0 - I must have managed to sneak an extra carriage return into the test string. So reverting back to marking it as a

[issue2655] Create ctypes instances from buffer interface

2008-04-18 Thread Thomas Heller
New submission from Thomas Heller [EMAIL PROTECTED]: This patch implements a .from_buffer(source, offset=0) class method from ctypes types. 'source' must expose a writeable buffer interface; the created ctypes instance will share the internal buffer of the source object; also it holds a

[issue2655] Create ctypes instances from buffer interface

2008-04-18 Thread Thomas Heller
Changes by Thomas Heller [EMAIL PROTECTED]: -- type: - behavior __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2655 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue2416] % string formatting does not support %b

2008-04-18 Thread Eric Smith
Eric Smith [EMAIL PROTECTED] added the comment: On the python-3000 list we decided not to add new features to % formatting, since it will be deprecated in favor of str.format. -- resolution: - wont fix status: open - closed __ Tracker [EMAIL PROTECTED]

[issue2416] % string formatting does not support %b

2008-04-18 Thread Eric Smith
Eric Smith [EMAIL PROTECTED] added the comment: I should have noted that the PEP was modified to remove %b and %#b formatting. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2416 __

[issue2014] xmlrpclib cannot send datetime objects with dates before 1900

2008-04-18 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: Checked in on trunk as r62378. Will let the normal 3.0 merge process suck it over to the py3k branch. -- resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED]

[issue2656] Autodoc should skip inherited methods

2008-04-18 Thread John Millikin
New submission from John Millikin [EMAIL PROTECTED]: Using the following class layout: class A (object): def a (self): A.a pass class B (A): def b (self): B.b pass If sphinx.ext.autodoc is used to extract

[issue2458] Allow Python code to change Py3k warning flag

2008-04-18 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: As suggested by Christian, this patch changes the method names to setpy3kwarn and getpy3kwarn. -- nosy: +tiran Added file: http://bugs.python.org/file10058/change_py3kwarning2.patch __ Tracker [EMAIL

[issue2645] httplib throws ValueError

2008-04-18 Thread Georg Brandl
Changes by Georg Brandl [EMAIL PROTECTED]: -- assignee: - georg.brandl nosy: +georg.brandl __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2645 __ ___ Python-bugs-list

[issue2657] curses

2008-04-18 Thread Fernando Pérez
New submission from Fernando Pérez [EMAIL PROTECTED]: Curses sometimes fails to correctly initialize the terminal. Unfortunately I don't know how to reproduce the problem, it was reported multiple times by ipython users, but I have no idea what causes it. I finally found a workaround by making

[issue2645] httplib throws ValueError

2008-04-18 Thread Niall O'Higgins
Niall O'Higgins [EMAIL PROTECTED] added the comment: Unfortunately I do not get this consistently from any URL. My code is periodically polling a single HTTP server over the Internet. Quite possibly it is triggered by some random network/remote server condition. I have not had the chance to