[issue12211] Better document math.copysign behavior.

2011-06-05 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Third party refers to things other than Pythonx.y code For instance, distutils2/distribute was for some years developed separately from the main codebase and was recently merged into the 3.3 repository. While separate, its issues were '3rd

[issue12262] Not Inheriting File Descriptors on Windows?

2011-06-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Yes, that's probably how the cygwin runtime library works. But this method is difficult to use from a shell script. -- ___ Python tracker rep...@bugs.python.org

[issue1699259] replacing char* with const char* in sysmodule.c/.h

2011-06-05 Thread Sebastian Ramacher
Sebastian Ramacher sebasti...@users.sourceforge.net added the comment: Since the patches are not applicable to Py 3.x and Py 2.7 is stable I'm closing this bug. -- resolution: - out of date status: open - closed ___ Python tracker

[issue12211] Better document math.copysign behavior.

2011-06-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I think we should include the On a platform ... Sure, sounds good. One of the main things that makes copysign useful is that it distinguishes between -0.0 and 0.0. -- ___ Python tracker

[issue11557] Increase coverage in logging module

2011-06-05 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 44139ece7a31 by Vinay Sajip in branch 'default': Closes issue #11557: removal of non-idiomatic code in test_logging. http://hg.python.org/cpython/rev/44139ece7a31 -- ___ Python tracker

[issue11557] Increase coverage in logging module

2011-06-05 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11557 ___ ___

[issue6560] socket sendmsg(), recvmsg() methods

2011-06-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: What needs to happen to get recvmsg() supported in Python? Well, I guess that the only reason is that no committer is motivated enough to bring this into Python: it's a rather large patch, and honestly, I'm not sure that many people are

[issue12021] mmap.read requires an argument

2011-06-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: That's because of the _PyIO_ConvertSsize_t converter, which silently converts None to -1. There's probably a good reason for doing this in the _io module I'm not sure about the original reason, but I find None as the default omitted value

[issue12213] BufferedRandom, BufferedRWPair: issues with interlaced read-write

2011-06-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: My patch tries to fix interlaced read-write by always calling flush(), Why do you need to call flush()? Can't you read from the buffer? -- ___ Python tracker rep...@bugs.python.org

[issue12134] json.dump much slower than dumps

2011-06-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: In CPython, json.dumps(o), by itself, is faster than json.dump(o,f), at the expense of using more space, because it creates the entire string at once, instead of incrementally writing each piece of o to f. However, f.write(json.dumps(o)) may

[issue1625] bz2.BZ2File doesn't support multiple streams

2011-06-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: accepted - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1625 ___ ___

[issue12265] revamp argument errors

2011-06-05 Thread Andreas Stührk
Changes by Andreas Stührk andy-pyt...@hammerhartes.de: -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12265 ___ ___

[issue9972] PyGILState_XXX missing in Python builds without threads

2011-06-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9972 ___ ___ Python-bugs-list mailing list

[issue11271] concurrent.futures.ProcessPoolExecutor.map() doesn't batch function arguments by chunks

2011-06-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Using your test script fixed (on Python 3.3), I get the following numbers: Starting multiproc...done in 2.1014609336853027 s. Starting futures...done in 20.209479093551636 s. Starting futures fixed...done in 2.026125907897949 s. So there's a

[issue12267] Difficult to compile python in Visual Studio 2010 express

2011-06-05 Thread Tom Whittock
New submission from Tom Whittock tom.whitt...@gmail.com: The automatic upgrade process included with Microsoft Visual Studio 2010 express is unable to deal with the project files in the python PC folder, due to it not supporting the x64 target. I had to manually edit the project files to

[issue12263] punycode codec ignores the error handler argument

2011-06-05 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12263 ___ ___

[issue12266] str.capitalize contradicts

2011-06-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This looks like a duplicate of #12204. -- nosy: +r.david.murray resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - str.upper converts to title ___ Python

[issue12267] Difficult to compile python in Visual Studio 2010 express

2011-06-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: We don't currently support any flavor of VS2010. Since 2.7 is in bug fix mode only, it is not clear that we will add such support. But since it is a long term maintenance release the rules may be different. -- nosy:

[issue12267] Difficult to compile python in Visual Studio 2010 express

2011-06-05 Thread Tom Whittock
Tom Whittock tom.whitt...@gmail.com added the comment: Fair enough. The reason I added it is because that's the most easily available free compiler for Windows machines at the moment, and due to the lack of x64 support it's not easy to start compiling python with it. It's quite awkward to get

[issue12267] Difficult to compile python in Visual Studio 2010 express

2011-06-05 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: I have a fully working VS2010 build that I'm working on getting the ok to contribute from my employer. We may be able to use this for 3.3 but nothing earlier. I started a discussion on the Python-Dev list a few months ago but I don't believe we

[issue12267] Difficult to compile python in Visual Studio 2010 express

