[issue7447] Sum() doc and behavior mismatch

2009-12-06 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: georg.brandl - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7447 ___

[issue1923] meaningful whitespace can be lost in rfc822_escape

2009-12-06 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com 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

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

2009-12-06 Thread flox
flox la...@yahoo.fr 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

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

2009-12-06 Thread flox
Changes by flox la...@yahoo.fr: Added file: http://bugs.python.org/file15462/issue6472_py3k.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6472 ___

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

2009-12-06 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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):

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: With just the test patch applied, test_imaplib passes for me on trunk r76687. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5949

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

2009-12-06 Thread Tom Switzer
Tom Switzer thomas.swit...@gmail.com 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

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 rep...@bugs.python.org http://bugs.python.org/issue5949

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread Scott Dial
Scott Dial sc...@scottdial.com 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).

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, my mistake, I misread the code, sorry. Yes, if I supply -uall to regrtest the tests run correctly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5949

[issue3754] minimal cross-compilation support for configure

2009-12-06 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: Added file: http://bugs.python.org/file15464/python-trunk-20091206-CROSS.patch ___ Python tracker rep...@bugs.python.org 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 bugtr...@roumenpetrov.info: Added file: http://bugs.python.org/file15465/python-trunk-20091206-MINGW.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread Scott Dial
Scott Dial sc...@scottdial.com 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

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

2009-12-06 Thread Clovis Fabricio
New submission from Clovis Fabricio nosklo+pyt...@gmail.com: 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

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

2009-12-06 Thread Marcelo Fernández
Marcelo Fernández marcelo.fidel.fernan...@gmail.com 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

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

2009-12-06 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

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

2009-12-06 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: 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

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

2009-12-06 Thread Daniele Varrazzo
Daniele Varrazzo p...@develer.com 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

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

2009-12-06 Thread Marcelo Fernández
Marcelo Fernández marcelo.fidel.fernan...@gmail.com added the comment: 2009/12/6 Daniele Varrazzo rep...@bugs.python.org: 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

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

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

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

2009-12-06 Thread flox
flox la...@yahoo.fr 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 p...@develer.com 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

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

2009-12-06 Thread Marcelo Fernández
Marcelo Fernández marcelo.fidel.fernan...@gmail.com added the comment: 2009/12/6 Daniele Varrazzo rep...@bugs.python.org: 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...

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

2009-12-06 Thread Jerry Seutter
Changes by Jerry Seutter jseut...@gmail.com: -- assignee: - jseutter nosy: +jseutter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7449 ___ ___

[issue4111] Add DTrace probes

2009-12-06 Thread Mark Wielaard
Changes by Mark Wielaard m...@redhat.com: -- nosy: +mjw ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4111 ___ ___ Python-bugs-list mailing list

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

2009-12-06 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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