[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: New changeset 07244a83014fad42da937c17d98474b47a570bf7 by Gregory P. Smith in branch 'master': bpo-9146: Raise a ValueError if OpenSSL fails to init a hash func. (#1777) https://github.com/python/cpython/commit/07244a83014fad42da937c17d98474b47a570bf7 -

[issue14111] IDLE Debugger should handle interrupts

2017-05-24 Thread Louie Lu
Louie Lu added the comment: The reproduce step can be reduce to: 1. open idlelib with debugger (./python -m idlelib -d) 2. enter print() (or any other function call) 3. Control-C breakout Then it will restart the shell. -- nosy: +louielu ___ Python

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

2017-05-24 Thread STINNER Victor
STINNER Victor added the comment: Gregory P. Smith added the comment: Would PyThread_free_lock (effectively sem_destroy()) work without (additional) problems? If I recall correctly, no, you can get issues if the lock is still acquired... But I should check. --

[issue28707] add 'directory' option to the http.server module

2017-05-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset a17a2f52c4c3b37414da95a152fc8669978c7c83 by Victor Stinner (Stéphane Wirtel) in branch 'master': bpo-28707: Add the directory parameter to http.server.SimpleHTTPRequestHandler and http.server module (#1776) https://github.com/python/cpython/commi

[issue30150] raw debug allocators to not return malloc alignment

2017-05-24 Thread Julian Taylor
Julian Taylor added the comment: The largest type is usually the long double. Its alignment ranges from 4 bytes (i386) to 16 bytes (sparc). So Py_MAX (sizeof (size_t), 8) should indeed do it. -- ___ Python tracker

[issue28707] add 'directory' option to the http.server module

2017-05-24 Thread STINNER Victor
STINNER Victor added the comment: Patch merged. Thanks Stéphane and Julien! Especially because writing the unit test was much more painful than I expected, but it's really worth it! -- ___ Python tracker _

[issue28707] add 'directory' option to the http.server module

2017-05-24 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue30452] xml.etree sourcecode bug

2017-05-24 Thread Zoltan Baksa
New submission from Zoltan Baksa: Hi, I used before an XML merger script with 2.7 version, which was running fine. After my Anaconda was updated by SCCM to version 3.6 the same script fails and reports the following traceback: File "C:\Program Files\Anaconda3\lib\xml\etree\ElementTree.py", lin

[issue30353] ctypes: pass by value for structs broken on Cygwin/MinGW 64-bit

2017-05-24 Thread Iryna Shcherbina
Iryna Shcherbina added the comment: Thank you, Erik. I have applied your new patch, and ran another build on arm64. The tests passed. Attaching the build log for more information. -- Added file: http://bugs.python.org/file46892/arm64_build_log.txt __

[issue30353] ctypes: pass by value for structs broken on Cygwin/MinGW 64-bit

2017-05-24 Thread Erik Bray
Erik Bray added the comment: Thanks for checking! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

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

[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 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" for

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

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

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

[issue25430] speed up ipaddress __contain__ method

2017-05-24 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1866 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[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 -I/orac

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

[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) https://github.com/python/cpython/commit/c471ca448cf336d7eb4a7cbe14d0012b

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

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

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

[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. -- ___ Py

[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

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

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: https

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

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

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

[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

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

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

[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 list Unsubscribe: https://m

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

[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 mailing list Unsubscribe: https://mail.pyth

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

[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 urllib.urlopen('http://127.0.0.1\r\n\x2

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

[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 { (((Py

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

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

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

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[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: +1870 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[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: +1871 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[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 mailing list Unsubscribe: https://mail.pytho

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

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

[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

[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 list Unsubscribe: https:

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[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 Unsubscribe: https://mail.p

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

[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

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

[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-05-24 Thread Zachary Ware
Changes by Zachary Ware : -- pull_requests: +1876 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-05-24 Thread Zachary Ware
Changes by Zachary Ware : -- pull_requests: +1875 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

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

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

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

[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

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

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: http

[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'; 'importl

[issue9938] Documentation for argparse interactive use

2017-05-24 Thread Sourav Singh
Sourav Singh added the comment: I would like to send a patch for the issue. How do I start -- nosy: +Sourav Singh ___ Python tracker ___ __

[issue20265] Bring Windows docs up to date

2017-05-24 Thread Sourav Singh
Sourav Singh added the comment: The issue is beileve is fixed now. -- nosy: +Sourav Singh ___ Python tracker ___ ___ Python-bugs-list

[issue18859] README.valgrind should mention --with-valgrind

2017-05-24 Thread Sourav Singh
Sourav Singh added the comment: Is the issue fixed? -- nosy: +Sourav Singh ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue30304] TestCase.assertMultiLineEqual only registered for Unicode strings in 2.7

2017-05-24 Thread Sourav Singh
Sourav Singh added the comment: @Martin I would like to take a stab at the issue. How do I start? -- nosy: +Sourav Singh ___ Python tracker ___ __

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

2017-05-24 Thread Jiri Hnidek
New submission from Jiri Hnidek: Module urllib contains method proxy_bypass_environment(domain_name). This method check if domain_name should be excluded from proxying. The domain_name is checked against environment variable no_proxy or NO_PROXY. This variable contains comma separated list of

[issue30463] Add __slots__ to ABC convenience class

2017-05-24 Thread Aaron Hall
New submission from Aaron Hall: We have __slots__ with other ABC's, see http://bugs.python.org/issue11333 and http://bugs.python.org/issue21421. There are no downsides to having empty slots on a non-instantiable class, but it does give the option of denying __dict__ creation for subclassers.

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

2017-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'll apply to 3.6 the same patch as for 3.5 tomorrow. -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___

[issue12345] Add math.tau

2017-05-24 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1878 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30461] glob returns results in undeterministic order

2017-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks as a duplicate of issue21748. That behavior was explicitly documented in issue25615. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue28647] python --help: -u is misdocumented as binary mode

2017-05-24 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- pull_requests: +1879 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-05-24 Thread Zachary Ware
Zachary Ware added the comment: New changeset a2a9984a278d2ee945e91ce13e000e571794fc24 by Zachary Ware in branch '3.6': [3.6] bpo-30160: Clarify intended usage of wfile (gh-1300) (GH-1793) https://github.com/python/cpython/commit/a2a9984a278d2ee945e91ce13e000e571794fc24 -- nosy: +zach

[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-05-24 Thread Zachary Ware
Zachary Ware added the comment: New changeset aa27f0e94f4d9c5ef589984dc2b32d856e8e038f by Zachary Ware in branch '3.5': [3.5] bpo-30160: Clarify intended usage of wfile (gh-1300) (GH-1792) https://github.com/python/cpython/commit/aa27f0e94f4d9c5ef589984dc2b32d856e8e038f -- __

[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-05-24 Thread Zachary Ware
Zachary Ware added the comment: Backported. Thanks for the patch, Mike! -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker ___

[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-05-24 Thread Mike
Mike added the comment: My pleasure. And thank you for backporting on my behalf :) -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue28647] python --help: -u is misdocumented as binary mode

2017-05-24 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- pull_requests: +1880 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30445] test_traceback fails in coverage run

2017-05-24 Thread Zachary Ware
New submission from Zachary Ware: New changeset 3480ef9dd3177be8c0d71a74853dca6e5b11fbe1 by Zachary Ware (codedragon) in branch 'master': bpo-30445: Allow appended output in RecursionError message https://github.com/python/cpython/commit/3480ef9dd3177be8c0d71a74853dca6e5b11fbe1 -- _

[issue30445] test_traceback fails in coverage run

2017-05-24 Thread Zachary Ware
Zachary Ware added the comment: Merged, thanks for the patch! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

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

2017-05-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: The environ class could have its own lock and then the __iter__ method could be rewritten as follows: def __iter__(self): with self._lock: keys = list(self._data) for key in keys: yield self.decodekey(key) --

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

2017-05-24 Thread Mark Shannon
Mark Shannon added the comment: If all you need is that with foo: pass guarantees that either both or neither of __enter__ and __exit__ are called, for C context managers, and only C context managers, then the fix is trivial. To protect Python code would need a custom context manager wrapp

[issue30414] multiprocesing.Queue silently ignore messages after exc in _feeder

2017-05-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can you expand on which exceptions you are getting in the feeder thread? -- nosy: +pitrou ___ Python tracker ___ ___

[issue30414] multiprocesing.Queue silently ignore messages after exc in _feeder

2017-05-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue28647] python --help: -u is misdocumented as binary mode

2017-05-24 Thread Armin Rigo
Changes by Armin Rigo : -- nosy: -arigo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue30414] multiprocesing.Queue silently ignore messages after exc in _feeder

2017-05-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Nevermind, I saw the PR and the test case. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2017-05-24 Thread Mark Shannon
Mark Shannon added the comment: Nathaniel, Do you have any way to reliably test for this failure mode? -- ___ Python tracker ___ ___

[issue30464] gammavariate has a wrong comment

2017-05-24 Thread Leonardo De Marchi
New submission from Leonardo De Marchi: The gammavariate function in random.py has a wrong comment. It says that when alpha is one it's equivalent to call expovariate(1). We can see that is not true (see graphs) and it should be expovariate(1/beta). It's not a big deal but it can cause confusi

[issue30404] Make stdout and stderr truly unbuffered when using -u option

2017-05-24 Thread Berker Peksag
Changes by Berker Peksag : -- pull_requests: +1881 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[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: > If all you need is that with foo: pass guarantees that either both or neither > of __enter__ and __exit__ are called, for C context managers, and only C > context managers, then the fix is trivial. It would be nice to have it for 'async with foo: pass' as w

[issue29851] Have importlib.reload() raise ModuleNotFoundError when a spec can't be found

2017-05-24 Thread Brett Cannon
Brett Cannon added the comment: New changeset 94987826e89e8a89c20f081e18be33fc840e6203 by Brett Cannon (Garvit Khatri) in branch 'master': bpo-29851: Have importlib.reload() raise ImportError if the module's spec is not found (GH-972) https://github.com/python/cpython/commit/94987826e89e8a89c2

[issue29851] Have importlib.reload() raise ModuleNotFoundError when a spec can't be found

2017-05-24 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-l

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

2017-05-24 Thread Osvaldo Santana Neto
Osvaldo Santana Neto added the comment: This patch implements a lock protection (as suggested by Antoine) using `_thread.allocate_lock()` module (instead of `threading.Lock()`) due to the fact that CPython interpreter already imports `_thread` module during its bootstrap process. -- A

  1   2   >