[issue6090] zipfile DeprecationWarning Python 2.5/2.6

2010-04-06 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: This code is broken in 2.7alpha4 - it doesn't add file at all. Traceback (most recent call last): File test.py, line 5, in module new.writestr(zi,'fgh') File C:\~env\Python27\lib\zipfile.py, line 1099, in writestr

[issue6090] zipfile DeprecationWarning Python 2.5/2.6

2010-04-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti priority: - normal stage: - needs patch type: - behavior versions: -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6090

[issue8320] docs on socket.recv_into doesn't mention the return value

2010-04-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r79822. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8320 ___

[issue2824] zipfile to handle duplicate files in archive

2010-04-06 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue2824

[issue8322] test_ssl failures with OpenSSL 1.0.0

2010-04-06 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue8322] test_ssl failures with OpenSSL 1.0.0

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue2228] Imaplib speedup patch

2010-04-06 Thread anatoly techtonik
Changes by anatoly techtonik techto...@gmail.com: -- components: +Library (Lib) type: resource usage - performance versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2228

[issue7772] test_py3kwarn fails when running the whole test suite

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

[issue8325] improve regrtest command line help

2010-04-06 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: 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

[issue8325] improve regrtest command line help

2010-04-06 Thread Eric Smith
Eric Smith e...@trueblade.com 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 rep...@bugs.python.org

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

2010-04-06 Thread Yaniv Aknin
Yaniv Aknin yaniv.ak...@gmail.com added the comment: I wouldn't mind producing the patch, if Mathew is OK with this. -- nosy: +Yaniv.Aknin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7834

[issue8322] test_ssl failures with OpenSSL 1.0.0

2010-04-06 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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 rep...@bugs.python.org

[issue8326] Cannot import name SemLock

2010-04-06 Thread David Coconut
New submission from David Coconut coco...@redbrick.dcu.ie: 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

[issue8325] improve regrtest command line help

2010-04-06 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com 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

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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) -

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Added file: http://bugs.python.org/file16778/newssl.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8108 ___

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net 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

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2010-04-06 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr 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

[issue8325] improve regrtest command line help

2010-04-06 Thread Eric Smith
Eric Smith e...@trueblade.com 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

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue8312] Add post/pre hooks for distutils commands

2010-04-06 Thread Zubin Mithra
Changes by Zubin Mithra zubin.mit...@gmail.com: -- nosy: +zubin71 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8312 ___ ___ Python-bugs-list

[issue8324] add a distutils test command

2010-04-06 Thread Zubin Mithra
Changes by Zubin Mithra zubin.mit...@gmail.com: -- nosy: +zubin71 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8324 ___ ___ Python-bugs-list

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net 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

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue8326] Cannot import name SemLock

2010-04-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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:

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net 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

[issue8326] Cannot import name SemLock on Ubuntu lucid

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

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

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

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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()

[issue8297] AttributeError message text should include module name

2010-04-06 Thread Ray.Allen
Ray.Allen ysj@gmail.com 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'

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

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

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

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2010-04-06 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1572968 ___ ___ Python-bugs-list

[issue8188] Unified hash for numeric types.

2010-04-06 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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

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

2010-04-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- priority: normal - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6090 ___ ___

[issue8257] Decimal constructor to accept float

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

[issue8322] test_ssl failures with OpenSSL 1.0.0

2010-04-06 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8322 ___

[issue5198] Strange DeprecationWarning behaviour in module struct

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

[issue8014] Setting a T_INT attribute raises internal error

2010-04-06 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Backported to 3.1 in r79838. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8014 ___

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

2010-04-06 Thread David Andrzejewski
David Andrzejewski site+python@davidandrzejewski.com 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

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

2010-04-06 Thread Mathew Martineau
Mathew Martineau m...@martineau.name added the comment: Yaniv - Please proceed! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7834 ___ ___

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

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

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

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

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

[issue8193] test_zlib fails with zlib 1.2.4

2010-04-06 Thread Mike Kelly
Changes by Mike Kelly pi...@pioto.org: -- nosy: +pioto ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8193 ___ ___ Python-bugs-list mailing list

[issue1553375] Add traceback.print_full_exception()

2010-04-06 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com added the comment: What's the status of this (imo quite useful) new traceback function ? Shall I provide some help ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1553375

[issue8327] unintuitive behaviour of logging message propagation

2010-04-06 Thread Pascal Chambon
New submission from Pascal Chambon chambon.pas...@gmail.com: 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

