[issue15544] math.isnan fails with some Decimal NaNs

2012-08-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 49014c59b31f by Mark Dickinson in branch 'default': Issue #15544: Fix Decimal.__float__ to work with payload-carrying NaNs. http://hg.python.org/cpython/rev/49014c59b31f -- nosy: +python-dev ___ Python tr

[issue14674] Link to & explain deviations from RFC 4627 in json module docs

2012-08-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, thank you Chris! -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: As this is an error reported by Windows, it *very* unlikely is an issue with Python. Instead, it's a reaction that Windows produced to some sequence of events. My guess is that another process had the address in use, apparently, Windows then reports WSAEACCE

[issue11225] getcwd fix for NetBSD to handle ERANGE errno

2012-08-24 Thread Charles-François Natali
Changes by Charles-François Natali : -- resolution: -> duplicate status: open -> closed superseder: -> test_getcwd_long_pathnames (in test_posix) kills NetBSD ___ Python tracker __

[issue15776] Allow pyvenv to work in existing directory

2012-08-24 Thread Vinay Sajip
Vinay Sajip added the comment: > This is how I use virtualenv at the moment and I'd rather not lose that > ability. Thanks. Well, changing it to do that means changing functionality, which is disallowed at this point in the release process. -- ___

[issue13072] Getting a buffer from a Unicode array uses invalid format

2012-08-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9c7515e29219 by Stefan Krah in branch 'default': Issue #13072: The array module's 'u' format code is now deprecated and http://hg.python.org/cpython/rev/9c7515e29219 -- ___ Python tracker

[issue15776] Allow pyvenv to work in existing directory

2012-08-24 Thread Vinay Sajip
Vinay Sajip added the comment: > I used to create venvs in the project top-level directory (typically a > Mercurial clone root), using “virtualenv .” I've used option 2 for this, using e.g. "virtualenv env" in the project directory. -- ___ Python t

[issue13072] Getting a buffer from a Unicode array uses invalid format

2012-08-24 Thread Stefan Krah
Stefan Krah added the comment: Good, I think this can be closed then. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker _

[issue15776] Allow pyvenv to work in existing directory

2012-08-24 Thread Stefan Holek
Stefan Holek added the comment: Sorry for being late. I'll make a feature request for 3.4 then. -- ___ Python tracker ___ ___ Python-b

[issue15544] math.isnan fails with some Decimal NaNs

2012-08-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset a931e44ffbe1 by Mark Dickinson in branch '3.2': Issue #15544: Fix Decimal.__float__ to work with payload-carrying NaNs. http://hg.python.org/cpython/rev/a931e44ffbe1 -- ___ Python tracker

[issue15776] Allow pyvenv to work in existing directory

2012-08-24 Thread Éric Araujo
Éric Araujo added the comment: > Well, changing it to do that means changing functionality, which is > disallowed at this point in the release process. I think people used to “virtualenv .” can see this as a regression between virtualenv and pyvenv, but if the PEP did not list that use case the

[issue15710] logging module crashes in Python 2.7.3 for handler.setLevel(long)

2012-08-24 Thread Vinay Sajip
Vinay Sajip added the comment: type(-2**31) is long for 2.5 and 2.6 as well as 2.7. The check was added as a response to #6314, to catch incorrect values being passed as levels. It could be argued that -2**31 is not a sensible log level. While int and long are supposed to be interchangeable fo

[issue15776] Allow pyvenv to work in existing directory

2012-08-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le vendredi 24 août 2012 à 18:47 +, Éric Araujo a écrit : > Éric Araujo added the comment: > > > Well, changing it to do that means changing functionality, which is > disallowed at this point in the release process. > I think people used to “virtualenv .” ca

[issue13370] test_ctypes fails when building python with clang

