[issue6759] zipfile.ZipExtFile.read() is missing universal newline support

2009-08-25 Thread Ryan Leslie
Ryan Leslie added the comment: Hi Art, Thanks for working on this. I've taken a look at the patch. The fix to read_test looks correct. Of course, I would consider a more descriptive variable name than 'b'. The changes to read() are an improvement, but I think we need to be careful when we rep

[issue6783] Add a builtin method to 'int' for base/radix conversion

2009-08-25 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue4625] IDLE won't open anymore, .idlerc unaccessible

2009-08-25 Thread Sophia K. Cheng
Sophia K. Cheng added the comment: Thanks!! This worked perfectly! Finally got around to trying this out today. Sincerely, Sophia On 3/20/09 4:26 AM, "Timothy Zhang" wrote: > > Timothy Zhang added the comment: > > I meet the same problem and have it fixed. I use Python 2.5.2 on Windows

[issue1068268] subprocess is not EINTR-safe

2009-08-25 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue6783] Add a builtin method to 'int' for base/radix conversion

2009-08-25 Thread Mark Dickinson
Mark Dickinson added the comment: See http://mail.python.org/pipermail/python-dev/2006-January/059789.html for a previous related discussion. -- ___ Python tracker ___ _

[issue6783] Add a builtin method to 'int' for base/radix conversion

2009-08-25 Thread Mark Dickinson
Mark Dickinson added the comment: This seems like the sort of idea that should be floated on the python- ideas mailing list or comp.lang.python first, both to find out what support there is and to pin down precise semantics. We already have int to string conversions in bases 2, 8, 10 and 16;

[issue6783] Add a builtin method to 'int' for base/radix conversion

2009-08-25 Thread Yuv Gre
New submission from Yuv Gre : In javascript and java each number has a toString method which allows for easy string representation in different bases. If the function int(x[, base]) exists as a builtin, the inverse should at least be somewhere in the standard library. Personally I believe a "t

[issue3329] API for setting the memory allocator used by Python

2009-08-25 Thread PJ McNerney
PJ McNerney added the comment: Has the ability to set the memory allocator been added to Python 2.7/3.1? Thanks, PJ -- nosy: +pjmcnerney versions: +Python 3.2 -Python 2.5, Python 2.6, Python 3.0 ___ Python tracker

[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

2009-08-25 Thread Cherniavsky Beni
Cherniavsky Beni added the comment: Nice. 2 questions: 1. Why not change getch() to always use get_wch()? 2. I think you also want fix getkey() / introduce get_wkey(). -- nosy: +cben ___ Python tracker __

[issue6782] Scoping of variables in closures

2009-08-25 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue6782] Scoping of variables in closures

2009-08-25 Thread R. David Murray
R. David Murray added the comment: It's feature. In python 3 you can use the 'nonlocal' keyword to access the variable in the outer scope for assignment. -- nosy: +r.david.murray priority: -> normal resolution: -> invalid stage: -> committed/rejected ___

[issue6782] Scoping of variables in closures

2009-08-25 Thread victor
New submission from victor : I can't tell if this is "feature" or a "bug" but either way this behavior struck me as strange. """ def func(): x = 5 def inc(): temp = x + 1 # when inc() is execute, this line fails x = temp return x return inc i = func() i() # will raise error """

[issue6781] even exponentiation of negative numbers

2009-08-25 Thread Mark Dickinson
Mark Dickinson added the comment: By the way, I get -1 ^ 2 == -3, not -1: >>> -1 ^ 2 -3 If you're getting -1 instead, then that *is* a bug! Are you? -- ___ Python tracker ___

[issue6781] even exponentiation of negative numbers

2009-08-25 Thread Mark Dickinson
Mark Dickinson added the comment: This is not a bug: -1 ** 2 is parsed as -(1 ** 2), not (-1) ** 2. Take a look at: http://docs.python.org/reference/expressions.html#the-power-operator In -1 ^ 2, ^ is the bitwise exclusive-or operator, not the power operator. pow(x, y) is indeed equivalent

[issue6781] even exponentiation of negative numbers

2009-08-25 Thread benlbroussard
New submission from benlbroussard : Negative one squared should be one, but is negative one sometimes. pow(-1, 2) = 1 -1 ** 2 = -1 -1 ^ 2 = -1 The ** and ^ operators aren't working like expected, and the pow() documentation is incorrect since it says "The two-argument form pow(x, y) is equivale

[issue6662] HTMLParser.HTMLParser doesn't handle malformed charrefs

2009-08-25 Thread Ezio Melotti
Ezio Melotti added the comment: Confirmed on Python3.1 too. -- nosy: +ezio.melotti priority: -> high ___ Python tracker ___ ___ Pytho

[issue6738] Wrong doc strings in itertools

2009-08-25 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue6701] Make custom xmlrpc extension easier

2009-08-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +krisvale priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6738] Wrong doc strings in itertools

2009-08-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue6744] calling kevent repr raises a TypeError

2009-08-25 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> christian.heimes nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list ma

[issue6780] startswith error message is incomplete

2009-08-25 Thread Ezio Melotti
Ezio Melotti added the comment: In the examples you used byte strings for Py2 and Unicode strings for Py3. On Py3 the same example with byte strings gives an error similar to the one raised by Py2: >>> b"foo".startswith([b"fo"]) Traceback (most recent call last): File "", line 1, in TypeErro