[issue7753] newgil backport
Changes by Julian Mehnle jul...@mehnle.net: -- nosy: +jmehnle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7753 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9284] inspect.findsource() cannot find source for doctest code
Dirkjan Ochtman dirk...@ochtman.nl added the comment: Would it still be possible to get this into 2.7.2? It's a 2.6-2.7 regression, would be nice to fix, and it seems fairly low-impact. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9284 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12187] subprocess.wait() with a timeout uses polling on POSIX
Charles-François Natali neolo...@free.fr added the comment: Antoine is right: we don't have to be portable. We don't have to, but writing one POSIX-conformant solution is better than writing N OS-specific solutions, no? That's what POSIX is about. Should we block the signal? Yes. What happens when we unblock the signal? If you've read from the FD, nothing, since it consumes the pending signals. If you haven't, since signal_pthread_sigmask checks for pending signals, I guess that the handler will be called upon unblock. But signalfd is designed as an alternative to handlers, so I don't think this makes much sense, and if a SIGCHLD handler is setup, it's likely to perform a waitpid(-1, WNOHANG), which will screw up our waiting anyway... Is it possible to block a signal in all threads? Not portably. sigwait() is not impacted by the associated signal handler, but sigwait() only works if the signal is blocked (e.g. by pthread_sigmask): The point I was making is precisely that blocking the signal is not enough on some kernels: when the signal is ignored, it will sometimes not wakeup threads waiting on sigwait. sigprocmask(), sigwait() and signals in general seem to behave differently on each OS They behave correctly as long as they're used in a POSIX-conformant way. To sum up, those problems are: - since SIGCHLD is ignored by default, some kernels won't wake up threads waiting on sigwait (it works on Linux, don't know for *BSD kernels) - there's not portable way to block signals in all threads. As a consequence, there will be cases where sigtimedwait or select on a signalfd will wait until the end of the timeout. See also issue #8407 for sigtimedwait() and signalfd() in Python. You didn't commit the signalfd part? Whay do you think of sigtimedwait? Expose it as-is, or just add an optional timeout option to sigwait? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12187 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1195571] simple callback system for Py_FatalError
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Sorry, the documentation in the patch is wrong. It should be: Cause :cfunc:`Py_FatalError` to invoke the given function before printing to standard error and aborting out of the process. I don't think it's worth making it more complex. If the application does not want the default behavior (which is already quite minimal anyway), it can always install a hook that never returns. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1195571 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3
New submission from Vinay Sajip vinay_sa...@yahoo.co.uk: The attached file 'data.bin' was written using Python 3.2. It can be read by Python 2.7, but in 3.2 and 3.3, after the first object is read, the file pointer is positioned at EOF, causing an error on subsequent reads. A simple test script 'marshtest.py' is below: import marshal import sys f = open('data.bin', 'rb') t = marshal.load(f) print('Python version:', sys.version) print('Object just loaded was:\n%r' % (t,)) print('File position is now at %d' % f.tell()) t = marshal.load(f) print('Object just loaded was:\n%r' % (t,)) print('File position is now at %d' % f.tell()) Results of running it under various Python versions: vinay@eta-natty:~/projects/scratch$ python marshtest.py ('Python version:', '2.7.1+ (r271:86832, Apr 11 2011, 18:05:24) \n[GCC 4.5.2]') Object just loaded was: (u'text', u'alfa', 202, 1.0, '\x00\x00\x00\x01]q\x00K\x03a') File position is now at 52 Object just loaded was: (u'text', u'alfa', 212, 1.0, '\x00\x00\x00\x01]q\x00K\x03a') File position is now at 104 vinay@eta-natty:~/projects/scratch$ python3.2 marshtest.py Python version: 3.2 (r32:88445, Mar 25 2011, 19:28:28) [GCC 4.5.2] Object just loaded was: ('text', 'alfa', 202, 1.0, b'\x00\x00\x00\x01]q\x00K\x03a') File position is now at 53617 Traceback (most recent call last): File marshtest.py, line 9, in module t = marshal.load(f) EOFError: EOF read where object expected vinay@eta-natty:~/projects/scratch$ python3.3 marshtest.py Python version: 3.3a0 (default:8d4d87dd73ae, Apr 2 2011, 14:25:31) [GCC 4.5.2] Object just loaded was: ('text', 'alfa', 202, 1.0, b'\x00\x00\x00\x01]q\x00K\x03a') File position is now at 53617 Traceback (most recent call last): File marshtest.py, line 9, in module t = marshal.load(f) EOFError: EOF read where object expected Note the size of the file is 53617 bytes. vinay@eta-natty:~/projects/scratch$ ls -l data.bin -rw--- 1 vinay vinay 53617 2011-06-09 09:33 data.bin -- files: data.bin messages: 137943 nosy: vinay.sajip priority: normal severity: normal status: open title: file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3 versions: Python 3.2, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file22289/data.bin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Sadly, marshal.load() looks broken: - The function starts with the comment /* XXX Quick hack -- need to do this differently */ - It starts by calling f.read() which consumes the whole file (and explains the issue reported here) - The code was probably converted too quickly: if (PyBytes_Check(data)) { ... else if (PyBytes_Check(data)) { -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8407] expose signalfd(2) and pthread_sigmask in the signal module
STINNER Victor victor.stin...@haypocalc.com added the comment: Oh, sigwait() doesn't accept a timeout! I would be nice to have also sigwaitinfo().. and maybe also its friend, sigwaitinfo() Oops, I mean sigtimedwait() and sigwaitinfo(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8407 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12187] subprocess.wait() with a timeout uses polling on POSIX
STINNER Victor victor.stin...@haypocalc.com added the comment: (I should not answer in this issue, but in #8407) See also issue #8407 for sigtimedwait() and signalfd() in Python. You didn't commit the signalfd part? Not yet because I would like to provide something to decode the data written into the signalfd file descriptor (msg135438), the signalfd_siginfo structure. Whay do you think of sigtimedwait? It would like to expose it (msg137071, you should read sigtimedwait, not sigwaitinfo :-)). I started to work on a patch, but it requires a siginfo_t structure, and I didn't finish my patch. I will retry later. Expose it as-is, or just add an optional timeout option to sigwait? I prefer thin wrappers: sigwaitinfo() is more than just a timeout argument, there is also the signal info argument. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12187 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1626300] 'Installing Python Modules' does not work for Windows
Roundup Robot devnull@devnull added the comment: New changeset 2951641faed1 by Éric Araujo in branch '2.7': Add examples that work on Windows to distutils docs (#1626300) http://hg.python.org/cpython/rev/2951641faed1 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1626300 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12197] non-blocking SSL write in Windows sends large data but raises exception
David Siroky sir...@dasir.cz added the comment: I didn't meant blocking as setblocking(True). I use select/poll but I can't use returned value from send() immediately since in Windows there are often needed more send rounds to actually know how much data was sent. E.g. in Linux I know it after the first call: sslsock.write(abcd) - returns 2 poll(sslsock) sslsock.write(cd) in Windows I must do: sslsock.write(abcd) - raises SSLError poll(sslsock) sslsock.write(abcd) - returns 4 As I wrote it might be inconsistency in OpenSSL and not in Python's wrapper. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12197 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12243] getpass.getuser works on OSX
Éric Araujo mer...@netwok.org added the comment: That would be Doc/tools/sphinxext/pyspecific.py -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12243 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11975] Fix referencing of built-in types (list, int, ...)
Éric Araujo mer...@netwok.org added the comment: I don’t like the idea of built-in functions being displayed as “builtins.int”: normal use of builtins is without explicit use of the module name. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11975 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12246] Warn when trying to install third-party module from an uninstalled checkout
Éric Araujo mer...@netwok.org added the comment: Great! I will edit a bit the message and commit this. -- stage: - commit review type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12246 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11203] gzip doc is behind
Éric Araujo mer...@netwok.org added the comment: Just one thing: I think the close call needs equal treatment to the open call. The open call is a module-level functions; the close method of GzipFile cannot be equally treated, as it is in the doc of the class, where no methods are given special treatment :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11203 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8927] Handle version incompatibilities in dependencies
Éric Araujo mer...@netwok.org added the comment: [Sridhar] No, it’s register that uploads metadata. (was not sent before?) To me, not to the tracker. Ok, that's interesting. Does p7g.install support packages that do not register their new releases? Setuptools/PIP does by scraping the project home pages. p7g.pypi.simple uses the screen-scraping PyPI interface called “simple”, but I don’t know if it goes over to home pages to find links. Will p7g.install install 0.8.19? Try it in a shell? [Dave] I'm sorry, but it is simply not true that this is not a solved problem. This is a well-understood problem that's solved Well, I’m no researcher but I know that there’s still some research ongoing, in particular for upgrades: http://www.mancoosi.org/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8927 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12242] distutils2 environment marker for current compiler
Éric Araujo mer...@netwok.org added the comment: One issue is that multiple compiler patterns may match, Right, we can’t say “first matches” win if it’s unordered, and we won’t have OrderedDict in all versions supported by distutils2. Make it a list of tuples. First match wins, so people will have to write more specific regexes first. and break less existing code That’s not a concern; extensions in setup.cfg are a new thing, and for the Python side, we already break a lot of code. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12242 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12278] Core mentorship mention in the devguide
Éric Araujo mer...@netwok.org added the comment: You can just take the descriptions from the mail.python.org page. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12278 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10645] Remove egg-info files in stdlib
Changes by Éric Araujo mer...@netwok.org: -- dependencies: +Removing wsgiref.egg-info ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10645 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12292] bpython
New submission from Ravish ravish_nayak2...@yahoo.co.in: I was trying to install bpython v0.9.7.1(latest version) on python 2.6.5, it works fine. But If i try to install on python v3.2 it's behaviour is quite abnormal. i.e if I run(bpython) from command prompt, I could able to see the fancy window, but If I try to type something immediately it will show as Segmentation fault. Could you please provide me some suggestion for the above issue. Thanks, -- messages: 137956 nosy: ravish112 priority: normal severity: normal status: open title: bpython type: behavior versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12292 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1626300] 'Installing Python Modules' does not work for Windows
Roundup Robot devnull@devnull added the comment: New changeset 072dbebaa83b by Éric Araujo in branch '3.2': Add examples that work on Windows to distutils docs (#1626300) http://hg.python.org/cpython/rev/072dbebaa83b -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1626300 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9312] Fix usage of :option: markup in stdlib ReST docs
Roundup Robot devnull@devnull added the comment: New changeset 59d785ea0039 by Éric Araujo in branch '3.2': Fix a few misuses of :option: I missed in r86521. http://hg.python.org/cpython/rev/59d785ea0039 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9312 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10645] Remove egg-info files in stdlib
Roundup Robot devnull@devnull added the comment: New changeset e3f6c10eb590 by Éric Araujo in branch 'default': Stop creating a Python-X.Y.Z-pyX.Y.egg-info file on install (#10645) http://hg.python.org/cpython/rev/e3f6c10eb590 New changeset af7bc95e5b1e by Éric Araujo in branch 'default': The change done for #10645 deserves a NEWS entry http://hg.python.org/cpython/rev/af7bc95e5b1e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10645 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10645] Remove egg-info files in stdlib
Changes by Éric Araujo mer...@netwok.org: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10645 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12293] wrong arguments passed to SMTP.sendmail in example
New submission from Fredrik Wendt fred...@wendt.se: On http://docs.python.org/library/email-examples.html#email-examples the current example (v2.7.1) at the bottom incorrectly calls SMTP.sendmail() with a single recipient e-mail address. It should be a list of addresses. -- assignee: docs@python components: Documentation messages: 137960 nosy: docs@python, wendt_se priority: normal severity: normal status: open title: wrong arguments passed to SMTP.sendmail in example versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12293 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9312] Fix usage of :option: markup in stdlib ReST docs
Roundup Robot devnull@devnull added the comment: New changeset 7164bdfa0b0b by Éric Araujo in branch '2.7': Fix a few misuses of :option: I missed in r86521. http://hg.python.org/cpython/rev/7164bdfa0b0b -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9312 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12292] bpython
Andreas Stührk andy-pyt...@hammerhartes.de added the comment: This issue tracker is for reporting issues about Python itself. Issues concerning third-party projects should go to the respective issue tracker of the project first (in this case https://bitbucket.org/bobf/bpython/issues). This specific issue is caused by issue #9319 and is already fixed. The fix will be included in the next release of Python 3.2. Also, a workaround was added to bpython which will be included in the next release of bpython. -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12292 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1626300] 'Installing Python Modules' does not work for Windows
Éric Araujo mer...@netwok.org added the comment: This is now fixed in the distutils Installing and Distributing guides. Does the same problem apply to the new docs using packaging and the pysetup script? Please check http://docs.python.org/dev/packaging and http://docs.python.org/dev/install -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1626300 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12292] bpython
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12292 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11277] Crash with mmap and sparse files on Mac OS X
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: @ Ronald Oussoren wrote: if major = 10: # We're on OSX 10.6 or earlier enableWorkaround() (You sound as if you participate in an interesting audiophonic event. 27 imac's are indeed great recording studio hardware. But no Coffee Shops in California - br.) -- Ciao, Steffen sdaoden(*)(gmail.com) () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12282] build process adds CWD (null entry) to PYTHONPATH if PYTHONPATH is set in the build environment
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12282 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12284] argparse.ArgumentParser: usage example option
Éric Araujo mer...@netwok.org added the comment: Is http://docs.python.org/dev/library/argparse#usage what you want? -- nosy: +eric.araujo versions: +Python 3.3 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12284 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12293] wrong arguments passed to SMTP.sendmail in example
Changes by Éric Araujo mer...@netwok.org: -- assignee: docs@python - r.david.murray nosy: +r.david.murray versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12293 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I've added a patch which I think fixes marshal.load(), and would be grateful for a review - it's my first C patch for Python. The test_marshal test passes, though I haven't yet added a test for the failing scenario. -- keywords: +patch Added file: http://bugs.python.org/file22290/marshal-patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11277] Crash with mmap and sparse files on Mac OS X
Ronald Oussoren ronaldousso...@mac.com added the comment: steffen: I have no idea what you are trying to say in your last message. Could you please try to stay on topic. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12279] Add build_distinfo command to packaging
Éric Araujo mer...@netwok.org added the comment: packaging.command.cmd already has this method: it was renamed to get_reinitialized_function, to better match other method names. the workaround of my code is just setting the 'distinfo-dir' option with os.curdir value Yes, that’s a workaround :) Have you tested writing to build.build_lib (see my previous message)? The test command for example runs the tests in the build dir, to test what will really get packaged, and to allow build-time 2to3 conversion. One part of properly implementing a build_distinfo command that can be tricky is the .dist-info/RECORD file. If you just move the code from install_distinfo, the locations in the RECORD file will not be the actual locations of the files. Possibilities: 1) don’t generate RECORD at all → invalid PEP 376 2) generate RECORD with paths to the files in the build dir 3) other? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12279 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: - Please replace tabs characters by space - // comments are not accepted by some picky C89 compilers Also, calling f.read(1) for each character may have a large performance impact. I don't know how this can be solved though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12294] multiprocessing.Pool: Need a way to find out if work are finished.
New submission from Bugs Fly mozbug...@yahoo.com.au: The join() method of Pool blocks. So it is not good for finding out if there are still running workers once the pool is closed. There should be a method like is_alive() which don't block, similar to what in Process. Or task_left() which return number of task left. -- components: Library (Lib) messages: 137970 nosy: mozbugbox priority: normal severity: normal status: open title: multiprocessing.Pool: Need a way to find out if work are finished. type: feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12294 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10224] Build 3.x documentation using python3.x
Éric Araujo mer...@netwok.org added the comment: In either case, there's a high likelihood the PYTHON default will resolve to 3.3a0 for any Python developer. Ah, I understand the reason for the phrasing in your patch: UNIX systems typically install 3.x as python3, not python, so the high likelihood is only for Windows and a few UNIX systems like Arch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10224 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12255] A few changes to .*ignore
Éric Araujo mer...@netwok.org added the comment: I would also propose to remove *.rej and *.orig from the ignore files. It’s helpful to see them in hg status in case you had a difficult merge and did not fix all files. My usage is that I remove *.rej and *.orig after I’m done merging (or checking that the revert is okay). -- title: Make VCSes ignore shared libpython - A few changes to .*ignore ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12255 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3
Benjamin Peterson benja...@python.org added the comment: It should probably be buffered at 512 bytes or some other reasonable number. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue828450] sdist generates bad MANIFEST on Windows
Éric Araujo mer...@netwok.org added the comment: I wanted to review the patch but it cannot be applied. It looks like your third patch applies on top of the second. Can you generate a full patch? -- status: pending - open versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue828450 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10191] scripts files are not RECORDed.
Éric Araujo mer...@netwok.org added the comment: I wrote a test but it did not fail. Can you test it too? -- keywords: +patch versions: +Python 3.3 -3rd party Added file: http://bugs.python.org/file22291/test-record-scripts-10191.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10191 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1083299] Distutils doesn't pick up all the files it should.
Éric Araujo mer...@netwok.org added the comment: There are tests for data_files, they are indeed included. Please reopen if you can reproduce the bug. -- resolution: - out of date stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1083299 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident
Éric Araujo mer...@netwok.org added the comment: Python 3.3 works with unicode ;), so we’ll try reproducing this later, when we have the 2.x backport. -- assignee: tarek - eric.araujo resolution: - remind stage: - needs patch type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11638 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11028] Implement the setup.py - setup.cfg in mkcfg
Éric Araujo mer...@netwok.org added the comment: This is now implemented in packaging.create.MainProgram.convert_py_to_cfg. -- resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11028 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3992] remove custom log module from distutils2
Éric Araujo mer...@netwok.org added the comment: I’m leaving this open to remind us we want to remove the warn and announce methods. Logging all the way! Now done. -- assignee: tarek - eric.araujo resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.3 -3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3992 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9284] inspect.findsource() cannot find source for doctest code
Benjamin Peterson benja...@python.org added the comment: - First line should be directly after the docstring - One import per line - Shouldn't this test be in test_inspect, since that's what you're changing? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9284 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9395] clean does not remove all temp files
Éric Araujo mer...@netwok.org added the comment: I don’t remember exactly what I had in mind when I reported this; maybe I didn’t understand the purpose of the clean command, which does not delete all build artifacts but only temporary by-products, unless --all is given. Jean-Paul, I think I recall that this came from a discussion with you on another bug or on IRC; do you remember something about it? -- versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9395 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +georg.brandl priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11583] os.path.isdir() is slow on windows
Roundup Robot devnull@devnull added the comment: New changeset d40609dd01e0 by Brian Curtin in branch '3.2': Correction to 88e318166eaf - Issue #11583 http://hg.python.org/cpython/rev/d40609dd01e0 New changeset fe813f5711a5 by Brian Curtin in branch '2.7': Correction to f1509fc75435 - Issue #11583 http://hg.python.org/cpython/rev/fe813f5711a5 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11583 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11594] 2to3 does not preserve line endings
Éric Araujo mer...@netwok.org added the comment: I was surprised to see that the crlf.py file was not using CRLF in the new Mercurial repo. It is also not in the .hgeol file. I changed it locally, but it doesn’t change anything, the tests pass before and after the change. -- keywords: +patch versions: -Python 3.1 Added file: http://bugs.python.org/file22292/2to3-crlf-test.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11594 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10510] distutils upload/register should use CRLF in HTTP requests
Changes by Éric Araujo mer...@netwok.org: -- keywords: +easy versions: +Python 3.3 -3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10510 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2057] difflib: add patch capability
Éric Araujo mer...@netwok.org added the comment: For this to move forward, a patch or link to Mercurial repo would be required. -- nosy: +eric.araujo stage: test needed - needs patch versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11975] Fix referencing of built-in types (list, int, ...)
Georg Brandl ge...@python.org added the comment: Same here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11975 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10086] test_sysconfig failure when prefix matches /site
Éric Araujo mer...@netwok.org added the comment: 1) sysconfig was originally distutils.sysconfig, and some duplication remains. Can’t this bug happen with distutils.sysconfig too? Should we duplicate tests from test_sysconfig to distutils.test_sysconfig? I’ve looked into it and converting the test to distutils.sysconfig is not trivial: the get_path function is wholly different in distutils, and I’m not even sure it’s possible to get the paths like test_sysconfig does. 2) How to prevent a regression? That is, how to run tests with custom ./configure options? I think I can commit this fix for a minor issue in a test without worrying about regressions. I manually tested and it’s fixed. Anyway, your patch does not catch a similar failure (if this can happen): base= /site global_path = /site-nonsense/... If this can’t happen, let us not worry about it :) -- title: test_sysconfig failure with site-packages - test_sysconfig failure when prefix matches /site versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10086 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3
Georg Brandl ge...@python.org added the comment: Sounds blocker-ish enough to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11591] python -S should be robust against e.g. from site import addsitedir
Éric Araujo mer...@netwok.org added the comment: Now that site can be imported without side effects under -S, I think the tests could be updated: they don’t have to be all skipped under -S. See attached patch. -- Added file: http://bugs.python.org/file22293/test_site-11591.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11591 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8617] Better document user site-packages in site module doc
Éric Araujo mer...@netwok.org added the comment: I have started to work on this; I’ll have one or two patches ready in a few weeks. -- assignee: docs@python - eric.araujo versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8617 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12293] wrong arguments passed to SMTP.sendmail in example
R. David Murray rdmur...@bitdance.com added the comment: The required arguments are an RFC 822 from-address string, a list of RFC 822 to-address strings (a bare string will be treated as a list with 1 address)... -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12293 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9284] inspect.findsource() cannot find source for doctest code
Dirkjan Ochtman dirk...@ochtman.nl added the comment: I'm fine with moving the test; I put it in doctest because the inspect behavior we're relying upon here seems somewhat doctest-specific, and the test itself is a doctest. Do you want me to move it? I'll fix up the other things as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9284 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9284] inspect.findsource() cannot find source for doctest code
Benjamin Peterson benja...@python.org added the comment: 2011/6/9 Dirkjan Ochtman rep...@bugs.python.org: Dirkjan Ochtman dirk...@ochtman.nl added the comment: I'm fine with moving the test; I put it in doctest because the inspect behavior we're relying upon here seems somewhat doctest-specific, and the test itself is a doctest. Do you want me to move it? I'll fix up the other things as well. I would prefer that if the bug is somehow reintroduced, test_inspect instead of test_doctest fails. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9284 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12295] Fix ResourceWarning in turtledemo help window
New submission from Éric Araujo mer...@netwok.org: I found a ResourceWarning while using turtledemo and made this patch to fix it. It touches idlelib. -- assignee: eric.araujo components: IDLE, Library (Lib) files: fix-turtledemo-help-resourcewarning.diff keywords: needs review, patch messages: 137993 nosy: eric.araujo priority: normal severity: normal stage: patch review status: open title: Fix ResourceWarning in turtledemo help window versions: Python 3.2 Added file: http://bugs.python.org/file22294/fix-turtledemo-help-resourcewarning.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12296] Minor clarification in devguide
New submission from Éric Araujo mer...@netwok.org: I found the wording of one line of the devguide strange and changed it IMO for the better. Please review. -- assignee: eric.araujo components: Devguide files: clarify-bwcompat-devguide.diff keywords: needs review, patch messages: 137994 nosy: eric.araujo priority: normal severity: normal stage: patch review status: open title: Minor clarification in devguide versions: 3rd party Added file: http://bugs.python.org/file22295/clarify-bwcompat-devguide.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12296 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12297] Clarifications to atexit.register and unregister doc
New submission from Éric Araujo mer...@netwok.org: I wanted to know the behavior of atexit.register with the same function added more than once and found out it is not explicitly documented. I experimented and made a patch to the doc. -- assignee: eric.araujo components: Documentation files: atexit-doc.diff keywords: patch messages: 137995 nosy: eric.araujo priority: normal severity: normal stage: patch review status: open title: Clarifications to atexit.register and unregister doc versions: Python 2.7, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file22296/atexit-doc.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12297 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12168] SysLogHandler incorrectly appends \000 to messages
Roundup Robot devnull@devnull added the comment: New changeset 260b84851d1f by Vinay Sajip in branch '3.2': Issue #12168: SysLogHandler now allows NUL termination to be controlled using a new 'append_nul' attribute on the handler. http://hg.python.org/cpython/rev/260b84851d1f New changeset ac1217099b3f by Vinay Sajip in branch 'default': Merged fix for issue #12168 from 3.2. http://hg.python.org/cpython/rev/ac1217099b3f -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12168 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12298] Sphinx glitch in library/functions
New submission from Éric Araujo mer...@netwok.org: In the summary table at the top of library/functions, the links for frozenset and memoryview do not jump to the definition down in the same file, but link to stdtypes. -- assignee: docs@python components: Documentation messages: 137997 nosy: docs@python, eric.araujo, ezio.melotti priority: normal severity: normal status: open title: Sphinx glitch in library/functions versions: Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12298 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2057] difflib: add patch capability
anatoly techtonik techto...@gmail.com added the comment: For this to move forward, PSF should accelerate work on new sane Contributor's Agreements or join Harmony (http://www.harmonyagreements.org/) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7015] Getting call trace while executing modules spam at help prompt
Éric Araujo mer...@netwok.org added the comment: Looks like this is an external bug. -- nosy: +eric.araujo resolution: - invalid stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7015 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8488] Docstrings of non-data descriptors ignored
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8488 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10446] pydoc3 links to 2.x library reference
Éric Araujo mer...@netwok.org added the comment: Can I help moving this forward? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10446 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12299] Stop documenting functions added by site as builtins
New submission from Éric Araujo mer...@netwok.org: I find it harmful that exit, quit and help are documented in library/functions instead of library/constants (under the section “constants added by the site module”). It leads people to use unqualified help or exit instead of pydoc.help or sys.exit, and that would break under -S. I’d like to move the doc for these functions (and add a link from l/functions to l/constants). -- assignee: eric.araujo components: Documentation messages: 138001 nosy: eric.araujo priority: normal severity: normal status: open title: Stop documenting functions added by site as builtins versions: Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12299 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12300] Document pydoc.help
New submission from Éric Araujo mer...@netwok.org: The only public function in pydoc is help, and it’s not listed in the module docs. The existing doc in library/functions could be moved to library/pydoc. See also #12299. -- assignee: docs@python components: Documentation messages: 138002 nosy: docs@python, eric.araujo priority: normal severity: normal status: open title: Document pydoc.help versions: Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12300 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7283] test_site failure when .local/lib/pythonX.Y/site-packages hasn't been created yet
Éric Araujo mer...@netwok.org added the comment: Related: I found that test_site tries to create the user site-packages dir if it does not exist, but it does not remove it after the test run. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7283 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12301] Use :data:`sys.thing` instead of ``sys.thing`` throughout
New submission from Éric Araujo mer...@netwok.org: In a great number of files, the ``code`` markup is used instead of the :data: role, which would create a link to the appropriate definition. Unless someone objects, I would like to change all of them. -- assignee: eric.araujo components: Documentation messages: 138004 nosy: eric.araujo priority: normal severity: normal status: open title: Use :data:`sys.thing` instead of ``sys.thing`` throughout versions: Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12301 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12301] Use :data:`sys.thing` instead of ``sys.thing`` throughout
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12301 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12298] Sphinx glitch in library/functions
Changes by Ezio Melotti ezio.melo...@gmail.com: -- dependencies: +Fix referencing of built-in types (list, int, ...) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12298 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12298] Sphinx glitch in library/functions
Georg Brandl ge...@python.org added the comment: This is not a Sphinx glitch: that's where these classes are defined. (Plus, dependencies work the other way round.) -- dependencies: -Fix referencing of built-in types (list, int, ...) nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12298 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12298] Sphinx glitch in library/functions
Changes by Georg Brandl ge...@python.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12298 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11975] Fix referencing of built-in types (list, int, ...)
Ezio Melotti ezio.melo...@gmail.com added the comment: It won't (because there's the ~ in :func/class:`~__builtin__.int`). Specifying the module would just be a workaround used to distinguish the 'int' in functions.rst from the one in stdtypes.rst. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11975 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12284] argparse.ArgumentParser: usage example option
Jonas H. jo...@lophus.org added the comment: Nope. I want an examples section, for example from `man git log`: EXAMPLES git log --no-merges Show the whole commit history, but skip any merges git log v2.6.12.. include/scsi drivers/scsi Show all commits since version v2.6.12 that changed any file in the include/scsi or drivers/scsi subdirectories ... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12284 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12284] argparse.ArgumentParser: usage example option
Changes by Brian Curtin br...@python.org: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12284 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9284] inspect.findsource() cannot find source for doctest code
Dirkjan Ochtman dirk...@ochtman.nl added the comment: Here's a fresh patch. -- Added file: http://bugs.python.org/file22297/issue9284.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9284 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9284] inspect.findsource() cannot find source for doctest code
Changes by Dirkjan Ochtman dirk...@ochtman.nl: Removed file: http://bugs.python.org/file22270/issue9284.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9284 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10424] better error message from argparse when positionals missing
Roundup Robot devnull@devnull added the comment: New changeset cab204a79e09 by R David Murray in branch 'default': #10424: argument names are now included in the missing argument message http://hg.python.org/cpython/rev/cab204a79e09 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10424 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2057] difflib: add patch capability
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Anatoly, Even if I remove all sarcasm from your previous answer, I don't see what it brings to the current issue. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: @Amaury: Re formatting and comment style - I will address this. The diff I posted is to the default branch rather than 3.2, though it won't change the main substance of the patch. Re. performance and buffering: I agree this could have an impact (although strings are not actually read a byte at a time), but it's not easy to address because even if you e.g. wrapped the incoming stream with a BufferedReader, you have nowhere to keep the resulting instance in between multiple calls to marshal.load() from external code. For best performance ISTM you'd have to implement your own buffering - but surely this is to be avoided? It can't be the only place where you need good I/O performance from file-like objects. A quick scan of the pickle module didn't show me anything I could easily use, and a key difference from pickle is that you don't have a corresponding Unmarshaller object which could hold the state that an Unpickler does, and which would be needed to hold the buffering state. Of course one could implement limited buffering, i.e. for just the duration of a single marshal.load() call, but perhaps this could be done as a later step after evaluating the actual performance of this implementation. Having something that works correctly, albeit slowly, is better than having the current situation ... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11595] Miscellaneous bugs in cfg_to_args() utility function
Erik Bray erik.m.b...@gmail.com added the comment: Thanks Eric for your review. Obviously the last patch was rushed, and I didn't even run the tests. It also got my changes for issue12240 mixed into it. So I've gone ahead and attached an updated patch which incorporates your review comments. -- Added file: http://bugs.python.org/file22298/issue11595-3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11595 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10424] better error message from argparse when positionals missing
R. David Murray rdmur...@bitdance.com added the comment: With input from Michele on IRC I updated the tests to be more generic (not depend on the order of the reported argument names) and moved the test I talked about in my last message into a third unit test. -- resolution: - accepted stage: needs patch - committed/rejected status: open - closed type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10424 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12240] Allow multiple setup_hooks
Erik Bray erik.m.b...@gmail.com added the comment: Here's an update with tests. It should be applied after my patch for issue11595. -- Added file: http://bugs.python.org/file22299/python_issue12240-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12240 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10897] UNIX mmap unnecessarily dup() file descriptor
Charles-François Natali neolo...@free.fr added the comment: Trying to revive this issue. I'm +1 on this change: duping the file descriptor is definitely unexpected and has some side effects. I think we should remove the call to dup and close, it's really the user's responsibility to avoid closing the FD. If the FD is closed when mmap_resize is called, ftruncate will fail with EBADF, without harm. The real problem is more if the file has been closed and another one got open, with the same FD. If we wanted to be paranoid and avoid truncating/re-mapping another file, we could store the struct stat's st_ino field when the mapping is created, and re-check its value in mmap_resize (and if we wanted to be really paranoid we could also store st_dev, because inodes are unique only within a given file system). -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10897 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8407] expose signalfd(2) and pthread_sigmask in the signal module
Charles-François Natali neolo...@free.fr added the comment: I just noticed something funny: signal_sigwait doesn't release the GIL, which means that it's pretty much useless :-) Patch attached. Also, test_sigwait doesn't block the signal before calling sigwait: it happens to work because there's only one thread, but it's undefined behaviour. -- Added file: http://bugs.python.org/file22300/sigwait_gil.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8407 ___--- cpython-302424b84b07/Modules/signalmodule.c 2011-06-01 02:39:38.0 + +++ cpython/Modules/signalmodule.c 2011-06-09 11:39:28.0 + @@ -662,7 +662,9 @@ if (iterable_to_sigset(signals, set)) return NULL; +Py_BEGIN_ALLOW_THREADS err = sigwait(set, signum); +Py_END_ALLOW_THREADS if (err) { errno = err; return PyErr_SetFromErrno(PyExc_OSError); ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8407] expose signalfd(2) and pthread_sigmask in the signal module
Giampaolo Rodola' g.rod...@gmail.com added the comment: This whole thread is becoming quite confusing. It would be better to open a separate issue for any bug or feature request which is not related to exposing signalfd(2) and pthread_sigmask. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8407 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12168] SysLogHandler incorrectly appends \000 to messages
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12168 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2057] difflib: add patch capability
anatoly techtonik techto...@gmail.com added the comment: It is not sarcasm, but prerequisite. I do not sign papers I don't understand or papers that doesn't make any sense (and thus are free to any interpretation). I could sign current CLA right away, but I prefer not to do this until everybody is aware of the issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12287] ossaudiodev: stack corruption with FD = FD_SETSIZE
Charles-François Natali neolo...@free.fr added the comment: You don't check that 0 = fd (e.g. oss.close()). Actually, none of ossaudiodev's method does... This makes it even easier to trigger a segfault (at least on RHEL4): import ossaudiodev o = ossaudiodev.open('/dev/dsp', 'w') o.close() o.writeall(b'toto') I've attached a patch to fix that (check that the underlying FD isn't closed). The select has a specific code for Visual Studio (don't check v FD_SETSIZE): Python has a _PyVerify_fd() function. We might write a similar function/macro to check if a file descriptor can be used in a file descriptor set. FD_SET() is used in the oss, readline, socket and _ssl modules. The socket module has a IS_SELECTABLE() macro: 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 agree on that? Where should I add it? selectmodule, posixmodule, somewhere else? Note: do you really use the OSS module? On which OS? :) Well, while we don't use ossaudiodev, we have a couple hundred Linux machines at work, and we use OSS on Linux 2.6.9 kernels (and Python 2.3.4 ;-) ) -- Added file: http://bugs.python.org/file22301/oss_check_closed.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12287 ___diff -r 964d0d65a2a9 Lib/test/test_ossaudiodev.py --- a/Lib/test/test_ossaudiodev.py Wed Jun 08 19:18:14 2011 +0200 +++ b/Lib/test/test_ossaudiodev.py Thu Jun 09 20:08:30 2011 +0200 @@ -170,6 +170,14 @@ pass self.assertTrue(dsp.closed) +def test_on_closed(self): +dsp = ossaudiodev.open('w') +dsp.close() +self.assertRaises(ValueError, dsp.fileno) +self.assertRaises(ValueError, dsp.read, 1) +self.assertRaises(ValueError, dsp.write, b'x') +self.assertRaises(ValueError, dsp.writeall, b'x') + def test_main(): try: diff -r 964d0d65a2a9 Modules/ossaudiodev.c --- a/Modules/ossaudiodev.c Wed Jun 08 19:18:14 2011 +0200 +++ b/Modules/ossaudiodev.c Thu Jun 09 20:08:30 2011 +0200 @@ -213,6 +213,20 @@ * Helper functions */ +/* Check if a given file descriptor is valid (i.e. hasn't been closed). + * If true, return 1. Otherwise, raise ValueError and return 0. + */ +static int _check_fd_valid(int fd) +{ +if (fd = 0) { +return 1; +} else { +PyErr_SetString(PyExc_ValueError, +Operation on closed file descriptor); +return 0; +} +} + /* _do_ioctl_1() is a private helper function used for the OSS ioctls -- SNDCTL_DSP_{SETFMT,CHANNELS,SPEED} -- that that are called from C like this: @@ -300,6 +314,9 @@ static PyObject * oss_nonblock(oss_audio_t *self, PyObject *unused) { +if (!_check_fd_valid(self-fd)) +return NULL; + /* Hmmm: it doesn't appear to be possible to return to blocking mode once we're in non-blocking mode! */ if (ioctl(self-fd, SNDCTL_DSP_NONBLOCK, NULL) == -1) @@ -311,6 +328,9 @@ static PyObject * oss_setfmt(oss_audio_t *self, PyObject *args) { +if (!_check_fd_valid(self-fd)) +return NULL; + return _do_ioctl_1(self-fd, args, setfmt, SNDCTL_DSP_SETFMT); } @@ -318,6 +338,10 @@ oss_getfmts(oss_audio_t *self, PyObject *unused) { int mask; + +if (!_check_fd_valid(self-fd)) +return NULL; + if (ioctl(self-fd, SNDCTL_DSP_GETFMTS, mask) == -1) return PyErr_SetFromErrno(PyExc_IOError); return PyLong_FromLong(mask); @@ -326,30 +350,45 @@ static PyObject * oss_channels(oss_audio_t *self, PyObject *args) { +if (!_check_fd_valid(self-fd)) +return NULL; + return _do_ioctl_1(self-fd, args, channels, SNDCTL_DSP_CHANNELS); } static PyObject * oss_speed(oss_audio_t *self, PyObject *args) { +if (!_check_fd_valid(self-fd)) +return NULL; + return _do_ioctl_1(self-fd, args, speed, SNDCTL_DSP_SPEED); } static PyObject * oss_sync(oss_audio_t *self, PyObject *args) { +if (!_check_fd_valid(self-fd)) +return NULL; + return _do_ioctl_0(self-fd, args, sync, SNDCTL_DSP_SYNC); } static PyObject * oss_reset(oss_audio_t *self, PyObject *args) { +if (!_check_fd_valid(self-fd)) +return NULL; + return _do_ioctl_0(self-fd, args, reset, SNDCTL_DSP_RESET); } static PyObject * oss_post(oss_audio_t *self, PyObject *args) { +if (!_check_fd_valid(self-fd)) +return NULL; + return _do_ioctl_0(self-fd, args, post, SNDCTL_DSP_POST); } @@ -364,6 +403,9 @@ char *cp; PyObject *rv; +if (!_check_fd_valid(self-fd)) +return NULL; + if (!PyArg_ParseTuple(args, i:read, size)) return NULL; rv = PyBytes_FromStringAndSize(NULL, size); @@ -391,6 +433,9 @@ char *cp; int rv,
[issue12283] python3.2 smtplib _quote_periods
Roundup Robot devnull@devnull added the comment: New changeset 077b016e4a6d by R David Murray in branch '3.2': #12283: Fixed regression in smtplib quoting of leading dots in DATA. http://hg.python.org/cpython/rev/077b016e4a6d New changeset cedceeb45030 by R David Murray in branch 'default': merge #12283: Fixed regression in smtplib quoting of leading dots in DATA. http://hg.python.org/cpython/rev/cedceeb45030 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12283 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12283] python3.2 smtplib _quote_periods
R. David Murray rdmur...@bitdance.com added the comment: Thanks for the report. I broke that when I refactored the code, and unfortunately there was no existing test that tested dot quoting. There is now. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12283 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12248] __dir__ semantics changed in Python 2.7.2
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 non-list-sequenceness instead of changing the existing __dir__is_list test. I think both tests are useful to keep. Benjamin, what do you think about this for 2.7.2? -- Added file: http://bugs.python.org/file22302/12248.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12248 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Another thought about buffering, which might be a bit of a show-stopper: if in a particular load() call we read ahead for buffering purposes, we've altered the underlying stream (which might not be seekable to allow position restoring). The next call to load() will be likely to fail, since the underlying stream has been positioned further than expected by the earlier load() call, and the buffer state has been lost. Not sure how easy it is to get around this ... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com