[issue12678] test_packaging and test_distutils failures under Windows

2011-08-23 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: I’ll commit the tmp-debug patch so that we can get info from the buildbot, unless Jeremy or someone can investigate. If you can wait until this evening (CEST), I'll run the tests with that patch applied locally. It might be easier to get

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’m in CEST too (France), but I’m not sure I’ll have Internet access this evening. Would tomorrow afternoon work for you? I don’t want you to have to dive in distutils more than you should :) --

[issue12821] test_fcntl failed on OpenBSD 5.x

2011-08-23 Thread Remi Pointel
New submission from Remi Pointel pyt...@xiri.fr: Hello, test_fcntl failed on OpenBSD 5.0. It's ok when we add openbsd5 in the tuple of sys.platform (patch attached). Thanks a lot, Remi. -- files: patch-Lib_test_test_fcntl_py messages: 142784 nosy: rpointel priority: normal severity:

[issue12821] test_fcntl failed on OpenBSD 5.x

2011-08-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Note that it's been fixed in default with the recent sys.platform refactoring: 26 if (sys.platform.startswith(('netbsd', 'freebsd', 'openbsd', 'bsdos')) 27 or sys.platform == 'darwin'): 28 if

[issue12821] test_fcntl failed on OpenBSD 5.x

2011-08-23 Thread Remi Pointel
Remi Pointel pyt...@xiri.fr added the comment: Thanks a lot, I prefer to use sys.platform.startswith too. Remi. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12821 ___

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

2011-08-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: However, in doing this, I noticed that these methods will, at best, work during the time between connection and the socket going secure and were not added to the list of methods that the SSL is documented as exposing. Perhaps we

[issue12409] Moving Documenting Python to Devguide

2011-08-23 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: +1, and as Eric says, we can do it without changing versions of Sphinx used. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12409 ___

[issue12822] NewGIL should use CLOCK_MONOTONIC if possible.

2011-08-23 Thread INADA Naoki
New submission from INADA Naoki songofaca...@gmail.com: Using CLOCK_MONOTONIC is better than CLOCK_REALTIME (default) for GIL because settimeofday() may break the pthread_cond_timedwait(). Attached patch uses CLOCK_MONOTONIC and clock_gettime. But I don't know how to write appropriate configure

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: higery: Would you have a bit of free time to help use here? -- nosy: +higery ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12678 ___

[issue12822] NewGIL should use CLOCK_MONOTONIC if possible.

2011-08-23 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12822 ___ ___

[issue12822] NewGIL should use CLOCK_MONOTONIC if possible.

2011-08-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #10278. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12822 ___ ___

[issue10278] add time.wallclock() method

2011-08-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #12822. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10278 ___ ___

[issue12808] Coverage of codecs.py

2011-08-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Tennessee Leeuwenburg wrote: Tennessee Leeuwenburg tleeuwenb...@gmail.com added the comment: Thanks for the review. Here is a patch incorporating the two comments being to move some comments. Hmm, the documentation patch doesn't

[issue12808] Coverage of codecs.py

2011-08-23 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12808 ___ ___

[issue12823] Broken link in SSL wrapper for socket objects document

2011-08-23 Thread Roger Li
New submission from Roger Li worm...@gmail.com: In http://docs.python.org/release/3.1.3/library/ssl.html You will find a link at the bottom named Introducing SSL and Certificates using OpenSSL, it's a broken link. The server may be down or not exist, the only version I can find is

[issue12824] Make the write_file() helper function in test_shutil return the file name it wrote to

2011-08-23 Thread Hynek Schlawack
New submission from Hynek Schlawack h...@ox.cx: test_shutil contains a handy helper function called write_file(filename. contents). If *filename* is a tuple, os.path.join() is used to concatenate it to a path. To be really useful, the resulting file name should be returned, so the user can

[issue12721] Chaotic use of helper functions in test_shutil for reading and writing files

2011-08-23 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Done in Issue12824. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12721 ___ ___ Python-bugs-list

