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

2011-06-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 7530b141c20f by R David Murray in branch '3.2': #10694: zipfile now ignores garbage at the end of a zipfile. http://hg.python.org/cpython/rev/7530b141c20f New changeset 2e49722c7263 by R David Murray in branch 'default': Merge

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

2011-06-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: While I don't understand the zip file structure enough to do a definitive review of the patch, I'm willing to take processing 50K zip files successfully as a definitive test :) -- resolution: - fixed stage: patch review -

[issue1757072] Zipfile robustness

2011-06-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Note that based on the fact that most zipfile tools handle garbage after the indicated end of the comment by ignoring it, #10694 fixed zipfile to also ignore such trailing data. It sounds like there may be more out-of-spec errors that

[issue9344] please add posix.getgrouplist()

2011-06-09 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I haven't tested yet, but feel free to commit and I'll fix any OSX issues later. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9344

[issue7652] Merge C version of decimal into py3k.

2011-06-09 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Removed file: http://bugs.python.org/file15854/py3k_help_unify.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7652 ___

[issue7652] Merge C version of decimal into py3k.

2011-06-09 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Removed file: http://bugs.python.org/file15855/trunk_help_unify.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7652 ___

[issue7652] Merge C version of decimal into py3k.

2011-06-09 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- hgrepos: +25 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7652 ___ ___ Python-bugs-list

[issue7652] Merge C version of decimal into py3k.

2011-06-09 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Added file: http://bugs.python.org/file22303/ad05c2fdb3b2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7652 ___

[issue7652] Merge C version of decimal into py3k.

2011-06-09 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Removed file: http://bugs.python.org/file22303/ad05c2fdb3b2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7652 ___

[issue11375] urllib2 over SOCKS doesn't use proxy for DNS

2011-06-09 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11375 ___ ___

[issue7652] Merge C version of decimal into py3k.

2011-06-09 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Added file: http://bugs.python.org/file22304/9a10e3232445.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7652 ___

[issue8371] Add a command to download distributions

2011-06-09 Thread Michael Mulich
Changes by Michael Mulich michael.mul...@gmail.com: -- nosy: +michael.mulich ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8371 ___ ___

[issue8501] --dry-run option doesn't work

2011-06-09 Thread Michael Mulich
Changes by Michael Mulich michael.mul...@gmail.com: -- nosy: +michael.mulich ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8501 ___ ___

[issue7652] Merge C version of decimal into py3k.

2011-06-09 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Just a couple of remarks about the diff I created: The changes to decimal.py are exploratory (i.e. done quite hastily) and serve the purpose to fulfill PEP-399. library/cdecimal.rst is completely out of date. The rest should be very

[issue8591] update mkpkg to latest coding standards

2011-06-09 Thread Michael Mulich
Changes by Michael Mulich michael.mul...@gmail.com: -- nosy: +michael.mulich ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8591 ___ ___

[issue11880] add a {dist-info} category to distutils2

2011-06-09 Thread Michael Mulich
Changes by Michael Mulich michael.mul...@gmail.com: -- nosy: +michael.mulich ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11880 ___ ___

[issue8668] Packaging: add a 'develop' command

2011-06-09 Thread Michael Mulich
Changes by Michael Mulich michael.mul...@gmail.com: -- nosy: +michael.mulich ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8668 ___ ___

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-09 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2011/6/9 Barry A. Warsaw rep...@bugs.python.org: Barry A. Warsaw ba...@python.org added the comment: Raymond, I like your patch and I think it addresses the issue nicely.  I made one small change, which is to add a test for

[issue12287] ossaudiodev: stack corruption with FD = FD_SETSIZE

2011-06-09 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: So, this _PyCheckSelectable_fd ? function/macro would: - return true (1) on Visual Studio or if Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE is defined - return false (0) if the file descriptor is greater than FD_SETSIZE otherwise Do we

[issue7652] Merge C version of decimal into py3k.

2011-06-09 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7652 ___ ___

[issue12302] pysetup run test

2011-06-09 Thread Michael Mulich
New submission from Michael Mulich michael.mul...@gmail.com: A package's metadata (dist-info) should be available to it while running the test command (pysetup run test)? The use case: I've written a test for a function that is supposed to find the default configuration or one provided in a

[issue12303] expose sigwaitinfo() and sigtimedwait() in the signal module

2011-06-09 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: Python 3.3 adds timeout arguments to communicate() and wait() methods of subprocess.Popen, acquire() method of threading.Lock, and maybe more. I like (optional) timeouts, and so it would be nice to have sigtimedwait(). If we

[issue12302] test command is not loading the distribution metadata

2011-06-09 Thread Michael Mulich
Changes by Michael Mulich michael.mul...@gmail.com: -- title: pysetup run test - test command is not loading the distribution metadata ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12302 ___

[issue12304] expose signalfd(2) in the signal module

2011-06-09 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: Linux offers the signalfd syscall since 2.6.22 (with minor changes afterwards). This call allows signals to be handled as bytes read out of a file descriptor, rather than as interruptions to the flow of a program. Quite

[issue12304] expose signalfd(2) in the signal module

