[issue7301] Add environment variable $PYTHONWARNINGS

2010-04-06 Thread Philip Jenvey
Philip Jenvey added the comment: I committed a somewhat different version of this patch to py3k to handle the warn options now calling for wchars, but this needs more work. Some of the buildbots are unhappy Seems like the py3k version either needs to fully decode the env values to a unicode

[issue7559] TestLoader.loadTestsFromName swallows import errors

2010-04-06 Thread Chris Jerdonek
Chris Jerdonek added the comment: Rietveld link: http://codereview.appspot.com/810044/show This patch changes unittest.TestLoader.loadTestsFromName() so that ImportErrors will bubble up when importing from a module with a bad import statement. Before the method raised an AttributeError. The

[issue4570] Bad example in set tutorial

2010-04-06 Thread Kelda
Changes by Kelda : Removed file: http://bugs.python.org/file16790/datastructures.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue4570] Bad example in set tutorial

2010-04-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll get to this soon. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8297] AttributeError message text should include module name

2010-04-06 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- versions: +Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue4570] Bad example in set tutorial

2010-04-06 Thread Kelda
Kelda added the comment: I think this change fits well with the rest of the example without having to rework things. Spacing fixed. -- Added file: http://bugs.python.org/file16795/datastructures.diff ___ Python tracker

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2010-04-06 Thread Ezio Melotti
Ezio Melotti added the comment: The patch was causing a failure in test_codeccallbacks, issue8271v4 fixes the test. (The failing test in test_codeccallbacks was testing that registering error handlers works, using a function that replaced "\xc0\x80" with "\x00". Since now "\xc0" is an invalid

[issue7301] Add environment variable $PYTHONWARNINGS

2010-04-06 Thread Philip Jenvey
Philip Jenvey added the comment: applied in r79878 - r79881, thanks! -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ __

[issue8297] AttributeError message text should include module name

2010-04-06 Thread Chris Jerdonek
Chris Jerdonek added the comment: Great -- thanks a lot for taking a stab at this! -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue8331] a documentation grammar fix in logging module

2010-04-06 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: georg.brandl -> ezio.melotti nosy: +ezio.melotti priority: -> normal resolution: -> accepted stage: -> patch review ___ Python tracker __

[issue4570] Bad example in set tutorial

2010-04-06 Thread Shashwat Anand
Shashwat Anand added the comment: I guess giving fruit, the set of unique fruit a different name makes it more clear. Comments alignment fixed. >>> basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'} >>> print(basket) {'orange', 'bananna', 'pear', 'apple'} >>> fruit = ['apple', '

[issue4570] Bad example in set tutorial

2010-04-06 Thread John Marter
John Marter added the comment: You may want to add another space before the comment, otherwise it will be the only one not aligned with the others. -- ___ Python tracker ___ ___

[issue4487] Add utf8 alias for email charsets

2010-04-06 Thread Shashwat Anand
Shashwat Anand added the comment: I tested it on python 2.5, 2.6, 2.7 trunk and 3.2 varying msg.set_charset(x) with x = 'utf8' and 'utf-8' Here are the results. Apparantly python 2.x had issue with Test case and 3.2 passed but I guess it is unrelated with the issue. 07:35:40 l0nwlf-MBP:~ $ p

[issue8331] a documentation grammar fix in logging module

2010-04-06 Thread Shashwat Anand
New submission from Shashwat Anand : Just fixed some grammatical error in the docs of logging module. -- assignee: georg.brandl components: Documentation files: logging.patch keywords: patch messages: 102510 nosy: georg.brandl, l0nwlf, vinay.sajip severity: normal status: open title: a d

[issue8330] Failures seen in test_gdb on buildbots

2010-04-06 Thread Dave Malcolm
New submission from Dave Malcolm : http://www.python.org/dev/buildbot/trunk/builders/alpha%20Debian%20trunk/builds/52/steps/test/logs/stdio shows some failures in test_gdb: == FAIL: test_corrupt_ob_type (test.test_gdb.PrettyPrin

[issue8299] Improve GIL in 2.7

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The counter is "stall cycles". > During the 10 second run on my 2.4Ghz cpu, we had instruction cache > miss stalls for 2 billion cycles (2000 samples of 100 cycles per > sample). That does account for around 10% of the availible cpu. Ok, thanks. > 2) Th