[issue12825] Missing and incorrect link to a command line option.

2011-08-23 Thread Kyle Simpson
New submission from Kyle Simpson illwhip...@gmail.com: The documentation for the runpy module has a link to the -m command line option. In version 2.7.2 of the docs, the link doesn't exist. http://docs.python.org/release/2.7/library/runpy.html

[issue12825] Missing and incorrect link to a command line option.

2011-08-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: It’s weird that the docs under /release/2.7 has the link but not the one under /. -- nosy: +eric.araujo, georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12825

[issue12826] module _socket failed to build on OpenBSD

2011-08-23 Thread Remi Pointel
New submission from Remi Pointel pyt...@xiri.fr: Hello, I try to build Python 3.3 on OpenBSD, and it failed to build these modules: _socket (so _ssl too). Errors are: /home/remi/dev/cpython_test/Modules/socketmodule.c: In function 'sock_recvmsg':

[issue12826] module _socket failed to build on OpenBSD

2011-08-23 Thread Remi Pointel
Changes by Remi Pointel pyt...@xiri.fr: Added file: http://bugs.python.org/file23016/socketmodule_build_error_openbsd.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12826 ___

[issue12826] module _socket failed to build on OpenBSD

2011-08-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b4b84e87dc6b by Victor Stinner in branch 'default': Close #12826: fix socketmodule.c for OpenBSD, include sys/uio.h http://hg.python.org/cpython/rev/b4b84e87dc6b -- nosy: +python-dev resolution: - fixed

[issue12826] module _socket failed to build on OpenBSD

2011-08-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: It's surprising that it works on FreeBSD but not on OpenBSD. Thanks for your patch. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12826

[issue12824] Make the write_file() helper function in test_shutil return the file name it wrote to

2011-08-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hm, I don’t think the patch makes the test easier to read or maintain. As I wrote in the commit message for #12721: For simple open then read/write calls, I have left the usual idiom (with open + read/write), as it is short and readable

[issue12827] OS-specific location in Lib/tempfile.py for OpenBSD

2011-08-23 Thread Remi Pointel
New submission from Remi Pointel pyt...@xiri.fr: Hello, /usr/tmp is not (used) on OpenBSD. We have specific patch to do this, but I prefer to have this modification upstream. 2.5: http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/python/2.5/patches/patch-Lib_tempfile_py 2.7:

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

2011-08-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: However, in doing this, I noticed that these methods will, at best, work during the time between connection and the socket going secure and were not added to the list of methods that the SSL is documented as exposing. Perhaps we should just

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-23 Thread higery
higery shoulderhig...@gmail.com added the comment: higery: Would you have a bit of free time to help use here? Certainly yes. I have run the test_packaging.py, the main error message is about ValueError: path is on mount 'c:', start on mount 'D:'. One sample is: ERROR: test_uses

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-23 Thread higery
higery shoulderhig...@gmail.com added the comment: For test_distutils.py, there is not an 'os.link()' function on Windows platform, so all the tests using this function will report error. -- ___ Python tracker rep...@bugs.python.org

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks! There’s a patch on #12785 that may fix the test_database bug. Here we try to see the distutils test_sdist problem on 2.7. -- ___ Python tracker rep...@bugs.python.org

[issue12827] OS-specific location in Lib/tempfile.py for OpenBSD

2011-08-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: /usr/tmp is not (used) on OpenBSD. How is that a problem? Those are just possible temporary directories to try, so if it doesn't exist, it won't be used (typically ENOENT will be catched when opening a tmpfile). Also, since it's

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

2011-08-23 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: That's the part I'm questioning though. I'm not clear why you'd ever do that instead of doing everything on the original socket before invoking ssl.wrap_socket. What I missed on the original patch before committing it (mea culpa) is that the

[issue12827] OS-specific location in Lib/tempfile.py for OpenBSD

2011-08-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Because it's not exactly a bug, can you only apply the patch to Python 3.3? -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12827

[issue6484] No unit test for mailcap module

