[issue26113] pathlib p.match('') should return False rather than raising exception

2016-01-14 Thread Guido van Rossum
Guido van Rossum added the comment: A benefit is that it catches certain bugs early. It's not really worth a fight, so status quo wins. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___

[issue25940] SSL tests failed due to expired svn.python.org SSL certificate

2016-01-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset fb7131939508 by Martin Panter in branch '2.7': Issue #25940: Use self-signed.pythontest.net in SSL tests https://hg.python.org/cpython/rev/fb7131939508 -- ___ Python tracker

[issue26118] String performance issue using single quotes

2016-01-14 Thread Steven D'Aprano
Steven D'Aprano added the comment: I cannot replicate that performance difference under Linux. There's a small difference (about 0.1 second per million iterations, or a tenth of a microsecond) on my computer, but I don't think that's meaningful: py> from timeit import Timer py> t1 = Ti

[issue18018] SystemError: Parent module '' not loaded, cannot perform relative import

2016-01-14 Thread Yongzhi Pan
Changes by Yongzhi Pan : -- nosy: +fossilet ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue18018] SystemError: Parent module '' not loaded, cannot perform relative import

2016-01-14 Thread Brett Cannon
Brett Cannon added the comment: The problem is in Python/import.c: https://hg.python.org/cpython/file/default/Python/import.c#l1453 . While the Python code has a check that `package` is a truthy value, the accelerated C code doesn't. Adding a check that the string isn't empty or truthy should

[issue25940] SSL tests failed due to expired svn.python.org SSL certificate

2016-01-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset b2036b717028 by Martin Panter in branch '3.2': Issue #25940: On Windows, connecting to port 444 returns ETIMEDOUT https://hg.python.org/cpython/rev/b2036b717028 New changeset c5cae7366835 by Martin Panter in branch '3.3': Issue #25940: Merge ETIMEDO

[issue18018] SystemError: Parent module '' not loaded, cannot perform relative import

2016-01-14 Thread Chris Angelico
Chris Angelico added the comment: If someone made a new way of importing and had it raise ValueError on some issue or other, I think there'd be complete consensus that that's the wrong exception. Yes, this is incompatible with Python 2 - but there are a lot of corner cases in the 3.3+ import c

[issue26118] String performance issue using single quotes

2016-01-14 Thread poostenr
poostenr added the comment: Eric, Steven, thank you for your feedback so far. I am using Windows7, Intel i7. That one particular file of 6.5MB took ~1 minute on my machine. When I ran that same test on Linux with Python 3.5.1, it took about 3 seconds. I was amazed to see a 20x difference. Stev

[issue26118] String performance issue using single quotes

2016-01-14 Thread poostenr
poostenr added the comment: Eric, I just tried your examples. The loop count is 100x more, but the results are about a factor 10 off. Test1: My results: C:\Data>python -m timeit -s 'x=4' '",{0}".format(x)' 1 loops, best of 3: 0.0116 usec per loop Eric's results: $ python -m timeit -s

[issue26119] Windows Installer can sometimes silently fail pip stage

2016-01-14 Thread Paul Hammant
New submission from Paul Hammant: It NEEDS to communicate more as to why it is rolling back the pip install (progress bar goes backwards, install fails). Reasons can be: 1. older/wrong versions of Python listed in the PATH - eg c:\Python27 encountered when c:\Python34 is being installed. User

[issue25822] Add docstrings to fields of urllib.parse results

2016-01-14 Thread Swati Jaiswal
Swati Jaiswal added the comment: Thank you Senthil for the improvements, I'll try to make it better next time :) -- ___ Python tracker ___ ___

[issue25913] base64.a85decode adobe flag incorrectly utilizes <~ as a marker causing error

2016-01-14 Thread Swati Jaiswal
Swati Jaiswal added the comment: Modified according to Serhiy's last comment. -- Added file: http://bugs.python.org/file41621/iss_25913_3.patch ___ Python tracker ___ ___

[issue26097] 2.7 documentation about TextTestRunner do not specify all the arguments

2016-01-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 687f0d4bc188 by Senthil Kumaran in branch '2.7': Issue26097 - Fix the TextTestRunner documentation, mention all the arguments of the class. https://hg.python.org/cpython/rev/687f0d4bc188 -- nosy: +python-dev ___

[issue26097] 2.7 documentation about TextTestRunner do not specify all the arguments

2016-01-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for the report. Fixed. -- nosy: +orsenthil resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue26119] Windows Installer can sometimes silently fail pip stage

2016-01-14 Thread Steve Dower
Steve Dower added the comment: Do you have any evidence of it failing for those reasons? The command used is specifically crafted to prevent those issues. I'm not saying there aren't potentially other issues that would be nice to surface (though fairly difficult without modifying a complex pie

[issue26120] pydoc: move __future__ imports out of the DATA block

2016-01-14 Thread Antony Lee
New submission from Antony Lee: Currently, for a module that uses __future__ imports, the DATA section of `pydoc foo` contains these imports interspersed with the "real" data from the module. Even though it is fully-featured _Feature objects that are imported, it probably makes sense to move

[issue26116] CSV-module. The example code don't work. Have to be: reader = csv.reader(csvfile, dialect=dialect)

2016-01-14 Thread Georg Brandl
Georg Brandl added the comment: Thanks! Now the reason is clear: You use csv.DictReader instead of csv.reader. csv.DictReader has a different argument list - for DictReader the second argument is `fieldnames`. -- ___ Python tracker

[issue23857] Make default HTTPS certificate verification setting configurable

2016-01-14 Thread Nick Coghlan
Nick Coghlan added the comment: Since PEP 493 is now a standards track PEP, the attached patch provides the reference implementation for the current PEP text. -- Added file: http://bugs.python.org/file41622/pep493_py27_ssl_config.diff ___ Python trac

[issue26118] String performance issue using single quotes

2016-01-14 Thread poostenr
poostenr added the comment: Eric, Steven, During further testing I was not able to find any real evidence that the statement I was focused on had a real performance issue. As I did more testing I noticed that appending data to the file slowed down. The file grew initially with ~30-50KB increm

<    1   2