[issue8299] Improve GIL in 2.7

2010-04-06 Thread David Beazley
David Beazley added the comment: The analysis of instruction cache behavior is interesting---I could definitely see that coming into play given the heavy penalty that one sees going to multiple cores (it's a side effect in addition everything else that goes wrong such as a huge increase in th

[issue8299] Improve GIL in 2.7

2010-04-06 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: The counter is "stall cycles". During the 10 second run on my 2.4Ghz cpu, we had instruction cache miss stalls for 2 billion cycles (2000 samples of 100 cycles per sample). That does account for around 10% of the availible cpu. I'm observing some

[issue7301] Add environment variable $PYTHONWARNINGS

2010-04-06 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Patch looks good to me too. Do any of you have commit privileges? If so, please commit this. If not assign the issue to me and I'll do it. -- resolution: -> accepted ___ Python tracker

[issue7301] Add environment variable $PYTHONWARNINGS

2010-04-06 Thread Philip Jenvey
Philip Jenvey added the comment: Looks good to me. Updated patch with a couple whitespace changes -- Added file: http://bugs.python.org/file16791/issue7301-2.diff ___ Python tracker

[issue1303434] Please include pdb with windows distribution

2010-04-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: > As an aside to the request, is the pdb for the python dll currently > available anywhere? Only on my hard disk, and then only for the very last release. The status of the issue is the same as in 2006: without patches, nothing will happen. -- ___

[issue8312] Add post/pre hooks for distutils commands

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

[issue8324] add a distutils test command

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

[issue8299] Improve GIL in 2.7

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: [...] > _PyObject_Call403 99,02 [...] > affinity off: > Functions Causing Most Work > Name Samples % [...] > _PyObject_Call1.936 99,23 [...] > _threadstartex1.934 99,13 > > When we run on both cores, we get four times as many L1

[issue8327] unintuitive behaviour of logging message propagation

2010-04-06 Thread Vinay Sajip
Vinay Sajip added the comment: Documentation updated (r79876). -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue8299] Improve GIL in 2.7

2010-04-06 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I just did some profiling. I´m using visual studio team edition which has some fancy built in profiling. I decided to compare the performance of the iotest.py script with two cpu threads, running for 10 seconds with processor affinity enabled and di

[issue7947] Documentation of math.pow, math.hypot, and complex.__abs__

2010-04-06 Thread Mark Dickinson
Mark Dickinson added the comment: Rats. nan->NaN in r79871 through r79874. Then I reread your message... *NaN* -> Nan in r79875 (trunk); will merge to other branches tomorrow when my brain might be working again. -- status: closed -> open ___ Py

[issue8329] select.select() can return lists with identical id()'s

2010-04-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r79867. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue4570] Bad example in set tutorial

2010-04-06 Thread Kelda
Kelda added the comment: Replaced unused variable assignment with a call to set() for illustrative purposes. -- keywords: +patch nosy: +autometa Added file: http://bugs.python.org/file16790/datastructures.diff ___ Python tracker

[issue8329] select.select() can return lists with identical id()'s

2010-04-06 Thread Mike Kent
Changes by Mike Kent : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8329] select.select() can return lists with identical id()'s

2010-04-06 Thread Mike Kent
New submission from Mike Kent : If select.select() returns two or more empty lists, these empty lists will all refer to the same list; that is, they will have identical id()'s. If you then have reason to alter one of the returned empty lists, you are altering all of the returned empty lists.

[issue2643] mmap_object_dealloc does not call FlushViewOfFile on windows

2010-04-06 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: I don't think that calling msync() or FlushViewOfFile() when closing the mmap object or deallocating it is a good idea. sync()ing dirtied pages to disk is very expensive, blocks the process for a long time, and the OS does a much better job at it (it

[issue1303434] Please include pdb with windows distribution

2010-04-06 Thread Chris Grebeldinger
Chris Grebeldinger added the comment: Hi Martin, As an aside to the request, is the pdb for the python dll currently available anywhere? -- nosy: +cgrebeld ___ Python tracker _

[issue7472] email.encoders.encode_7or8bit(): typo "iso-2202". "iso-2022" is correct.

2010-04-06 Thread R. David Murray
R. David Murray added the comment: Well, as I said, I think it would be better to delete the conditional instead. (That is, that fixing the typo is more likely to lead to a bug). -- assignee: barry -> r.david.murray ___ Python tracker

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-04-06 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue7472] email.encoders.encode_7or8bit(): typo "iso-2202". "iso-2022" is correct.

