[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-27 Thread Nir Aides
Changes by Nir Aides : Added file: http://bugs.python.org/file16680/bfs.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-27 Thread Nir Aides
Changes by Nir Aides : Removed file: http://bugs.python.org/file16679/bfs.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue8247] Can't Import Tkinter

2010-03-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: Can you please check the event log? -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list ma

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-27 Thread Nir Aides
Nir Aides added the comment: I update bfs.patch. It now builds on Windows (and Posix). -- Added file: http://bugs.python.org/file16679/bfs.patch ___ Python tracker ___ __

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-27 Thread Nir Aides
Changes by Nir Aides : Removed file: http://bugs.python.org/file16663/bfs.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue8248] Add test cases for bool

2010-03-27 Thread Gregory Nofi
Changes by Gregory Nofi : Added file: http://bugs.python.org/file16678/test_bool.v3.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue8248] Add test cases for bool

2010-03-27 Thread Gregory Nofi
New submission from Gregory Nofi : These patches add these new test cases to test_bool.py. Python 2+3: - Conversion to float - Conversion to Decimal - Calling bool() of built-in types Python 2 only: - __index__() - Conversion to long - sprintf formatting NOTE: I'm currently helping Dino Viehla

[issue8247] Can't Import Tkinter

2010-03-27 Thread Matt B
New submission from Matt B : >>> import _tkinter Traceback (most recent call last): File "", line 1, in ImportError: DLL load failed: %1 is not a valid Win32 application. I 'upgraded' to python 2.6.5 by downloading the windows 64 bit installer. I'm running windows 7 64 bit. Everything work

[issue1220212] os.kill on windows

2010-03-27 Thread Brian Curtin
Brian Curtin added the comment: I have this working with process IDs and my vote would be to keep it that way, as it would stay in-line with the other platforms, and it seems to work so far. I would imagine that was also IronPython's goal. I'm still working on the test portion of the patch. I

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-03-27 Thread Scott Tsai
Changes by Scott Tsai : -- nosy: +scott.tsai ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7900] posix.getgroups() failure on Mac OS X

2010-03-27 Thread Michael Foord
Michael Foord added the comment: I have a consistently failing test on my machine. If the answer is indeed "won't fix" and both os.getgroups() and os.setgroups() are not expected to work correctly on Mac OS X then the tests should be disabled for that platform. -- nosy: +michael.foord

[issue7900] posix.getgroups() failure on Mac OS X

2010-03-27 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue4758] Python 3.x internet documentation needs work

2010-03-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue8207] test_pep277 fails on OS X

2010-03-27 Thread Florent Xicluna
Florent Xicluna added the comment: Fixed on trunk with r79426 and on 3.x with r79474 -- resolution: accepted -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-03-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue8246] test_signal in test_subprocess displays traceback

2010-03-27 Thread Florent Xicluna
Florent Xicluna added the comment: Merged in 3.x with r79473 -- assignee: gregory.p.smith -> flox status: pending -> closed ___ Python tracker ___ ___

[issue1220212] os.kill on windows

2010-03-27 Thread Michael Foord
Michael Foord added the comment: Hmm... well my particular use case is that it should work with the value returned by os.getpid(). If that is a process handle then it is nice and convenient to just use process handles. The docs don't specify so I bet it returns a pid. :-( However Brian Curti

[issue1220212] os.kill on windows

2010-03-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: So, Michael, what do you think: should os.kill expect a process handle, or a process ID? -- ___ Python tracker ___

[issue8235] Support FreeBSD's SO_SETFIB in socketmodule.c

2010-03-27 Thread Larry Hastings
Larry Hastings added the comment: Kyle asked me to look at this; I think it looks ready for checkin, so unless someone else jumps in with something to say I'll check it in in a day or two. It's not going in to 2.6 however, just 2.7 trunk and probably 3.2. -- nosy: +larry versions: -

[issue7913] Enhance Cmd support for docstrings and document it.

2010-03-27 Thread Éric Araujo
Éric Araujo added the comment: > The problem with using textwrap is that you'd have to identify paragraph > boundaries > and example code to avoid messing up the meaning of the doc string. I thought dedent just worked. Can you provide a simple example to help me understand this problem? Does

[issue7913] Enhance Cmd support for docstrings and document it.

2010-03-27 Thread R. David Murray
R. David Murray added the comment: The problem with using textwrap is that you'd have to identify paragraph boundaries and example code to avoid messing up the meaning of the doc string. At that point, one might as well go for full ReST markup parsing, and I don't think that is appropriate :

[issue8246] test_signal in test_subprocess displays traceback

2010-03-27 Thread Florent Xicluna
Florent Xicluna added the comment: It is already fixed in 2.7, with r79344, r79346 and r79350. Need porting to other branches. -- resolution: -> out of date stage: needs patch -> committed/rejected status: open -> pending ___ Python tracker

[issue8245] email examples don't actually work (SMTP.connect is not called)

2010-03-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: Matt, I hope you don't mind, but I added you as nosy on this issue as it relates to a change you suggested. -- nosy: +matt ___ Python tracker

[issue8245] email examples don't actually work (SMTP.connect is not called)

2010-03-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: According to issue4239#msg75355, the connect call is not required, but I believe he is mistaken. The connect call is required unless the s object is constructed with host/port parameters, in which case the call to connect (without any parameters) will result

[issue8245] email examples don't actually work (SMTP.connect is not called)

2010-03-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: It appears in r71882, the change was made in deference to issue4239. -- ___ Python tracker ___ ___

[issue8236] ./configure: ImportError: No module named asdl (when run from buildout's python)

2010-03-27 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: I am not sure how "import asdl" works. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue8246] test_signal in test_subprocess displays traceback