2011-08-23 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The buildbots are reporting a test failure on Windows: == FAIL: test_listmailcapfiles (test.test_mailcap.HelperFunctionTest)

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

2011-08-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: That's the part I'm questioning though. I'm not clear why you'd ever do that instead of doing everything on the original socket before invoking ssl.wrap_socket. What I missed on the original patch before committing it (mea culpa) is that

[issue12827] OS-specific location in Lib/tempfile.py for OpenBSD

2011-08-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: can you only apply the patch ... Hum, I mean can *we* only apply ... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12827

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

2011-08-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset fd10d042b41d by Nick Coghlan in branch 'default': Remove the SSLSocket versions of sendmsg/recvmsg due to lack of proper tests and documentation in conjunction with lack of any known use cases (see issue #6560 for

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

2011-08-23 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: As you can see, I just pushed a change that removed the new methods from SSLSocket objects. If anyone wants to step up with a valid use case (not already covered by wrap_socket), preferably with a patch to add them back that includes proper

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

2011-08-23 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Regarding the 'missing methods' aspect, the SSL docs are already pretty clear that SSLSocket objects don't expose the full socket API: http://docs.python.org/dev/library/ssl#ssl-sockets Those docs are actually what really got me started down

[issue12817] test_multiprocessing: io.BytesIO() requires bytearray buffers

2011-08-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I've come to think that PyBUF_SIMPLE requests were really intended as a way of casting contiguous buffers with arbitrary formats to one-dimensional buffers of unsigned bytes. At least that is what Numpy does. Then test_multiprocessing

[issue12817] test_multiprocessing: io.BytesIO() requires bytearray buffers

2011-08-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Please also see issue5231. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12817 ___ ___

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-23 Thread higery
higery shoulderhig...@gmail.com added the comment: Here we try to see the distutils test_sdist problem on 2.7. So sorry that there is not a developed cpython 2.7 on my pc, and my currently installed Python2.7 has not installed the _msi module, so the running of the tests does not work well.

[issue5231] Change format of a memoryview

2011-08-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I think this would be useful and I'll try it out in features/pep-3118#memoryview. Syntax options that I'd prefer: a = array.array('i', [1,2,3]) m = memoryview(a, 'B') Or go all the way and make memoryview take any flag: a =

[issue5231] Change format of a memoryview

2011-08-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Or go all the way and make memoryview take any flag: a = array.array('i', [1,2,3]) m = memoryview(a, getbuf=PyBUF_SIMPLE) This is good for testing, but Python developers shouldn't have to know about the low-level flags. --

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

2011-08-23 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: And the Windows buildbots are now happy (at least with respect to this change, anyway - they're still griping about a few other issues). I don't know if it's feasible to support these new APIs at the socket module level on Windows, but any

[issue9993] shutil.move fails on symlink source

2011-08-23 Thread Jonathan Niehof
Jonathan Niehof jnie...@lanl.gov added the comment: Éric: I think copying a relative symlink should also be relative, and that's the behaviour of this patch. That was the use case that tripped me up with the original behaviour of shutil.move: a relative symlink which was dangling in its

[issue6484] No unit test for mailcap module

2011-08-23 Thread Gregory Nofi
Gregory Nofi crackityjones200...@yahoo.com added the comment: There's a bug for that test failure: #9923. I submitted a patch with it. Committing that should fix the failure. -- ___ Python tracker rep...@bugs.python.org

[issue9993] shutil.move fails on symlink source

2011-08-23 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9993 ___ ___

[issue5231] Change format of a memoryview

2011-08-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Antoine Pitrou rep...@bugs.python.org wrote: Or go all the way and make memoryview take any flag: a = array.array('i', [1,2,3]) m = memoryview(a, getbuf=PyBUF_SIMPLE) This is good for testing, but Python developers shouldn't

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-08-23 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Nick, I still want to work on this one. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___

[issue6484] No unit test for mailcap module

2011-08-23 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Ah, cheers - closing this one again. /me wanders off to meta-tracker to ask for a list of dependency of and superseder of issues in the issue header... -- status: open - closed ___ Python tracker

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-08-23 Thread Eugene Toder
Changes by Eugene Toder elto...@gmail.com: -- nosy: -eltoder ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___ ___ Python-bugs-list mailing

[issue12602] Missing using docs cross-references

2011-08-23 Thread Kyle Simpson
Changes by Kyle Simpson illwhip...@gmail.com: -- nosy: +Kyle.Simpson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12602 ___ ___ Python-bugs-list

[issue9923] mailcap module may not work on non-POSIX platforms if MAILCAPS env variable is set

2011-08-23 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - ncoghlan nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9923 ___ ___

[issue9923] mailcap module may not work on non-POSIX platforms if MAILCAPS env variable is set

2011-08-23 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- stage: test needed - patch review versions: +Python 3.2, Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9923 ___

[issue9993] shutil.move fails on symlink source

2011-08-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9993 ___ ___ Python-bugs-list

[issue5231] Change format of a memoryview

2011-08-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hmm, indeed. How about: 1) memoryview(a, format='B') Shadows a builtin function; annoying syntax highlighting in current Vim. 2) memoryview(a, fmt='B') I'm fully expecting a comment about 'strpbrk' again, but I like it. :) I really

