[issue7447] Sum() doc and behavior mismatch

2009-12-06 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: georg.brandl -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue1923] meaningful whitespace can be lost in rfc822_escape

2009-12-06 Thread Tarek Ziadé
Tarek Ziadé added the comment: I will treat the empty line problem in another issue because I won't apply it in 2.6/3.1. This one is fixed in r76684, r76685, r76686, r76687. Thanks ! -- status: open -> closed versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 -Python 2.5 _

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2009-12-06 Thread flox
flox added the comment: Proposed patch fixes most of the discrepancies between both implementations. It restores some features that were lost with Python 3: * cElement slicing and extended slicing * iterparse, cET.getiterator and cET.findall return an iterator (as documented) Some tests w

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2009-12-06 Thread flox
Changes by flox : Added file: http://bugs.python.org/file15462/issue6472_py3k.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

2009-12-06 Thread Mark Dickinson
Mark Dickinson added the comment: Tom, I think I'm missing your point: all three of the examples you give seem like perfect candidates for a key-based sort rather than a comparison-based one. For the first example, couldn't you do something like: def direction(pt1, pt2): """angle of li

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread R. David Murray
R. David Murray added the comment: With just the test patch applied, test_imaplib passes for me on trunk r76687. -- nosy: +r.david.murray ___ Python tracker ___ _

[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

2009-12-06 Thread Tom Switzer
Tom Switzer added the comment: Mark: I think your example actually helps illustrate my point. My point was that computing the angle directly is less efficient or not as nice numerically. For instance, if you are sorting points by angle relative to an extreme point you could do something like thi

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread R. David Murray
R. David Murray added the comment: Ah, your new test isn't being run, that's why test_impalib passes. Let me figure out why your test isn't run. -- ___ Python tracker ___ __

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread Scott Dial
Scott Dial added the comment: The test requires regrtest.py be run with network support and the python instance be built with threads. $ ./python Lib/test/regrtest.py -u network test_imaplib Without network support, it just skips those test (which is the same way test_ssl). That seemed a bit f

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread R. David Murray
R. David Murray added the comment: OK, after adding ThreadedNetworkedTests to the 'tests' list in test_main, the new tests ran and did hang. After applying the imaplib patch, the new tests completed. However, afterward I got the following traceback: Exception in thread Thread-6 (most likely r

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread R. David Murray
R. David Murray added the comment: Ah, my mistake, I misread the code, sorry. Yes, if I supply -uall to regrtest the tests run correctly. -- ___ Python tracker ___ _

[issue3754] minimal cross-compilation support for configure

2009-12-06 Thread Roumen Petrov
Changes by Roumen Petrov : Added file: http://bugs.python.org/file15464/python-trunk-20091206-CROSS.patch ___ Python tracker <http://bugs.python.org/issue3754> ___ ___

[issue3871] cross and native build of python for mingw32 with distutils

2009-12-06 Thread Roumen Petrov
Changes by Roumen Petrov : Added file: http://bugs.python.org/file15465/python-trunk-20091206-MINGW.patch ___ Python tracker <http://bugs.python.org/issue3871> ___ ___

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread Scott Dial
Scott Dial added the comment: Thanks for giving it a try. I believe the issue is that I am raising an exception in the middle of run_server, which was not a pattern tested in the other modules I looked at. Thus, the threads for those do not get reaped correctly. I have rewrote the test to ensur

[issue7448] when piping output between subprocesses some fd is left open blocking forever

2009-12-06 Thread Clovis Fabricio
New submission from Clovis Fabricio : Suppose I want to simulate the following shell pipe using the subprocess module: `grep -v not | cut -c 1-10` The documentation example here http://docs.python.org/library/subprocess.html#replacing-shell-pipeline Implies that I want to run this: grep_proces

[issue5672] Implement a way to change the python process name

2009-12-06 Thread Marcelo Fernández
Marcelo Fernández added the comment: Great, piro! I'm taking a look at it, and it seems to use setproctitle() in BSD, and writes over the argv array "in most Sys-V like systems"; this includes Linux? My question is because I think there's a better and supported method for Linux, that is, us

[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

2009-12-06 Thread Mark Dickinson
Mark Dickinson added the comment: Ah. Thanks for the explanation; I see your point. I guess you do just have to use a CmpToKey-type wrapper for this sort of comparison. Though for this *particular* example, it seems to me that you could still use a key function lambda q: (q[0] - p[0])/(q[

[issue7449] A number tests "crash" if python is compiled --without-threads

2009-12-06 Thread R. David Murray
New submission from R. David Murray : In the past (<= 2.6) regrtest skipped a test if any import failure happened, which masked various real test failures. This was fixed, and tests that should be skipped if certain modules are not available were changed to use (test_)support.import_module, whic

[issue5672] Implement a way to change the python process name

2009-12-06 Thread Daniele Varrazzo
Daniele Varrazzo added the comment: > I'm taking a look at it, and it seems to use setproctitle() in BSD, and > writes over the argv array "in most Sys-V like systems"; this includes > Linux? Yes: Linux uses what in the source is referred as the PS_USE_CLOBBER_ARGV strategy: it writes over

[issue5672] Implement a way to change the python process name

2009-12-06 Thread Marcelo Fernández
Marcelo Fernández added the comment: 2009/12/6 Daniele Varrazzo : >> My question is because I think there's a better and supported method > for >> Linux, that is, using prctl [1]. I read somewhere that changing argv >> causes some inconsistencies between programs who read /sys files, > /proc >>

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread R. David Murray
R. David Murray added the comment: The traceback I posted was a spurious result of my misunderstanding your test code. With -uall it worked fine. Sorry that I didn't make that clear. Thanks for doing the work of putting the extended test framework together. Without that, this would probably

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread R. David Murray
R. David Murray added the comment: Patch actually attached this time. -- Added file: http://bugs.python.org/file15467/test_imaplib_issue5949.patch ___ Python tracker ___

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2009-12-06 Thread flox
flox added the comment: I fixed it differently, using the upstream modules (Thank you Fredrik). * ElementTree 1.3a3-20070912 * cElementTree 1.0.6-20090110 It works. And it closes issue1143, too. -- Added file: http://bugs.python.org/file15468/issue6472_upstream.diff

[issue5672] Implement a way to change the python process name

2009-12-06 Thread Daniele Varrazzo
Daniele Varrazzo added the comment: > It seems that some utilities and programs (killall, > gnome-system-monitor, and so on) looks for the process name in > /proc/PID/status, not in /proc/PID/cmdline, so it should be better > (in Linux), to modify both, /proc/PID/cmdline (changing argv) *and* >

[issue5672] Implement a way to change the python process name

2009-12-06 Thread Marcelo Fernández
Marcelo Fernández added the comment: 2009/12/6 Daniele Varrazzo : > > Just released setproctitle 0.2 where I also call prctl() if available. > It is actually the string used by killall. Great! I've just tested it and it works fine here... Any possibility this module can be included in the regu

[issue7449] A number tests "crash" if python is compiled --without-threads

2009-12-06 Thread Jerry Seutter
Changes by Jerry Seutter : -- assignee: -> jseutter nosy: +jseutter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue4111] Add DTrace probes

2009-12-06 Thread Mark Wielaard
Changes by Mark Wielaard : -- nosy: +mjw ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue5672] Implement a way to change the python process name

2009-12-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I've just tested it and it works fine here... Any possibility this > module can be included in the regular python standard library, in the > future? Only in the far future. I don't think the Python standard library should include a module whose version numbe