[issue14673] add sys.implementation

2012-05-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue14907] SSL module cannot handle unicode filenames

2012-05-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, it would probably be a new feature to accept unicode there, and we don't add new features to 2.7. As Hynek said, Python 3 is fine. -- ___ Python tracker _

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2012-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are the benchmark results (numbers are speed, MB/s). On 32-bit Linux, AMD Athlon 64 X2: vanilla patched utf-8 'A'*1 2016 (+5%) 2111 utf-8 '\x80'*1

[issue1602] windows console doesn't print or input Unicode

2012-05-26 Thread Glenn Linderman
Glenn Linderman added the comment: A little more empirical info: the missing "errors" attribute doesn't show up except for input. print works fine. -- ___ Python tracker ___ ___

[issue14923] Even faster UTF-8 decoding

2012-05-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : As strange as it may seem, but using a simple trick was made UTF-8 decoding even more speed up. Here are the benchmark results. On 32-bit Linux, AMD Athlon 64 X2: vanilla patched utf-8 'A'*1

[issue14923] Even faster UTF-8 decoding

2012-05-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file25718/decodebench.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue14923] Even faster UTF-8 decoding

2012-05-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file25719/bench-diff.py ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue14923] Even faster UTF-8 decoding

2012-05-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: I see a slight increase under 64-bit Linux with gcc 4.5.2, too: vanilla patched utf-8 'A'*1 7857 (+4%)8210 utf-8 'A'*+'\x80' 5392 (+8%)5843 utf-8

[issue14923] Even faster UTF-8 decoding

2012-05-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: It seems the patch relies on a two's complement representation of integers. Mark, do you think that's ok? -- stage: -> commit review ___ Python tracker _

[issue14923] Even faster UTF-8 decoding

2012-05-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: commit review -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2012-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fortunately, issue14923 (if accepted) will compensate for the slowdown. On 32-bit Linux, AMD Athlon 64 X2: vanilla old patchfast patch utf-8 'A'*1 2016 (+3%) 2111 (-2%) 207

[issue14923] Even faster UTF-8 decoding

2012-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > It seems the patch relies on a two's complement representation of integers. > Mark, do you think that's ok? Yes, the patch depends on two facts -- 8-bit bytes and a two's complement representation of integers. That's why I call it a trick. However, today C

[issue14923] Even faster UTF-8 decoding

2012-05-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: The C standard says, in 6.3.1.3/3 Otherwise [*], the new type is signed and the value cannot be represented in it; either the result is implementation-defined or an implementation-defined signal is raised. [*]: the value cannot be exactly converted, and the t

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 63d2c9affb11 by Hynek Schlawack in branch 'default': #14814: Some PEP8 adjustments and dead code weeding http://hg.python.org/cpython/rev/63d2c9affb11 -- ___ Python tracker

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-26 Thread Hynek Schlawack
Hynek Schlawack added the comment: One last wish: could we curb the copyright header a bit? I don't know the exact policy on that but as other modules don't have that I presume we could do without/with a shorter one. If we have one, I'd rather add something like "based on the original ipaddre

[issue14907] SSL module cannot handle unicode filenames

2012-05-26 Thread Hynek Schlawack
Hynek Schlawack added the comment: So are we going to add something to the docs or just close as rejected? -- ___ Python tracker ___

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-26 Thread Nick Coghlan
Nick Coghlan added the comment: Yeah, only the first two lines of the copyright header are really needed. -- ___ Python tracker ___ _

[issue14907] SSL module cannot handle unicode filenames

2012-05-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Honestly, I'm not sure it is worth documenting. How to use the ca_certs argument is clear when reading the examples further in the ssl doc page, and detailing the quirks of each and every argument would make the text much less readable. -- _

[issue14907] SSL module cannot handle unicode filenames

2012-05-26 Thread Hynek Schlawack
Hynek Schlawack added the comment: I'd just add some general catch-all phrase at the top that all paths are expected to be encoded strings. -- ___ Python tracker ___ __

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset f70e12499d05 by Nick Coghlan in branch 'default': Issue #14814: In the spirit of TOOWTDI, ditch the redundant version parameter to the factory functions by using the appropriate direct class references instead http://hg.python.org/cpython/rev/f70e

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 462fff00c3fb by Nick Coghlan in branch 'default': Issue #14814: Cleanup ipaddress header comments http://hg.python.org/cpython/rev/462fff00c3fb -- ___ Python tracker

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0b54721bf1cc by Nick Coghlan in branch 'default': Issue #14814: Clean out an obsolete property and method from ipaddress Network objects http://hg.python.org/cpython/rev/0b54721bf1cc -- ___ Python track

[issue8739] Update to smtpd.py to RFC 5321

2012-05-26 Thread R. David Murray
R. David Murray added the comment: Removing dependency on issue 11959. Instead I'm going to fix the logging test by adding the necessary updates to its __init__ methods on the smtpd subclasses. Then 11959 can be dealt with independently. -- dependencies: -smtpd cannot be used witho

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 04b939c0c84d by Nick Coghlan in branch 'default': Issue #14814: Add a basic ipaddress tutorial (thanks to Sandro Tosi for the initial conversion from Peter Moody's wiki version) http://hg.python.org/cpython/rev/04b939c0c84d -- ___

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-26 Thread Nick Coghlan
Nick Coghlan added the comment: The module reference docs are the main outstanding item now. Georg, up to you whether you want to generate the first pass at those from the docstrings for the alpha or leave it until afterwards. -- ___ Python tracker

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-26 Thread Nick Coghlan
Nick Coghlan added the comment: There's one other thing I particularly want to look at, but it can wait until after the alpha: the "TODO" comments I added relating to the new self._address_class attribute on the *Network classes. Specifically, it seems to me that the various network methods t

[issue14059] Implement multiprocessing.Barrier

2012-05-26 Thread Richard Oudkerk
Richard Oudkerk added the comment: > RawValue uses ctypes, right? That's problematic for platforms which don't > support ctypes. Are there many posix systems (we care about) where ctypes doesn't work? It would be fairly easy to use memoryview instead of ctypes. (In fact Value/RawValue could

[issue14910] argparse: disable abbreviation

2012-05-26 Thread Jonathan Paugh
Jonathan Paugh added the comment: I am dubious as to the use of this: I think resolving partial args is one of the best thing since invented since sliced bread. However, it's a good project to get my feet wet, so I'll take it on. I should have a patch later today--I'm working on test-cases ju

[issue14059] Implement multiprocessing.Barrier

2012-05-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > RawValue uses ctypes, right? That's problematic for platforms which don't > > support ctypes. > > Are there many posix systems (we care about) where ctypes doesn't > work? It depends what you call "caring about" :-) But proprietary Unix C compilers genera

[issue8739] Update to smtpd.py to RFC 5321

2012-05-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset ec7456b3f4fe by R David Murray in branch 'default': #8739: upgrade smtpd to RFC 5321 and 1870. http://hg.python.org/cpython/rev/ec7456b3f4fe -- nosy: +python-dev ___ Python tracker

[issue8739] Update to smtpd.py to RFC 5321

2012-05-26 Thread R. David Murray
R. David Murray added the comment: Thanks very much to everyone who contributed to this patch. It was a real team effort :) -- assignee: r.david.murray -> resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Py

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2012-05-26 Thread Eric Snow
Eric Snow added the comment: Here's a stab at implementing -p/-P. There are a couple warnings that I'm not sure about and I've undoubtedly missed some detail, but it should be pretty close. -- keywords: +patch Added file: http://bugs.python.org/file25721/issue13475_1.diff __

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2012-05-26 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file25721/issue13475_1.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2012-05-26 Thread Eric Snow
Changes by Eric Snow : Added file: http://bugs.python.org/file25722/issue13475_1.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2012-05-26 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file25722/issue13475_1.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2012-05-26 Thread Eric Snow
Changes by Eric Snow : Added file: http://bugs.python.org/file25723/issue13475_1.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2012-05-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Before this is assigned a short option form, I would like to ask whether anybody but experts will be able to make a proper use of this option. (I also don't understand what it adds over PYTHONPATH) As for the patch, it lacks error checking when calling C API

[issue14775] Dict untracking can result in quadratic dict build-up

2012-05-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I have written up some documentation on how untracking is handled in > the gc - please see the attached patch. Thank you for doing this! Do you have a real name so that I can credit you? Also, could you fill a contributor agreement? http://www.python.org/psf/

[issue14673] add sys.implementation

2012-05-26 Thread Eric Snow
Changes by Eric Snow : Added file: http://bugs.python.org/file25724/issue14673_as_module.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue14673] add sys.implementation

2012-05-26 Thread Eric Snow
Changes by Eric Snow : Added file: http://bugs.python.org/file25725/issue14673_as_type.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue14673] add sys.implementation

2012-05-26 Thread Eric Snow
Changes by Eric Snow : Added file: http://bugs.python.org/file25726/issue14673_as_structseq.diff ___ Python tracker ___ ___ Python-bugs-list m

[issue14673] add sys.implementation

2012-05-26 Thread Eric Snow
Changes by Eric Snow : Added file: http://bugs.python.org/file25727/issue14673_as_simple_namespace.diff ___ Python tracker ___ ___ Python-bugs

[issue14673] add sys.implementation

2012-05-26 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file25712/issue14673_as_module.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue14673] add sys.implementation

2012-05-26 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file25713/issue14673_as_type.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue14673] add sys.implementation

2012-05-26 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file25714/issue14673_as_structseq.diff ___ Python tracker ___ ___ Python-bugs-list

[issue14673] add sys.implementation

2012-05-26 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file25715/issue14673_as_simple_namespace.diff ___ Python tracker ___ ___ Python-b

[issue14673] add sys.implementation

2012-05-26 Thread Eric Snow
Changes by Eric Snow : Added file: http://bugs.python.org/file25728/issue14673_docs_and_tests.diff ___ Python tracker ___ ___ Python-bugs-list

[issue14673] add sys.implementation

2012-05-26 Thread Eric Snow
Eric Snow added the comment: I updated the patches so that (hopefully) the review link shows up. I've also pulled out the doc/test diff into its own patch, since it was the same for all of them. -- ___ Python tracker

[issue10053] Don’t close fd when FileIO.__init__ fails

2012-05-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +hynek versions: +Python 3.3 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue14910] argparse: disable abbreviation

2012-05-26 Thread Jonathan Paugh
Jonathan Paugh added the comment: I created a patch that exibhts the requested behavior. I added tests, and updated the documentation. I ran the test-suite against a build of Python 3.3.0a3+, and all tests check out. This changes the public API of argparse.ArgumentParser and of its parse_args

[issue14876] IDLE highlighting theme does not preview with user-selected fonts

2012-05-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset e443cce4f183 by Terry Jan Reedy in branch '3.2': Issue #14876: Use user-selected font for highlight configuration. http://hg.python.org/cpython/rev/e443cce4f183 New changeset a9e9045d5546 by Terry Jan Reedy in branch 'default': Merge Issue #14876:

[issue14876] IDLE highlighting theme does not preview with user-selected fonts

2012-05-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Patch looks good and seems to work fine. I tested before and after the patch on my working copy of 3.3.0a3 with my selected font. Highlight config was default courier before and selected font after. I agree with change and applied. -- resolution: ->

[issue14903] dictobject infinite loop on 2.6.5 on 32-bit x86

2012-05-26 Thread Daniel Farina
Daniel Farina added the comment: Unfortunately it's not so easy to upgrade the system's Python, however, it is something we might try. The reproducing test case would appear to be akin to: "import _socket" And, within the gevent stack trace program, https://github.com/schmir/gevent/blob/mas

[issue14903] dictobject infinite loop on 2.6.5 on 32-bit x86

2012-05-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I was suggesting alternate installations, not that you touch your system Python (a bad idea I have read). Such should be easy on Ubuntu. Whether you can run this particular program with alt installs is a different matter. If you have questions about doing so,

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2012-05-26 Thread Eric Snow
Eric Snow added the comment: > Before this is assigned a short option form, I would like to ask > whether anybody but experts will be able to make a proper use of this > option. Do you mean relative to a long form? And what would constitute improper use for the option? As Nick noted earlier

[issue13475] Add '-p'/'--path0' command line option to override sys.path

2012-05-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > Before this is assigned a short option form, I would like to ask > > whether anybody but experts will be able to make a proper use of this > > option. > > Do you mean relative to a long form? Yes. > And what would constitute improper use for the option?

[issue3177] Add shutil.open

2012-05-26 Thread Hobs
Hobs added the comment: In Linux we could `try` nautilus then Mozilla (file://.../containing_folder) then fall back to a shell `cd && ls` if no browser is available, raising NotImplemented if all else fails... until someone implements for that user's platform particulars. Likewise on OSX, Mac, e

[issue3177] Add shutil.open

2012-05-26 Thread Larry Hastings
Larry Hastings added the comment: > In Linux we could `try` nautilus then Mozilla > (file://.../containing_folder) then fall back to a shell > `cd && ls` if no browser is available, raising NotImplemented > if all else fails... until someone implements for that > user's platform particulars. Wh

[issue13475] Add '-p'/'--path0' command line option to override sys.path

2012-05-26 Thread Eric Snow
Eric Snow added the comment: did you mean to change the title? this isn't about overriding sys.path, but rather just about explicitly dictating the initialization of sys.path[0]. -- ___ Python tracker __

[issue14858] 'pysetup create' off-by-one when choosing classification maturity status interactively.

2012-05-26 Thread Todd DeLuca
Todd DeLuca added the comment: I'm working on a unit test and fix for a patch. There are a couple other possible bugs in the function that I coud fix (and test). Should I submit separate patches for each bug or one patch that fixes all 3 (small) bugs? Also should I open issues for each bug?

[issue13475] Add '-p'/'--path0' command line option to override sys.path

2012-05-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > did you mean to change the title? No, I think it's a bug of the roundup e-mail gateway. -- ___ Python tracker ___ __

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2012-05-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- title: Add '-p'/'--path0' command line option to override sys.path -> Add '-p'/'--path0' command line option to override sys.path[0] initialisation ___ Python tracker ___

[issue10635] Calling subprocess.Popen with preexec_fn=signal.pause blocks forever

2012-05-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset e8d89503f061 by Terry Jan Reedy in branch 'default': Merge with 3.2 #10635 whitespace http://hg.python.org/cpython/rev/e8d89503f061 -- nosy: +python-dev ___ Python tracker

[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2012-05-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset a2877fbabf95 by Terry Jan Reedy in branch '3.2': Issue #10365: File open dialog now works instead of crashing http://hg.python.org/cpython/rev/a2877fbabf95 New changeset 21862628a013 by Terry Jan Reedy in branch 'default': Merge with 3.2 http://hg.

[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2012-05-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified problem in 3.3 and when opening dialog from shell. Patch fixes problem, including open idle, open dialog, close shell, select file, and now file is opened. Thanks Roger. I went ahead and applied fix. (But note: your patch had a 'blank' line with sev

[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2012-05-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2012-05-26 Thread Nick Coghlan
Nick Coghlan added the comment: FWIW, I now think this should *only* be a long option. Short options are precious, and this is an unusual enough use case that I'm not yet sure it deserves one. In particular, we may decide to use "-p" later for adding directories to sys.path, rather than spec

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2012-05-26 Thread Nick Coghlan
Nick Coghlan added the comment: FWIW, I now think this should *only* be a long option. Short options are precious, and this is an unusual enough use case that I'm not yet sure it deserves one. In particular, we may decide to use "-p" later for adding directories to sys.path, rather than spec