[issue22271] Deprecate PyUnicode_AsUnicode(): emit a DeprecationWarning

2014-09-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be better to emit a warning only at compile time. End user of compiled extension can't do anything with a warning emitted at run time, only its author can avoid it. -- nosy: +serhiy.storchaka ___ Python t

[issue7946] Convoy effect with I/O bound threads and New GIL

2014-09-02 Thread Stefan Behnel
Changes by Stefan Behnel : -- nosy: +scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue22324] Use PyUnicode_AsWideCharString() instead of PyUnicode_AsUnicode()

2014-09-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Will not this cause performance regression? When we hardly work with wchar_t-based API, it looks good to cache encoded value. -- nosy: +serhiy.storchaka ___ Python tracker _

[issue15237] Add capsule API to _decimal

2014-09-02 Thread Stefan Behnel
Stefan Behnel added the comment: Is this superseded by issue 22194 now or the other way round? -- nosy: +scoder versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ _

[issue22329] Windows installer can't recover partially installed state

2014-09-02 Thread Steve Dower
Steve Dower added the comment: I've been working on the rewrite for 3.5 already (progress at http://hg.python.org/sandbox/steve.dower) - redoing the installer completely was one of the conditions for when I signed on to own it. Martin is still responsible for 3.4, and I'm building 2.7 as requi

[issue22329] Windows installer can't recover partially installed state

2014-09-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: I and at least one other person reporting on python-list have had similar problems trying to update an installation. -- nosy: +terry.reedy stage: -> needs patch versions: +Python 3.5 ___ Python tracker

[issue22327] test_gdb failures on Ubuntu 14.10

2014-09-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +dmalcolm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue22329] Windows installer can't recover partially installed state

2014-09-02 Thread Llelan D.
New submission from Llelan D.: Python v3.4.1 x64 on Windows 7 x64. If the python installation directory is deleted, the installer can not remove, change, or repair the installation. When I run the python-3.4.1.amd64.msi installer and choose Remove, it gives me a dialog saying a required file

[issue9694] argparse required arguments displayed under "optional arguments"

2014-09-02 Thread R. David Murray
R. David Murray added the comment: In unix parlance, they are arguments and options (or, sometimes, flags). And then required or not required. So, argparse follows unix precedent here, except that it calls them "optional arguments", because everything is added via add_argument. Which is why

[issue7918] distutils always ignores byte compilation errors

2014-09-02 Thread Danek Duvall
Danek Duvall added the comment: Absolutely true that developers should have tests that would detect such bugs. However, the sooner you detect a bug, the more time you save. And by the time it reaches someone like me, who is just packaging up the module for distribution with an OS, it's just

[issue7918] distutils always ignores byte compilation errors

2014-09-02 Thread Éric Araujo
Éric Araujo added the comment: a deliberate decision, not a bug* -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue7918] distutils always ignores byte compilation errors

2014-09-02 Thread Éric Araujo
Éric Araujo added the comment: Again, I think this behaviour was a deliberate decision, not a patch. Developers should use tests to detect syntax errors in their code, not rely on distutils byte compilation. -- ___ Python tracker

[issue9694] argparse required arguments displayed under "optional arguments"

2014-09-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: To me, the mistake is contrasting 'positional' versus 'optional'. The proper contrasts are 'positional' versus 'named' or 'keyword' -- I believe these are mutually exclusive for command lines -- and 'required' versus 'optional. The two axes (contrasts) are

[issue7918] distutils always ignores byte compilation errors

2014-09-02 Thread Danek Duvall
Danek Duvall added the comment: As a distribution maintainer of several Python modules, I've run into this bug twice in the past week. In each case, the python file in question had a SyntaxError and failed to compile, but the error just scrolled past in a large log and was missed because no f

[issue7918] distutils always ignores byte compilation errors

2014-09-02 Thread Danek Duvall
Changes by Danek Duvall : -- nosy: +dhduvall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue22043] Use a monotonic clock to compute timeouts

2014-09-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset b12857782041 by Victor Stinner in branch 'default': Issue #22043: time.monotonic() is now always available http://hg.python.org/cpython/rev/b12857782041 -- ___ Python tracker

