[issue5327] Broken link in What's New in Python 2.5
Georg Brandl ge...@python.org added the comment: Fixed in r69803. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5327 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5326] Wrong anchors in What's New in Python 2.5
Georg Brandl ge...@python.org 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 rep...@bugs.python.org http://bugs.python.org/issue5326 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5328] Crash when doing some list iteration
New submission from qwjqwj q...@papayamobile.com: 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 the lambda unnamed function: newsfeeds = filter(lambda x: not(x.activity==0 and x.value.get('uid')==sess.user.id),n)[:5] The core dump info is as followed: #0 listiter_next (it=0xa2988ecc) at Objects/listobject.c:2819 #1 0x08079e56 in listextend (self=0xa91f90c, b=value optimized out) at Objects/listobject.c:823 #2 0x0807a370 in list_init (self=0xa91f90c, args=0xb64c6ec, kw=0x0) at Objects/listobject.c:2391 #3 0x0809bfe3 in type_call (type=0x8140220, args=0xb64c6ec, kwds=0x0) at Objects/typeobject.c:436 #4 0x0805a5f7 in PyObject_Call (func=0xb47cc6c, arg=0xb64c6ec, kw=0x0) at Objects/abstract.c:1861 #5 0x080c16a2 in PyEval_EvalFrameEx (f=0xa2649aec, throwflag=0) at Python/ceval.c:3823 #6 0x080c7765 in PyEval_EvalCodeEx (co=0x9929a88, globals=0x9907b54, locals=0x0, args=0xb52fe58, argcount=1, kws=0x9f98ae0, kwcount=2, defs=0x991ed38, defcount=2, closure=0x0) at Python/ceval.c:2875 #7 0x0810f0ba in function_call (func=0x9f32b54, arg=0xb52fe4c, kw=0xa27b679c) at Objects/funcobject.c:517 #8 0x0805a5f7 in PyObject_Call (func=0xb47cc6c, arg=0xb52fe4c, kw=0xa27b679c) at Objects/abstract.c:1861 #9 0x080c46dd in PyEval_EvalFrameEx (f=0xac6737c, throwflag=0) at Python/ceval.c:3892 #10 0x080c7765 in PyEval_EvalCodeEx (co=0x89bce30, globals=0x8ac702c, locals=0x0, args=0xa14d6418, argcount=2, kws=0xa3c2ba0, kwcount=2, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2875 #11 0x0810f0ba in function_call (func=0x8acf144, arg=0xa14d640c, kw=0xa27b69bc) at Objects/funcobject.c:517 #12 0x0805a5f7 in PyObject_Call (func=0xb47cc6c, arg=0xa14d640c, kw=0xa27b69bc) at Objects/abstract.c:1861 #13 0x080c46dd in PyEval_EvalFrameEx (f=0xac671ec, throwflag=0) at Python/ceval.c:3892 #14 0x080c6410 in PyEval_EvalFrameEx (f=0xacf7c1c, throwflag=0) at Python/ceval.c:3698 #15 0x080c7765 in PyEval_EvalCodeEx (co=0x84e1da0, globals=0x84d8acc, locals=0x0, args=0xa0d144e8, argcount=4, kws=0x9d850e8, kwcount=2, defs=0x0, defcount=0, closure=0x9f3944c) at Python/ceval.c:2875 #16 0x0810f0ba in function_call (func=0x9f32cdc, arg=0xa0d144dc, kw=0x9a22824) at Objects/funcobject.c:517 #17 0x0805a5f7 in PyObject_Call (func=0xb47cc6c, arg=0xa0d144dc, kw=0x9a22824) at Objects/abstract.c:1861 #18 0x080c46dd in PyEval_EvalFrameEx (f=0xa2304ba4, throwflag=0) at Python/ceval.c:3892 #19 0x080c7765 in PyEval_EvalCodeEx (co=0x9dcf890, globals=0x857ebdc, locals=0x0, args=0xbb7b5b0, argcount=4, kws=0x9b82858, kwcount=2, defs=0x0, defcount=0, closure=0x9ebf10c) at Python/ceval.c:2875 #20 0x0810f0ba in function_call (func=0xa40de64, arg=0xbb7b5a4, kw=0xa27b6604) at Objects/funcobject.c:517 #21 0x0805a5f7 in PyObject_Call (func=0xb47cc6c, arg=0xbb7b5a4, kw=0xa27b6604) at Objects/abstract.c:1861 #22 0x080c46dd in PyEval_EvalFrameEx (f=0x9c7b0d4, throwflag=0) at Python/ceval.c:3892 #23 0x080c7765 in PyEval_EvalCodeEx (co=0x89ade30, globals=0x89b7acc, locals=0x0, args=0xa275a248, argcount=5, kws=0x9c8e838, kwcount=2, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2875 -- components: None messages: 82522 nosy: qwjqwj severity: normal status: open title: Crash when doing some list iteration type: crash versions: Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5328 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5329] os.popen2 and os.popen3 in python 2.6 incompatible with os.popen* in python 2.5
New submission from Jani Hakala jahak...@iki.fi: 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 tested the patch attached with one of my scripts that failed with python 2.6 and the fix appears to work. -- components: Library (Lib) files: os-popen.diff keywords: patch messages: 82523 nosy: jahakala severity: normal status: open title: os.popen2 and os.popen3 in python 2.6 incompatible with os.popen* in python 2.5 versions: Python 2.6 Added file: http://bugs.python.org/file13140/os-popen.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5329 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5329] os.popen2 and os.popen3 in python 2.6 incompatible with os.popen* in python 2.5
Changes by Jani Hakala jahak...@iki.fi: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5329 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5325] SyntaxError: None when the name of the dir contains non-ascii chars
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Can you try this with 3.0.1? http://python.org/download/releases/3.0.1 -- nosy: +ocean-city ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5325 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5325] SyntaxError: None when the name of the dir contains non-ascii chars
Ezio Melotti ezio.melo...@gmail.com added the comment: With 3.0.1 it seems to work fine. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5325 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5325] SyntaxError: None when the name of the dir contains non-ascii chars
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Thanks, I'll close this entry. -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5325 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5329] os.popen2 and os.popen3 in python 2.6 incompatible with os.popen* in python 2.5
Changes by Jani Hakala jahak...@iki.fi: Added file: http://bugs.python.org/file13141/os-popen.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5329 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5329] os.popen2 and os.popen3 in python 2.6 incompatible with os.popen* in python 2.5
Changes by Jani Hakala jahak...@iki.fi: Removed file: http://bugs.python.org/file13140/os-popen.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5329 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5247] Unhelpful error message with str.format()
Eric Smith e...@trueblade.com 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. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5247 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5247] Unhelpful error message with str.format()
Antoine Pitrou pit...@free.fr added the comment: Looks good to me. I don't think you need to write a specific test for this. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5247 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5305] imaplib should support international mailbox names
Jean-Paul Calderone exar...@divmod.com added the comment: IMAP4 UTF-7 is implemented in Twisted - http://twistedmatrix.com/trac/browser/trunk/twisted/mail/imap4.py#L5385, http://twistedmatrix.com/trac/browser/trunk/twisted/mail/test/test_imap.py#L58. Feel free to re-use any of that code that would be helpful. -- nosy: +exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5305 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5330] profile and cProfile do not report C functions called with keyword arguments
New submission from Hagen Fürstenau hfuerste...@gmx.net: 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 ncalls tottime percall cumtime percall filename:lineno(function) 10.0000.0000.0000.000 string:1(module) 10.0000.0000.0000.000 {built-in method exec} 10.0000.0000.0000.000 {method 'disable' of '_lsprof.Profiler' objects} 10.0000.0000.0000.000 {method 'sort' of 'list' objects} However, once a keyword argument is given, the relevant line is missing: cProfile.run([].sort(reverse=True)) 3 function calls in 0.000 CPU seconds Ordered by: standard name ncalls tottime percall cumtime percall filename:lineno(function) 10.0000.0000.0000.000 string:1(module) 10.0000.0000.0000.000 {built-in method exec} 10.0000.0000.0000.000 {method 'disable' of '_lsprof.Profiler' objects} This happens with profile and cProfile in 2.6 and 3.0. -- components: Library (Lib) messages: 82530 nosy: hagen severity: normal status: open title: profile and cProfile do not report C functions called with keyword arguments type: behavior versions: Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5330 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5247] Unhelpful error message with str.format()
Eric Smith e...@trueblade.com 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 rep...@bugs.python.org http://bugs.python.org/issue5247 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5328] Crash when doing some list iteration
Daniel Diniz aja...@gmail.com 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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5328 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.
Mark Dickinson dicki...@gmail.com 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 possibility of optimizing the multiplication algorithm; the discussion for this should probably go back to issue 3944. Here's a detailed list of the changes to x_divrem. 0. Most importantly, in the inner loop, we make sure that the multiplication is digit x digit - twodigits; previously it was digit x twodigits - twodigits, which is likely to expand to several instructions on a 32-bit machine. I suspect that this is the main cause of the slowdown that Victor was seeing. 1. Make all variables unsigned. This eliminates the need for Py_ARITHMETIC_RIGHT_SHIFT, and also removes the only essential use of stwodigits in the entire long object implementation. 2. Save an iteration of the outer loop when possible by comparing top digits. 3. Remove double tests in the main inner loop and correction loop. 4. Quotient digit correction step follows Knuth more closely, and uses fewer operations. The extra exit condition (r = PyLong_BASE) will be true more than 50% of the time, and should be cheaper than the main test. 5. In quotient digit estimation step, remove unnecessary special case when vj == w-ob_digits[w_size-1]. Knuth only needs this special case because his base is the same as the wordsize. 6. There's no need to fill the eliminated digits of v with zero; instead, set Py_SIZE(v) at the end of the outer loop. 7. More comments; some extra asserts. There are many other optimizations possible; I've tried only to include those that don't significantly complicate the code. An obvious remaining inefficiency is that on every iteration of the outer loop we divide by the top word of w; on many machines I suspect that it would be more efficient to precompute an inverse and multiply by that instead. Added file: http://bugs.python.org/file13142/30bit_longdigit17.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4258 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5331] multiprocessing hangs when Pool used within Process
New submission from mike bayer mike...@zzzcomputing.com: 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 hangs the application. Below is code which illustrates the issue on both py2.6 and py3.0: from multiprocessing import Pool, Process import sys def f(x): return x*x def go(): pool = Pool(processes=4) x = pool.map(f, [1, 2, 3, 4, 5, 6, 7]) sys.stdout.write(result: %s\n % x) def go2(): x = map(f, [1,2,3,4,5,6,7]) sys.stdout.write(result: %s\n % x) # pool alone, fine go() # process alone, fine p = Process(target=go2) p.start() p.join() # use both, hangs p = Process(target=go) p.start() p.join() -- components: Library (Lib) messages: 82534 nosy: zzzeek severity: normal status: open title: multiprocessing hangs when Pool used within Process type: crash versions: Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5331 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue936813] fast modular exponentiation
Mark Dickinson dicki...@gmail.com 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 underway. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue936813 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue936813] fast modular exponentiation
Mark Dickinson dicki...@gmail.com 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 or 5 times faster) for multiplication on 64-bit machines; smaller speedups on 32-bit. Currently, those speedups render your earlier special-case-squaring patch obsolete; I wonder whether there's a way to get the same speedup for squaring. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue936813 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3511] Incorrect charset range handling with ignore case flag?
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: [9-A] is equivalent to [9:;=?...@a], or should be. It'll be fixed in issue #2636. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.
Antoine Pitrou pit...@free.fr 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) - 64-bit with patch:1.5 s. (55% speedup) This is very good work. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4258 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5305] imaplib should support international mailbox names
Martin v. Löwis mar...@v.loewis.de 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 rep...@bugs.python.org http://bugs.python.org/issue5305 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5331] multiprocessing hangs when Pool used within Process
David W. Lambert lamber...@corning.com 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): File stdin, line 1, in module File /usr/users/lambert/bin/python/lib/python3.0/multiprocessing/process.py, line 119, in join res = self._popen.wait(timeout) File /usr/users/lambert/bin/python/lib/python3.0/multiprocessing/forking.py, line 118, in wait return self.poll(0) File /usr/users/lambert/bin/python/lib/python3.0/multiprocessing/forking.py, line 107, in poll pid, sts = os.waitpid(self.pid, flag) KeyboardInterrupt -- nosy: +LambertDW ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5331 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3511] Incorrect charset range handling with ignore case flag?
Ezio Melotti ezio.melo...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue3511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4565] Rewrite the IO stack in C
Benjamin Peterson benja...@python.org 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 rep...@bugs.python.org http://bugs.python.org/issue4565 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5176] Special-case string formatting in BINARY_MODULO implementation
Collin Winter coll...@gmail.com added the comment: Committed as r69811. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5176 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5163] tkinter.scrolledtext: new text is hidden after using insert()
Guilherme Polo ggp...@gmail.com 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', command=text.yview) vbar.pack(side='right', fill='y') text.configure(yscrollcommand=vbar.set) text.after(100, insert) text.mainloop() (or change Tkinter by tkinter to work on python 3.x) Text.see already does what you want, can you argue why adding an option for that would be good ? -- nosy: +gpolo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5163 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5295] turtle.py dicionary spelling patch
Mark Dickinson dicki...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue5295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5332] csv sniffer
New submission from David W. Lambert lamber...@corning.com: 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('csv','rb') dialect=csv.Sniffer().sniff(stream.read(1024)) Traceback (most recent call last): File stdin, line 1, in module File /usr/users/lambert/bin/python/lib/python3.0/csv.py, line 169, in sniff self._guess_quote_and_delimiter(sample, delimiters) File /usr/users/lambert/bin/python/lib/python3.0/csv.py, line 210, in _guess_quote_and_delimiter matches = regexp.findall(data) TypeError: can't use a string pattern on a bytes-like object Here's the conflicting documentation statement: If csvfile is a file object, it must be opened with the ‘b’ flag on platforms where that makes a difference. ... see section Dialects and Formatting Parameters. All data read are returned as strings. No automatic data type conversion is performed. (Problem is that the binary file returnd data of type bytes.) Thanks, Dave. -- components: Library (Lib) messages: 82546 nosy: LambertDW severity: normal status: open title: csv sniffer type: behavior versions: Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5332 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5295] turtle.py dicionary spelling patch
Mark Dickinson dicki...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue5295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5293] socket timeouts even in blocking mode
anatoly techtonik techto...@gmail.com 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 correctly. I still feel that the information about error handling should be specified at the very beginning before references to wizard books. In the meanwhile I made a script that probes remote service with proper timeout checks that can be included in examples chapter. It requires time module to calculate timeout shared between two exceptions. http://code.activestate.com/recipes/576655/ ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5293 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5333] os.kill() inconsistency
New submission from Giampaolo Rodola' billiej...@users.sourceforge.net: On Linux Ubuntu equipped with Python 2.6.1 I get this: os.kill(9, 0) Traceback (most recent call last): File stdin, line 1, in ? OSError: [Errno 3] No such process print os.kill(-1, 0) None IMHO the latter case should raise No such process for consistency or, at least ValueError, but surely not returning None. -- messages: 82549 nosy: giampaolo.rodola severity: normal status: open title: os.kill() inconsistency versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5333 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5333] os.kill() inconsistency
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: Oddly, by passing -2 as PID no such process is raised: os.kill(-2, 0) Traceback (most recent call last): File stdin, line 1, in ? OSError: [Errno 3] No such process ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5333 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5333] os.kill() inconsistency
Jean-Paul Calderone exar...@divmod.com added the comment: Read the docs for kill(2). -1 is a completely legitimate PID. Recommend close as invalid. -- nosy: +exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5333 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5333] os.kill() inconsistency
Guilherme Polo ggp...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue5333 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4753] Faster opcode dispatch on gcc
Changes by Joshua Bronson jabron...@gmail.com: -- nosy: +jab ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4753 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1047540] Turtle.py hangs Idle
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I started Idle from a command prompt: C:\Python30python 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\__init__.py, line 1405, in __call__ return self.func(*args) File C:\Python30\Lib\tkinter\__init__.py, line 493, in callit func(*args) File C:\Python30\lib\idlelib\ColorDelegator.py, line 152, in recolorize self.recolorize_main() File C:\Python30\lib\idlelib\ColorDelegator.py, line 185, in recolorize_main next = self.index(mark + +%d lines linestart % File C:\Python30\Lib\idlelib\Delegator.py, line 10, in __getattr__ attr = getattr(self.delegate, name) # May raise AttributeError AttributeError: 'NoneType' object has no attribute 'index' Exception in Tkinter callback Traceback (most recent call last): File C:\Python30\Lib\tkinter\__init__.py, line 1405, in __call__ return self.func(*args) File C:\Python30\lib\idlelib\MultiCall.py, line 165, in handler r = l[i](event) File C:\Python30\lib\idlelib\IOBinding.py, line 222, in open self.editwin.flist.open(filename) File C:\Python30\lib\idlelib\FileList.py, line 36, in open edit = self.EditorWindow(self, filename, key) File C:\Python30\Lib\idlelib\PyShell.py, line 114, in __init__ if self.io.filename: self.restore_file_breaks() File C:\Python30\Lib\idlelib\PyShell.py, line 222, in restore_file_breaks filename = self.io.filename AttributeError: 'NoneType' object has no attribute 'filename' -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1047540 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5333] os.kill() inconsistency
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: You're right. My fault. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5333 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5323] document expected/required behavior of 3.x io subsystem with respect to buffering
Amaury Forgeot d'Arc amaur...@gmail.com 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. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5323 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2459] speedup for / while / if with better bytecode
Collin Winter coll...@gmail.com added the comment: On Fri, Feb 13, 2009 at 3:23 PM, Collin Winter coll...@gmail.com wrote: On Fri, Feb 13, 2009 at 10:37 AM, Antoine Pitrou rep...@bugs.python.org 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. Ideally, I should fold the #4715 patch back into the present patch, since I think the #4715 approach is more thought out. That sounds good, especially since Jeffrey and I have already reviewed #4715. If you don't have the bandwidth to integrate 4715 into this patch, I can do that, if you want. Collin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2459 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2459] speedup for / while / if with better bytecode
Antoine Pitrou pit...@free.fr 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. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2459 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5285] hmac throws TypeErrors
Changes by victor pyt...@victorstar.com: -- nosy: +victorstar ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5285 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5331] multiprocessing hangs when Pool used within Process
Changes by Benjamin Peterson benja...@python.org: -- assignee: - jnoller nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5331 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3742] Parsing XML file with Unicode characters causes problem
Changes by Benjamin Peterson benja...@python.org: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3742 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5334] array.fromfile() fails to insert values when EOFError is raised
New submission from Zac Medico zmed...@gentoo.org: 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 documentation states it should: array.fromfile(f, n) Read n items (as machine values) from the file object f and append them to the end of the array. If less than n items are available, EOFError is raised, but the items that were available are still inserted into the array. f must be a real built-in file object; something else with a read() method won’t do. -- components: Library (Lib) files: fromfile_eof.py messages: 82558 nosy: zmedico severity: normal status: open title: array.fromfile() fails to insert values when EOFError is raised type: behavior versions: Python 3.0 Added file: http://bugs.python.org/file13143/fromfile_eof.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5334 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5334] array.fromfile() fails to insert values when EOFError is raised
Changes by Zac Medico zmed...@gentoo.org: Added file: http://bugs.python.org/file13144/fromfile_eof.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5334 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5334] array.fromfile() fails to insert values when EOFError is raised
Changes by Zac Medico zmed...@gentoo.org: Removed file: http://bugs.python.org/file13143/fromfile_eof.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5334 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5323] document expected/required behavior of 3.x io subsystem with respect to buffering
R. David Murray rdmur...@bitdance.com 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 source without blocking as long as at least one line is available. However, I do not see any documentation of the relationship between readline and next, except the negative one that no restriction on mixing them is documented. Since there used to be such a restriction, noting that there isn't one is probably worthwhile. Or perhaps better, a specification that '__next__' calls 'readline'. (And the behavior difference with respect to tell, which I don't fully understand, should also be documented.) TextIOWrapper says it wraps a BufferedIOBase object. The doc for that class talks about read possibly doing readahead for a 'non-interactive' file. What about pipes? They are not mentioned, and it would be good to have short reads on pipes for the same reason that it is good to have short reads on ttys. The IOBase only specifies an 'isatty' method. It took me a while to understand what was going on well enough to write the above paragraphs, partly because I read the code first :). I'm finding the documentation confusing, so I might as well talk about the issues I ran into. The implementation of TextIOWrapper calls the buffer's 'read1' method in _read_chunk. But BufferedIOBase does not define read1, nor does its base class, IOBase. open does pass TextIOWrapper a BufferedReader object which does define read1, which is why it works, but I don't see any documentation saying that the buffer argument to TextIOWrapper must provide a 'read1' method with certain semantics. The docs indicate BufferedIOBase is the minimum requirement. Is the definition of 'read1' missing from BufferedIOBase? I also notice that while open passes TextIOWrapper an appropriate value for line_buffering (assuming we ignore the pipe issue), TextIOWrapper ignores it for reading. I suppose that that is an implementation detail only. After staring at it for a while, I finally came to an understanding of the statement in BufferedIOBase that A typical implementation should not inherit from a RawIOBase implementation, but wrap one like BufferedWriter and BufferedReader. I understand this to mean that BufferedIOBase is really an ABC and should be concretized as a wrapper rather than doing multiple inheritance with RawIOBase. I don't think I would have figured that out without reading the code, though. I believe that adding the word 'do' at the end of that sentence would make the meaning clear. A similarly confusing bit is the first sentence of the documentation of TextIOWrapper. Currently it says A buffered text stream over a BufferedIOBase raw stream... I think it would be clearer if it said something like A buffered text stream wrapper around a BufferedIOBase derived wrapper around a raw stream... That's a bit unwieldy, but it is nontheless (IMO) more comprehensible. I will look at the tests more carefully and make sure that all my use cases are in fact covered. --RDM ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5323 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5163] tkinter.scrolledtext: new text is hidden after using insert()
David Schultz ringh...@cox.net 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 otherwise. On Feb 20, 2009, at 12:36 PM, Guilherme Polo wrote: Guilherme Polo ggp...@gmail.com 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', command=text.yview) vbar.pack(side='right', fill='y') text.configure(yscrollcommand=vbar.set) text.after(100, insert) text.mainloop() (or change Tkinter by tkinter to work on python 3.x) Text.see already does what you want, can you argue why adding an option for that would be good ? -- nosy: +gpolo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5163 ___ ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5163 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5335] mmap can crash with tagname (on windows)
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: 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(), 5000, tagname=foo) # use same tagname, but larger size print len(m2[:]) # crash / // After patch applied Traceback (most recent call last): File b.py, line 4, in module m2 = mmap.mmap(f.fileno(), 5000, tagname=foo) WindowsError: [Error 5] アクセスが拒否されました。(Access Denied) [15495 refs] / Calling MapViewOfFile with size 0 means map entire file, so m2 = mmap.mmap(f.fileno(), 5000, tagname=foo) maps existing memory region sized 1000. But mmap thinks its size is 5000, no IndexError raised, and accessed illegal memory area and crashes. -- components: Extension Modules, Windows files: fix_tagname_crash.patch keywords: patch messages: 82561 nosy: ocean-city severity: normal status: open title: mmap can crash with tagname (on windows) type: crash versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1 Added file: http://bugs.python.org/file13145/fix_tagname_crash.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5335 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1518] Fast globals/builtins access (patch)
Changes by Gregory P. Smith g...@krypto.org: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1518 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com