2010-03-27 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list maili

[issue7913] Enhance Cmd support for docstrings and document it.

2010-03-27 Thread Éric Araujo
Éric Araujo added the comment: Hello This would be a nice improvement. This weakness is indeed mentioned on PyMotW. How about using textwrap.dedent? Regards -- nosy: +merwok ___ Python tracker __

[issue8246] test_signal in test_subprocess displays traceback

2010-03-27 Thread Antoine Pitrou
New submission from Antoine Pitrou : test_signal in test_subprocess doesn't mute the subprocess stderr, which gives output such as: test_subprocess . this bit of output is from a test of stdout in a different process ... . this bit of output is from a test of stdout in a different proce

[issue8236] ./configure: ImportError: No module named asdl (when run from buildout's python)

2010-03-27 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Ah, I see what is happening. My $PATH has a buildout's python (bin/python) path. Apparently that is messing up with sys.path. Using /usr/local/bin/python, for instance, in $PATH does not give this problem. -- title: ./configure: ImportError: No mo

[issue8236] ./configure: ImportError: No module named asdl

2010-03-27 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: I didn't have to run 'make distclean', because this is a fresh clone. $ hg clone http://code.python.org/hg/branches/release2.6-maint/ $ cd release2.6-maint $ ./configure --prefix=`pwd`/i $ make ./Parser/asdl_c.py -h ./Include ./Parser/Python.asdl Traceback

[issue8245] email examples don't actually work (SMTP.connect is not called)

2010-03-27 Thread Jason R. Coombs
New submission from Jason R. Coombs : Documentation for Python 2.6.5 and 3.1.2 both describe using the smtplib as so: s = smtplib.SMTP() s.sendmail(me, [you], msg.as_string()) s.quit() However, this sample usage is incorrect and doesn't work in practice, because s.connect() is neve

[issue8074] Fail-fast behavior for unittest

2010-03-27 Thread Michael Foord
Michael Foord added the comment: Ctrl-C handling now implemented (-c command line option). Still needs documentation, but there is a bunch of this outstanding and I will do it in one go and rework the unittest docs at the same time. -- stage: needs patch -> committed/rejected status:

[issue2706] datetime: define division timedelta/timedelta

2010-03-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue8244] Remove obsolete update.sh in PEPs repo

2010-03-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: You're right, the script even uses CVS. Fixed in r79470. -- nosy: +pitrou resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue8244] Remove obsolete update.sh in PEPs repo

2010-03-27 Thread Éric Araujo
New submission from Éric Araujo : Hello A script named update.sh was added to the PEPs repository seven years ago to batch convert text PEPs to HTML and push them to a public server (http://svn.python.org/view/peps/trunk/update.sh). I suggest removing it as it appears to have been unmaintain

[issue1220212] os.kill on windows

2010-03-27 Thread Michael Foord
Changes by Michael Foord : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1220212] os.kill on windows

2010-03-27 Thread Michael Foord
Changes by Michael Foord : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/

[issue1220212] os.kill on windows

2010-03-27 Thread Michael Foord
Michael Foord added the comment: To make it clear, even though it would be incomplete, a partial implementation of os.kill(...) for Windows would be very useful and provide some level of compatibility with applications that use os.kill (so even if os.kill(...) duplicates functionality in othe

[issue1220212] os.kill on windows

2010-03-27 Thread Michael Foord
Michael Foord added the comment: To make it clear, even though it would be incomplete, a partial implementation of os.kill(...) for Windows would be very useful and provide some level of compatibility with applications that use os.kill (so even if os.kill(...) duplicates functionality in othe

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2010-03-27 Thread Vinay Sajip
Vinay Sajip added the comment: João Paulo Farias added the comment: > Ok.. I was hoping for a solution that did not involve running a > separate process just for logging. It needn't *just* be for logging - as long as it doesn't spawn any child processes. And the need to run a separate proc

[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-03-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-03-27 Thread STINNER Victor
STINNER Victor added the comment: > ..., the doc says about SSLSocket.write: > > Returns the number of bytes written. > > It actually either returns 0 or len(data), at least as long as we don't > have SSL partial writes. That's a different behaviour from regular > sockets, and I had to look

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file16329/gilinter.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file16317/gilprio.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file16238/issuegil.txt ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm, the gilinter patch shouldn't be sensitive to whether computed gotos are enabled or not. Here is an updated patch, though, the previous one didn't apply cleanly anymore. I've also made the priority condition a bit stricter. -- Added file: http://b

[issue8188] Unified hash for numeric types.

2010-03-27 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a version of the patch that adds exact comparisons between the various numeric types. The only slightly tricky comparison is the Fraction <-> Decimal one: an obvious strategy is to convert the Decimal exactly to a Fraction and then use the fraction c

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2010-03-27 Thread João Paulo Farias
João Paulo Farias added the comment: Ok.. I was hoping for a solution that did not involve running a separate process just for logging. Gabriel: Yeah, I have a python application that uses threads and spawns processes, even tho the processes it spawns have nothing related to the log file. A

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2010-03-27 Thread Vinay Sajip
Vinay Sajip added the comment: > From: João Paulo Farias > I dont see the resolution for this problem yet... What should I > do to not have it happen? Don't use RotatingFileHandler in any process which spawns a subprocess. In a multiprocess situation where you want to use rotating log files

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-27 Thread Nir Aides
Nir Aides added the comment: gilinter.patch has good IO latency in UDP test on my system when built with --with-computed-gotos: In [34]: %timeit -n3 client.work() 0.320 seconds (32782026.509 bytes/sec) 0.343 seconds (30561727.443 bytes/sec) 0.496 seconds (21154075.417 bytes/sec) 0.326 seconds