[issue3335] subprocess lib - opening same command fails

2008-07-14 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: I am unable to reproduce this (using release24-maint on OS X 10.4). the script I used is attached. Does this script fail for you? If not, please upload something that fails. -- nosy: +gregory.p.smith Added file:

[issue3352] Deficiencies in multiprocessing/threading API

2008-07-14 Thread Nick Coghlan
New submission from Nick Coghlan [EMAIL PROTECTED]: The PEP 8 compliant API for multiprocessing and threading needs to be cleaned up before release as per the thread on python-dev. The release manager gave approval for this change during that discussion [1]. Changes needed: - remove Py3k

[issue3352] Deficiencies in multiprocessing/threading API

2008-07-14 Thread Andrii V. Mishkovskyi
Andrii V. Mishkovskyi [EMAIL PROTECTED] added the comment: Actually, 'getx' - 'fget'. Sorry for the typo. :) ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3352 ___

[issue3353] make built-in tokenizer available via Python C API

2008-07-14 Thread Fredrik Lundh
New submission from Fredrik Lundh [EMAIL PROTECTED]: CPython provides a Python-level API to the parser, but not to the tokenizer itself. Somewhat annoyingly, it does provide a nice C API, but that's not properly exposed for external modules. To fix this, the tokenizer.h file should be moved

[issue3354] sort(reverse=None) prints misleading error message

2008-07-14 Thread Christoph Zwerschke
New submission from Christoph Zwerschke [EMAIL PROTECTED]: When you sort a list with list.sort() or sorted(list), and set the reverse parameter to None, then you get the following misleading error message: TypeError: an integer is required I would expect a more proper error message for the

[issue3321] _multiprocessing.Connection() doesn't check handle

2008-07-14 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10860/_multiprocessing_connection.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3321 ___

[issue3335] subprocess lib - opening same command fails

2008-07-14 Thread Justin Harper
Justin Harper [EMAIL PROTECTED] added the comment: Further research reveals that the problem appears to be with the gtk.Assistant class in PyGTK 2.10, not the subprocess lib. Report can be closed. ___ Python tracker [EMAIL PROTECTED]

[issue3106] speedup some comparisons

2008-07-14 Thread Raymond Hettinger
Changes by Raymond Hettinger [EMAIL PROTECTED]: -- assignee: - rhettinger ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3106 ___ ___ Python-bugs-list

[issue3354] sort(reverse=None) prints misleading error message

2008-07-14 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Well, booleans technically are integers. -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3354 ___

[issue3335] subprocess lib - opening same command fails

2008-07-14 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- resolution: - invalid status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3335 ___

[issue3354] sort(reverse=None) prints misleading error message

2008-07-14 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- resolution: - wont fix status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3354 ___

[issue3218] 2to3 Fix_imports optimization

2008-07-14 Thread Nick Edds
Nick Edds [EMAIL PROTECTED] added the comment: Yeah that import_as_names definitely shouldn't be there. I don't know what I was thinking at the time, but that should just be an any I believe. I'll clean this up today or tomorrow, update fix_imports2 as well, and try to fix the tests for

[issue2512] decide what to do with gettext API

2008-07-14 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: done in r64947. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2512 ___

[issue3354] sort(reverse=None) prints misleading error message

2008-07-14 Thread Christoph Zwerschke
Christoph Zwerschke [EMAIL PROTECTED] added the comment: The problem is not only that the error message TypeError: an integer is required has integer instead of boolean, but it does not mention the attribute name reverse, i.e. it does not even say *where* the integer is required. I firmly

[issue3354] sort(reverse=None) prints misleading error message

2008-07-14 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Patches are welcome. -- priority: - low resolution: wont fix - status: closed - open ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3354

[issue3354] sort(reverse=None) prints misleading error message

2008-07-14 Thread Andrii V. Mishkovskyi
Changes by Andrii V. Mishkovskyi [EMAIL PROTECTED]: -- nosy: +mishok13 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3354 ___ ___ Python-bugs-list

[issue3356] some tests fail in debug mode (test_distutils, test_set)

2008-07-14 Thread Antoine Pitrou
New submission from Antoine Pitrou [EMAIL PROTECTED]: With the latest py3k, some tests fail when run in debug mode: - test_distutils fails with the following message: FAILED (errors=1) Traceback (most recent call last): File Lib/test/test_distutils.py, line 17, in module test_main() File

[issue3354] Improve error reporting for the argument parsing API

2008-07-14 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: I think this is closer to a language wide change and should probably be addressed for 2.7 and 3.1. It would be great to change the C argument parsing API to make its error messages more specific. For Py2.6, I think things are fine as it

[issue3026] mmap broken with large files on 64bit system

2008-07-14 Thread Ralf Schmitt
Ralf Schmitt [EMAIL PROTECTED] added the comment: this patch adds a digest_update function. digest_update calls EVP_DigestUpdate(..) with chunks of 16 MB size and also checks for signals. I didn't write any tests (as they will most probably annoy many people cause they would need much memory).

[issue3352] Deficiencies in multiprocessing/threading API

2008-07-14 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: At this stage I'm still inclined to skip the warnings completely - at the very least, any eventual removals will go through a full deprecation cycle in 2.7/3.1 before being removed in 2.8/3.2. It's also much easier to be sure we aren't adversely

[issue3356] some tests fail in debug mode (test_distutils, test_set)

2008-07-14 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Neither of these fail for me on MacOS. -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3356 ___

[issue3356] some tests fail in debug mode (test_distutils, test_set)

2008-07-14 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: On another machine, with another distro (Debian stable) and another gcc version (4.1.2 instead of 4.3.1), I even get a segmentation fault on test_distutils: $ ./python Lib/test/test_set.py test_add (__main__.TestSet) ... ok test_and

[issue3357] A bug in the __doc__ string of the sys module

2008-07-14 Thread Chester
New submission from Chester [EMAIL PROTECTED]: This relates to Python 3.x. Do this please: import sys; print(sys.__doc__) Please fix the following line of text in that __doc__ file of the sys module: stdin -- standard input file object; used by raw_input() and input() This line of text should

[issue3354] Improve error reporting for the argument parsing API

2008-07-14 Thread Christoph Zwerschke
Christoph Zwerschke [EMAIL PROTECTED] added the comment: Agree. Seems to be a more general weakness of the argument parsing of builtin functions and methods, that calls for a general solution instead of a local patch. Luckily there are not so many cases where the errors are misleading, since the

[issue3357] A bug in the __doc__ string of the sys module

2008-07-14 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Thanks. Fixed in r64956. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3357

[issue3008] Let bin/oct/hex show floats

2008-07-14 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: The patch looks good. I would coded hex_from_char() using a lookup into 0123456789abcdef which uses no unpredicatable branches. Likewise, I would done hex_from_char() with a case statement (limiting the call to single unpredicatable

[issue3358] 2to3 Iterative Wildcard Matching

2008-07-14 Thread Nick Edds
New submission from Nick Edds [EMAIL PROTECTED]: Here is an iterative replacement to _recursive_matches for Wildcard Patterns. It's not really much faster now, although I think there is some room to improve it. It's doesn't seem like the most elegant solution, but it works. It passes all of the

[issue3359] add 'rbU' mode to open()

2008-07-14 Thread anatoly techtonik
New submission from anatoly techtonik [EMAIL PROTECTED]: 'rU' universal newline support is useless, because read lines end with '\n' regardless of actual line end in the source file. Applications that care about line ends still open file in binary mode and gather the stats manually. So, to