[issue30453] str.format() method, Rounding off wrong

2017-05-24 Thread Mark Dickinson
Mark Dickinson added the comment: The code is behaving correctly. The surprise is due to the internal binary representation of Python floats, and is related to the documentation note about `round` here: https://docs.python.org/3/library/functions.html#round > The behavior of round() for

[issue30453] str.format() method, Rounding off wrong

2017-05-24 Thread Mark Dickinson
Mark Dickinson added the comment: > is exactly halfway between 4.2 and 4.3. That should have said "between 4.62 and 4.63", of course. Apologies. -- ___ Python tracker

[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-24 Thread Andrew Jaffe
Andrew Jaffe added the comment: I'll also note that my bug report (radar) has been marked as "DUPLICATE OF 31898264 (OPEN)". So Apple is aware of the bug, and possibly not completely ignoring it. However, the opacity of the system is such that there is no way to get any further information

[issue30377] Unnecessary complexity in tokenize.py: comments and newlines

2017-05-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue25430] speed up ipaddress __contain__ method

2017-05-24 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1866 ___ Python tracker ___

[issue30456] 2to3 docs: example of fix for duplicates in second argument of isinstance has superfluous parentheses

2017-05-24 Thread Eli_B
New submission from Eli_B: The documentation says isinstance(x, (int, int)) would be fixed to isinstance(x, (int)). The fix is actually isinstance(x, int). I propose the following text instead: " 2to3fixer:: isinstance Fixes duplicate types in the second argument of :func:`isinstance`. For

[issue14111] IDLE Debugger should handle interrupts

2017-05-24 Thread Louie Lu
Louie Lu added the comment: Update roger's patch to current version. Is there any reason this patch isn't merged? The problem in #26949 is a separate issue about this problem. -- Added file: http://bugs.python.org/file46893/0001-WIP.patch ___

[issue30454] Python module cx_Oracle ld installation issue on Solaris11U3 SPARC: fatal: file /oracle/database/lib/libclntsh.so: wrong ELF class: ELFCLASS64 error

2017-05-24 Thread sameer natekar
New submission from sameer natekar: Trying to install cx_Oracle on Solaris11U3 but getting ld: fatal: file /oracle/database/lib/libclntsh.so: wrong ELF class: ELFCLASS64 error # python setup.py build running build running build_ext building 'cx_Oracle' extension cc -DNDEBUG -KPIC -DPIC

[issue25324] Importing tokenize modifies token

2017-05-24 Thread Albert-Jan Nijburg
Albert-Jan Nijburg added the comment: I've updated the PR and added the tokenize tokens to token.h and their names to tokenizer.c. This way they'll show up when you run token.py. The names will always be in tok_name and tokenizer.py will use those. Not breaking the public api and no longer

[issue30377] Unnecessary complexity in tokenize.py: comments and newlines

2017-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c471ca448cf336d7eb4a7cbe14d0012baf122d1f by Serhiy Storchaka (Albert-Jan Nijburg) in branch 'master': bpo-30377: Simplify handling of COMMENT and NL in tokenize.py (#1607)

[issue27728] HTTPConnection.requests has a mutable as default value for headers

2017-05-24 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue27728] HTTPConnection.requests has a mutable as default value for headers

2017-05-24 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- resolution: -> not a bug ___ Python tracker ___ ___

[issue16806] col_offset is -1 and lineno is wrong for multiline string expressions