[issue8193] test_zlib fails with zlib 1.2.4

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8327 ___ ___ Python-bugs-list mailing

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-04-06 Thread Andrey Vlasovskikh
Andrey Vlasovskikh andrey.vlasovsk...@gmail.com 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

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-04-06 Thread Andrey Vlasovskikh
Changes by Andrey Vlasovskikh andrey.vlasovsk...@gmail.com: Removed file: http://bugs.python.org/file16743/test_pool_keyboardinterrupt.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8296 ___

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

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

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-04-06 Thread Andrey Vlasovskikh
Andrey Vlasovskikh andrey.vlasovsk...@gmail.com 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

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

2010-04-06 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: 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:

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

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

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

2010-04-06 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: These all look fine to me. Please apply! -- assignee: - skrah resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8328

[issue8327] unintuitive behaviour of logging message propagation

2010-04-06 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk 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

[issue8193] test_zlib fails with zlib 1.2.4

2010-04-06 Thread Valerio Turturici
Valerio Turturici turturici.vale...@gmail.com added the comment: Thanks to you! This was my first patch, i'm very happy to contribute :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8193

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

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

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

2010-04-06 Thread Georg Brandl
Georg Brandl ge...@python.org 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 dicki...@gmail.com 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. --

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

2010-04-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: You don't need to :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7947 ___ ___

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

2010-04-06 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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 ge...@python.org 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 rep...@bugs.python.org

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

2010-04-06 Thread Shashwat Anand
Shashwat Anand anand.shash...@gmail.com 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 rep...@bugs.python.org

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-04-06 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8296 ___ ___ Python-bugs-list mailing list

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

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

[issue1303434] Please include pdb with windows distribution

2010-04-06 Thread Chris Grebeldinger
Chris Grebeldinger cgreb...@gmail.com 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 rep...@bugs.python.org

[issue2643] mmap_object_dealloc does not call FlushViewOfFile on windows

2010-04-06 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr 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

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

2010-04-06 Thread Mike Kent
New submission from Mike Kent mike.k...@sage.com: 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

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

2010-04-06 Thread Mike Kent
Changes by Mike Kent mike.k...@sage.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8329 ___ ___ Python-bugs-list mailing

[issue4570] Bad example in set tutorial

2010-04-06 Thread Kelda
Kelda kel...@gmail.com 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 Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r79867. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8329

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

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

[issue8299] Improve GIL in 2.7

2010-04-06 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com 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

[issue8327] unintuitive behaviour of logging message propagation

2010-04-06 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Documentation updated (r79876). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8327 ___

[issue8299] Improve GIL in 2.7

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue8324] add a distutils test command

2010-04-06 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8324 ___ ___ Python-bugs-list mailing

[issue8312] Add post/pre hooks for distutils commands

2010-04-06 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8312 ___ ___ Python-bugs-list mailing

[issue1303434] Please include pdb with windows distribution

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

[issue7301] Add environment variable $PYTHONWARNINGS

2010-04-06 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org 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 rep...@bugs.python.org

[issue7301] Add environment variable $PYTHONWARNINGS

2010-04-06 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org 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

[issue8299] Improve GIL in 2.7

2010-04-06 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com 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.

[issue8299] Improve GIL in 2.7

2010-04-06 Thread David Beazley
David Beazley d...@dabeaz.com 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

[issue8299] Improve GIL in 2.7

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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.

[issue8330] Failures seen in test_gdb on buildbots

2010-04-06 Thread Dave Malcolm
New submission from Dave Malcolm dmalc...@redhat.com: 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

[issue8331] a documentation grammar fix in logging module

2010-04-06 Thread Shashwat Anand
New submission from Shashwat Anand anand.shash...@gmail.com: 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:

[issue4487] Add utf8 alias for email charsets

2010-04-06 Thread Shashwat Anand
Shashwat Anand anand.shash...@gmail.com 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.

[issue4570] Bad example in set tutorial

2010-04-06 Thread John Marter
John Marter jmar...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue4570

[issue4570] Bad example in set tutorial

2010-04-06 Thread Shashwat Anand
Shashwat Anand anand.shash...@gmail.com 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'}

[issue8331] a documentation grammar fix in logging module

2010-04-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: georg.brandl - ezio.melotti nosy: +ezio.melotti priority: - normal resolution: - accepted stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8331

[issue8297] AttributeError message text should include module name

2010-04-06 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Great -- thanks a lot for taking a stab at this! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8297 ___

[issue7301] Add environment variable $PYTHONWARNINGS

2010-04-06 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org added the comment: applied in r79878 - r79881, thanks! -- resolution: accepted - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7301

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

2010-04-06 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

[issue4570] Bad example in set tutorial

2010-04-06 Thread Kelda
Kelda kel...@gmail.com 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

[issue8297] AttributeError message text should include module name

2010-04-06 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- versions: +Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8297 ___ ___

[issue4570] Bad example in set tutorial

2010-04-06 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I'll get to this soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4570 ___

  1   2   >