2011-06-05 Thread Tom Whittock
Tom Whittock tom.whitt...@gmail.com added the comment: Wouldn't a full (I assume you mean pro/team edition) 2010 version will include the x64 stuff which will make the express edition unable to load it? -- ___ Python tracker rep...@bugs.python.org

[issue12267] Difficult to compile python in Visual Studio 2010 express

2011-06-05 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: We have to have x64 support, and the 2010 express version can now target x64 provided you have the x64 SDK installed. That wasn't true of 2008, but there were some registry/config file messing you could do in order to get x64 support out of

[issue12267] Difficult to compile python in Visual Studio 2010 express

2011-06-05 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Also, what I meant by full (in fully working) in my message was that the full test suite passes. There are a number of code changes that have to be made, mostly around various constants used, e.g., in the socket module. --

[issue12267] Difficult to compile python in Visual Studio 2010 express

2011-06-05 Thread Tom Whittock
Tom Whittock tom.whitt...@gmail.com added the comment: Ah, in that case it seems my patch isn't particularly useful then. I'd personally like to see Brian Curtins patch applied sooner rather than later, however - 2010 support is very important to me. I'll be running that locally for the

[issue10884] pkgutil EggInfoDistribution requirements for .egg-info metadata

2011-06-05 Thread Michael Mulich
Michael Mulich michael.mul...@gmail.com added the comment: Looks like someone fixed this before distutils2 was merged into cpython as packaging. Thanks. -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org

[issue7511] msvc9compiler.py: ValueError: [u'path']

2011-06-05 Thread mike bayer
mike bayer mike...@zzzcomputing.com added the comment: regarding hey this is an MS bug not Python, projects which feature optional C extensions are starting to apply workarounds for the issue on their end (I will need to commit a specific catch for this to SQLAlchemy) - users need to install

[issue12134] json.dump much slower than dumps

2011-06-05 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: With 'will try to ' and the next 'will ' omitted, I agree that Antoine's version is better than mine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12134

[issue12267] Difficult to compile python in Visual Studio 2010 express

2011-06-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'm rejecting this patch - it's not the right approach to this problem. If we want to support VS 2010 project files in some form, we should generate them out of the VS 2008 files, similar to the vs9to8 script. The conversion result should

[issue12021] mmap.read requires an argument

2011-06-05 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Antoine Pitrou wrote: I'm not sure about the original reason, but I find None as the default omitted value prettier than -1 myself, so I think it's a good thing :) Yeah, and it's also good for consistency with other file-like objects. Can I

[issue12134] json.dump much slower than dumps

2011-06-05 Thread poq
poq p...@gmx.com added the comment: dump() is not slower because it's incremental though. It's slower because it's pure Python. I don't think there is necessarily a memory/speed trade-off; it should be possible to write an incremental encoder in C as well. --

[issue12246] create installation path if it's non-existent

2011-06-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm not sure I understand your confusion, but perhaps what you are missing is that we don't support installing 3rd party packages inside a source tree, only into an installed Python, and installing Python creates the site-packages

[issue12246] create installation path if it's non-existent

2011-06-05 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: Are there cases where my patch would result in site-packages directory installed in an unwanted place? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12246

[issue12246] create installation path if it's non-existent

2011-06-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yes. If the directory gets created without Python being installed, then you don't have a working python installation. Assuming we are talking about site-packages. I have no idea what purelib is or anything about the packaging

[issue12265] revamp argument errors

2011-06-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Your parenthetical reads sensibly to me, I can't think of a clearer alternative. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12265

[issue3771] test_httpservers intermittent failure, test_post and EINTR

2011-06-05 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: This was fixed in the other bug in 2.6 and 2.7. -- dependencies: +socket.readline() interface doesn't handle EINTR properly nosy: +gregory.p.smith resolution: - fixed status: open - closed ___

[issue12268] file readline readlines methods can lose data on EINTR

2011-06-05 Thread Gregory P. Smith
New submission from Gregory P. Smith g...@krypto.org: The file object readline() and readlines() methods can lose data when an underlying read system call is interrupted. They will abort with an IOError in this case but any incomplete line data they have read will be discarded. readline()

[issue12246] create installation path if it's non-existent

2011-06-05 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: I've changed the patch to represent what I've since learned. It now just displays a message, instead of silently creating the missing path. -- Added file: http://bugs.python.org/file22259/display-warning.diff

[issue12268] file readline readlines methods can lose data on EINTR

2011-06-05 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: 3.x has the same issue. unittest patch forthcoming that addresses that as well. 2.6 also has the issue but it is in security fix only mode so I won't backport to that. -- versions: +Python 3.1, Python 3.2, Python 3.3

[issue12265] revamp argument errors

2011-06-05 Thread Roger Binns
Roger Binns pyt...@rogerbinns.com added the comment: Is there any reason it doesn't show the function 'prototype' which is by far the most the useful piece of information and is also a form of documentation (plus fairly hard to work out). Convoluted technospeak is far harder to understand.

