[issue7751] urllib.urlopen(///C|/foo/bar/spam.foo) IOError: [Errno 22]

2010-02-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Ok, thanks for clarifying :) Regards -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7751 ___

[issue3426] os.path.abspath with unicode argument should call os.getcwdu

2010-02-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed in r78247 (trunk) and r78248 (release26-maint) (plus a fix in r78272 and r78279 to avoid test failures when the filesystem encoding is ascii). I didn't use the any_cwd decorator -- I might consider it in future if it turns out that

[issue4999] multiprocessing.Queue does not order objects

2010-02-21 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I think it would be nice to update the documentation if this isn't resolved yet. The patch adds a warning that FIFO behavior is not guaranteed. -- keywords: +patch nosy: +skrah Added file:

[issue5211] Fix complex type to avoid coercion in 2.7.

2010-02-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Apologies for the delay; tomorrow was a long time coming... The patch looks great---thank you! I added a .. versionchanged note to the documentation, and fixed a couple of whitespace issues; apart from that I didn't change anything.

[issue2395] [Py3k] struct module changes of PEP 3118

2010-02-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I think this can be closed as a duplicate of issue 3132. (Yes, this issue came first, but all the interesting(?) discussion is over in issue 3132.) -- dependencies: -implement PEP 3118 struct changes nosy: +mark.dickinson

[issue3132] implement PEP 3118 struct changes

2010-02-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: [Meador Inge] So the next step is to kick off a thread on python-dev summarizing the questions\problems we have come up with? I can get that started. Sounds good. I'd really like to see some examples of how these struct-module additions

[issue7384] curses crash on FreeBSD

2010-02-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: It does appear that curses itself is broken on FreeBSD Rereading this, it doesn't say what I meant it to say: I meant that the Python curses module seems to be broken, not that the system-level curses library is broken (though that seems

[issue7974] Valgrind error when running Python command within Vim

2010-02-21 Thread Dominique Pellé
New submission from Dominique Pellé dominique.pe...@gmail.com: I built Vim-7.2.368 editor with python interpreter using Python-2.6.4 library on Linux x86. When I run a python command (any command, it does not matter) in the Vim editor with Valgrind memory checker, I see valgrind errors within

[issue7974] Valgrind error when running Python command within Vim

2010-02-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The code you identify looks okay to me: in PyMarshal_ReadObjectFromString, isn't it only the temporary variable rf that has a pointer to the string? Have you read Misc/README.valgrind in the Python source? -- nosy: +mark.dickinson

[issue7974] Valgrind error when running Python command within Vim

2010-02-21 Thread Dominique Pellé
Dominique Pellé dominique.pe...@gmail.com added the comment: Have you read Misc/README.valgrind in the Python source? No, I had not see this file. Thanks for pointing it to me. I've just read it, reconfigured recompiled Python-2.6.4 with: ./configure --without-pymalloc It now runs without

[issue7974] Valgrind error when running Python command within Vim

2010-02-21 Thread Dominique Pellé
Dominique Pellé dominique.pe...@gmail.com added the comment: Closed: this was not a bug, I had to build Python lib with configure --without-pymalloc to avoid valgrind errors. -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-02-21 Thread Alex Willmer
Alex Willmer a...@moreati.org.uk added the comment: On 17 February 2010 19:35, Matthew Barnett rep...@bugs.python.org wrote: The main text at http://pypi.python.org/pypi/regex appears to have lost its backslashes, for example:    The Unicode escapes u and U are supported.

[issue7974] Valgrind error when running Python command within Vim

2010-02-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks for the update! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7974 ___ ___

[issue7974] Valgrind error when running Python command within Vim

2010-02-21 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- resolution: - invalid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7974 ___ ___

[issue7975] dbshelve.py throws exception: AttributeError: 'DB' object has no attribute '__iter__'

2010-02-21 Thread Adam Collard
New submission from Adam Collard adam.coll...@gmail.com: Originally reported at: https://bugs.edge.launchpad.net/bugs/384602 In Python 2.6, the dbshelve.py module throws an AttributeError exception whenever a call is made to a method that depends upon an __iter__ method. The exception is:

[issue7975] dbshelve.py throws exception: AttributeError: 'DB' object has no attribute '__iter__'

2010-02-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Could you please provide a complete example that demonstrates the problem? A naive example using shelve with a dbhash database seems to work fine. -- nosy: +r.david.murray priority: - normal stage: - test needed type: -

[issue1722344] Thread shutdown exception in Thread.notify()

2010-02-21 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: Any idea if there is a nightly build for Python 2.6? The latest release was 2.6.4 and was 2 days before submitting the patch. Or the only alternative is to build it myself? Any ideas on when we could see 2.6.5? - I tried to look for a release