[issue5231] Change format of a memoryview

2011-08-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Good, I'll use 'format'. I was mainly worried about the shadowing issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5231 ___

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-08-23 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: Added file: http://bugs.python.org/file23018/7cead6bf5832.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-08-23 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: Removed file: http://bugs.python.org/file23018/7cead6bf5832.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-08-23 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The diff generator didn't work - I've uploaded the current patch manually to make it easier to review than it is in my bitbucket repo. I just noticed there's a missing element in the docs patch at the moment - to make testing easier, Ryan

[issue5231] Change format of a memoryview

2011-08-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Rethinking a bit: Casting to arbitrary formats might go a bit far. Currently, the combination (format=NULL, shape=NULL) can serve as a warning This buffer has been cast to unsigned bytes. If we allow casts from bytes to int32, we'll

[issue5231] Change format of a memoryview

2011-08-23 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Casting to a flat 1-D array of bytes is reasonable (it's essentially saying 'look, just give me the raw data, it's on my own head if I stuff up the formatting'). However, requiring an explicit two-step process for any other casting (i.e.

[issue5231] Change format of a memoryview

2011-08-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: However, requiring an explicit two-step process for any other casting (i.e. take a 1-D view, then a shaped view of that flat 1-D view) also sounds reasonable. So I agree with Victor that 1-D bytes - any shape/format and any shape/format -

[issue12827] OS-specific location in Lib/tempfile.py for OpenBSD

2011-08-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Because it's not exactly a bug, can you only apply the patch to Python 3.3? Well, we could, but: - it doesn't fix a bug - it doesn't bring any obvious benefit (performance, security, etc) - it introduces an OS-specific case for no

[issue11657] multiprocessing_{send,recv}fd fail with fds 256

2011-08-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: For 3.3, it may be relevant that send/recvmsg are now available via the socket API (see #6560) I think sendfds/recvfds helper methods could be added to the socket type, so that programmers don't have to get the incantations right by

[issue11657] multiprocessing_{send,recv}fd fail with fds 256

2011-08-23 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11657 ___ ___

[issue12827] OS-specific location in Lib/tempfile.py for OpenBSD

2011-08-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: We can keep this patch in our tree, I understand your position. I could be missing something, but why do you have this patch in the first place? If it turns out to be useful, then it's of course better to include it upstream, I just

[issue12827] OS-specific location in Lib/tempfile.py for OpenBSD

2011-08-23 Thread Remi Pointel
Remi Pointel pyt...@xiri.fr added the comment: I was reporting this because I thought it was better to include this upstream. However, I understand if you don't want to include this specific case. We can keep this patch in our tree, I understand your position. --

[issue11657] multiprocessing_{send,recv}fd fail with fds 256

2011-08-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Now that I think of it, it would be nice to add some simple tests for recvfd and sendfd in test_multiprocessing. (also, when os.dup2() is available, you can easily generate an arbitrary big file descriptor) --

[issue12827] OS-specific location in Lib/tempfile.py for OpenBSD

2011-08-23 Thread Remi Pointel
Remi Pointel pyt...@xiri.fr added the comment: I could be missing something, but why do you have this patch in the first place? I'm recently working on porting Python for OpenBSD, and this patch exists since python2.5 (since 4 years in our tree). So I don't have all responses, but I think

[issue12827] OS-specific location in Lib/tempfile.py for OpenBSD

2011-08-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: it seems that this patch could be safely removed from our port tree. Alright, I'm closing then. Thanks for all information. And thanks for your help and bug reports concerning OpenBSD-specific issues! -- resolution: -

[issue5231] Change format of a memoryview

2011-08-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Nick Coghlan rep...@bugs.python.org wrote: So I agree with Victor that 1-D bytes - any shape/format and any shape/format - 1-D bytes should be allowed, but I think we should hold off on allowing arbitrary transformations in a single

[issue12821] test_fcntl failed on OpenBSD 5.x

2011-08-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f1f1d9f4b14e by Charles-François Natali in branch '2.7': Issue #12821: Fix test_fcntl failures on OpenBSD 5. http://hg.python.org/cpython/rev/f1f1d9f4b14e -- nosy: +python-dev

[issue12821] test_fcntl failed on OpenBSD 5.x

2011-08-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9157a9e77740 by Charles-François Natali in branch '3.2': Issue #12821: Fix test_fcntl failures on OpenBSD 5. http://hg.python.org/cpython/rev/9157a9e77740 -- ___ Python

[issue12821] test_fcntl failed on OpenBSD 5.x

2011-08-23 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12821 ___ ___

[issue12828] xml.dom.minicompat is not documented

2011-08-23 Thread Sandro Tosi
New submission from Sandro Tosi sandro.t...@gmail.com: There's no documentation for xml.dom.minicompat - it's a public module and it should have (even a brief) doc. -- assignee: docs@python components: Documentation messages: 142845 nosy: docs@python, sandro.tosi priority: normal

[issue12821] test_fcntl failed on OpenBSD 5.x

2011-08-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Committed to 3.2 and 2.7. Rémi, thanks for the report. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11657] multiprocessing_{send,recv}fd fail with fds 256

2011-08-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5b2f357989bb by Antoine Pitrou in branch '3.2': Issue #11657: Fix sending file descriptors over 255 over a multiprocessing Pipe. http://hg.python.org/cpython/rev/5b2f357989bb New changeset 4e7a4e098f38 by Antoine

[issue12828] xml.dom.minicompat is not documented

2011-08-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’m not sure at all this module should be treated as anything but an internal detail. The docstring of xml.dom only mentions two submodules. -- components: +XML nosy: +eric.araujo ___ Python tracker

[issue11657] multiprocessing_{send,recv}fd fail with fds 256

2011-08-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d4d9a3e71897 by Antoine Pitrou in branch '2.7': Issue #11657: Fix sending file descriptors over 255 over a multiprocessing Pipe. http://hg.python.org/cpython/rev/d4d9a3e71897 --

[issue12828] xml.dom.minicompat is not documented

2011-08-23 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Éric Araujo mer...@netwok.org added the comment: I’m not sure at all this module should be treated as anything but an internal detail.  The docstring of xml.dom only mentions two submodules. If it's an implementation detail, then

[issue11657] multiprocessing_{send,recv}fd fail with fds 256

2011-08-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I committed a patch with some tests. Thank you! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue12802] Windows error code 267 should be mapped to ENOTDIR, not EINVAL