[issue22043] Use a monotonic clock to compute timeouts

2014-09-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 330bd57685fc by Victor Stinner in branch 'default': Issue #22043: Fix _PyTime_gettimeofday() if HAVE_GETTIMEOFDAY http://hg.python.org/cpython/rev/330bd57685fc -- ___ Python tracker

[issue22328] ur'foo\d' raises SyntaxError

2014-09-02 Thread R. David Murray
R. David Murray added the comment: This is a conscious design decision. See issue 15096. -- nosy: +r.david.murray resolution: -> not a bug stage: -> resolved status: open -> closed superseder: -> Drop support for the "ur" string prefix ___ Python

[issue22328] ur'foo\d' raises SyntaxError

2014-09-02 Thread Markus Unterwaditzer
New submission from Markus Unterwaditzer: The string literal `ur'foo\d'` causes a SyntaxError while the equivalent `r'foo\d'` causes the correct string to be produced. -- components: Interpreter Core messages: 226281 nosy: untitaker priority: normal severity: normal status: open title:

[issue22327] test_gdb failures on Ubuntu 14.10

2014-09-02 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue22327] test_gdb failures on Ubuntu 14.10

2014-09-02 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: Lots of them, just like this: == FAIL: test_NULL_ob_type (test.test_gdb.PrettyPrintTests) Ensure that a PyObject* with NULL ob_type is handled gracefully -

[issue9694] argparse required arguments displayed under "optional arguments"

2014-09-02 Thread Oliver Smith
Oliver Smith added the comment: The term "optional arguments" is a poorly formed adjectival suffix of "option". What it's trying to say is "these are kwargs" rather than "these arguments are not compulsory". I ran into this issue with 3.4 and was looking to file a simple change request: In ea

[issue22253] ConfigParser does not handle files without sections

2014-09-02 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue21527] concurrent.futures.ThreadPoolExecutor does not use a default value

2014-09-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2805b0dca798 by Guido van Rossum in branch 'default': Closes #21527: Add default number of workers to ThreadPoolExecutor. (Claudiu Popa.) http://hg.python.org/cpython/rev/2805b0dca798 -- nosy: +python-dev resolution: -> fixed stage: commit

[issue22326] tempfile.TemporaryFile fails on NFS v4 filesystems

2014-09-02 Thread Frank Thommen
Frank Thommen added the comment: Agreed. If I export from CentOS and mount on CentOS (local or remote) it seems to work. So this is probably due to our specific fileserver setup or a problem of the underlying filesystem (zfs). -- ___ Python tracke

[issue22326] tempfile.TemporaryFile fails on NFS v4 filesystems

2014-09-02 Thread STINNER Victor
STINNER Victor added the comment: I tried on my Fedora 20 (Linux, kernel 3.14.8-200.fc20.x86_64) and I'm unable to reproduce the issue. $ sudo mkdir /test $ sudo chown haypo: /test $ echo "/test *(rw)" >> /etc/exports $ sudo exportfs -af $ sudo mount -t nfs localhost:/test nfs $ cat > x.py $ p

[issue19826] Document that bug reporting by email is possible

2014-09-02 Thread Berker Peksag
Changes by Berker Peksag : -- stage: needs patch -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue22326] tempfile.TemporaryFile fails on NFS v4 filesystems

2014-09-02 Thread Frank Thommen
Frank Thommen added the comment: errno:5 strerror: Input/output error -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19826] Document that bug reporting by email is possible

2014-09-02 Thread Brett Cannon
Brett Cannon added the comment: And I agree with David and Mark. Thanks for the attempt at a patch, Mike, but in hindsight we are going to have to turn down your contribution. -- resolution: -> wont fix status: open -> closed ___ Python tracker

[issue18766] IDLE: Autocomplete in editor doesn't work for un-imported modules

2014-09-02 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar : -- nosy: +sahutd ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue10312] intcatcher() can deadlock

2014-09-02 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: -Claudiu.Popa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue22326] tempfile.TemporaryFile fails on NFS v4 filesystems

