[issue1518] Fast globals/builtins access (patch)

2009-02-20 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue5335] mmap can crash with tagname (on windows)

2009-02-20 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : I noticed following code crashes on windows. Attached patch will fix this. / // Crash code import mmap, tempfile f = tempfile.TemporaryFile() m1 = mmap.mmap(f.fileno(), 1000, tagname="foo") m2 = mmap.mmap(f.fileno(), 50

[issue5163] tkinter.scrolledtext: new text is hidden after using insert()

2009-02-20 Thread David Schultz
David Schultz added the comment: Just an ignorance issue, I supposed. I didn't realize that it was that simple. Still a novice at all of the methods available. In that case, the only advantage is in case you don't want to always manually set it to the end. No good reason to change it oth

[issue5323] document expected/required behavior of 3.x io subsystem with respect to buffering

2009-02-20 Thread R. David Murray
R. David Murray added the comment: Heh, I was reading the code instead of the documentation. Silly me :). The 'buffering' argument of open, and the 'line_buffering' argument of TextIOWrapper do address my documentation concern about whether or not readline can be used to read lines from a sour

[issue5334] array.fromfile() fails to insert values when EOFError is raised

2009-02-20 Thread Zac Medico
Changes by Zac Medico : Removed file: http://bugs.python.org/file13143/fromfile_eof.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5334] array.fromfile() fails to insert values when EOFError is raised

2009-02-20 Thread Zac Medico
Changes by Zac Medico : Added file: http://bugs.python.org/file13144/fromfile_eof.py ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue5334] array.fromfile() fails to insert values when EOFError is raised

2009-02-20 Thread Zac Medico
New submission from Zac Medico : With python-3.0, array.fromfile() fails to insert values when EOFError is raised. I ran the attached test case with python-3.0.1 and got the same result on both linux and windows. With python-2.x, the values are properly inserted despite an EOFError, as the docume

[issue3742] Parsing XML file with Unicode characters causes problem

2009-02-20 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue5331] multiprocessing hangs when Pool used within Process

2009-02-20 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> jnoller nosy: +jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue5285] hmac throws TypeErrors

2009-02-20 Thread victor
Changes by victor : -- nosy: +victorstar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue2459] speedup for / while / if with better bytecode

2009-02-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If you don't have the bandwidth to integrate 4715 into this patch, I > can do that, if you want. Collin, that would be very nice from you. You could also apply Jeffrey's naming suggestions in #4715. Thanks! Antoine. ___

[issue2459] speedup for / while / if with better bytecode

2009-02-20 Thread Collin Winter
Collin Winter added the comment: On Fri, Feb 13, 2009 at 3:23 PM, Collin Winter wrote: > On Fri, Feb 13, 2009 at 10:37 AM, Antoine Pitrou > wrote: >> Before committing I want to know what to do with the new jump opcodes, >> with respect to the alternative proposal I've made in #4715. >> Ideal

[issue5323] document expected/required behavior of 3.x io subsystem with respect to buffering

2009-02-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Yes, this behavior is documented. There is one test that mixes iteration and readline, in test.test_io.TextIOWrapperTest.testSeeking, but it shows a difference between the two methods: to be faster, __next__ disables the tell() function. -- no

[issue5333] os.kill() inconsistency

2009-02-20 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: You're right. My fault. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1047540] Turtle.py hangs Idle

2009-02-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I started Idle from a command prompt: C:\Python30>python Lib\idlelib\idle.py And followed the instructions. After the step f/ I got the error message: Exception in Tkinter callback Traceback (most recent call last): File "C:\Python30\Lib\tkinter\__i

[issue4753] Faster opcode dispatch on gcc

2009-02-20 Thread Joshua Bronson
Changes by Joshua Bronson : -- nosy: +jab ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue5333] os.kill() inconsistency

2009-02-20 Thread Guilherme Polo
Guilherme Polo added the comment: I lost the race, congrats Jean :P I was going to copy & paste part of the man page. -- nosy: +gpolo resolution: -> invalid status: open -> closed ___ Python tracker _

[issue5333] os.kill() inconsistency

2009-02-20 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Read the docs for kill(2). -1 is a completely legitimate PID. Recommend close as invalid. -- nosy: +exarkun ___ Python tracker ___ __

[issue5333] os.kill() inconsistency

2009-02-20 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Oddly, by passing -2 as PID no such process is raised: >>> os.kill(-2, 0) Traceback (most recent call last): File "", line 1, in ? OSError: [Errno 3] No such process >>> ___ Python tracker

[issue5333] os.kill() inconsistency