2011-08-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I would add it in test_exceptions, since errno mapping is ultimately used by exceptions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12802

[issue12823] Broken link in SSL wrapper for socket objects document

2011-08-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I would simply remove the link, or point it to a similar document -- keywords: +easy nosy: +pitrou stage: - needs patch versions: +Python 2.7, Python 3.2, Python 3.3 -Python 3.1 ___ Python tracker

[issue11564] pickle not 64-bit ready

2011-08-23 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: I was playing around with pickling large Unicode strings in an interactive interpreter, and it seems that you have to have at least 4G chars (not bytes) to trigger the OverflowError. Consider the following snippet of code: out =

[issue11564] pickle not 64-bit ready

2011-08-23 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Some more info: the first few bytes of the output for the _2G case are this: b'\x80\x03X\x00\x00\x00\x80aa' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11564

[issue12822] NewGIL should use CLOCK_MONOTONIC if possible.

2011-08-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Using CLOCK_MONOTONIC is better than CLOCK_REALTIME (default) for GIL because settimeofday() may break the pthread_cond_timedwait(). Indeed. A couple remarks: - regular locks and conditions variables exposed by the threading module

[issue11564] pickle not 64-bit ready

2011-08-23 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: With data as (ba * _4G) the result is as expected: Traceback (most recent call last): File pickle-bigmem-test.py, line 5, in module out = dumps(data) OverflowError: cannot serialize a string larger than 4GB But