2014-09-02 Thread R. David Murray
R. David Murray added the comment: What is the actual OSError raised? -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-

[issue22325] wrong subtraction result

2014-09-02 Thread R. David Murray
R. David Murray added the comment: https://docs.python.org/2/tutorial/floatingpoint.html -- nosy: +r.david.murray resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue22326] tempfile.TemporaryFile fails on NFS v4 filesystems

2014-09-02 Thread Frank Thommen
New submission from Frank Thommen: Hi, tempfile.TemporaryFile fails on NFS v4 filesystems. Assume the following mounts: $ mount [...] psi:/volumes/vol1 on /mnt/nfsv4 type nfs4 (rw,addr=xx.xx.xx.xx) psi:/volumes/vol1 on /mnt/nfsv3 type nfs (rw,addr=xx.xx.xx.xx) [...] $ and the following script

[issue22325] wrong subtraction result

2014-09-02 Thread Constantino Antunes
New submission from Constantino Antunes: I was using python as my calculator when I got a result which had to be rounded to be the value I expected. So I made some tests with a simple case. Given that 0.38 - 0.20 = 0.18, then 1000.38 - 1000.20 should be also 0.18. Here is this calculation done

[issue22258] set_inheritable(): ioctl(FIOCLEX) is available but fails with ENOTTY on Illumos

2014-09-02 Thread STINNER Victor
STINNER Victor added the comment: > Yes, Victor. Your patch works. All os tests are passed :-) Thanks for the tests. I pushed my fix to Python 3.4 & 3.5. -- stage: resolved -> versions: +Python 3.5 ___ Python tracker

[issue22258] set_inheritable(): ioctl(FIOCLEX) is available but fails with ENOTTY on Illumos

2014-09-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 27cef7476f2b by Victor Stinner in branch '3.4': Closes #22258: Fix the the internal function set_inheritable() on Illumos. http://hg.python.org/cpython/rev/27cef7476f2b New changeset 4a51c45f405b by Victor Stinner in branch 'default': (Merge 3.4) Cl

[issue22258] set_inheritable(): ioctl(FIOCLEX) is available but fails with ENOTTY on Illumos

2014-09-02 Thread Igor Pashev
Igor Pashev added the comment: Yes, Victor. Your patch works. All os tests are passed :-) -- ___ Python tracker ___ ___ Python-bugs-li

[issue6331] Add unicode script info to the unicode database

2014-09-02 Thread Elizabeth Myers
Elizabeth Myers added the comment: > I think this needs to be fixed, then - we need to study why there are > so many new records (e.g. what script contributes most new records), > and then look for alternatives. The "Common" script appears to be very fragmented and may be the cause of the issue

[issue22258] set_inheritable(): ioctl(FIOCLEX) is available but fails with ENOTTY on Illumos

2014-09-02 Thread STINNER Victor
STINNER Victor added the comment: Ping Igor. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue22323] Rewrite PyUnicode_AsWideChar() and PyUnicode_AsWideCharString()

2014-09-02 Thread STINNER Victor
STINNER Victor added the comment: > There is no patch. You're right. Here it is. -- keywords: +patch Added file: http://bugs.python.org/file36527/unicode_aswidechar.patch ___ Python tracker ___

[issue22296] cookielib uses time.time(), making incorrect checks of expiration times in cookies

2014-09-02 Thread Berker Peksag
Changes by Berker Peksag : -- stage: needs patch -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue19826] Document that bug reporting by email is possible

2014-09-02 Thread Mark Lawrence
Mark Lawrence added the comment: I agree with David, I've noticed several messages recently that are mostly untrimmed replies to email so essentially have no actual content. -- nosy: +BreamoreBoy ___ Python tracker

[issue22166] test_codecs leaks references

2014-09-02 Thread Nick Coghlan
Nick Coghlan added the comment: Yeah, the unique name was a hack to deal with the fact I couldn't unregister anything. As a simpler short term fix for the reference leak, perhaps it would be worth trying a call to "traceback.clear_frames(caught)" as a new final line in ExceptionChainingTest.a