2017-05-24 Thread Ivailo Karamanolev
Ivailo Karamanolev added the comment: What's the status on this? Anything preventing it getting fixed? Still the same in 3.6.1: >>> import ast >>> ast.parse("""'''foo\n'''""").body[0].value.col_offset -1 -- nosy: +karamanolev ___ Python tracker

[issue30453] str.format() method, Rounding off wrong

2017-05-24 Thread Mark Dickinson
Mark Dickinson added the comment: Actually, there are two potential sources of confusion here: 1. Python uses the round-ties-to-even rounding mode, which means cases that are *exactly* halfway between two target values round to the value with even last digit. This rule is being used in your

[issue30290] IDLE: add tests for help_about.py

2017-05-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks Terry. I'll leave those other items alone for now. It makes sense what you said about the 'create widget' styles. Looking at it for the first time, I kind of liked the second version (in query) because I could more immediately understand what was

[issue30438] tarfile would fail to extract tarballs with files under R/O directories (twice)

2017-05-24 Thread Yaroslav Halchenko
Changes by Yaroslav Halchenko : -- title: tarfile would fail to extract tarballs with files under R/O directories -> tarfile would fail to extract tarballs with files under R/O directories (twice) ___ Python tracker

[issue30453] str.format() method, Rounding off wrong

2017-05-24 Thread Kazuhiro Fujie
New submission from Kazuhiro Fujie: To whom it may concern: I post issue at first time. Please forgive me if this is rude C:\Users\kudo-shunsaku>python Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license"

[issue30452] xml.etree sourcecode bug

2017-05-24 Thread Zoltan Baksa
Zoltan Baksa added the comment: The error was caused, because the xml files did not had the correct close element for the root tag. The issue is not closed, because the error message was not adequate to be able to highlight the root cause. -- ___

[issue30455] Generate C code from token.py and not vice versa

2017-05-24 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Currently Lib/token.py is generated from Include/token.h. This contradicts common practice when the C code is generated from the Python code (see for example opcode.py and sre_constants.py). In additional the table in Parser/tokenizer.c should be manually

[issue30438] tarfile would fail to extract tarballs with files under R/O directories

2017-05-24 Thread Yaroslav Halchenko
Yaroslav Halchenko added the comment: Dear Catherine, Thank you very much for looking into it!! And sorry that I have missed the fact of recursive addition when pointing to a directory. Indeed though, tar handles that case a bit more gracefully. BUT I feel somewhat dumb since I am afraid

[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-05-24 Thread Martin Panter
Martin Panter added the comment: Previous report: Issue 25641. At least in Posix, the “putenv” function is not required to be thread safe. -- nosy: +martin.panter ___ Python tracker

[issue30455] Generate C code from token.py and not vice versa

2017-05-24 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I can work on it -- nosy: +matrixise ___ Python tracker ___ ___

[issue30362] Launcher add list and list with paths options

2017-05-24 Thread Steve Barnes
Steve Barnes added the comment: --list and --list-paths added back in following review by paul.moore. The short options -0 & -0p left in as short forms. -- ___ Python tracker

[issue30457] Allow retrieve the number of waiters pending for most of the asyncio lock primitives

2017-05-24 Thread pfreixes
New submission from pfreixes: Currently, there is no way to access to the number of waiters pending to be woken up. This information can be useful for those environments which create and delete asyncio primitives instances depending if there are waiters still to be processed. The following

[issue30457] Allow retrieve the number of waiters pending for most of the asyncio lock primitives

2017-05-24 Thread pfreixes
Changes by pfreixes : -- pull_requests: +1868 ___ Python tracker ___ ___ Python-bugs-list

[issue30455] Generate C code from token.py and not vice versa

2017-05-24 Thread STINNER Victor
STINNER Victor added the comment: I like the idea. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue30458] CRLF Injection in httplib

2017-05-24 Thread Orange
New submission from Orange: Hi, the patch in CVE-2016-5699 can be broke by an addition space. http://www.cvedetails.com/cve/CVE-2016-5699/ https://hg.python.org/cpython/rev/bf3e1c9b80e9 https://hg.python.org/cpython/rev/1c45047c5102 import urllib, urllib2

[issue30455] Generate C code from token.py and not vice versa

2017-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I already write a patch. -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-05-24 Thread Osvaldo Santana Neto
Osvaldo Santana Neto added the comment: There are exceptions being raised in many applications (as reported here and in http://bugs.python.org/issue25641) and there are three paths to follow: 1. We handle this exception somewhere; 2. We avoid raising it; 3. Just leave it. I don't care about

[issue30459] PyList_SET_ITEM could be safer

2017-05-24 Thread Espie Marc
New submission from Espie Marc: Documentation says PyList_SET_ITEM is void, but it lies. The macro is such that it yields the actual element being set. wrapping the macro content in a do {} while (0) makes sure PyList_SET_ITEM is really void, e.g.: #define PyList_SET_ITEM(op, i, v) do {

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-05-24 Thread Steve Dower
Steve Dower added the comment: The reason to keep it running is for all the existing people who are building from source. Unless you're porting all the old versions over and providing instructions for updating old sources? I wouldn't bother - just leave the server up for a few more years.

[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-05-24 Thread Mike
Mike added the comment: It's been about a month since I heard back, so I thought I'd comment here just in case this slipped of anyone's radar. Is there anything I can doto help this land? -- ___ Python tracker

[issue29510] gitignore settings files for Eclipse IDE

2017-05-24 Thread G Young
Changes by G Young : -- pull_requests: +1873 ___ Python tracker ___ ___ Python-bugs-list

[issue29943] PySlice_GetIndicesEx change broke ABI in 3.5 and 3.6 branches

2017-05-24 Thread Ned Deily
Ned Deily added the comment: Thanks everyone for the input on this issue. We've had some discussions here at PyCon US and I think the consensus is that we all agree with Nathaniel's comment above that, for 3.6.x, that modules built on 3.6.2 (and later 3.6.x) should be importable on any 3.6.x

[issue9146] Segfault in hashlib in OpenSSL FIPS mode using non-FIPS-compliant hashes, if "ssl" imported before "hashlib"

2017-05-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: Resolved for 3.7, assigning to christian to deal with the backports as I believe he has employer motivation to see those in (should be trivial). -- assignee: gregory.p.smith -> christian.heimes resolution: -> fixed stage: patch review -> backport

[issue30395] deadlocked child process after forking on pystate.c's head_mutex

2017-05-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: Another alternative *might* be to check if the lock is locked (non-blocking acquire?) and release it if so. Under the normal assumption that we are the only thread running immediately post-fork(). I'm not sure that can be guaranteed reliable given that

[issue29871] Enable optimized locks on Windows

2017-05-24 Thread Steve Dower
Steve Dower added the comment: I updated the PR to be mergeable and let the AppVeyor run work - https://ci.appveyor.com/project/python/cpython/build/3.7.0a0.2452 Unfortunately, there appear to be a number of regressions due to this. I'm not going to have time right now to work through them

[issue30394] smtplib leaves open sockets around if SMTPConnectError is raised in __init__

2017-05-24 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- pull_requests: +1872 ___ Python tracker ___ ___

[issue30394] smtplib leaves open sockets around if SMTPConnectError is raised in __init__

2017-05-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 779e7c933e777270897b1e35fa9e5b12eee12af9 by Xiang Zhang (Stéphane Wirtel) in branch '2.7': bpo-30394: Fix a socket leak in smtplib.SMTP.__init__() (#1700) (#1788) https://github.com/python/cpython/commit/779e7c933e777270897b1e35fa9e5b12eee12af9

[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-05-24 Thread R. David Murray
R. David Murray added the comment: Pinging the issue is exactly what you needed to do :) As I said on the PR, I'm not set up to do backports yet so hopefully you or someone else will do those. -- stage: -> backport needed versions: +Python 3.5, Python 3.6, Python 3.7

[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-05-24 Thread Zachary Ware
Changes by Zachary Ware : -- pull_requests: +1876 ___ Python tracker ___ ___

[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-05-24 Thread Zachary Ware
Changes by Zachary Ware : -- pull_requests: +1875 ___ Python tracker ___ ___

[issue30447] test_capi.test_subinterps() fails on ARMv7 Ubuntu 3.x

2017-05-24 Thread Eric Snow
Changes by Eric Snow : -- pull_requests: +1874 ___ Python tracker ___ ___

[issue29102] Add an id field to PyInterpreterState.

2017-05-24 Thread Eric Snow
Eric Snow added the comment: Apparently it is PRId64. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue29102] Add an id field to PyInterpreterState.

2017-05-24 Thread Eric Snow
Eric Snow added the comment: (see issue30447) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-05-24 Thread R. David Murray
R. David Murray added the comment: New changeset a083c8ee6cb89ca573fe10c4c1922e2fa69ceaa3 by R. David Murray (jugglinmike) in branch 'master': bpo-30160: Clarify intended usage of wfile (gh-1300) https://github.com/python/cpython/commit/a083c8ee6cb89ca573fe10c4c1922e2fa69ceaa3 --

[issue30394] smtplib leaves open sockets around if SMTPConnectError is raised in __init__

2017-05-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset c3454f0e79b35fb81b0426cfac4b801d4495b8ea by Xiang Zhang (Stéphane Wirtel) in branch '3.6': bpo-30394: Fix a socket leak in smtplib.SMTP.__init__() (#1700) (#1790) https://github.com/python/cpython/commit/c3454f0e79b35fb81b0426cfac4b801d4495b8ea

[issue25571] Improve the lltrace feature with the Py_Debug mode

2017-05-24 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @haypo, you told me there is an alternative to my patch, provided by an other dev. what's the bpo issue for the alternative. -- ___ Python tracker

[issue30442] Skip test_xml_etree under coverage

2017-05-24 Thread Kushal Das
Kushal Das added the comment: New changeset 1de4705d00168afa8c5b6741af02e21fc609af58 by Kushal Das in branch 'master': bpo-30442: Skips refcount test in test_xml_etree under coverage (#1767) https://github.com/python/cpython/commit/1de4705d00168afa8c5b6741af02e21fc609af58 --

[issue30394] smtplib leaves open sockets around if SMTPConnectError is raised in __init__

2017-05-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset ebbefae14039aa86d4c8a7cfab8f2b5a3ef0d241 by Xiang Zhang (Stéphane Wirtel) in branch '3.5': bpo-30394: Fix a socket leak in smtplib.SMTP.__init__() (#1700) (#1789) https://github.com/python/cpython/commit/ebbefae14039aa86d4c8a7cfab8f2b5a3ef0d241

[issue30394] smtplib leaves open sockets around if SMTPConnectError is raised in __init__

2017-05-24 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue30460] file opened for updating cannot write after read

2017-05-24 Thread Jeremy Kloth
New submission from Jeremy Kloth: Attempting to append to an existing file fails with no error set: >>> import os, tempfile >>> fd, fn = tempfile.mkstemp() >>> os.write(fd, 'some text') 9 >>> os.close(fd) >>> with open(fn, 'r+') as f: ... f.read() ... f.write('more text') ... 'some

[issue30461] glob returns results in undeterministic order

2017-05-24 Thread Bernhard M. Wiedemann
New submission from Bernhard M. Wiedemann: because POSIX readdir does not guarantee any order glob often gives unexpectedly random results. Some background: for openSUSE Linux we build packages in the Open Build Service (OBS) which tracks dependencies, so when e.g. a new glibc is submitted, all

[issue28845] Clean up known issues for AIX

2017-05-24 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the patch! I'm going to decline backporting this; let's just focus on the future for this. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7, Python 3.5, Python 3.6

[issue30461] glob returns results in undeterministic order

2017-05-24 Thread Bernhard M. Wiedemann
Changes by Bernhard M. Wiedemann : -- pull_requests: +1877 ___ Python tracker ___ ___

[issue30362] Launcher add list and list with paths options

2017-05-24 Thread Steve Barnes
Steve Barnes added the comment: Note that the -0, --list, -0p & --list-path options will only be invoked if they are the only argument to py.exe this mirrors the original implementation of --help. -- ___ Python tracker

[issue28845] Clean up known issues for AIX

2017-05-24 Thread Zachary Ware
Zachary Ware added the comment: New changeset 7c2f82d158a19ec9ee6b7e259c243e1f06f0434f by Zachary Ware (Eric N. Vander Weele) in branch 'master': bpo-28845: Clean up known issues for AIX (GH-1670) https://github.com/python/cpython/commit/7c2f82d158a19ec9ee6b7e259c243e1f06f0434f --

[issue30436] importlib.find_spec raises AttributeError when parent is not a package/module

2017-05-24 Thread Brett Cannon
Brett Cannon added the comment: Here is why Python does when importing a module that lacks __path__: >>> import importlib >>> del importlib.__path__ >>> import importlib.util Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'importlib.util';

[issue30467] Propagate zipfile.py pypy issue #905 patch to CPython

2017-05-24 Thread Shubha Ramani
New submission from Shubha Ramani: PyPy had a longstanding issue : ZipFile.extractall is very slow compared to CPython 2.6 https://bitbucket.org/pypy/pypy/issues/905/zipfileextractall-is-very-slow-compared-to which has been fixed in the PyPy code base. The changes were entirely in zipfile.py

[issue12857] Expose called function on frame object

2017-05-24 Thread Mark Shannon
Mark Shannon added the comment: I'm not too keen on this. Which frame is being executed is an implementation detail. For example, we currently push a new frame for list comprehensions, but that is an implementation detail. The language only specifies that list-comps execute in a new scope.

[issue30463] Add __slots__ to ABC convenience class

2017-05-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: This seems reasonable. -- nosy: +rhettinger ___ Python tracker ___ ___

[issue16806] col_offset is -1 and lineno is wrong for multiline string expressions

2017-05-24 Thread Łukasz Langa
Changes by Łukasz Langa : -- pull_requests: +1890 ___ Python tracker ___ ___

[issue30368] [2.7] OpenSSL compilation fails on AMD64 Windows7 SP1 VS9.0 2.7

2017-05-24 Thread Jeremy Kloth
Jeremy Kloth added the comment: On my VM, ssltests pass, but both the Perl and non-Perl segfault in test_ssl (and many others). My VM has just VS2008 installed, does VS2010 come with an updated SDK? -- ___ Python tracker

[issue30469] Inconsistent Execution of Generic Descriptor Attributes

2017-05-24 Thread Eryk Sun
Eryk Sun added the comment: It looks like slot_tp_descr_get bypasses call_method in order to unset tp->tp_descr_get for descriptors that don't define __get__. I don't know where that's an issue. If a class doesn't define __get__, its tp_descr_get slot should already be NULL. That said, I

[issue30449] Improve __slots__ datamodel documentation

2017-05-24 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: -> patch review ___ Python tracker ___ ___

[issue30469] Inconsistent Execution of Generic Descriptor Attributes

2017-05-24 Thread Ryan Morshead
Ryan Morshead added the comment: Is there a reason that `call_method` is not used in `slot_tp_descr_get` -- ___ Python tracker ___

[issue30438] tarfile would fail to extract tarballs with files under R/O directories (twice)

2017-05-24 Thread Catherine Devlin
Catherine Devlin added the comment: Okay, the problem is a little more specific than my last message suggested, but also a little less specific than the original report. A "PermissionError: [Errno 13] Permission denied" is thrown when expanding a tarfile to which a file had been added more

[issue30438] tarfile would fail to extract tarballs with files under R/O directories (twice)

2017-05-24 Thread Catherine Devlin
Changes by Catherine Devlin : -- pull_requests: +1892 ___ Python tracker ___ ___

[issue12857] Expose called function on frame object

2017-05-24 Thread Nathaniel Smith
Nathaniel Smith added the comment: Certainly which frame is being executed is an implementation detail, and I can see an argument from that that we shouldn't have a frame introspection API at all... but we do have one, and it has some pretty important use cases, like traceback printing.

[issue30368] [2.7] OpenSSL compilation fails on AMD64 Windows7 SP1 VS9.0 2.7

2017-05-24 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- pull_requests: +1888 ___ Python tracker ___

[issue30466] Tutorial doesn't explain the use of classes

2017-05-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: This particular PR seems fine. I'll review it in more detail later. In general, the tutorial is intended to be a structured overview of the language rather than a how-to-program lesson. Concepts are usually linked to the glossary or external sources and

[issue30368] [2.7] OpenSSL compilation fails on AMD64 Windows7 SP1 VS9.0 2.7

2017-05-24 Thread Zachary Ware
Zachary Ware added the comment: I tried out PR1805 with Perl unavailable, and it seemed to build fine with `PC\VS9.0\build.bat -e -d -p x64`. However, trying `PC\VS9.0\amd64\python_d.exe -m test.ssltests` segfaults. Can you reproduce? -- ___

[issue30439] Expose the subinterpreters C-API in the stdlib.

2017-05-24 Thread Eric Snow
Changes by Eric Snow : -- pull_requests: +1885 ___ Python tracker ___ ___

[issue30460] file opened for updating cannot write after read

2017-05-24 Thread Eryk Sun
Eryk Sun added the comment: It might be simplest to close this as 3rd party since it's similar to bpo-29817. A workaround is to call f.seek(0, 1) to reset the stream state when switching between reading and writing. That said, a switch to writing at EOF should be supported. The problem is

[issue29102] Add an id field to PyInterpreterState.

2017-05-24 Thread Eric Snow
Eric Snow added the comment: I've fixed the compiler warning via d1c3c13fedaf62b71445ccd048e395aa4a7d510f. -- status: open -> closed ___ Python tracker

[issue30466] Tutorial doesn't explain the use of classes

2017-05-24 Thread Trey Hunner
Changes by Trey Hunner : -- pull_requests: +1887 ___ Python tracker ___ ___

[issue30447] test_capi.test_subinterps() fails on ARMv7 Ubuntu 3.x

2017-05-24 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30449] Improve __slots__ datamodel documentation

2017-05-24 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1889 ___ Python tracker ___

[issue30451] parse windows path error in webbrowser.get() and lead to webbrowser.Error: could not locate runnable browser

2017-05-24 Thread chainly
Changes by chainly <1258626...@qq.com>: -- pull_requests: +1891 ___ Python tracker ___ ___ Python-bugs-list

[issue12857] Expose called function on frame object

2017-05-24 Thread Yury Selivanov
Yury Selivanov added the comment: > I don't see a better way to handle my (admittedly a bit weird) control-C case > within the interpreter I'm not sure I understand how `f_func` would help to better handle Control-C in Trio. Nathaniel, could you please elaborate on that? --

[issue30464] gammavariate has a wrong comment

2017-05-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +mark.dickinson, rhettinger ___ Python tracker ___

[issue30449] Improve __slots__ datamodel documentation

2017-05-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: As much as possible, please stick with the existing terse style of the data model docs. They tend to be concise, direct, and very light on examples. They don't serve as a tutorial, faq, or cover programming patterns or advice. Looking at the PR, I don't

[issue30467] Propagate zipfile.py pypy issue #905 patch to CPython 2.7

2017-05-24 Thread Shubha Ramani
Changes by Shubha Ramani : -- title: Propagate zipfile.py pypy issue #905 patch to CPython -> Propagate zipfile.py pypy issue #905 patch to CPython 2.7 ___ Python tracker

[issue30461] glob returns results in undeterministic order

2017-05-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue30465] FormattedValue expressions have wrong lineno and col_offset information

2017-05-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for adding so many tests. -- nosy: +rhettinger ___ Python tracker ___

[issue30468] Propagate zipfile.py pypy issue #905 patch to CPython 3.7

2017-05-24 Thread Shubha Ramani
New submission from Shubha Ramani: PyPy had a longstanding issue : ZipFile.extractall is very slow compared to CPython 2.6 https://bitbucket.org/pypy/pypy/issues/905/zipfileextractall-is-very-slow-compared-to which has been fixed in the PyPy code base. The changes were entirely in zipfile.py

[issue30439] Expose the subinterpreters C-API in the stdlib.

2017-05-24 Thread Eric Snow
Changes by Eric Snow : -- pull_requests: +1886 ___ Python tracker ___ ___

[issue29988] (async) with blocks and try/finally are not as KeyboardInterrupt-safe as one might like

2017-05-24 Thread Nathaniel Smith
Nathaniel Smith added the comment: On further thought, I think the way I'd write a test for this is: (1) add a testing primitive that waits for N instructions and then injects a SIGINT. Probably this would require tweaking the definition of Py_MakePendingCalls like I described in my previous

[issue30470] Deprecate invalid ctypes call protection on Windows

2017-05-24 Thread Mariatta Wijaya
New submission from Mariatta Wijaya: It was proposed by Steve Dower by email to python-dev: https://mail.python.org/pipermail/python-dev/2017-May/147959.html It should be deprecated in Python 3.6.2 and removed in 3.7.0 -- assignee: docs@python components: Documentation, ctypes

[issue30462] urllib does not support NO_PROXY environment variable containing domain with asterisk

2017-05-24 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1894 ___ Python tracker ___

[issue30470] Deprecate invalid ctypes call protection on Windows

2017-05-24 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1895 ___ Python tracker ___ ___

[issue12857] Expose called function on frame object

2017-05-24 Thread Yury Selivanov
Yury Selivanov added the comment: > Sure. The issue is that I need to mark certain frames as "protected" from > KeyboardInterrupt, in a way that my signal handler can see when walking the > frame stack, so it can decide whether to raise a KeyboardInterrupt > immediately or to wait until a

[issue12857] Expose called function on frame object

2017-05-24 Thread Nathaniel Smith
Nathaniel Smith added the comment: > I'm not sure I understand how `f_func` would help to better handle Control-C > in Trio. Nathaniel, could you please elaborate on that? Sure. The issue is that I need to mark certain frames as "protected" from KeyboardInterrupt, in a way that my signal

[issue30178] Indent methods and attributes of MimeTypes class

2017-05-24 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- pull_requests: +1884 ___ Python tracker ___ ___

[issue30469] Inconsistent Execution of Generic Descriptor Attributes

2017-05-24 Thread Ryan Morshead
New submission from Ryan Morshead: When the `__get__`, `__set__`, or `__delete__` attribute of a descriptor is not a method, and is instead a generic callable, the first argument of that callable is inconsistent: class Callable(object): def __call__(self, first, *args,

[issue30447] test_capi.test_subinterps() fails on ARMv7 Ubuntu 3.x

2017-05-24 Thread Eric Snow
Eric Snow added the comment: New changeset d1c3c13fedaf62b71445ccd048e395aa4a7d510f by Eric Snow in branch 'master': bpo-30447: Fix/skip the subinterpreters test on some platforms. (#1791) https://github.com/python/cpython/commit/d1c3c13fedaf62b71445ccd048e395aa4a7d510f --

[issue30466] Tutorial doesn't explain the use of classes

2017-05-24 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: -> patch review ___ Python tracker ___ ___

[issue30368] [2.7] OpenSSL compilation fails on AMD64 Windows7 SP1 VS9.0 2.7

2017-05-24 Thread Jeremy Kloth
Jeremy Kloth added the comment: Submitted PR-1805 that should restore perl-less building. Also some open issues as noted in the PR. -- ___ Python tracker

[issue30459] PyList_SET_ITEM could be safer

2017-05-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: The docs do make the claim of returning void: https://docs.python.org/3/c-api/list.html#c.PyList_SET_ITEM However, I think we should change the docs rather than changing the macro. This macro is very old and very widely used. Changing it is likely to

[issue30449] Improve __slots__ datamodel documentation

2017-05-24 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- versions: +Python 3.5 ___ Python tracker ___ ___

  1   2   >