2011-06-09 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: signalfd-4.patch: my more recent patch exposing signalfd(). It lacks a structure to decode the bytes read from the signalfd file descriptor. Example in ctypes (msg135438): class signalfd_siginfo(Structure): _fields_ = (

[issue8407] expose pthread_sigmask(), pthread_kill(), sigpending() and sigwait() in the signal module

2011-06-09 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This whole thread is becoming quite confusing. You are complelty right, sorry to pollute this issue. Changes related to this issue: - expose pthread_sigmask(), pthread_kill(), sigpending(), sigwait() - wakeup fd now contains

[issue12303] expose sigwaitinfo() and sigtimedwait() in the signal module

2011-06-09 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12303 ___ ___

[issue12302] test command is not loading the distribution metadata

2011-06-09 Thread Michael Mulich
Michael Mulich michael.mul...@gmail.com added the comment: The RESOURCES implement in install_distinfo command should probably be a separate case, no? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12302

[issue12009] netrc module crashes if netrc file has comment lines

2011-06-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Here is an updated patch with the tests refactored even further. The patch seems correct to me, and almost all the comment tests fail before the patch and pass after. Benjamin, this patch fixes a regression relative to 2.7.1 and 3.1.3,

[issue8407] expose pthread_sigmask(), pthread_kill(), sigpending() and sigwait() in the signal module

2011-06-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset a5c8b6ebe895 by Victor Stinner in branch 'default': Issue #8407: signal.sigwait() releases the GIL http://hg.python.org/cpython/rev/a5c8b6ebe895 -- ___ Python tracker

[issue12304] expose signalfd(2) in the signal module

2011-06-09 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: #8407 changed the wakeup fd: it now contains the signal number. pthread_sigmask() is now part of Python 3.3 (see also #8407). signalfd() has advantages over the wakeup fd (msg103326): - it is handled in the kernel, the process is

[issue12009] netrc module crashes if netrc file has comment lines

2011-06-09 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I'd like to see this go in. +# seek to the beginning of the comment, then skip the line. +pos = len(tt) + 1 +lexer.instream.seek(-pos, 1) +lexer.instream.readline() Can't

[issue8407] expose pthread_sigmask(), pthread_kill(), sigpending() and sigwait() in the signal module

2011-06-09 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I just noticed something funny: signal_sigwait doesn't release the GIL, which means that it's pretty much useless :-) sigwait() is not useless: the signal is not necessary send by another thread. The signal can be send by

[issue12305] Building PEPs doesn't work on Python 3

2011-06-09 Thread Eric Snow
New submission from Eric Snow ericsnowcurren...@gmail.com: I found that the .py files are all 2.x. If I get a chance I will write up a patch a little later. This is similar to issue #10224. Incidently, not having done any documentation work before, I didn't realize that docutils isn't in

[issue12306] zlib: Expose zlibVersion to query runtime version of zlib

2011-06-09 Thread Torsten Landschoff
New submission from Torsten Landschoff t.landsch...@gmx.net: I am currently fighting a curious problem in using zlib from Python: Decompression completes but sometimes the resulting output does not match a sha224 hash of the expected output. I deployed a zlib 1.2.5 with our PyInstaller output

[issue12306] zlib: Expose zlibVersion to query runtime version of zlib

2011-06-09 Thread Torsten Landschoff
Changes by Torsten Landschoff t.landsch...@gmx.net: Added file: http://bugs.python.org/file22308/zlibversion_py3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12306 ___

[issue12169] Factor out common code for d2 commands register, upload and upload_docs

2011-06-09 Thread John Edmonds
John Edmonds pocketcooki...@gmail.com added the comment: I'd like to try tackling this issue. I've made a patch that moves encode_multipart from upload_docs to the distutils2.command module and changed the register and upload commands to use this function. -- keywords: +patch nosy:

[issue11933] newer() function in dep_util.py mixes up new vs. old files due stat.st_mtime vs stat

2011-06-09 Thread John S. Gruber
John S. Gruber johnsgru...@gmail.com added the comment: The patch worked--it eliminated the redundant copy caused by this issue. Thank you very much, Éric. On Fri, Jun 3, 2011 at 12:39 PM, Éric Araujo rep...@bugs.python.org wrote: Éric Araujo mer...@netwok.org added the comment: Can you

[issue10191] scripts files are not RECORDed.

2011-06-09 Thread Atsushi Odagiri
Atsushi Odagiri aod...@gmail.com added the comment: OK, I'll test it too. I looked sources of packaging. That use packaging.utils.copy_tree. When I reported that problem, install_scripts used _backport.shutil.copytree. Maybe problem is fixed, because it reterned copied file lists. Is that

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-09 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: My preference is to remove the type check. It hasn't and won't serve a useful purpose so there's no reason to freeze it into the API and have it live on. That being said, it probably doesn't matter one bit how this report gets

[issue9344] please add posix.getgrouplist()

2011-06-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 9ebee3211be9 by Ross Lagerwall in branch 'default': Issue #9344: Add os.getgrouplist(). http://hg.python.org/cpython/rev/9ebee3211be9 -- nosy: +python-dev ___ Python tracker

<    1   2