[issue12265] revamp argument errors

2011-06-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: -1 on adding the prototype (especially since I think it isn't always possible to do so). In many cases it would make the message overlong, and the user can look up the prototype by looking at their source code or using pydoc or their

[issue6560] socket sendmsg(), recvmsg() methods

2011-06-05 Thread Brian May
Brian May br...@microcomaustralia.com.au added the comment: To address some of the comments above: * Yes, the patch is large. However, most of this is in the tests. Only A relatively small part is in the code that implements the required functionality. I don't care much myself about the test

[issue12266] str.capitalize contradicts

2011-06-05 Thread py.user
py.user port...@yandex.ru added the comment: in http://bugs.python.org/issue12204 Marc-Andre Lemburg wrote: I suggest to close this ticket as invalid or to add a note to the documentation explaining how the mapping is applied (and when not). this problem is another str.capitalize makes the

[issue12266] str.capitalize contradicts

2011-06-05 Thread py.user
Changes by py.user port...@yandex.ru: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12266 ___ ___ Python-bugs-list mailing

[issue12266] str.capitalize contradicts oneself

2011-06-05 Thread py.user
Changes by py.user port...@yandex.ru: -- title: str.capitalize contradicts - str.capitalize contradicts oneself ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12266 ___

[issue12019] Dead or buggy code in importlib.test.__main__

2011-06-05 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Yeah, it's dead code so go ahead and rip it out. -- assignee: - eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12019 ___

[issue12268] file readline, readlines readall methods can lose data on EINTR

2011-06-05 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: .readall() and the equivalent unbounded .read() also have this problem. -- title: file readline readlines methods can lose data on EINTR - file readline, readlines readall methods can lose data on EINTR

[issue12265] revamp argument errors

2011-06-05 Thread Roger Binns
Roger Binns pyt...@rogerbinns.com added the comment: Obviously the prototype can't be provided when it isn't known. But the pseudo-English text is trying to describe the prototype and is far less clear than the actual prototype. ie the developer communicated the prototype to Python in

[issue12269] Crashes on start

2011-06-05 Thread Ryan Hollis
New submission from Ryan Hollis theryanhol...@gmail.com: Mac OSX Snow Leopard, Python 2.7, The moment I paste anything into the editor window, it crashes. Also IDLE crashes within a minute or two of opening, wether or not I actually do anything with it after opening it. uninstalled and

[issue12268] file readline, readlines readall methods can lose data on EINTR

2011-06-05 Thread John O'Connor
Changes by John O'Connor tehj...@gmail.com: -- nosy: +jcon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12268 ___ ___ Python-bugs-list mailing

[issue11197] information leakage with SimpleHTTPServer

2011-06-05 Thread Ori Livneh
Changes by Ori Livneh ori.liv...@gmail.com: -- nosy: +Ori.Livneh ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11197 ___ ___ Python-bugs-list

[issue12265] revamp argument errors

2011-06-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: That's why I said their own source or pydoc The language of the error message is trying to describe the error as the interpreter knows about it at the time the error is generated. That has a strong relationship to the prototype,

[issue11197] information leakage with SimpleHTTPServer

2011-06-05 Thread Ori Livneh
Ori Livneh ori.liv...@gmail.com added the comment: I've attached my proposal for a fix. It's my first, so apologies if I've made a mistake somewhere. Senthil Kumaran, to whom the bug is currently assigned, kindly agreed to let me take a stab at it (thanks!). The approach I took was to

[issue12234] unittest2 could enable regex debugging for more information

2011-06-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm closing this as invalid. If someone wants to work on this feature, they'll first have to add debugging to re -- nosy: +r.david.murray resolution: - invalid stage: - committed/rejected status: open - closed

[issue12265] revamp argument errors

2011-06-05 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 44d46d74ef4f by Benjamin Peterson in branch 'default': greatly improve argument parsing error messages (closes #12265) http://hg.python.org/cpython/rev/44d46d74ef4f -- nosy: +python-dev resolution: - fixed stage: patch

[issue10694] zipfile.py end of central directory detection not robust

2011-06-05 Thread Amar Takhar
Amar Takhar v...@aegisub.org added the comment: This patch fixed every BadZipfile exception (~300) I got while testing over 50,000 zipfiles. (Applied to 2.7) It would be nice to see this bug resolved. -- nosy: +verm ___ Python tracker

[issue12268] file readline, readlines readall methods can lose data on EINTR

2011-06-05 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: Added file: http://bugs.python.org/file22261/test_fileio_readers_3.2-gps01.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12268 ___

[issue12269] IDLE 2.7 hangs on Mac OS X 10.6

2011-06-05 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Assuming you are using the Mac OS X 64-bit/32-bit x86-64/i386 Installer (2.7.1) for Mac OS X 10.6, note that the download page was updated sometime ago to include the following warning: [You may not be able to run IDLE or use Tkinter with this