[issue1503] test_xmlrpc is still flakey

2008-03-27 Thread Neal Norwitz
Neal Norwitz <[EMAIL PROTECTED]> added the comment: Ugh. The manpage for accept on Ubuntu 6.10 says: """ On Linux, the new socket returned by accept() does not inherit file status flags such as O_NONBLOCK and O_ASYNC from the listening socket. This behaviour differs from the canonical BS

[issue2497] stdbool support

2008-03-27 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > Some compilers define false and true as macros. Which compilers specifically? It sounds like a violation of the C standard to do so, without stdbool.h being included. > Using stdbool.h when it is available will ensure bool is defined as a

[issue2459] speedup loops with better bytecode

2008-03-27 Thread Jeffrey Yasskin
Changes by Jeffrey Yasskin <[EMAIL PROTECTED]>: -- nosy: +jyasskin __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscr

[issue2496] test_no_refcycle_through_target sometimes fails in test_threading

2008-03-27 Thread Jeffrey Yasskin
Jeffrey Yasskin <[EMAIL PROTECTED]> added the comment: Fixed in r61984. I believe the exception info was actually keeping the object alive. The thread itself didn't have any references to it, but the traceback did. -- resolution: -> fixed status: open -> closed

[issue2499] Fold unary + and not on constants

2008-03-27 Thread Alexander Belopolsky
New submission from Alexander Belopolsky <[EMAIL PROTECTED]>: Before: >>> dis(lambda:+2) 1 0 LOAD_CONST 0 (2) 3 UNARY_POSITIVE 4 RETURN_VALUE >>> dis(lambda:not 2) 1 0 LOAD_CONST 0 (2) 3 U

[issue2496] test_no_refcycle_through_target sometimes fails in test_threading

2008-03-27 Thread Jeffrey Yasskin
Jeffrey Yasskin <[EMAIL PROTECTED]> added the comment: I think I've confirmed your diagnosis. If I add a _sleep(.01) to Thread.__bootstrap_inner() just after the call to self.__stop(), the test fails reliably. Very good catch! Given that, I think just adding a short sleep to the test before count

[issue2453] fix_except needs to allow for empty excepts

2008-03-27 Thread Collin Winter
Collin Winter <[EMAIL PROTECTED]> added the comment: Fixed in r61983. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __

[issue2480] pickling of large recursive structures fails

2008-03-27 Thread Jesús Cea Avión
Changes by Jesús Cea Avión <[EMAIL PROTECTED]>: -- nosy: +jcea __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe:

[issue2497] stdbool support

2008-03-27 Thread Rolland Dudemaine
Rolland Dudemaine <[EMAIL PROTECTED]> added the comment: Some compilers define false and true as macros. When doing this, the definition in asdl.h (included from asdl.c) which is originally : typedef enum {false, true} bool; therefore becomes : typedef enum {0, 1} bool; which is non-sensical. Us

[issue2495] tokenize doesn't handle __future__.unicode_literals correctly

2008-03-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Actually, the problem is that untokenize does not put spaces between two consecutive string literals: '' '' => Corrected with r61979. Will backport -- nosy: +amaury.forgeotdarc resolution: -> fixed status: open -> closed

[issue2496] test_no_refcycle_through_target sometimes fails in test_threading

2008-03-27 Thread Jeffrey Yasskin
Jeffrey Yasskin <[EMAIL PROTECTED]> added the comment: I'll look at this tonight. -- assignee: -> jyasskin nosy: +jyasskin __ Tracker <[EMAIL PROTECTED]> __ __

[issue2498] bdb modernized

2008-03-27 Thread Benjamin Peterson
New submission from Benjamin Peterson <[EMAIL PROTECTED]>: bdb.py has several places like this: try: try: pass except BdbQuit: pass finally: pass These can be modernized to the > 2.5 syntax. -- assignee: georg.brandl components: Library (Lib) files: bdb_modern.patch keywords: pat

[issue2078] CSV Sniffer does not function properly on single column .csv files

2008-03-27 Thread Jean-Philippe Laverdure
Jean-Philippe Laverdure <[EMAIL PROTECTED]> added the comment: Hi Skip, You're right, it does seem that using f.read(1024) to feed the sniffer works OK in my case and allows me to instantiate the DictReader correctly... Why that is I'm not sure though... I was submitting the first line as I th

[issue2459] speedup loops with better bytecode

2008-03-27 Thread Lauro Moura
Changes by Lauro Moura <[EMAIL PROTECTED]>: -- nosy: +lauromoura __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscrib

[issue2497] stdbool support

2008-03-27 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Why does it improve portability to use stdbool.h when it exists? What is the potential issue with asdl.c that gets fixed with this patch? -- nosy: +loewis __ Tracker <[EMAIL PROTECTED]>

[issue2451] No way to disable socket timeouts in httplib, etc.

2008-03-27 Thread John J Lee
John J Lee <[EMAIL PROTECTED]> added the comment: Great. I'll try to submit a patch this weekend. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list

[issue433030] SRE: (?>...) is not supported

2008-03-27 Thread Jeffrey C. Jacobs
Changes by Jeffrey C. Jacobs <[EMAIL PROTECTED]>: -- nosy: +timehorse Tracker <[EMAIL PROTECTED]> ___ Python-bugs-list mailing list

[issue2459] speedup loops with better bytecode

2008-03-27 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Armin, your patch gives a speed-up for "for" loops and comprehensions, although a bit less. Also, it doesn't speed up "while" loops and "if" statements at all. For some reasons it also appears to make pystone a bit slower. Here are some micro-

[issue2496] test_no_refcycle_through_target sometimes fails in test_threading

2008-03-27 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: I'm attaching a patch which tries to make the test a bit less flaky (well, it still is, since I introduce a time.sleep() :-)). Added file: http://bugs.python.org/file9878/test_threading2.patch __ Tracker <[EMA

[issue2406] Improvement suggestions for the gzip module documentation

2008-03-27 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: If I could I would commit it, but you have my support on this one nevertheless ;) __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2496] test_no_refcycle_through_target sometimes fails in test_threading

2008-03-27 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Hmm, I think I know what happens. t_bootstrap() in threadmodule.c calls the self.__bootstrap() method in the Thread object, and it is this method which sets the __stopped flag at its end, which in turns wakes up the join() method. The problem

[issue2459] speedup loops with better bytecode

2008-03-27 Thread Armin Rigo
Armin Rigo <[EMAIL PROTECTED]> added the comment: Can you see if this simpler patch also gives speed-ups? (predict_loop.diff) -- nosy: +arigo Added file: http://bugs.python.org/file9877/predict_loop.diff __ Tracker <[EMAIL PROTECTED]>

[issue2406] Improvement suggestions for the gzip module documentation

2008-03-27 Thread M.-A. DARCHE
M.-A. DARCHE <[EMAIL PROTECTED]> added the comment: Here is the diff of the suggested modifications, which include Guilherme remarks. This is the kind of doc I would have like to read when I needed it. Regards. -- keywords: +patch Added file: http://bugs.python.org/file9876/gzip.rst.di

[issue2078] CSV Sniffer does not function properly on single column .csv files

2008-03-27 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Jean-Philippe> The fact is this code is in use in an application where Jean-Philippe> users can submit a .csv file produced by Excel for Jean-Philippe> treatment. The file must contain a "Sequence" column Jean-Philippe> since that

[issue2496] test_no_refcycle_through_target sometimes fails in test_threading

2008-03-27 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Hmm, even with a Py_DEBUG build I can't reproduce the bug. __ Tracker <[EMAIL PROTECTED]> __ ___ Py

[issue2078] CSV Sniffer does not function properly on single column .csv files

2008-03-27 Thread Jean-Philippe Laverdure
Jean-Philippe Laverdure <[EMAIL PROTECTED]> added the comment: Hello and sorry for the late reply. Wolfgang: sorry about my misuse of the csv.DictReader constructor, that was a mistake on my part. However, it still is not functionning as I think it should/could. Look at this: Using this conte

[issue2497] stdbool support

2008-03-27 Thread Rolland Dudemaine
Changes by Rolland Dudemaine <[EMAIL PROTECTED]>: -- type: -> compile error __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue2497] stdbool support

2008-03-27 Thread Rolland Dudemaine
New submission from Rolland Dudemaine <[EMAIL PROTECTED]>: For better portability, it is good to support stdbool.h when it exists. This prevents a potential issue when compiling asdl.c. Patch attached. -- components: Build files: python_stdbool_20080327.diff keywords: patch messages: 645

[issue1294959] Problems with /usr/lib64 builds.

2008-03-27 Thread Alexander Belopolsky
Alexander Belopolsky <[EMAIL PROTECTED]> added the comment: Placing the entire library tree in /usr/lib64 is wasteful on dual 32/64bit installation, but placing just the C modules there is contrary to python import logic and may cause problems to relative imports. I have suggested what I belie

[issue1294959] Problems with /usr/lib64 builds.

2008-03-27 Thread Alexander Belopolsky
Alexander Belopolsky <[EMAIL PROTECTED]> added the comment: Can someone update the priority so that this is looked at before the 2.6 release? -- nosy: +belopolsky _ Tracker <[EMAIL PROTECTED]> ___

[issue2375] PYTHON3PATH environment variable to supersede PYTHONPATH for multi-Python environments

2008-03-27 Thread Alexander Belopolsky
Alexander Belopolsky <[EMAIL PROTECTED]> added the comment: I have never had a problem of different python versions coexisting on the same machine, but having 32-bit and 64-bit python coexist is much harder. Particularly when 32-bit python is compiled on the 64-bit OS (using -m32 flag). There

[issue2248] quit() method of SMTP instance (of smtplib) doesn't return it's result

2008-03-27 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Added docs and committed as r61977. -- nosy: +georg.brandl resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __

[issue812750] OSA support for properties broken

2008-03-27 Thread Georg Brandl
Changes by Georg Brandl <[EMAIL PROTECTED]>: -- priority: high -> low Tracker <[EMAIL PROTECTED]> ___ Python-bugs-list mailing list

[issue1261390] import dynamic library bug?

2008-03-27 Thread Georg Brandl
Changes by Georg Brandl <[EMAIL PROTECTED]>: -- resolution: -> out of date status: open -> closed _ Tracker <[EMAIL PROTECTED]> _ __

[issue2375] PYTHON3PATH environment variable to supersede PYTHONPATH for multi-Python environments

2008-03-27 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: I even run modules compiled for Python 2.2 successfully on 2.5... -- nosy: +georg.brandl __ Tracker <[EMAIL PROTECTED]> __ _

[issue2443] uninitialized access to va_list

2008-03-27 Thread Rolland Dudemaine
Rolland Dudemaine <[EMAIL PROTECTED]> added the comment: Actually, this thing is more complex to solve than I thought. Specifically, as described in http://www.opengroup.org/onlinepubs/007908775/xsh/stdarg.h.html stdarg requires that variable argument functions have at least one fixed argument. T

[issue2406] Improvement suggestions for the gzip module documentation

2008-03-27 Thread M.-A. DARCHE
M.-A. DARCHE <[EMAIL PROTECTED]> added the comment: Thanks Guilherme (I hope Guilherme is your first name) for your very constructive answer. I'll do exactly as you suggest. Regards __ Tracker <[EMAIL PROTECTED]> __

[issue2496] test_no_refcycle_through_target sometimes fails in test_threading

2008-03-27 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: This is a tentative patch. I can't verify it fixes anything but at least it shouldn't do any harm ;) If it doesn't fix it I see two possible explanations: - the buildbots are running some kind of debug build which keeps references to local var

[issue2451] No way to disable socket timeouts in httplib, etc.

2008-03-27 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Mmm it seems that not only overlooked this final agreement, but also forgot it! Bloody brain, :( I'll happily review any proposed patch for this. Alan, maybe you can be persuaded to submit one? <.5 wink> -- resolution: wont fix

[issue2494] Can't round-trip datetimes<->timestamps prior to 1970 on Windows

2008-03-27 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: It's most likely a platform limitation. Some platforms doen't support negative time stamps. -- nosy: +tiran __ Tracker <[EMAIL PROTECTED]> _

[issue2495] tokenize doesn't handle __future__.unicode_literals correctly

2008-03-27 Thread Christian Heimes
New submission from Christian Heimes <[EMAIL PROTECTED]>: See r61976 Clear the blacklist and run the test with ./python Lib/test/regrtest.py -uall test_tokenize to reproduce the issue. -- components: Library (Lib) messages: 64582 nosy: tiran priority: normal severity: normal status

[issue2496] test_no_refcycle_through_target sometimes fails in test_threading

2008-03-27 Thread Antoine Pitrou
New submission from Antoine Pitrou <[EMAIL PROTECTED]>: This is a reminder for the failing test which is affecting some buildbots. I can't reproduce it right now (under Linux), even by surrounding the test code with a pair of gc.disable() / gc.enable(). -- components: Library (Lib) messa

[issue1555570] email parser incorrectly breaks headers with a CRLF at 8192

2008-03-27 Thread Thomas Guettler
Thomas Guettler <[EMAIL PROTECTED]> added the comment: I was hit by this bug in Django. The ticket URL: http://code.djangoproject.com/ticket/6256 It would be nice if this could be fixed. -- nosy: +guettli _ Tracker <[EMAIL PROTECTED]>

[issue2406] Improvement suggestions for the gzip module documentation

2008-03-27 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: Hello, (some comments) What about using gzip.open instead of GzipFile ? It is just a shorthand, but I prefer it (just my opinion). Also, remove those semicolons. At the second example you called close on the string object, I guess you inten

[issue815646] thread unsafe file objects cause crash

2008-03-27 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: A small addition to Christian's code snippet allows me to reproduce the problem as well: import thread f=open("tmp1", "w") def worker(): global f while 1: f.close() f = open("tmp1", "w") f.seek(0,0) thread.

[issue2494] Can't round-trip datetimes<->timestamps prior to 1970 on Windows

2008-03-27 Thread Mark Summerfield
New submission from Mark Summerfield <[EMAIL PROTECTED]>: # If you run the code below on Py30a3 you get the output shown at the end import calendar, datetime, time pastdate = datetime.datetime(1969, 12, 31) print(pastdate) timestamp = calendar.timegm(pastdate.utctimetuple()) print(timestamp) try

[issue2459] speedup loops with better bytecode

2008-03-27 Thread P. Henrique Silva
Changes by P. Henrique Silva <[EMAIL PROTECTED]>: -- nosy: +phsilva __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubsc