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

2008-07-14 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: I can't reproduce the error using Windows. ___ Python tracker <[EMAIL PROTECTED]> ___ __

[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 ma

[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

[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

[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]> __

[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 th

[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 shoul

[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 (__main_

[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]> ___ _

[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 adversel

[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).

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

2008-07-14 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: I'll look at the test_set failure if no one else gets to it first. -- nosy: +rhettinger ___ Python tracker <[EMAIL PROTECTED]>

[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

[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 test_main() File "Lib

[issue3355] Display bug in :show-inheritance: for class with standard docstring

2008-07-14 Thread Kumar McMillan
New submission from Kumar McMillan <[EMAIL PROTECTED]>: Using Sphinx 0.4.1 I noticed a slight display bug in rendering :show-inheritance: for a class with a PEP 8 / PEP 257 style docstring. i.e. multi-line docstrings are recommended by the PEPs to look like: class Foo(SomeFoo): """Return a

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

2008-07-14 Thread Christoph Zwerschke
Christoph Zwerschke <[EMAIL PROTECTED]> added the comment: The unspecific error message is thrown by the vgetargskeywords() function, so changing this behavior would be a larger, more difficult and general issue (similar to #1283289). We could go another path and require an object for 'reverse' i

[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]> ___ ___ Python-bugs-list

[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]> __

[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 firm

[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]> ___

[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 fix_imp

[issue3352] Deficiencies in multiprocessing/threading API

2008-07-14 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I think we should still keep the py3k warnings on (I'll change them to PendingDeprecationWarnings if you want.), so the API doesn't abruptly change on people. With your approval, I'll make it so. -- assignee: -> benjamin.peterson

[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]> ___

[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]> ___ _

[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]> ___ ___

[issue3106] speedup some comparisons

2008-07-14 Thread Raymond Hettinger
Changes by Raymond Hettinger <[EMAIL PROTECTED]>: -- assignee: -> rhettinger ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs

[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]>

[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]> ___ _

[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 th

[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

[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]> ___ __

[issue3352] Deficiencies in multiprocessing/threading API

2008-07-14 Thread Andrii V. Mishkovskyi
Andrii V. Mishkovskyi <[EMAIL PROTECTED]> added the comment: Does this mean that all multiprocessing get_*/set_* methods should be changed to be properties? For example, multiprocessing.process.Process class defines not only set_name/get_name and is_daemon/set_daemon methods, but also get/set_aut

[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 war