2010-04-06 Thread Shashwat Anand
Shashwat Anand added the comment: I am submitting the patch as suggested by Yukihiro -- keywords: +patch nosy: +l0nwlf Added file: http://bugs.python.org/file16789/encoders.diff ___ Python tracker _

[issue7947] Documentation of math.pow, math.hypot, and complex.__abs__

2010-04-06 Thread Georg Brandl
Georg Brandl added the comment: You didn't give me the chance to review the new sentences! Now I have to tell you that there is now "NaN", "*NaN*" and "nan" which looks inconsistent... :) -- ___ Python tracker __

[issue7947] Documentation of math.pow, math.hypot, and complex.__abs__

2010-04-06 Thread Mark Dickinson
Mark Dickinson added the comment: Too late! Committed in r79858 (trunk) through r79861 (release31-maint). I added a couple of sentences about signaling nans. Thanks for reviewing! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed __

[issue7947] Documentation of math.pow, math.hypot, and complex.__abs__

2010-04-06 Thread Georg Brandl
Georg Brandl added the comment: You don't need to :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue7947] Documentation of math.pow, math.hypot, and complex.__abs__

2010-04-06 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, Georg. Yes and No. Yes: Perhaps I should say something about signaling nans, but what was there was just nonsense. No: I'll drop the 'u' from behaviour, for the sake of consistency. -- ___ Python tracke

[issue7947] Documentation of math.pow, math.hypot, and complex.__abs__

2010-04-06 Thread Georg Brandl
Georg Brandl added the comment: Looks good to me. Is it intentional that the paragraph about signaling NaNs is gone completely? And is it intentional that you changed behavior -> behaviour? :) -- ___ Python tracker

[issue7947] Documentation of math.pow, math.hypot, and complex.__abs__

2010-04-06 Thread Mark Dickinson
Mark Dickinson added the comment: Proposed update to math docs. -- keywords: +patch Added file: http://bugs.python.org/file16788/math_docs.patch ___ Python tracker ___ __

[issue8193] test_zlib fails with zlib 1.2.4

2010-04-06 Thread Valerio Turturici
Valerio Turturici added the comment: Thanks to you! This was my first patch, i'm very happy to contribute :) -- ___ Python tracker ___ ___

[issue8327] unintuitive behaviour of logging message propagation

2010-04-06 Thread Vinay Sajip
Vinay Sajip added the comment: Please see the following link for a rationale of the logging package's design: http://plumberjack.blogspot.com/2009/09/python-logging-101.html No patch to the logging system's code is planned, as it is working according to its design. The documentation will be g

[issue8328] longobject.c: silence warnings (Visual Studio)

2010-04-06 Thread Mark Dickinson
Mark Dickinson added the comment: These all look fine to me. Please apply! -- assignee: -> skrah resolution: -> accepted ___ Python tracker ___ ___

[issue8328] longobject.c: silence warnings (Visual Studio)

2010-04-06 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file16787/longobject_vs_warnings_trunk.patch ___ Python tracker ___ ___ Python-bugs

[issue8328] longobject.c: silence warnings (Visual Studio)

2010-04-06 Thread Stefan Krah
New submission from Stefan Krah : Mark, are you ok with silencing these conversion warnings? -- components: Build files: longobject_vs_warnings_py3k.patch keywords: patch messages: 102482 nosy: mark.dickinson, skrah severity: normal status: open title: longobject.c: silence warnings (Vis

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-04-06 Thread Andrey Vlasovskikh
Andrey Vlasovskikh added the comment: Here is a patch that fixes this problem. Basically, it catches all the BaseExceptions that could happen during: a) getting a task from the `inqueue`, b) calling a user function, c) putting a task into the `outqueue`. The exception handler puts the excepti

[issue8259] left shift operator doesn't accepts long as second argument