[issue7975] dbshelve.py throws exception: AttributeError: 'DB' object has no attribute '__iter__'

2010-02-21 Thread Adam Collard
Adam Collard adam.coll...@gmail.com added the comment: Attached a simple example. -- Added file: http://bugs.python.org/file16280/dbshelve_example.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7975

[issue7977] I found Python 3.1 xmlrpc lib use param not properly. and i have fixed it.

2010-02-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Please could you generate and upload a patch against the Python source? (For Windows, you can do this using the WinMerge tool, amongst others.) I'm unable to open the file you attached on my machine: No application knows how to open ...

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-21 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I would suggest using my _DARWIN_C_SOURCE implementation unconditionally and make similar changes to posix_setgroups, but this is probably a subject for a separate issue. I would propose a different strategy: if _SC_NGROUPS_MAX is

[issue3132] implement PEP 3118 struct changes

2010-02-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: About long doubles again: I just encountered someone on the #python IRC channel who wanted to know whether struct.pack and struct.unpack supported reading and writing of x87 80-bit long doubles (padded to 12 bytes each in the input). A

[issue7975] dbshelve.py throws exception: AttributeError: 'DB' object has no attribute '__iter__'

2010-02-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The bug seems to have been introduced by an incomplete or incorrect translation to the newer idiom (DictMixin to MutableMapping). Since bsddb is gone in py3, I'm inclined to fix it by just going back to using DictMixin. There are no

[issue6436] trace module doesn't seem to produce .cover files for Py3 (but does for Py2)

2010-02-21 Thread Michael Newman
Michael Newman michael.b.new...@gmail.com added the comment: I noticed the same behavior today. Let's consider a test case using my python script version_check.py (attached). Normally the script does the following on my Ubuntu 9.10 box: # Python 2.6 example: m...@ebx2009:~/test$ which python