2009-02-20 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : On Linux Ubuntu equipped with Python 2.6.1 I get this: >>> os.kill(9, 0) Traceback (most recent call last): File "", line 1, in ? OSError: [Errno 3] No such process >>> print os.kill(-1, 0) None >>> IMHO the latter case should raise "No such proces

[issue5293] socket timeouts even in blocking mode

2009-02-20 Thread anatoly techtonik
anatoly techtonik added the comment: Thanks for pointing me to the list of possible network errors. This information is invaluable. Too bad it is easily lost among other details. I've seen similar errors in other modules that use socket module and it's no wonder now why people can't handle them

[issue5295] turtle.py "dicionary" spelling patch

2009-02-20 Thread Mark Dickinson
Mark Dickinson added the comment: ...and merged to 2.6, 3.1 and 3.0 in revisions 69818 through 69822. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue5332] csv sniffer

2009-02-20 Thread David W. Lambert
New submission from David W. Lambert : Following instructions in http://docs.python.org/dev/3.0/library/csv.html#module-csv I opened file in binary mode. This might be simply a documentation problem or it may run deeper. Text mode works on red hat linux system. Here's the use: >>> stream=open

[issue5295] turtle.py "dicionary" spelling patch

2009-02-20 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed in the trunk in r69816, along with a few other typos. I've probably missed a few. Thanks! -- nosy: +marketdickinson ___ Python tracker

[issue5163] tkinter.scrolledtext: new text is hidden after using insert()