2010-04-06 Thread Mark Dickinson
Mark Dickinson added the comment: By the way, this has nothing to do with int versus long (unless I'm misunderstanding the original issue); it's simply that large shift counts cause an OverflowError. I've added a note about this to the docs in r79852. -- resolution: -> fixed status

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-04-06 Thread Andrey Vlasovskikh
Changes by Andrey Vlasovskikh : Removed file: http://bugs.python.org/file16743/test_pool_keyboardinterrupt.py ___ Python tracker ___ ___ Python

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-04-06 Thread Andrey Vlasovskikh
Andrey Vlasovskikh added the comment: Despite of several workarounds available on the Web, the problem persists. Almost any exception that is rised in `worker` function while putting or getting tasks from queues result in Pool hang up. Currently, `worker` is only aware of Exception descendant

[issue8327] unintuitive behaviour of logging message propagation

2010-04-06 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8193] test_zlib fails with zlib 1.2.4

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r79848 (trunk), r79849 (py3k), r79850 (2.6), r79851 (3.1). Thank you! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue8327] unintuitive behaviour of logging message propagation

2010-04-06 Thread Pascal Chambon
New submission from Pascal Chambon : Hello Crawling into the logging module, I've just discovered its behaviour was actually far from the one I expected, in a consequent gap that the documentation had left. I thought that depending on the "propagate" parameter of each logger, a message would

[issue1553375] Add traceback.print_full_exception()

2010-04-06 Thread Pascal Chambon
Pascal Chambon added the comment: What's the status of this (imo quite useful) new traceback function ? Shall I provide some help ? -- ___ Python tracker ___ _

[issue8193] test_zlib fails with zlib 1.2.4

2010-04-06 Thread Mike Kelly
Changes by Mike Kelly : -- nosy: +pioto ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue8259] left shift operator doesn't accepts long as second argument

2010-04-06 Thread Mark Dickinson
Mark Dickinson added the comment: Patch applied in r79843 (and added forgotten Misc/NEWS entry in r79844); merged to py3k in r79845. -- assignee: mark.dickinson -> type: -> feature request ___ Python tracker __

[issue7834] socket.connect() no longer works with AF_BLUETOOTH L2CAP sockets

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, even better if you find a way of having unit tests for bluetooth sockets. Is there some kind of "dummy" device which gives predictable results (à la /dev/zero, for example)? -- ___ Python tracker

[issue8259] left shift operator doesn't accepts long as second argument

2010-04-06 Thread Mark Dickinson
Mark Dickinson added the comment: Patch that unoutrages Python attached: it allows shift counts of up to sys.maxsize in both left shift and right shift. I don't have a test for this, since the only tests I can think of (e.g. actually doing 1 << (2**31)) require > 270Mb of RAM, and that may

[issue7834] socket.connect() no longer works with AF_BLUETOOTH L2CAP sockets

2010-04-06 Thread Mathew Martineau
Mathew Martineau added the comment: Yaniv - Please proceed! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8293] HTTPSConnection.close() does not immediately close the connection.

2010-04-06 Thread David Andrzejewski
David Andrzejewski added the comment: Now, it turns out that if you send the HTTP "Connection: close" header, the connection does close at the end (because the server closes it). Still, it seems like this should behave the same regardless of whether it's HTTPConnection or HTTPSConnection. --

[issue8014] Setting a T_INT attribute raises internal error

2010-04-06 Thread Mark Dickinson
Mark Dickinson added the comment: Backported to 3.1 in r79838. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue5198] Strange DeprecationWarning behaviour in module struct

2010-04-06 Thread Mark Dickinson
Mark Dickinson added the comment: The wrong location for the DeprecationWarnings was also fixed in trunk in r78690. I've backported the fix to release26-maint in r79834. I don't dare mess further with the warnings in a bugfix release; as Georg points out, the issues are fixed in trunk. BTW

[issue8322] test_ssl failures with OpenSSL 1.0.0

2010-04-06 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue8257] Decimal constructor to accept float

2010-04-06 Thread Mark Dickinson
Mark Dickinson added the comment: The decimal changes were implemented by Raymond in r79609 (trunk) and r79602 (py3k). For the fractions module changes, see issue 8294. -- assignee: mark.dickinson -> resolution: -> accepted stage: patch review -> committed/rejected status: open -> c

[issue6090] zipfile DeprecationWarning Python in 2.6, failure in 2.7

2010-04-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: normal -> critical ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue8188] Unified hash for numeric types.

2010-04-06 Thread Stefan Krah
Stefan Krah added the comment: I've finished reviewing the patch and I think it's quite ready to be applied. The documentation in stdtypes.rst says that P = 2**61-1 on 64-bit machines. This should be changed to reflect the fact that actually sizeof long is the deciding factor. I attach a patch