[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-02-21 Thread Jeremy Hylton
Jeremy Hylton jer...@alum.mit.edu added the comment: On Sat, Feb 20, 2010 at 12:06 AM, R. David Murray rep...@bugs.python.org wrote: R. David Murray rdmur...@bitdance.com added the comment: But the docs (which presumably describe the API) say that the socket is unusable after the call to

[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-02-21 Thread Jeremy Hylton
Jeremy Hylton jer...@alum.mit.edu added the comment: In particular, I mean this part of the socket API: socket.makefile([mode[, bufsize]]) Return a file object associated with the socket. (File objects are described in File Objects.) The file object references a dup()ped version of the socket

[issue7929] Update copyright notice on python websites to 2010

2010-02-21 Thread Michael Newman
Michael Newman michael.b.new...@gmail.com added the comment: Perhaps this is now really a bug: # Response to e-mail to webmas...@python.org: # This is the mail system at host mail.python.org. I'm sorry to have to inform you that your message could not be delivered to one or more recipients.

[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-02-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: So do I. I'm saying that paramiko appears to be following the socket API as documented in the python docs (ie: that closing the socket means it is no longer usable). -- ___ Python tracker

[issue7929] Update copyright notice on python websites to 2010

2010-02-21 Thread Michael Newman
Michael Newman michael.b.new...@gmail.com added the comment: I posted the copyright note, and the reply bot bug on the wiki at: http://wiki.python.org/moin/SiteImprovements -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7929

[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-02-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: So HTTConnection is closing the thing returned by makefile and that is closing the socket, except that the socket library makes sure it doesn't actually close the socket until the dupped file handle is also closed? I guess I need to

[issue1722344] Thread shutdown exception in Thread.notify()

2010-02-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I have seen somewhere (ask google), that python 2.6.5 would be released mid-march. But except for a few platforms, python.org does not provide compiled binaries. -- ___ Python tracker

[issue7964] -m pdb SyntaxError for \r\n formatted py files

2010-02-21 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I'm interested in finding a workaround for this issue in the next 24 hours. I can also help contribute a test case. I'll investigate further. -- nosy: +jaraco ___ Python tracker

[issue7929] Update copyright notice on python websites to 2010

2010-02-21 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Closing as fixed, as the replybot issue is listed on the wiki. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7929

[issue7964] -m pdb SyntaxError for \r\n formatted py files

2010-02-21 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Attached is a patch against the py3k branch that fixes the issue by changing the mode used to open the target script. It includes a unittest that elicits the issue and validates the fix. The patch should also probably be applied to the

[issue7975] dbshelve.py throws exception: AttributeError: 'DB' object has no attribute '__iter__'

2010-02-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Here's a patch. test_bsddb3 still passes with this patch applied on trunk. -- assignee: - r.david.murray keywords: +patch stage: test needed - patch review Added file: http://bugs.python.org/file16284/dbshelve_dictmixin.patch

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-21 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: On Sun, Feb 21, 2010 at 1:58 PM, Martin v. Löwis rep...@bugs.python.org wrote: .. I would propose a different strategy: if _SC_NGROUPS_MAX is defined, use that to find out how much memory to allocate, otherwise, fall back

[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-02-21 Thread Robert Buchholz
Robert Buchholz r...@freitagsrunde.org added the comment: almost... HTTPConnection is calling close() on the socket object, but HTTPResponse still has an open file-like object from a previous makefile() call. That object still has an internal reference to the socket. --

[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-02-21 Thread Jeremy Hylton
Jeremy Hylton jer...@alum.mit.edu added the comment: On Sun, Feb 21, 2010 at 5:38 PM, Robert Buchholz rep...@bugs.python.org wrote: Robert Buchholz r...@freitagsrunde.org added the comment: almost... HTTPConnection is calling close() on the socket object, but HTTPResponse still has an open

[issue5211] Fix complex type to avoid coercion in 2.7.

2010-02-21 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: I added a .. versionchanged note to the documentation, and fixed a couple of whitespace issues; Thanks. I checked out the changes you made so that I will know what to do next time :). Fixed now, with apologies to Meador. No worries.

[issue7232] Support of 'with' statement fo TarFile class

2010-02-21 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Here is a patch which expands on Jaime's patch. I was converting tests for #7944 and looked at test_tarfile, and implemented the same feature that he did. All places where context managers should be used in the test, they are used. Includes a doc

[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules

2010-02-21 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I'm going to go ahead with the patch-per-module approach, but anyone feel free to stop me from doing that. Here's a patch for test_gzip on trunk. -- Added file: http://bugs.python.org/file16286/issue7944_gzip.diff

[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-02-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: OK, then I think I understand Jeremy's point now: the paramiko socket is apparently not implementing makefile in a way that matches the documented API. -- ___ Python tracker

[issue7245] better Ctrl-C support in pdb (program can be resumed)

2010-02-21 Thread Ilya Sandler
Ilya Sandler ilya.sand...@gmail.com added the comment: I fixed some of the style issues mentioned on appspot. (I was not sure about some of them and responded to them in appspot comments). Also sigHandler became sighandler for consistency with the rest of pdb.py. The new version of the

[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules

2010-02-21 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Here's a patch for test_tempfile on trunk. The rest will just be silently added since this is already annoying. -- Added file: http://bugs.python.org/file16289/issue7944_tempfile.diff ___ Python tracker

[issue4199] add shorthand global and nonlocal statements

2010-02-21 Thread A.M. Kuchling
A.M. Kuchling li...@amk.ca added the comment: Bumping priority so this doesn't get forgotten before 3.2; it seems important because it fixes noncompliance with a PEP. -- nosy: +akuchling priority: normal - high ___ Python tracker

[issue7245] better Ctrl-C support in pdb (program can be resumed)

2010-02-21 Thread Ilya Sandler
Ilya Sandler ilya.sand...@gmail.com added the comment: Here is a list of Ctrl-C scenarios: (current below means the prepatch version of pdb). 1. program is running (last command was c, n, etc). Currently, Ctrl-C throws debugger into postmortem. Desired behavior: interrupt the program. This

[issue7232] Support of 'with' statement fo TarFile class

2010-02-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Woops, I accidentally deleted one of the patch files. Adding back. -- nosy: +r.david.murray Added file: http://bugs.python.org/file16291/tarfileWithSupportv2.patch ___ Python tracker

[issue1481] test_uuid is warning about unreliable functions

2010-02-21 Thread A.M. Kuchling
A.M. Kuchling li...@amk.ca added the comment: They were disabled in r50949, with the comment: Disable these tests until they are reliable across platforms. These problems may mask more important, real problems. One or both methods are known to fail on: Solaris, OpenBSD, Debian,

[issue3132] implement PEP 3118 struct changes

2010-02-21 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: The main thing that I realized from this is that unpacking as a ctypes long double isn't all that useful for someone who wants to be able to do arithmetic on the unpacked result. I agree. Especially since ctypes 'long double' maps to a

[issue5099] subprocess.POpen.__del__() AttributeError (os module == None!)

2010-02-21 Thread A.M. Kuchling
A.M. Kuchling li...@amk.ca added the comment: Gabriel: could you please update the patch to take Antoine's comment into account? -- nosy: +akuchling ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5099