2009-02-20 Thread Guilherme Polo
Guilherme Polo added the comment: Do you mean something like this: import Tkinter def insert(): text.insert('end', 'buh\n') text.see('end') text.after(100, insert) text = Tkinter.Text() text.pack(expand=True, fill='both', side='left') vbar = Tkinter.Scrollbar(orient='vertical', co

[issue5176] Special-case string formatting in BINARY_MODULO implementation

2009-02-20 Thread Collin Winter
Collin Winter added the comment: Committed as r69811. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___ Py

[issue4565] Rewrite the IO stack in C

2009-02-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: It seems the decision of Python-dev is to keep both implementations. We'll stuff the python one in _pyio and rewrite the tests to test both. I'll see if I can get to this this weekend. ___ Python tracker

[issue3511] Incorrect charset range handling with ignore case flag?

2009-02-20 Thread Ezio Melotti
Ezio Melotti added the comment: If there's already a patch, then it's fine (and useful for ranges of Unicode chars), but I wouldn't like to find a range like [9-A] around ;) ___ Python tracker __

[issue5331] multiprocessing hangs when Pool used within Process

2009-02-20 Thread David W. Lambert
David W. Lambert added the comment: Fails also on this system. $ p3 Python 3.0.1 (r301:69556, Feb 13 2009, 23:52:55) [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2 (...) >>> # use both hangs (...) >>> p.start() >>> p.join() (hmm la do diii laaa...)^C Traceback (most recent call last): F

[issue5305] imaplib should support international mailbox names

2009-02-20 Thread Martin v. Löwis
Martin v. Löwis added the comment: I don't have a good understanding of imaplib; if you think it's appropriate to provide the conversion through two functions, I trust you. ___ Python tracker ___

[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.

2009-02-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated benchmarks results with 30bit_longdigit17.patch: * Victor's bench_int.py: - 32-bit with patch:1178.3 ms (24% speedup) - 64-bit with patch:990.8 ms (27% speedup) * Calculating 2000 digits of pi: - 32-bit with patch:2.16 s. (25% speedup) - 6

[issue3511] Incorrect charset range handling with ignore case flag?

2009-02-20 Thread Matthew Barnett
Matthew Barnett added the comment: "[9-A]" is equivalent to "[9:;<=>?...@a]", or should be. It'll be fixed in issue #2636. ___ Python tracker ___

[issue936813] fast modular exponentiation

2009-02-20 Thread Mark Dickinson
Mark Dickinson added the comment: By the way, I'd be interested to know if you (Trevor) have any thoughts on the multiplication optimizations that are in the patch 30bit_longdigit13+optimizations.patch in the issue 4258 discussion. These have been giving me some quite spectacular speedups (4

[issue936813] fast modular exponentiation

2009-02-20 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, Trevor. I'm currently working on the 15-bit -> 30-bit digit change (issue 4258), since it seems sensible to get that in before considering other optimizations, but I certainly hope to find time to look at this before the 3.1 release cycle gets underw

[issue5331] multiprocessing hangs when Pool used within Process

2009-02-20 Thread mike bayer
New submission from mike bayer : this occurs for me running on Mac OSX Leopard. The equivalent code using "processing" in python 2.5 works fine, which is how I found this bug - my code hung when upgraded to 2.6.Basically initiating a multiprocessing.Pool inside of multiprocessing.Process ha

[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.

2009-02-20 Thread Mark Dickinson
Mark Dickinson added the comment: Here's an updated patch that includes the x_divrem fixes and optimizations. I've also updated the Rietveld issue with these fixes. I think this is (modulo any requested changes) the version that I'd like to get into py3k. After that we can look at the possibi

[issue5328] Crash when doing some list iteration

2009-02-20 Thread Daniel Diniz
Daniel Diniz added the comment: Can you take a look at issues 4732 to see whether it helps you pinpoint the problem? Python 2.5 won't receive simple bugfixes any longer, only security fixes. -- components: +Interpreter Core -None nosy: +ajaksu2 stage: -> test needed __

[issue5247] Unhelpful error message with str.format()

2009-02-20 Thread Eric Smith
Eric Smith added the comment: Committed in: r69806 (trunk) r69807 (release26-maint) r69808 (py3k) r69809 (release30-maint) -- resolution: -> accepted stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue5330] profile and cProfile do not report C functions called with keyword arguments

2009-02-20 Thread Hagen Fürstenau
New submission from Hagen Fürstenau : A C function or method call without keyword arguments gets reported by the profiler as expected (in the line with "{method 'sort' of 'list' object}"): >>> cProfile.run("[].sort()") 4 function calls in 0.000 CPU seconds Ordered by: standard name

[issue5305] imaplib should support international mailbox names

2009-02-20 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: IMAP4 UTF-7 is implemented in Twisted - , . Feel free to re-use any of that code that would be helpful.

[issue5247] Unhelpful error message with str.format()

2009-02-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks good to me. I don't think you need to write a specific test for this. ___ Python tracker ___ ___ Python

[issue5247] Unhelpful error message with str.format()

2009-02-20 Thread Eric Smith
Eric Smith added the comment: I'm getting ready to commit this. Does it need a test? I poked around and didn't see any tests that validate exception text, but maybe there are some I missed. I tend to think it shouldn't have a test, but I'm not sure what the norm is.

[issue5329] os.popen2 and os.popen3 in python 2.6 incompatible with os.popen* in python 2.5

2009-02-20 Thread Jani Hakala
Changes by Jani Hakala : Removed file: http://bugs.python.org/file13140/os-popen.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5329] os.popen2 and os.popen3 in python 2.6 incompatible with os.popen* in python 2.5

2009-02-20 Thread Jani Hakala
Changes by Jani Hakala : Added file: http://bugs.python.org/file13141/os-popen.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue5325] "SyntaxError: None" when the name of the dir contains non-ascii chars

2009-02-20 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Thanks, I'll close this entry. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ _

[issue5325] "SyntaxError: None" when the name of the dir contains non-ascii chars

2009-02-20 Thread Ezio Melotti
Ezio Melotti added the comment: With 3.0.1 it seems to work fine. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue5325] "SyntaxError: None" when the name of the dir contains non-ascii chars

2009-02-20 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Can you try this with 3.0.1? http://python.org/download/releases/3.0.1 -- nosy: +ocean-city ___ Python tracker ___ __

[issue5329] os.popen2 and os.popen3 in python 2.6 incompatible with os.popen* in python 2.5

2009-02-20 Thread Jani Hakala
Changes by Jani Hakala : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue5329] os.popen2 and os.popen3 in python 2.6 incompatible with os.popen* in python 2.5

2009-02-20 Thread Jani Hakala
New submission from Jani Hakala : The implementation in python 2.6 expects the cmd argument to be a string. The documentation - help(os.popen3) - states that the cmd argument can be a sequence on Unix. This difference may cause programs that work with python 2.5 to fail with python 2.6 I have

[issue5328] Crash when doing some list iteration

2009-02-20 Thread qwjqwj
New submission from qwjqwj : I am using the python 2.5.4 in redhat enterprise. My project is a big one with turbogears and sqlobject. The python core dumped sometime when iterating list. It occurs randomly and cannot be reproduced. After using gdb, I found python core dumped at this line in th

[issue5326] Wrong anchors in "What's New in Python 2.5"

2009-02-20 Thread Georg Brandl
Georg Brandl added the comment: Fixed the bug in Sphinx trunk, the anchors will be fixed in the docs as soon as I update the revision we use to build them (after 0.6 is released). -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue5327] Broken link in "What's New in Python 2.5"

2009-02-20 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r69803. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bug