[issue1572968] release GIL while doing I/O operations in the mmap module

2010-04-06 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue1572968] release GIL while doing I/O operations in the mmap module

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This shouldn't really care about VMS here. Correction: /we/ shouldn't really care about VMS here. And the reason being, of course, that we have neither developers nor known testers under VMS. (we don't even know if the current trunk builds there or not)

[issue1572968] release GIL while doing I/O operations in the mmap module

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: This shouldn't really care about VMS here. As for the rest, feel free to propose a patch :) Please note that most non-trivial system calls, such as ftruncate(), mremap(), even mmap() itself, deserve to be enclosed in Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREAD

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: New patch without the quit() method change. -- Added file: http://bugs.python.org/file16781/newssl3.patch ___ Python tracker ___ ___

[issue8297] AttributeError message text should include module name

2010-04-06 Thread Ray.Allen
Ray.Allen added the comment: This patch makes the AttributeError message generated from getting attributes from module object more helpful, that is, print the module name. Now the error message is: module object 'mod_name' has no attribute 'xxx' Instead of: 'module' object has no attribute

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > - ftplib.FTP_TLS.quit: I wouldn't call unwrap() here as RFC-4217 does > that only when dealing with CCC command which is not implemented by > ftplib.py. Ok. > - I'd be for calling _do_ssl_shutdown() from handle_close() instead of > from close() (reasons expl

[issue6090] zipfile DeprecationWarning Python in 2.6, failure in 2.7

2010-04-06 Thread R. David Murray
R. David Murray added the comment: Making the stage test needed, since we need to get the test into the test suite as a unit test. -- nosy: +r.david.murray stage: needs patch -> test needed title: zipfile DeprecationWarning Python 2.5/2.6 -> zipfile DeprecationWarning Python in 2.6, f

[issue8326] Cannot import name SemLock on Ubuntu lucid

2010-04-06 Thread R. David Murray
R. David Murray added the comment: I'm guessing Matthias might have some insight into this on the Ubuntu side. so I'm adding him as nosy. I'm thinking this isn't a Python problem, but I could be wrong. -- nosy: +doko title: Cannot import name SemLock -> Cannot import name SemLock on

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > I don't understand your reasoning. These are separate connections, > closing one shouldn't affect the other. I meant another thing. I was talking about the fact that the test server attempts to shutdown() both control and data connections while the clien

[issue8326] Cannot import name SemLock

2010-04-06 Thread R. David Murray
R. David Murray added the comment: Why do you think issue 3770 is not relevant? It looks from the traceback like the built version of multiprocessing decided that sem_open wasn't functional. So this sounds like a lucid packaging problem to me. -- components: +Extension Modules nosy:

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > As for our test server we are currently shutting down the SSL layer for > both connections (control and data) so this might be the cause of EPIPE. I don't understand your reasoning. These are separate connections, closing one shouldn't affect the other. > A

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > By the way, this "broken pipe" error could be due to the fact that the > FTP_TLS client never tries to call unwrap() on its SSL socket. Perhaps > the close() method should be overriden? ftplib.FTP_TLS class already calls unwrap() but only when closing a "s

[issue8324] add a distutils test command

2010-04-06 Thread Zubin Mithra
Changes by Zubin Mithra : -- nosy: +zubin71 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8312] Add post/pre hooks for distutils commands

2010-04-06 Thread Zubin Mithra
Changes by Zubin Mithra : -- nosy: +zubin71 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a new patch. It doesn't change handle_error() but instead ignores abruptly closed sockets when doing the SSL shutdown. The underlying problem seems to be an asyncore limitation: close() can be called after an error such as EPIPE or ECONNABORTED, but a

[issue8325] improve regrtest command line help

2010-04-06 Thread Eric Smith
Eric Smith added the comment: That diff format looks fine to me. I'll review the content of your changes in the next day or so. -- keywords: +easy, needs review priority: -> normal stage: needs patch -> patch review ___ Python tracker

[issue1572968] release GIL while doing I/O operations in the mmap module

2010-04-06 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: As soon as you're dealing with files (not anonymous mapping), you can get the same type of latency than when using open/read/write... While it's probably not worth the trouble to release the GIL for every operation involving mmaped-files, there are a

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, this "broken pipe" error could be due to the fact that the FTP_TLS client never tries to call unwrap() on its SSL socket. Perhaps the close() method should be overriden? -- ___ Python tracker

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > What happens if you move the SSL shutdown() call in handle_close() > method and leave handle_error() unchanged? I get occasional crashes such as the following: Exception in thread Thread-60: Traceback (most recent call last): File "/home/antoine/cpython/ne

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: def handle_error(self): -raise +# Ignore errors while closing, because the remote end could have +# abruptly shut down the TCP connection while we are still +# waiting for SSL shutdown to finish. +if

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file16778/newssl.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, here is a patch fixing all test_ftplib failures (tested with openssl 0.9.8k and 1.0.0). There are a couple of fixes here: - a workaround for the strange SSL_shutdown() error return, also witnessed by LightHTTPd users (see URL in comments) - an auto-retry f

[issue8325] improve regrtest command line help

2010-04-06 Thread anatoly techtonik
anatoly techtonik added the comment: This should be enough for now. Is HG diff against trunk ok? -- keywords: +patch versions: +Python 2.6 Added file: http://bugs.python.org/file16777/8325.improve-regrtest-help.diff ___ Python tracker

[issue8326] Cannot import name SemLock

2010-04-06 Thread David Coconut
New submission from David Coconut : Operating system: Ubuntu 10.04 Lucid Lynx (Beta) This worked with Python 3.1 on 9.10 Karmic Koala. The same error appears on two separate installations of Lucid. Issue 3770 does not seem to be relevant here. Traceback (most recent call last): File "/usr/lib

[issue8322] test_ssl failures with OpenSSL 1.0.0

2010-04-06 Thread STINNER Victor
STINNER Victor added the comment: All errors concern SSLv23 at server side, and another protocol at client side (SSLv23 for client and server works as expected). -- ___ Python tracker _

[issue7834] socket.connect() no longer works with AF_BLUETOOTH L2CAP sockets

2010-04-06 Thread Yaniv Aknin
Yaniv Aknin added the comment: I wouldn't mind producing the patch, if Mathew is OK with this. -- nosy: +Yaniv.Aknin ___ Python tracker ___ __

[issue8325] improve regrtest command line help

2010-04-06 Thread Eric Smith
Eric Smith added the comment: Any suggestions for what these changes would be? -- nosy: +eric.smith stage: -> needs patch type: -> feature request versions: +Python 3.2 ___ Python tracker

[issue8325] improve regrtest command line help

2010-04-06 Thread anatoly techtonik
New submission from anatoly techtonik : regrtest command line help can be greatly improved to encourage users run tests. -- components: Tests messages: 102443 nosy: techtonik severity: normal status: open title: improve regrtest command line help versions: Python 2.7 ___

[issue7772] test_py3kwarn fails when running the whole test suite

2010-04-06 Thread Mark Dickinson
Mark Dickinson added the comment: I very much appreciate flox's efforts here, but IMO we really need some more robust solution to the problem of (testing + global warning state). See also issue 4180. -- ___ Python tracker

[issue2228] Imaplib speedup patch

2010-04-06 Thread anatoly techtonik
Changes by anatoly techtonik : -- components: +Library (Lib) type: resource usage -> performance versions: +Python 2.7 ___ Python tracker ___ _

[issue8322] test_ssl failures with OpenSSL 1.0.0

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: It begs the question of why the tests succeed with previous OpenSSL versions. The only possibly relevant entry I could find in the OpenSSL changelog (but I'm not an expert) is the following: *) If no SSLv2 ciphers are used don't use an SSLv2 compatible clien

[issue8322] test_ssl failures with OpenSSL 1.0.0

2010-04-06 Thread STINNER Victor
STINNER Victor added the comment: Extract of SSL_CTX_new manual page: SSLv23_method(void), SSLv23_server_method(void), SSLv23_client_method(void) A TLS/SSL connection established with these methods will understand the SSLv2, SSLv3, and TLSv1 protocol. A client will send out SSLv2 client

[issue2824] zipfile to handle duplicate files in archive

2010-04-06 Thread anatoly techtonik
anatoly techtonik added the comment: Still an issue for Python 2.7 -- versions: +Python 2.7 Added file: http://bugs.python.org/file16776/test2824.py ___ Python tracker ___ __

  1   2   >