[issue12822] NewGIL should use CLOCK_MONOTONIC if possible.

2011-08-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch is ok on the principle, but we do need a check that CLOCK_MONOTONIC is supported at build time. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12822

[issue12822] NewGIL should use CLOCK_MONOTONIC if possible.

2011-08-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: The patch is ok on the principle, but we do need a check that CLOCK_MONOTONIC is supported at build time. I think we need both: a check at build time to avoid compiler errors and a check at runtime whether the

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset aa27461759f2 by Éric Araujo in branch 'default': Try to fix packaging tests using build_ext on Windows (#12678) http://hg.python.org/cpython/rev/aa27461759f2 -- ___

[issue12820] Tests for Lib/xml/dom/minicompat.py

2011-08-23 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Hi, I just left a very light review on rietveld (the 'review' link below). I think in the next run you can add the tests for defproperty. Thanks for working on code coverage! -- nosy: +ezio.melotti, sandro.tosi stage: - patch

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Nadeem, please try this patch. -- Added file: http://bugs.python.org/file23020/windows-build_ext.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12678

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-23 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Testing on 3.2, the latest patch doesn't fix the test_record_extensions failure :/ It does change the traceback for the exception, though. Before: == ERROR:

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-23 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Testing on 3.2, the latest patch doesn't fix the test_record_extensions failure :/ It does change the traceback for the exception, though. Before: == ERROR:

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-23 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- Removed message: http://bugs.python.org/msg142863 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12678 ___

[issue12810] Remove check for negative unsigned value in socketmodule.c

2011-08-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Thanks. I'll commit this patch tomorrow. I noticed you didn't indicate your full name: do you mind being listed in Misc/ACKS? -- components: +Extension Modules keywords: +easy nosy: +neologix stage: - commit review type: -

[issue12798] Update mimetypes documentation

2011-08-23 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Here attached a new patch incorporating Ezio Eric suggestions. -- Added file: http://bugs.python.org/file23021/mimetypes_doc_update-v2.patch ___ Python tracker rep...@bugs.python.org

[issue12819] PEP 393 - Flexible Unicode String Representation

2011-08-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: utf8_fast.patch: fast path for pure ASCII string in the UTF-8 decoder. -- Added file: http://bugs.python.org/file23022/utf8_fast.patch ___ Python tracker rep...@bugs.python.org

[issue12829] pyexpat segmentation fault caused by multiple calls to Parse()

2011-08-23 Thread David H. Gutteridge
New submission from David H. Gutteridge dhgutteri...@sympatico.ca: I stumbled across this bug because of a misunderstanding I had about how the pyexpat module works. I'd inferred that a given instance could be reused to parse multiple files, which is apparently not supported. (There's

  1   2   >