2012-08-24 Thread Ned Deily
Ned Deily added the comment: Sorry, I meant this part of the patch: diff --git a/Modules/_ctypes/libffi_osx/x86/x86-ffi_darwin.c b/Modules/_ctypes/libffi_osx/ --- a/Modules/_ctypes/libffi_osx/x86/x86-ffi_darwin.c +++ b/Modules/_ctypes/libffi_osx/x86/x86-ffi_darwin.c @@ -35,6 +35,8 @@ /* ffi_pr

[issue15544] math.isnan fails with some Decimal NaNs

2012-08-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5dd5f824428c by Mark Dickinson in branch '2.7': Issue #15544: Fix Decimal.__float__ to work with payload-carrying NaNs. http://hg.python.org/cpython/rev/5dd5f824428c -- ___ Python tracker

[issue15776] Allow pyvenv to work in existing directory

2012-08-24 Thread Vinay Sajip
Vinay Sajip added the comment: Reverted. -- assignee: -> vinay.sajip components: +Library (Lib) -None type: behavior -> enhancement versions: -Python 3.3 ___ Python tracker ___

[issue15710] logging module crashes in Python 2.7.3 for handler.setLevel(long)

2012-08-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > type(-2**31) is long for 2.5 and 2.6 as well as 2.7. The check was > added as a response to #6314, to catch incorrect values being passed > as levels. Well, what is an incorrect value and why would you bother refusing long? And how about small long values (e.g

[issue15544] math.isnan fails with some Decimal NaNs

2012-08-24 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed. (I managed to mess up the commit to 3.2 and break all the buildbots :-(. I think it's okay now.) Thanks Steven for the report and patch! (And thanks Stefan for reviewing.) -- resolution: -> fixed status: open -> closed _

[issue14521] math.copysign(1., float('nan')) returns -1.

2012-08-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 31a7ff299698 by Mark Dickinson in branch '2.7': Remove overeager test (don't depend on the sign of a nan; cf. issue #14521) http://hg.python.org/cpython/rev/31a7ff299698 -- ___ Python tracker

[issue15710] logging module crashes in Python 2.7.3 for handler.setLevel(long)

2012-08-24 Thread Vinay Sajip
Vinay Sajip added the comment: It's not that big a deal, and doesn't matter for 3.x anyway. It just doesn't seem quite right, so I'll make the change soon. -- ___ Python tracker ___

[issue14521] math.copysign(1., float('nan')) returns -1.

2012-08-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 121cb9596e7d by Mark Dickinson in branch '3.2': Remove overeager test (don't depend on the sign of a nan; cf. issue #14521) http://hg.python.org/cpython/rev/121cb9596e7d -- ___ Python tracker

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
James Hutchison added the comment: This is the traceback I was getting where it was just a script that simply made an SMTP connection then closed it. This fails before it attempts to connect to the server. Traceback (most recent call last): File "C:\tmp\manysmtptest.py", line 8, in main

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: It's very easy to see why it survives a reboot. If there is a collision with some other process, that process restarts, recreating the collision. Things may depend on timing, so it may happen on some reboots and not on others (e.g. if the colliding process ha

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
James Hutchison added the comment: That makes no sense. Why does: s = socket.socket() s.bind(('',50007)) s.listen(1); s.close(); fix the issue then? Re-opening, this issue should be understood because having such an operation randomly fail is unacceptable for a production system. How does pyt

[issue15780] IDLE (windows) with PYTHONPATH and multiple python versions

2012-08-24 Thread James Hutchison
New submission from James Hutchison: One issue I've encountered is someone else's software setting PYTHONPATH to their install directory of python. We have some old software that installs and uses python 2.3 scripts and unfortunately this prevents the IDLE shortcuts for newer versions of pytho

[issue15780] IDLE (windows) with PYTHONPATH and multiple python versions

2012-08-24 Thread R. David Murray
R. David Murray added the comment: I'm guessing that 'batch file' version of this request is answered by the new 'py' launcher command in Python3, which can also be used with other versions of Python. The obscurity of configuring things on Windows isn't directly a Python problem, but perhaps

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > s.bind(('',50007)) How did you find out 50007? Is it just a random number you chose? -- nosy: +brian.curtin, pitrou, tim.golden ___ Python tracker __

[issue15573] Support unknown formats in memoryview comparisons

2012-08-24 Thread Georg Brandl
Georg Brandl added the comment: I'm not very keen to hold up the release for long times again, especially for a patch of this size and lots of potential breakage. -- ___ Python tracker

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
James Hutchison added the comment: It's from the example. http://docs.python.org/library/socket.html#example -- ___ Python tracker ___ __

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: According to the MSDN doc for connect(): WSAEACCES: An attempt to connect a datagram socket to broadcast address failed because setsockopt option SO_BROADCAST is not enabled. However, this implies that `getaddrinfo(host, port, 0, SOCK_STREAM)` (in socket.crea

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oh, a random Google search brought the following comment from the chromium source code (it seems): “connect fails with WSAEACCES when Windows Firewall blocks the connection”. This sounds like a likelier explanation than the previous one. -- __

[issue13370] test_ctypes fails when building python with clang

2012-08-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: That's not code duplication, but a way to silence a compiler warning. I added it while trying to get pyobjc to compile without any warnings. -- ___ Python tracker ___

[issue15136] Decimal accepting Fraction

2012-08-24 Thread Zachary Ware
Zachary Ware added the comment: (Mark:) >To the patch: It looks fine, as far as it goes. It needs tests. I remembered tests about 5 minutes after I submitted the initial patch :P. Here's a patch with some tests. Note that I've never really done tests, so please let me know if there need t

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
James Hutchison added the comment: The firewall is disabled for my machine. So the options are: 1. Port was in-use: possible except that is normally a different error 2. Port was firewalled: firewall was disabled 3. Port mis-use: not likely because this wouldn't be random 4. Port was in restrict

[issue15316] runpy swallows ImportError information with relative imports

2012-08-24 Thread Brett Cannon
Brett Cannon added the comment: I am running the test suite now using the "secret" attribute on ImportError. I tried to pass a flag, but locking became a bit messy/complicated. And I also realized that if I didn't do this then using different implementation of import_ in importlib wouldn't wor

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, please check the return value of getaddrinfo() for your SMTP server: >>> socket.getaddrinfo("www.gmail.com", 25, 0, socket.SOCK_STREAM) [(2, 1, 6, '', ('74.125.230.213', 25)), (2, 1, 6, '', ('74.125.230.214', 25)), (10, 1, 6, '', ('2a00:1450:4007:80

[issue13370] test_ctypes fails when building python with clang

2012-08-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: I noticed earlier today that test_ctypes passes for Python 3.3 both with and without my patch. This is on OSX 10.8.1 with an up-to-date Xcode. Configure arguments: '--enable-framework' '--with-pydebug' '--enable-universalsdk=/Applications/Xcode.app/Contents/

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
James Hutchison added the comment: I can connect to all of the IPs for my server without issue. Found this: Another possible reason for the WSAEACCES error is that when the bind function is called (on Windows NT 4.0 with SP4 and later), another application, service, or kernel mode driver is b

[issue15316] runpy swallows ImportError information with relative imports

2012-08-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset ca4bf8e10bc0 by Brett Cannon in branch 'default': Issue #15316: Let exceptions raised during imports triggered by the http://hg.python.org/cpython/rev/ca4bf8e10bc0 -- nosy: +python-dev ___ Python tracker

[issue15316] runpy swallows ImportError information with relative imports

2012-08-24 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: test needed -> committed/rejected status: open -> closed ___ Python tracker ___

[issue14649] doctest.DocTestSuite error misleading when module has no docstrings

2012-08-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: Here is an updated patch for review (just for the default branch for now). The main change from the previous patch is that the ValueError exception is now documented. A few additional comments/questions: Is there a better way to signify in the documentation t

[issue13370] test_ctypes fails when building python with clang

2012-08-24 Thread Ned Deily
Ned Deily added the comment: Bah, I just noticed that you built --with-pydebug enabled. That hides the problem. I was fooled myself there. But I've since verified that the failure still exists when built on 10.7 with Xcode 4.4.1 so the patch should go in. -- ___

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: The Python API maps nearly 1:1 to the winsock API. So the Python code literally translates to the equivalent C code (with *very* minor deviations e.g. involving the conversion of string addresses in numeric addresses). Please leave the issue closed unless you

[issue14649] doctest.DocTestSuite error misleading when module has no docstrings

2012-08-24 Thread Chris Jerdonek
Changes by Chris Jerdonek : Added file: http://bugs.python.org/file26991/issue-14649-3.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue14455] plistlib unable to read json and binary plist files

2012-08-24 Thread Mark Grandi
Mark Grandi added the comment: are any more changes needed to the code that is already posted as a patch in this bug report? or are the changes you wanted to see happen in msg157669 not happen yet? -- ___ Python tracker

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
Changes by James Hutchison : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
James Hutchison added the comment: Looks to me like python grabs an outgoing port number via unrandom means and if it happens to map to a port taken by a service that demands exclusive access, then it returns the WSAEACCESS error instead of WSAEADDRINUSE. Because this is a fairly new "feature"

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
Changes by James Hutchison : -- components: +Windows ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Looks to me like python grabs an outgoing port number via unrandom means Python does not grab an outgoing port number, its lets the OS choose one (via connect()). The only thing to watch out for would be whether you let many connections open (perhaps there's

[issue14649] doctest.DocTestSuite error misleading when module has no docstrings

2012-08-24 Thread R. David Murray
R. David Murray added the comment: Personally I prefer to have the test case create the file(s) used in the test dynamically, writing them to the temporary working directory. Since these are Python modules, you could use the helpers from script_helpers for this. Otherwise I think your patch i

[issue634412] RFC 2387 in email package

2012-08-24 Thread R. David Murray
R. David Murray added the comment: http://tools.ietf.org/html/rfc2387 has obsoleted 2112. -- title: RFC 2112 in email package -> RFC 2387 in email package versions: +Python 3.4 -Python 3.3 ___ Python tracker _

[issue15731] Mechanism for inheriting docstrings and signatures

2012-08-24 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue15777] test_capi refleak

2012-08-24 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ __

<    1   2