From report at bugs.python.org Fri Jun 1 01:11:49 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 01 Jun 2018 05:11:49 +0000 Subject: [issue33727] Server.wait_closed() doesn't always wait for its transports to fihish Message-ID: <1527829909.37.0.682650639539.issue33727@psf.upfronthosting.co.za> New submission from Yury Selivanov : Server.wait_closed() currently does two checks: 1. if _sockets is None -- means that Server.close() was called 2. if self._waiters is None -- means that Server._wakeup() was called if (1) *or* (2) is true, wait_closed() just returns without waiting on anything. However, when Server.close() is called there might be still active transports serving requests. Server.wait_closed() should wait until all of them are detached, even if Server._sockets is already reset. So the below implementation: async def wait_closed(self): if self._sockets is None or self._waiters is None: return waiter = self._loop.create_future() self._waiters.append(waiter) await waiter should be changed to: async def wait_closed(self): if self._waiters is None: assert self._active_count == 0 return waiter = self._loop.create_future() self._waiters.append(waiter) await waiter ---------- components: asyncio messages: 318360 nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Server.wait_closed() doesn't always wait for its transports to fihish versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 01:51:16 2018 From: report at bugs.python.org (Ronald Oussoren) Date: Fri, 01 Jun 2018 05:51:16 +0000 Subject: [issue33725] High Sierra hang when using multi-processing In-Reply-To: <1527814386.62.0.682650639539.issue33725@psf.upfronthosting.co.za> Message-ID: <1527832276.41.0.682650639539.issue33725@psf.upfronthosting.co.za> Ronald Oussoren added the comment: A better solution is to avoid using fork mode for multiprocessing. The spawn and fork server modes should work fine. The underlying problem is that macOS system frameworks (basically anything higher level than libc) are not save wrt fork(2) and fixing that appears to have no priority at all at Apple. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 02:21:44 2018 From: report at bugs.python.org (INADA Naoki) Date: Fri, 01 Jun 2018 06:21:44 +0000 Subject: [issue33597] Compact PyGC_Head In-Reply-To: <1526972782.65.0.682650639539.issue33597@psf.upfronthosting.co.za> Message-ID: <1527834104.88.0.682650639539.issue33597@psf.upfronthosting.co.za> INADA Naoki added the comment: Oops, this optimization broke trace module. I reverted a part of the optimization. Current benchmark is: $ ./python-patched -m perf timeit --compare-to ./python-master -s "import gc, doctest, ftplib, asyncio, email, http.client, pydoc, pdb, fractions, decimal, difflib, textwrap, statistics, shutil, shelve, lzma, concurrent.futures, telnetlib, smtpd, trace, distutils, pkgutil, tabnanny, pickletools, dis, argparse" "gc.collect()" python-master: ..................... 1.63 ms +- 0.04 ms python-patched: ..................... 1.64 ms +- 0.01 ms Mean +- std dev: [python-master] 1.63 ms +- 0.04 ms -> [python-patched] 1.64 ms +- 0.01 ms: 1.01x slower (+1%) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 02:38:59 2018 From: report at bugs.python.org (Valentin Zhao) Date: Fri, 01 Jun 2018 06:38:59 +0000 Subject: [issue33692] Chinese characters issue with input() function In-Reply-To: <1527673001.64.0.682650639539.issue33692@psf.upfronthosting.co.za> Message-ID: <1527835139.64.0.682650639539.issue33692@psf.upfronthosting.co.za> Valentin Zhao added the comment: Hey there! I saw your pull requests to python3.6 and have been merged, so what should we do now? Just update the python to higher a version? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 02:48:48 2018 From: report at bugs.python.org (Feng) Date: Fri, 01 Jun 2018 06:48:48 +0000 Subject: [issue33728] pandas.to_records can not be saved by numpy.savez Message-ID: <1527835728.74.0.682650639539.issue33728@psf.upfronthosting.co.za> New submission from Feng : my first time to report a bug here. But it is so annoying, I have to report it. Here is the demonstration of the errors I encounter: >>> import numpy as np >>> import pandas as pd >>> np.__version__ '1.14.3' >>> pd.__version__ u'0.23.0' >>> df=pd.DataFrame({'a':range(10)}) >>> df['b']='abc' >>> df a b 0 0 abc 1 1 abc 2 2 abc 3 3 abc 4 4 abc 5 5 abc 6 6 abc 7 7 abc 8 8 abc 9 9 abc >>> np.savez_compressed('abc',data=df.to_records(index=False)) >>> a=np.load('abc.npz') >>> a.keys() ['data'] >>> a['data'] Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python2.7/site-packages/numpy/lib/npyio.py", line 235, in __getitem__ pickle_kwargs=self.pickle_kwargs) File "/usr/lib64/python2.7/site-packages/numpy/lib/format.py", line 635, in read_array shape, fortran_order, dtype = _read_array_header(fp, version) File "/usr/lib64/python2.7/site-packages/numpy/lib/format.py", line 523, in _read_array_header raise ValueError(msg % (d['descr'],)) ValueError: descr is not a valid dtype descriptor: [(u'a', ' _______________________________________ From report at bugs.python.org Fri Jun 1 02:51:13 2018 From: report at bugs.python.org (Steven D'Aprano) Date: Fri, 01 Jun 2018 06:51:13 +0000 Subject: [issue33728] pandas.to_records can not be saved by numpy.savez In-Reply-To: <1527835728.74.0.682650639539.issue33728@psf.upfronthosting.co.za> Message-ID: <1527835873.74.0.682650639539.issue33728@psf.upfronthosting.co.za> Steven D'Aprano added the comment: Sorry, this tracker is for the interpreter and standard library. For bugs in third party code like numpy and pandas, you will have to report it on their own bug trackers. ---------- nosy: +steven.daprano resolution: -> third party stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 03:03:26 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Fri, 01 Jun 2018 07:03:26 +0000 Subject: [issue33597] Compact PyGC_Head In-Reply-To: <1526972782.65.0.682650639539.issue33597@psf.upfronthosting.co.za> Message-ID: <1527836606.73.0.682650639539.issue33597@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: There are also problems with func_name and func_qualname. func_name can be an instance of the str subtype and has __dict__. func_qualname seems can be of any type. Even if they would be exact strings, excluding them from tp_traverse will break functions that calculate the total size of the memory consumed by the specified set of objects by calling sys.getsizeof() recursively. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 03:08:55 2018 From: report at bugs.python.org (INADA Naoki) Date: Fri, 01 Jun 2018 07:08:55 +0000 Subject: [issue33597] Compact PyGC_Head In-Reply-To: <1526972782.65.0.682650639539.issue33597@psf.upfronthosting.co.za> Message-ID: <1527836935.32.0.682650639539.issue33597@psf.upfronthosting.co.za> INADA Naoki added the comment: You're right. I'll revert the optimization completely... ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 03:16:46 2018 From: report at bugs.python.org (Vinay Sajip) Date: Fri, 01 Jun 2018 07:16:46 +0000 Subject: [issue33606] Improve logging performance when logger disabled In-Reply-To: <1527016559.5.0.682650639539.issue33606@psf.upfronthosting.co.za> Message-ID: <1527837406.66.0.682650639539.issue33606@psf.upfronthosting.co.za> Vinay Sajip added the comment: The check in handle() should remain, because there are some scenarios where handle is called directly (e.g. when receiving events over a socket and dispatching to handlers). So the change would just be to add an additional check in isEnabledFor(). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 03:22:30 2018 From: report at bugs.python.org (Tobias Kunze) Date: Fri, 01 Jun 2018 07:22:30 +0000 Subject: [issue27902] pstats.Stats: strip_dirs() method cannot handle file paths from different OS In-Reply-To: <1472590175.77.0.992836532809.issue27902@psf.upfronthosting.co.za> Message-ID: <1527837750.84.0.682650639539.issue27902@psf.upfronthosting.co.za> Change by Tobias Kunze : ---------- keywords: +patch pull_requests: +6924 stage: needs patch -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 03:29:48 2018 From: report at bugs.python.org (Vinay Sajip) Date: Fri, 01 Jun 2018 07:29:48 +0000 Subject: [issue33606] Improve logging performance when logger disabled In-Reply-To: <1527016559.5.0.682650639539.issue33606@psf.upfronthosting.co.za> Message-ID: <1527838188.81.0.682650639539.issue33606@psf.upfronthosting.co.za> Vinay Sajip added the comment: New changeset 6e3ca645e71dd021fead5a70dc06d9b663612e3a by Vinay Sajip (Timo Furrer) in branch 'master': bpo-33606: improve logging performance when logger is disabled (GH-7285) https://github.com/python/cpython/commit/6e3ca645e71dd021fead5a70dc06d9b663612e3a ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 03:32:21 2018 From: report at bugs.python.org (Vinay Sajip) Date: Fri, 01 Jun 2018 07:32:21 +0000 Subject: [issue33606] Improve logging performance when logger disabled In-Reply-To: <1527016559.5.0.682650639539.issue33606@psf.upfronthosting.co.za> Message-ID: <1527838341.35.0.682650639539.issue33606@psf.upfronthosting.co.za> Change by Vinay Sajip : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 03:49:06 2018 From: report at bugs.python.org (Vinay Sajip) Date: Fri, 01 Jun 2018 07:49:06 +0000 Subject: [issue32519] venv API docs - symlinks default incorrect In-Reply-To: <1515423516.58.0.467229070634.issue32519@psf.upfronthosting.co.za> Message-ID: <1527839346.8.0.682650639539.issue32519@psf.upfronthosting.co.za> Change by Vinay Sajip : ---------- keywords: +patch pull_requests: +6925 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 04:09:12 2018 From: report at bugs.python.org (Vinay Sajip) Date: Fri, 01 Jun 2018 08:09:12 +0000 Subject: [issue33400] logging.Formatter does not default to ISO8601 date format In-Reply-To: <1525203444.89.0.682650639539.issue33400@psf.upfronthosting.co.za> Message-ID: <1527840552.3.0.682650639539.issue33400@psf.upfronthosting.co.za> Change by Vinay Sajip : ---------- pull_requests: +6926 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 04:36:11 2018 From: report at bugs.python.org (Juuso Lehtivarjo) Date: Fri, 01 Jun 2018 08:36:11 +0000 Subject: [issue33729] Hashlib/blake2* missing 'data' keyword argument Message-ID: <1527842171.52.0.682650639539.issue33729@psf.upfronthosting.co.za> New submission from Juuso Lehtivarjo : In python 3.6.5: hashlib blake2b/blake2s constructors do not recognize 'data' keyword. Try the following: from hashlib import blake2b print (blake2b(b"foobar").hexdigest()) # works print (blake2b(data=b"foobar").hexdigest()) # TypeError: 'data' is an invalid keyword argument for this function ---------- messages: 318370 nosy: Juuso Lehtivarjo priority: normal severity: normal status: open title: Hashlib/blake2* missing 'data' keyword argument type: crash versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:03:59 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 09:03:59 +0000 Subject: [issue33692] Chinese characters issue with input() function In-Reply-To: <1527673001.64.0.682650639539.issue33692@psf.upfronthosting.co.za> Message-ID: <1527843839.31.0.682650639539.issue33692@psf.upfronthosting.co.za> STINNER Victor added the comment: > Hey there! I saw your pull requests to python3.6 and have been merged, so what should we do now? Just update the python to higher a version? Oh. My changes are just to add debug traces in the "python3 -m test.pythoninfo" command which is used on buildbots, Travis CI and AppVeyor to ease debug when a test fails. It's not a fix. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:04:38 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 09:04:38 +0000 Subject: [issue33692] Chinese characters issue with input() function In-Reply-To: <1527673001.64.0.682650639539.issue33692@psf.upfronthosting.co.za> Message-ID: <1527843878.23.0.682650639539.issue33692@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset ef634b5b26f14d942768069fa23f9791a06ff37e by Victor Stinner in branch 'master': bpo-33692: pythoninfo detect libedit on Python 3.6 (GH-7293) https://github.com/python/cpython/commit/ef634b5b26f14d942768069fa23f9791a06ff37e ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:04:48 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 09:04:48 +0000 Subject: [issue33718] Enhance regrtest: meta-ticket for multiple changes In-Reply-To: <1527775539.21.0.682650639539.issue33718@psf.upfronthosting.co.za> Message-ID: <1527843888.01.0.682650639539.issue33718@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 7ad16eb51c7871320edb789ddb6184c6c76304b0 by Victor Stinner in branch 'master': bpo-33718: regrtest: enhance "running:" formatting (GH-7292) https://github.com/python/cpython/commit/7ad16eb51c7871320edb789ddb6184c6c76304b0 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:08:36 2018 From: report at bugs.python.org (Vinay Sajip) Date: Fri, 01 Jun 2018 09:08:36 +0000 Subject: [issue32519] venv API docs - symlinks default incorrect In-Reply-To: <1515423516.58.0.467229070634.issue32519@psf.upfronthosting.co.za> Message-ID: <1527844116.33.0.682650639539.issue32519@psf.upfronthosting.co.za> Vinay Sajip added the comment: New changeset c0d341d49b3ffc8b0037e501c246271be9c69f55 by Vinay Sajip in branch 'master': bpo-32519: Removed misleading sentence from EnvBuilder documentation. (GH-7296) https://github.com/python/cpython/commit/c0d341d49b3ffc8b0037e501c246271be9c69f55 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:09:24 2018 From: report at bugs.python.org (Vinay Sajip) Date: Fri, 01 Jun 2018 09:09:24 +0000 Subject: [issue33400] logging.Formatter does not default to ISO8601 date format In-Reply-To: <1525203444.89.0.682650639539.issue33400@psf.upfronthosting.co.za> Message-ID: <1527844164.12.0.682650639539.issue33400@psf.upfronthosting.co.za> Vinay Sajip added the comment: New changeset 23cee80cfade1a9019c52b3a17d8e5c1b5db17e2 by Vinay Sajip in branch 'master': bpo-33400: Removed references to RFC3339 and ISO8601 from the logging documentation. (GH-7297) https://github.com/python/cpython/commit/23cee80cfade1a9019c52b3a17d8e5c1b5db17e2 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:09:30 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 09:09:30 +0000 Subject: [issue33692] Chinese characters issue with input() function In-Reply-To: <1527673001.64.0.682650639539.issue33692@psf.upfronthosting.co.za> Message-ID: <1527844170.55.0.682650639539.issue33692@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +6927 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:09:30 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 09:09:30 +0000 Subject: [issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes In-Reply-To: <1527774159.9.0.682650639539.issue33717@psf.upfronthosting.co.za> Message-ID: <1527844170.66.0.0935424498089.issue33717@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +6928 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:10:46 2018 From: report at bugs.python.org (Vinay Sajip) Date: Fri, 01 Jun 2018 09:10:46 +0000 Subject: [issue33400] logging.Formatter does not default to ISO8601 date format In-Reply-To: <1525203444.89.0.682650639539.issue33400@psf.upfronthosting.co.za> Message-ID: <1527844246.18.0.682650639539.issue33400@psf.upfronthosting.co.za> Change by Vinay Sajip : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:11:19 2018 From: report at bugs.python.org (Vinay Sajip) Date: Fri, 01 Jun 2018 09:11:19 +0000 Subject: [issue32519] venv API docs - symlinks default incorrect In-Reply-To: <1515423516.58.0.467229070634.issue32519@psf.upfronthosting.co.za> Message-ID: <1527844279.61.0.682650639539.issue32519@psf.upfronthosting.co.za> Change by Vinay Sajip : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:12:04 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 01 Jun 2018 09:12:04 +0000 Subject: [issue32519] venv API docs - symlinks default incorrect In-Reply-To: <1515423516.58.0.467229070634.issue32519@psf.upfronthosting.co.za> Message-ID: <1527844324.74.0.682650639539.issue32519@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6929 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:13:06 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 01 Jun 2018 09:13:06 +0000 Subject: [issue32519] venv API docs - symlinks default incorrect In-Reply-To: <1515423516.58.0.467229070634.issue32519@psf.upfronthosting.co.za> Message-ID: <1527844386.22.0.682650639539.issue32519@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6930 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:13:16 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 09:13:16 +0000 Subject: [issue33692] Chinese characters issue with input() function In-Reply-To: <1527673001.64.0.682650639539.issue33692@psf.upfronthosting.co.za> Message-ID: <1527844396.66.0.682650639539.issue33692@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +6931 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:13:16 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 09:13:16 +0000 Subject: [issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes In-Reply-To: <1527774159.9.0.682650639539.issue33717@psf.upfronthosting.co.za> Message-ID: <1527844396.78.0.0935424498089.issue33717@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +6932 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:14:00 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 01 Jun 2018 09:14:00 +0000 Subject: [issue33400] logging.Formatter does not default to ISO8601 date format In-Reply-To: <1525203444.89.0.682650639539.issue33400@psf.upfronthosting.co.za> Message-ID: <1527844440.9.0.682650639539.issue33400@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6933 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:15:00 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 01 Jun 2018 09:15:00 +0000 Subject: [issue33400] logging.Formatter does not default to ISO8601 date format In-Reply-To: <1525203444.89.0.682650639539.issue33400@psf.upfronthosting.co.za> Message-ID: <1527844500.35.0.682650639539.issue33400@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6934 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:20:30 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 09:20:30 +0000 Subject: [issue33692] Chinese characters issue with input() function In-Reply-To: <1527673001.64.0.682650639539.issue33692@psf.upfronthosting.co.za> Message-ID: <1527844830.95.0.682650639539.issue33692@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +6935 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:20:31 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 09:20:31 +0000 Subject: [issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes In-Reply-To: <1527774159.9.0.682650639539.issue33717@psf.upfronthosting.co.za> Message-ID: <1527844831.05.0.0935424498089.issue33717@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +6936 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:24:03 2018 From: report at bugs.python.org (Eric V. Smith) Date: Fri, 01 Jun 2018 09:24:03 +0000 Subject: [issue33721] os.path.exists() ought to return False if pathname contains NUL In-Reply-To: <1527787165.92.0.682650639539.issue33721@psf.upfronthosting.co.za> Message-ID: <1527845043.52.0.682650639539.issue33721@psf.upfronthosting.co.za> Eric V. Smith added the comment: To be clear: os.path.exists('a\x00b') raises ValueError on both Windows and Linux. I think we should just document this behavior and not change it. ---------- nosy: +eric.smith _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:24:36 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 09:24:36 +0000 Subject: [issue33718] Enhance regrtest: meta-ticket for multiple changes In-Reply-To: <1527775539.21.0.682650639539.issue33718@psf.upfronthosting.co.za> Message-ID: <1527845076.83.0.682650639539.issue33718@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +6937 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:47:26 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Fri, 01 Jun 2018 09:47:26 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527846446.95.0.682650639539.issue30654@psf.upfronthosting.co.za> Antoine Pitrou added the comment: New changeset e905c84494526363086f66a979e317e155bf9536 by Antoine Pitrou (pkerling) in branch 'master': bpo-30654: Do not reset SIGINT handler to SIG_DFL in finisignal (GH-7146) https://github.com/python/cpython/commit/e905c84494526363086f66a979e317e155bf9536 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:48:28 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 01 Jun 2018 09:48:28 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527846508.58.0.682650639539.issue30654@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6938 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:49:27 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 01 Jun 2018 09:49:27 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527846567.88.0.682650639539.issue30654@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6939 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:49:56 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Fri, 01 Jun 2018 09:49:56 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527846596.65.0.682650639539.issue30654@psf.upfronthosting.co.za> Change by Antoine Pitrou : ---------- versions: +Python 3.8 -Python 2.7, Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:50:26 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Fri, 01 Jun 2018 09:50:26 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527846626.6.0.682650639539.issue30654@psf.upfronthosting.co.za> Antoine Pitrou added the comment: I'd rather not backport this to 2.7 as it's quite late in the maintenance cycle and I'd like to avoid any regressions there. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:53:46 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 09:53:46 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527846826.17.0.682650639539.issue30654@psf.upfronthosting.co.za> STINNER Victor added the comment: > I'd rather not backport this to 2.7 as it's quite late in the maintenance cycle and I'd like to avoid any regressions there. Since it's a subtle behavior change and the PR doesn't add a flag to opt-in for the old behaviour, I'm not sure about backporting the change (to 3.6 or 3.7). For 3.7, we are very close to the final release. It doesn't give much time to users to test the new behavior :-( I would suggest to keep the old behavior in Python 3.7 as well. To be honest, I don't understand well the change. So I'm not confortable with it. I understand that Py_Initialize() + Py_Finalize() restored the SIGINT handler, but now Python *always* sets SIGINT to SIG_DFL in Py_Finalize(). So if an application has its own signal handler, Python replaces it... But embedded Python also gives the choice of not setting Python signal handlers in Py_Initialize(). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:55:14 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Fri, 01 Jun 2018 09:55:14 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527846914.13.0.682650639539.issue30654@psf.upfronthosting.co.za> Antoine Pitrou added the comment: > So if an application has its own signal handler, Python replaces it... You have it backwards. Please read the bug report. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 05:56:40 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Fri, 01 Jun 2018 09:56:40 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527847000.2.0.682650639539.issue30654@psf.upfronthosting.co.za> Antoine Pitrou added the comment: > For 3.7, we are very close to the final release. It doesn't give much time to users to test the new behavior That's a fair point. What's the procedure here? If I backport the fix to the 3.7 branch, will it go straight into the 3.7.0 release or will it be deferred to 3.7.1? @Ned ---------- nosy: +ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 06:08:56 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 10:08:56 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527847736.95.0.682650639539.issue30654@psf.upfronthosting.co.za> STINNER Victor added the comment: > You have it backwards. Please read the bug report. I'm confused by the NEWS entry: +Fixed reset of the SIGINT handler to SIG_DFL on interpreter shutdown even +when there was a custom handler set previously. Patch by Philipp Kerling. I read it as Python now always reset SIGINT to SIG_DFL. The commit title is more explicit: "Do not reset SIGINT (...)". I propose to rephrase the NEWS entry as: """ Fix signal handlers when Python is embedded. On Python shutdown, do not reset the SIGINT handler to SIG_DFL, when a custom handler has been set before Python initialization. Patch by Philipp Kerling. """ -- Ok, now I understood the change. In this case, I'm ok to backport it to 3.6 and 3.7. Python 2.7 has this behavior since 10 years, it seems like people learnt to live with it. I also dislike touching Python 2.7, to prevent any risk of regression if someone really rely on the current behavior. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 06:10:01 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 10:10:01 +0000 Subject: [issue33692] Chinese characters issue with input() function In-Reply-To: <1527673001.64.0.682650639539.issue33692@psf.upfronthosting.co.za> Message-ID: <1527847801.94.0.682650639539.issue33692@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset b9afe645c4926b1f086f30ba9bd00671b0b8b55e by Victor Stinner in branch '3.6': bpo-33692: Update pythoninfo from master (GH-7301) https://github.com/python/cpython/commit/b9afe645c4926b1f086f30ba9bd00671b0b8b55e ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 06:10:02 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 10:10:02 +0000 Subject: [issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes In-Reply-To: <1527774159.9.0.682650639539.issue33717@psf.upfronthosting.co.za> Message-ID: <1527847802.06.0.262363346258.issue33717@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset b9afe645c4926b1f086f30ba9bd00671b0b8b55e by Victor Stinner in branch '3.6': bpo-33692: Update pythoninfo from master (GH-7301) https://github.com/python/cpython/commit/b9afe645c4926b1f086f30ba9bd00671b0b8b55e ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 06:10:10 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 10:10:10 +0000 Subject: [issue33692] Chinese characters issue with input() function In-Reply-To: <1527673001.64.0.682650639539.issue33692@psf.upfronthosting.co.za> Message-ID: <1527847810.24.0.682650639539.issue33692@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 466aae545786d2db5ac27f243c5d77aeb7a5958e by Victor Stinner in branch '3.7': bpo-33692: Update pythoninfo from master (GH-7298) https://github.com/python/cpython/commit/466aae545786d2db5ac27f243c5d77aeb7a5958e ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 06:10:10 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 10:10:10 +0000 Subject: [issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes In-Reply-To: <1527774159.9.0.682650639539.issue33717@psf.upfronthosting.co.za> Message-ID: <1527847810.35.0.262363346258.issue33717@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 466aae545786d2db5ac27f243c5d77aeb7a5958e by Victor Stinner in branch '3.7': bpo-33692: Update pythoninfo from master (GH-7298) https://github.com/python/cpython/commit/466aae545786d2db5ac27f243c5d77aeb7a5958e ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 06:16:27 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 10:16:27 +0000 Subject: [issue33597] Compact PyGC_Head In-Reply-To: <1526972782.65.0.682650639539.issue33597@psf.upfronthosting.co.za> Message-ID: <1527848187.17.0.682650639539.issue33597@psf.upfronthosting.co.za> STINNER Victor added the comment: It seems like the PR 7043 has no big impact on performances. Sometimes, it's a little bit faster, sometimes it's a little bit slower. The trend is a little bit more in the "faster" side, but it's not very obvious. I approved PR 7043. It shouldn't break the world, it might only break very specialized Python extensions touching very low level details of the Python implementation. The performance seems ok, but it reduces the memory footprint which is a very good thing! ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 06:21:24 2018 From: report at bugs.python.org (Jakub Szewczyk) Date: Fri, 01 Jun 2018 10:21:24 +0000 Subject: [issue33730] string format 'n' produces numbers with incorrect precision Message-ID: <1527848484.0.0.682650639539.issue33730@psf.upfronthosting.co.za> New submission from Jakub Szewczyk : Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> print ("{:.2n}".format(1.89)) 1.9 >>> print ("{:.2f}".format(1.89)) 1.89 ---------- components: Extension Modules messages: 318388 nosy: Jakub Szewczyk, eric.smith priority: normal severity: normal status: open title: string format 'n' produces numbers with incorrect precision type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 06:29:11 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 10:29:11 +0000 Subject: [issue31009] test_multiprocessing_spawn hangs randomly on AMD64 Windows10 3.x and AMD64 Windows8 3.x In-Reply-To: <1500887712.38.0.66903662356.issue31009@psf.upfronthosting.co.za> Message-ID: <1527848951.02.0.682650639539.issue31009@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +6940 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 06:29:42 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 10:29:42 +0000 Subject: [issue33718] Enhance regrtest: meta-ticket for multiple changes In-Reply-To: <1527775539.21.0.682650639539.issue33718@psf.upfronthosting.co.za> Message-ID: <1527848982.11.0.682650639539.issue33718@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 3dd802d8f287e8f11848cfb068cf73000a9d0d94 by Victor Stinner in branch '3.7': bpo-33718: regrtest: update from master (GH-7305) https://github.com/python/cpython/commit/3dd802d8f287e8f11848cfb068cf73000a9d0d94 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 06:29:49 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 10:29:49 +0000 Subject: [issue33692] Chinese characters issue with input() function In-Reply-To: <1527673001.64.0.682650639539.issue33692@psf.upfronthosting.co.za> Message-ID: <1527848989.21.0.682650639539.issue33692@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 0f642620a8a85ef0b5482f253205baf1865e05b2 by Victor Stinner in branch '2.7': bpo-33692: Update pythoninfo from master (GH-7304) https://github.com/python/cpython/commit/0f642620a8a85ef0b5482f253205baf1865e05b2 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 06:29:49 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 10:29:49 +0000 Subject: [issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes In-Reply-To: <1527774159.9.0.682650639539.issue33717@psf.upfronthosting.co.za> Message-ID: <1527848989.33.0.262363346258.issue33717@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 0f642620a8a85ef0b5482f253205baf1865e05b2 by Victor Stinner in branch '2.7': bpo-33692: Update pythoninfo from master (GH-7304) https://github.com/python/cpython/commit/0f642620a8a85ef0b5482f253205baf1865e05b2 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 06:40:52 2018 From: report at bugs.python.org (Eric V. Smith) Date: Fri, 01 Jun 2018 10:40:52 +0000 Subject: [issue33730] string format 'n' produces numbers with incorrect precision In-Reply-To: <1527848484.0.0.682650639539.issue33730@psf.upfronthosting.co.za> Message-ID: <1527849652.57.0.682650639539.issue33730@psf.upfronthosting.co.za> Eric V. Smith added the comment: 'n' is defined as the same as 'g', for floats (modulo the locale-specific characters, of course): >>> format(1.89, '.2n') '1.9' >>> format(1.89, '.2g') '1.9' ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 06:45:43 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 01 Jun 2018 10:45:43 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527849943.01.0.682650639539.issue30654@psf.upfronthosting.co.za> Ned Deily added the comment: > What's the procedure here? If I backport the fix to the 3.7 branch, will it go straight into the 3.7.0 release or will it be deferred to 3.7.1?? "All fixes that have been merged into the 3.7 branch as of cutoff tomorrow will be in 3.7.0b5 and fixes merged afterwards will be in 3.7.0rc1 up to its cutoff point. After 3.7.0rc1 cutoff, 3.7 merges will appear in 3.7.1. Please continue to exercise diligence when deciding whether a change is appropriate for 3.7; as a rule of thumb, treat the 3.7 branch as if it were already released and in maintenance mode." ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 06:49:46 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Fri, 01 Jun 2018 10:49:46 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527850185.99.0.682650639539.issue30654@psf.upfronthosting.co.za> Antoine Pitrou added the comment: Ok, I think it go into 3.7.0 after all. 3.7.1 wouldn't get more testing before it's released anyway. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 06:50:10 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 01 Jun 2018 10:50:10 +0000 Subject: [issue33729] Hashlib/blake2* missing 'data' keyword argument In-Reply-To: <1527842171.52.0.682650639539.issue33729@psf.upfronthosting.co.za> Message-ID: <1527850210.77.0.682650639539.issue33729@psf.upfronthosting.co.za> Change by Ned Deily : ---------- nosy: +christian.heimes _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 06:50:32 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Fri, 01 Jun 2018 10:50:32 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527850232.4.0.682650639539.issue30654@psf.upfronthosting.co.za> Antoine Pitrou added the comment: New changeset 623b439abebc913bc416d92f38fe371e84b0276b by Antoine Pitrou (Miss Islington (bot)) in branch '3.7': bpo-30654: Do not reset SIGINT handler to SIG_DFL in finisignal (GH-7146) (GH-7306) https://github.com/python/cpython/commit/623b439abebc913bc416d92f38fe371e84b0276b ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 06:57:29 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 01 Jun 2018 10:57:29 +0000 Subject: [issue33725] High Sierra hang when using multi-processing In-Reply-To: <1527814386.62.0.682650639539.issue33725@psf.upfronthosting.co.za> Message-ID: <1527850649.39.0.682650639539.issue33725@psf.upfronthosting.co.za> Ned Deily added the comment: (As a side note, the macOS Pythons provided by python.org installers should not behave differently on macOS 10.13 High Sierra since none of them are built with a 10.13 SDK.) ---------- nosy: +davin, pitrou _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 06:57:55 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 10:57:55 +0000 Subject: [issue33540] socketserver: Add an opt-in option to get Python 3.6 behaviour on server_close() In-Reply-To: <1526486373.61.0.682650639539.issue33540@psf.upfronthosting.co.za> Message-ID: <1527850675.62.0.682650639539.issue33540@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +6941 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 06:58:34 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 10:58:34 +0000 Subject: [issue33540] socketserver: Add an opt-in option to get Python 3.6 behaviour on server_close() In-Reply-To: <1526486373.61.0.682650639539.issue33540@psf.upfronthosting.co.za> Message-ID: <1527850714.52.0.682650639539.issue33540@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +6942 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 07:10:22 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Fri, 01 Jun 2018 11:10:22 +0000 Subject: [issue33725] High Sierra hang when using multi-processing In-Reply-To: <1527814386.62.0.682650639539.issue33725@psf.upfronthosting.co.za> Message-ID: <1527851422.44.0.682650639539.issue33725@psf.upfronthosting.co.za> Antoine Pitrou added the comment: I understand that Apple, with their limited resources, cannot spend expensive engineer manpower on improving POSIX support in macOS . In any case, I'm unsure this bug can be fixed at the Python level. If macOS APIs don't like fork(), they don't like fork(), point bar. As Ronald says, on 3.x you should use "forkserver" (for multiple reasons, not only this issue). On 2.7 you're stuck dealing with the issue by yourself. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 07:12:17 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Fri, 01 Jun 2018 11:12:17 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527851537.47.0.682650639539.issue30654@psf.upfronthosting.co.za> Antoine Pitrou added the comment: New changeset 1d5198fd41ad9185e9e6b3aa595769c3693d57be by Antoine Pitrou (Miss Islington (bot)) in branch '3.6': bpo-30654: Do not reset SIGINT handler to SIG_DFL in finisignal (GH-7146) (GH-7307) https://github.com/python/cpython/commit/1d5198fd41ad9185e9e6b3aa595769c3693d57be ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 07:12:34 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Fri, 01 Jun 2018 11:12:34 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527851554.53.0.682650639539.issue30654@psf.upfronthosting.co.za> Change by Antoine Pitrou : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 07:22:25 2018 From: report at bugs.python.org (INADA Naoki) Date: Fri, 01 Jun 2018 11:22:25 +0000 Subject: [issue33597] Compact PyGC_Head In-Reply-To: <1526972782.65.0.682650639539.issue33597@psf.upfronthosting.co.za> Message-ID: <1527852145.21.0.682650639539.issue33597@psf.upfronthosting.co.za> INADA Naoki added the comment: @Victor Thanks for review. Do you think buildbots for master branch are sound enough to commit this change? Or should I wait one more week? http://buildbot.python.org/all/#/grid?branch=master ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 07:34:01 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 11:34:01 +0000 Subject: [issue33597] Compact PyGC_Head In-Reply-To: <1526972782.65.0.682650639539.issue33597@psf.upfronthosting.co.za> Message-ID: <1527852841.62.0.682650639539.issue33597@psf.upfronthosting.co.za> STINNER Victor added the comment: > Do you think buildbots for master branch are sound enough to commit this change? Or should I wait one more week? CIs on master are stable again. Since PyGC_Head is a key feature of Python, I would suggest you to wait at least a second approval of another core dev. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 07:47:31 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 11:47:31 +0000 Subject: [issue31009] test_multiprocessing_spawn hangs randomly on AMD64 Windows10 3.x and AMD64 Windows8 3.x In-Reply-To: <1500887712.38.0.66903662356.issue31009@psf.upfronthosting.co.za> Message-ID: <1527853651.66.0.682650639539.issue31009@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 99ba73d1188f4d52d2c741c26267da00a008f379 by Victor Stinner in branch '3.6': bpo-31009: Move fd_count() to test.support (#7308) https://github.com/python/cpython/commit/99ba73d1188f4d52d2c741c26267da00a008f379 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 07:50:51 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 11:50:51 +0000 Subject: [issue31479] Always reset the signal alarm in tests In-Reply-To: <1505424830.38.0.864907187411.issue31479@psf.upfronthosting.co.za> Message-ID: <1527853851.81.0.682650639539.issue31479@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +6943 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 08:06:26 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 12:06:26 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527854786.27.0.682650639539.issue30654@psf.upfronthosting.co.za> STINNER Victor added the comment: Thanks pkerling for your bug report and your fix! ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 08:07:52 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 12:07:52 +0000 Subject: [issue33540] socketserver: Add an opt-in option to get Python 3.6 behaviour on server_close() In-Reply-To: <1526486373.61.0.682650639539.issue33540@psf.upfronthosting.co.za> Message-ID: <1527854872.63.0.682650639539.issue33540@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 29ae9dc7c30b23055fdd39bec4c8f19a28392351 by Victor Stinner in branch '3.7': bpo-33540: Fix socketserver.ThreadingMixIn if block_on_close=False (GH-7309) https://github.com/python/cpython/commit/29ae9dc7c30b23055fdd39bec4c8f19a28392351 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 08:08:32 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 12:08:32 +0000 Subject: [issue31479] Always reset the signal alarm in tests In-Reply-To: <1505424830.38.0.864907187411.issue31479@psf.upfronthosting.co.za> Message-ID: <1527854912.41.0.682650639539.issue31479@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +6944 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 08:21:14 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 12:21:14 +0000 Subject: [issue31234] Make support.threading_cleanup() stricter In-Reply-To: <1503076378.29.0.950087882836.issue31234@psf.upfronthosting.co.za> Message-ID: <1527855674.71.0.682650639539.issue31234@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +6945 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 08:21:36 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 12:21:36 +0000 Subject: [issue33540] socketserver: Add an opt-in option to get Python 3.6 behaviour on server_close() In-Reply-To: <1526486373.61.0.682650639539.issue33540@psf.upfronthosting.co.za> Message-ID: <1527855696.75.0.682650639539.issue33540@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 829fcd0612049b21a6d3802b3306705218255f6b by Victor Stinner in branch 'master': bpo-33540: Fix socketserver.ThreadingMixIn if block_on_close=False (GH-7310) https://github.com/python/cpython/commit/829fcd0612049b21a6d3802b3306705218255f6b ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 08:26:24 2018 From: report at bugs.python.org (Eric V. Smith) Date: Fri, 01 Jun 2018 12:26:24 +0000 Subject: [issue33730] string format 'n' produces numbers with incorrect precision In-Reply-To: <1527848484.0.0.682650639539.issue33730@psf.upfronthosting.co.za> Message-ID: <1527855984.36.0.682650639539.issue33730@psf.upfronthosting.co.za> Eric V. Smith added the comment: I'm going to close this. If you still think there's an issue, we can re-open it. ---------- assignee: -> eric.smith components: +Interpreter Core -Extension Modules resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 08:33:47 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 12:33:47 +0000 Subject: [issue33627] test-complex of test_numeric_tower.test_complex() crashes intermittently on Ubuntu buildbots In-Reply-To: <1527118249.12.0.682650639539.issue33627@psf.upfronthosting.co.za> Message-ID: <1527856427.09.0.682650639539.issue33627@psf.upfronthosting.co.za> STINNER Victor added the comment: The test also crashed on x86 Gentoo Non-Debug with X 3.7: http://buildbot.python.org/all/#/builders/115/builds/308 0:03:11 load avg: 4.82 [ 77/415/1] test_numeric_tower crashed (Exit code -11) Fatal Python error: Segmentation fault Current thread 0xb74e9700 (most recent call first): File "/buildbot/buildarea/3.7.ware-gentoo-x86.nondebug/build/Lib/test/test_numeric_tower.py", line 184 in test_complex ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 08:35:22 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 12:35:22 +0000 Subject: [issue33540] socketserver: Add an opt-in option to get Python 3.6 behaviour on server_close() In-Reply-To: <1526486373.61.0.682650639539.issue33540@psf.upfronthosting.co.za> Message-ID: <1527856521.99.0.682650639539.issue33540@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +6946 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 08:42:33 2018 From: report at bugs.python.org (Jakub Szewczyk) Date: Fri, 01 Jun 2018 12:42:33 +0000 Subject: [issue33731] string formatting that produces floats with preset precision while respecting locale Message-ID: <1527856953.25.0.682650639539.issue33731@psf.upfronthosting.co.za> New submission from Jakub Szewczyk : .2f produces a string representation of a float rounded up to 2 significant digits. >>> print ("{:.2f}".format(1.891)) 1.89 However, it does not respect locale. There is no counterpart of 'f' that would respect locale. There is 'n', but because it follows the rules of 'g', in many cases it returns a different number of significant digits. >>> print ("{:.2n}".format(1.891)) 1.9 In all my uses of formatted float printing, I need to produce floats that are rounded to have the same number of significant digits. I _presume_ this generalizes to the majority people, and the use of 'f' option is much more widespread than the use of 'g'. If this is the case, then a locale-friendly counterpart of 'f' would be very useful. ---------- components: Extension Modules messages: 318407 nosy: Jakub Szewczyk, eric.smith priority: normal severity: normal status: open title: string formatting that produces floats with preset precision while respecting locale type: enhancement versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 08:58:44 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 12:58:44 +0000 Subject: [issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI In-Reply-To: <1526452224.65.0.682650639539.issue33532@psf.upfronthosting.co.za> Message-ID: <1527857924.01.0.682650639539.issue33532@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +6947 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 08:59:58 2018 From: report at bugs.python.org (Gibson Fahnestock) Date: Fri, 01 Jun 2018 12:59:58 +0000 Subject: [issue33732] Python 2.7.15: xml.sax.parse() closes file objects passed to it Message-ID: <1527857998.29.0.682650639539.issue33732@psf.upfronthosting.co.za> New submission from Gibson Fahnestock : Sorry if this is a duplicate, I didn't find anything. We hit some issues with this change: - Python Bug: https://bugs.python.org/issue30264 - Github PRs: https://github.com/python/cpython/pull/1451 and https://github.com/python/cpython/pull/1476 It's possible I'm misunderstanding something, let me know if that's the case. It seems that in Python 2.7.15, xml.sax.parse() closes file descriptors that are passed to it. 1. Isn't this a breaking change? It certainly breaks code we're using in production. 2. Why is the sax parser closing file descriptors that it didn't open? I understand if the parser is given a path and opens its own fd it makes sense to close it, but not when the fd is given directly. 3. What do you do if you need access to the file descriptor after parsing it (because you parse it in place)? For file descriptors that point to files on disk we can work around it by reopening the file after each parse, but for something like a StringIO buffer (see simplified example below) I'm not aware of any way to get around the problem. -> StringIO Example: import xml.sax import StringIO # Some StringIO buffer. fd = StringIO.StringIO(b'<_/>') # Do some parsing. xml.sax.parse(fd, xml.sax.handler.ContentHandler()) # Try to do some other parsing (fails). xml.sax.parse(fd, xml.sax.handler.ContentHandler()) -> File Example: import xml.sax fd = open('/tmp/test-junit1.xml') # Do some parsing. xml.sax.parse(fd, xml.sax.handler.ContentHandler()) # Do some other parsing. xml.sax.parse(fd, xml.sax.handler.ContentHandler()) Originally posted on https://github.com/python/cpython/pull/1451#issuecomment-393837538, thanks serhiy.storchaka for redirecting me here. ---------- components: Library (Lib), XML messages: 318408 nosy: gibfahn, serhiy.storchaka, vstinner priority: normal severity: normal status: open title: Python 2.7.15: xml.sax.parse() closes file objects passed to it versions: Python 2.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 09:05:41 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 13:05:41 +0000 Subject: [issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI In-Reply-To: <1526452224.65.0.682650639539.issue33532@psf.upfronthosting.co.za> Message-ID: <1527858341.67.0.682650639539.issue33532@psf.upfronthosting.co.za> STINNER Victor added the comment: I saw one new test_ignore() failure on Travis CI in my 3.6 PR, whereas 3.6 already uses PIPE_MAX_SIZE for test_ignore(). https://github.com/python/cpython/pull/7315/ https://travis-ci.org/python/cpython/jobs/386637729 Hum, test_ignore() uses PIPE_MAX_SIZE, whereas the test fails on Linux where we use a pair of sockets, no pipes. Maybe we should use SOCK_MAX_SIZE? Notes on pipe size: * /proc/sys/fs/pipe-max-size * bpo-17835: add support.PIPE_MAX_SIZE (4 MiB +1 B) * bpo-18643: add support.SOCK_MAX_SIZE (16 MiB) ---------- resolution: fixed -> status: closed -> open _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 09:12:10 2018 From: report at bugs.python.org (Eric V. Smith) Date: Fri, 01 Jun 2018 13:12:10 +0000 Subject: [issue33731] string formatting that produces floats with preset precision while respecting locale In-Reply-To: <1527856953.25.0.682650639539.issue33731@psf.upfronthosting.co.za> Message-ID: <1527858730.76.0.682650639539.issue33731@psf.upfronthosting.co.za> Eric V. Smith added the comment: You can always use the locale module, although of course that's not as convenient: >>> locale.format('%.2f', 1.891) '1.89' I'm open to suggests on backward compatible ways to implement this for python 3.8. It would probably involve a new letter, and need to be implemented for at least int, float, decimal, and complex. ---------- assignee: -> eric.smith components: +Interpreter Core -Extension Modules versions: +Python 3.8 -Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 09:18:19 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 13:18:19 +0000 Subject: [issue33733] Add utilities to get/set pipe and socket buffer sizes? Message-ID: <1527859099.35.0.682650639539.issue33733@psf.upfronthosting.co.za> New submission from STINNER Victor : Many Python unit tests require a blocking send into a pipe or a socket. support.PIPE_MAX_SIZE (4 MiB +1 B) has been added for pipes in bpo-17835: sending PIPE_MAX_SIZE into a pipe must block. On Linux, the maximum size of a pipe is /proc/sys/fs/pipe-max-size. Since Linux 2.6.35, it's now possible to get and set the size of a pipe using fcntl with F_GETPIPE_SZ and F_SETPIPE_SZ commands. For sockets, support.SOCK_MAX_SIZE (16 MiB) has been added in bpo-18643. It's possible to get/set the size of receive and send socket buffers using getsockopt() and setsockopt() with SO_RCVBUF and SO_SNDBUF commands. For pipes, I'm not sure that it's possible to get the size of a pipe buffer in a portable way. For example, F_GETPIPE_SZ was only introduced in Linux 2.6.35. Since the first user of these features are tests, maybe we can start with best-effort functions in test.support. Recently, I got issues with buffer sizes in test_multiprocessing_forkserver.test_ignore() (bpo-33532) and sendfile tests of test_asyncio (bpo-33353). ---------- components: Library (Lib) messages: 318411 nosy: pitrou, vstinner, yselivanov priority: normal severity: normal status: open title: Add utilities to get/set pipe and socket buffer sizes? type: enhancement versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 09:18:56 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 01 Jun 2018 13:18:56 +0000 Subject: [issue33733] Add utilities to get/set pipe and socket buffer sizes? In-Reply-To: <1527859099.35.0.682650639539.issue33733@psf.upfronthosting.co.za> Message-ID: <1527859136.59.0.682650639539.issue33733@psf.upfronthosting.co.za> Change by Yury Selivanov : ---------- nosy: +njs _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 09:23:05 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 13:23:05 +0000 Subject: [issue31479] Always reset the signal alarm in tests In-Reply-To: <1505424830.38.0.864907187411.issue31479@psf.upfronthosting.co.za> Message-ID: <1527859384.99.0.682650639539.issue31479@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 3604b2390a8986117c35d661d3d3a5977dfe8260 by Victor Stinner in branch '2.7': bpo-31479: Always reset the signal alarm in tests (GH-3588) (GH-7314) https://github.com/python/cpython/commit/3604b2390a8986117c35d661d3d3a5977dfe8260 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 09:23:12 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 13:23:12 +0000 Subject: [issue31479] Always reset the signal alarm in tests In-Reply-To: <1505424830.38.0.864907187411.issue31479@psf.upfronthosting.co.za> Message-ID: <1527859392.65.0.682650639539.issue31479@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 95681c7a7ddd436ba7d6c10d1202c33dd6bd648b by Victor Stinner in branch '3.6': bpo-31479: Always reset the signal alarm in tests (GH-3588) (GH-7312) https://github.com/python/cpython/commit/95681c7a7ddd436ba7d6c10d1202c33dd6bd648b ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 09:31:05 2018 From: report at bugs.python.org (pkerling) Date: Fri, 01 Jun 2018 13:31:05 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527859865.88.0.682650639539.issue30654@psf.upfronthosting.co.za> pkerling <9b6ab161 at casix.org> added the comment: Thanks! I'm a bit disappointed that it won't make it into 2.7, but I can understand the decision. To give some context: I came across this while working on Kodi and noticing that it does not shutdown cleanly via Ctrl+C or SIGTERM. After investigating, I came to the conclusion that it is due to this bug. Kodi shuts down the Python interpreter every time no add-on is doing active work, which is almost guaranteed to happen shortly after application startup. Then this bug caused a reset of the SIGTERM handler to the default handler, making the Kodi handler that does a clean shutdown useless. Now there are plans to switch to Python 3 in Kodi, but it won't happen until the major release after the next, so we're stuck with 2.7 for some time. I guess we'll have to work around this in Kodi for the time being. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 09:33:57 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Fri, 01 Jun 2018 13:33:57 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527860037.41.0.682650639539.issue30654@psf.upfronthosting.co.za> Antoine Pitrou added the comment: I'm nosy'ing Benjamin, the 2.7 release manager, in case he wants to comment on desirability of this bugfix in Python 2.7. ---------- nosy: +benjamin.peterson _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 09:34:45 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 13:34:45 +0000 Subject: [issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI In-Reply-To: <1526452224.65.0.682650639539.issue33532@psf.upfronthosting.co.za> Message-ID: <1527860085.65.0.682650639539.issue33532@psf.upfronthosting.co.za> STINNER Victor added the comment: > https://travis-ci.org/python/cpython/jobs/386637729 I added some debug traces: test_ignore (test.test_multiprocessing_forkserver.TestIgnoreEINTR) ... socket[fd=4].SO_RCVBUF 212992 socket[fd=4].SO_SNDBUF 212992 socket[fd=7].SO_RCVBUF 212992 socket[fd=7].SO_SNDBUF 212992 test_ignore: PIPE_MAX_SIZE = 4194305 The socket pair uses a buffer of 208 KiB (212,992 B) in both directions and the test sends 4 MiB (4,194,305 B) for a blocking call... and sometimes the send doesn't block. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 09:51:05 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 13:51:05 +0000 Subject: [issue31234] Make support.threading_cleanup() stricter In-Reply-To: <1503076378.29.0.950087882836.issue31234@psf.upfronthosting.co.za> Message-ID: <1527861065.48.0.81473610881.issue31234@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 5dbb48aaac0ff74648b355ebdde222856004b1ef by Victor Stinner in branch '3.6': [3.6] bpo-31234: Add test.support.wait_threads_exit() (GH-3578) (GH-7315) https://github.com/python/cpython/commit/5dbb48aaac0ff74648b355ebdde222856004b1ef ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 10:05:05 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 14:05:05 +0000 Subject: [issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI In-Reply-To: <1526452224.65.0.682650639539.issue33532@psf.upfronthosting.co.za> Message-ID: <1527861905.42.0.81473610881.issue33532@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +6948 stage: resolved -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 10:24:53 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 14:24:53 +0000 Subject: [issue33540] socketserver: Add an opt-in option to get Python 3.6 behaviour on server_close() In-Reply-To: <1526486373.61.0.682650639539.issue33540@psf.upfronthosting.co.za> Message-ID: <1527863093.13.0.81473610881.issue33540@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 1381bfe9776e64fed45935efbe42a7ee8298bd44 by Victor Stinner in branch '3.6': bpo-33540, socketserver: Add _block_on_close for tests (GH-7317) https://github.com/python/cpython/commit/1381bfe9776e64fed45935efbe42a7ee8298bd44 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 10:38:38 2018 From: report at bugs.python.org (Gibson Fahnestock) Date: Fri, 01 Jun 2018 14:38:38 +0000 Subject: [issue33732] Python 2.7.15: xml.sax.parse() closes file objects passed to it In-Reply-To: <1527857998.29.0.682650639539.issue33732@psf.upfronthosting.co.za> Message-ID: <1527863918.65.0.81473610881.issue33732@psf.upfronthosting.co.za> Gibson Fahnestock added the comment: As an addendum, I note that other parsers, like: parser = lxml.etree.XMLParser(compact=False) etree.parse(some_fd, parser).find('some_text').text do not close the fd they are given. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 10:48:36 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 14:48:36 +0000 Subject: [issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI In-Reply-To: <1526452224.65.0.682650639539.issue33532@psf.upfronthosting.co.za> Message-ID: <1527864516.68.0.81473610881.issue33532@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 252f6abe0a9430f4ae7588c0cb50a6ff141bebe3 by Victor Stinner in branch 'master': bpo-33532: Fix test_multiprocessing_forkserver.test_ignore() (GH-7319) https://github.com/python/cpython/commit/252f6abe0a9430f4ae7588c0cb50a6ff141bebe3 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 10:48:50 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 01 Jun 2018 14:48:50 +0000 Subject: [issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI In-Reply-To: <1526452224.65.0.682650639539.issue33532@psf.upfronthosting.co.za> Message-ID: <1527864530.82.0.81473610881.issue33532@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6949 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 10:50:49 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 14:50:49 +0000 Subject: [issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI In-Reply-To: <1526452224.65.0.682650639539.issue33532@psf.upfronthosting.co.za> Message-ID: <1527864649.54.0.81473610881.issue33532@psf.upfronthosting.co.za> STINNER Victor added the comment: I modified test_ignore() to use support.SOCK_MAX_SIZE, but honestly, I'm not convinced that it will be the issue. I applied my change anyway, just to check if the issue comes from the size, or if it's something else. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 10:53:53 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 01 Jun 2018 14:53:53 +0000 Subject: [issue33734] asyncio/ssl: Fix AttributeError, increase default handshake timeout Message-ID: <1527864833.64.0.81473610881.issue33734@psf.upfronthosting.co.za> New submission from Yury Selivanov : I've ported asyncio's sslproto.py to uvloop and released a new major version of it yesterday. Hynek discovered that the default SSL handshake timeout (10 seconds currently) is too low, and that there's a critical code path that is broken because it assumes all SSL exceptions have an 'errno' attribute. The PR changes the default SSL handshake timeout to 60 seconds (as in nginx [1]) and fixes the AttributeError. IMO this should go into 3.7.0rc1. [1] https://docs.nginx.com/nginx/admin-guide/security-controls/terminating-ssl-tcp/#speeding-up-secure-tcp-connections ---------- assignee: yselivanov components: asyncio messages: 318422 nosy: asvetlov, hynek, ned.deily, yselivanov priority: release blocker severity: normal status: open title: asyncio/ssl: Fix AttributeError, increase default handshake timeout type: behavior versions: Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 10:54:53 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 01 Jun 2018 14:54:53 +0000 Subject: [issue33734] asyncio/ssl: Fix AttributeError, increase default handshake timeout In-Reply-To: <1527864833.64.0.81473610881.issue33734@psf.upfronthosting.co.za> Message-ID: <1527864893.11.0.81473610881.issue33734@psf.upfronthosting.co.za> Yury Selivanov added the comment: For the reference, we added SSL handshake timeout a while ago in bpo-29970. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 10:55:30 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 14:55:30 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1527864930.28.0.81473610881.issue33694@psf.upfronthosting.co.za> STINNER Victor added the comment: The test also failed on AMD64 Windows8.1 Refleaks 3.7. This buildbot is also very slow because it runs reference leak hunting. It confirms that the remaining issue is a race condition which is only seen when the system becomes slow. http://buildbot.python.org/all/#/builders/132/builds/154 ====================================================================== ERROR: test_start_tls_server_1 (test.test_asyncio.test_sslproto.ProactorStartTLSTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "D:\buildarea\3.7.ware-win81-release.refleak\build\lib\test\test_asyncio\test_sslproto.py", line 467, in test_start_tls_server_1 self.loop.run_until_complete(run_main()) File "D:\buildarea\3.7.ware-win81-release.refleak\build\lib\asyncio\base_events.py", line 566, in run_until_complete raise RuntimeError('Event loop stopped before Future completed.') RuntimeError: Event loop stopped before Future completed. ====================================================================== FAIL: test_start_tls_server_1 (test.test_asyncio.test_sslproto.ProactorStartTLSTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "D:\buildarea\3.7.ware-win81-release.refleak\build\lib\test\test_asyncio\functional.py", line 42, in tearDown self.fail('unexpected calls to loop.call_exception_handler()') AssertionError: unexpected calls to loop.call_exception_handler() ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 10:56:32 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 01 Jun 2018 14:56:32 +0000 Subject: [issue33734] asyncio/ssl: Fix AttributeError, increase default handshake timeout In-Reply-To: <1527864833.64.0.81473610881.issue33734@psf.upfronthosting.co.za> Message-ID: <1527864992.69.0.81473610881.issue33734@psf.upfronthosting.co.za> Change by Yury Selivanov : ---------- keywords: +patch pull_requests: +6950 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 10:58:07 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 14:58:07 +0000 Subject: [issue33735] test_multiprocessing_spawn leaked [1, 2, 1] memory blocks on AMD64 Windows8.1 Refleaks 3.7 Message-ID: <1527865087.2.0.81473610881.issue33735@psf.upfronthosting.co.za> New submission from STINNER Victor : http://buildbot.python.org/all/#/builders/132/builds/154 test_multiprocessing_spawn leaked [1, 2, 1] memory blocks, sum=4 ---------- components: Tests, Windows messages: 318425 nosy: paul.moore, steve.dower, tim.golden, vstinner, zach.ware priority: normal severity: normal status: open title: test_multiprocessing_spawn leaked [1, 2, 1] memory blocks on AMD64 Windows8.1 Refleaks 3.7 type: resource usage versions: Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 11:21:25 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 01 Jun 2018 15:21:25 +0000 Subject: [issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI In-Reply-To: <1526452224.65.0.682650639539.issue33532@psf.upfronthosting.co.za> Message-ID: <1527866485.44.0.81473610881.issue33532@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 63fa8db58c349f985d75139e6545cfddf067c07b by Miss Islington (bot) in branch '3.7': bpo-33532: Fix test_multiprocessing_forkserver.test_ignore() (GH-7319) https://github.com/python/cpython/commit/63fa8db58c349f985d75139e6545cfddf067c07b ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 11:36:49 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 15:36:49 +0000 Subject: [issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI In-Reply-To: <1526452224.65.0.682650639539.issue33532@psf.upfronthosting.co.za> Message-ID: <1527867409.65.0.81473610881.issue33532@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +6951 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 11:38:24 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 15:38:24 +0000 Subject: [issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI In-Reply-To: <1526452224.65.0.682650639539.issue33532@psf.upfronthosting.co.za> Message-ID: <1527867504.77.0.81473610881.issue33532@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +6952 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 11:39:13 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 15:39:13 +0000 Subject: [issue33735] test_multiprocessing_spawn leaked [1, 2, 1] memory blocks on AMD64 Windows8.1 Refleaks 3.7 In-Reply-To: <1527865087.2.0.81473610881.issue33735@psf.upfronthosting.co.za> Message-ID: <1527867553.82.0.81473610881.issue33735@psf.upfronthosting.co.za> STINNER Victor added the comment: When running "python -m test -R 2:3 test_multiprocessing_forkserver" on Windows, I saw some warnings about dangling threads. It may explain this issue. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 11:54:39 2018 From: report at bugs.python.org (Nathaniel Smith) Date: Fri, 01 Jun 2018 15:54:39 +0000 Subject: [issue33733] Add utilities to get/set pipe and socket buffer sizes? In-Reply-To: <1527859099.35.0.682650639539.issue33733@psf.upfronthosting.co.za> Message-ID: <1527868479.89.0.81473610881.issue33733@psf.upfronthosting.co.za> Nathaniel Smith added the comment: Note that in my experience, socket systems treat the buffer sizes as more like... rough guidelines. Especially Windows and Linux. Which doesn't mean they're not useful to expose somehow, but you can't assume that just because you set the buffer to size X means that operations will start blocking after X bytes. When trio's tests need a clogged socket, we just keep sending in a loop until we observe a BlockingIOError, and then do the test. Pipe buffers are much more reasonably behaved IME. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 12:07:41 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 16:07:41 +0000 Subject: [issue31238] pydoc: ServerThread.stop() leaves a dangling thread In-Reply-To: <1503100245.68.0.356327779955.issue31238@psf.upfronthosting.co.za> Message-ID: <1527869261.28.0.81473610881.issue31238@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +6953 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 12:11:27 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 16:11:27 +0000 Subject: [issue33718] Enhance regrtest: meta-ticket for multiple changes In-Reply-To: <1527775539.21.0.682650639539.issue33718@psf.upfronthosting.co.za> Message-ID: <1527869487.81.0.81473610881.issue33718@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +6954 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 12:25:52 2018 From: report at bugs.python.org (Elvis Pranskevichus) Date: Fri, 01 Jun 2018 16:25:52 +0000 Subject: [issue33736] Improve the documentation of asyncio stream API Message-ID: <1527870352.33.0.81473610881.issue33736@psf.upfronthosting.co.za> Change by Elvis Pranskevichus : ---------- assignee: docs at python components: Documentation nosy: Elvis.Pranskevichus, docs at python priority: normal severity: normal status: open title: Improve the documentation of asyncio stream API type: enhancement versions: Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 12:29:55 2018 From: report at bugs.python.org (Elvis Pranskevichus) Date: Fri, 01 Jun 2018 16:29:55 +0000 Subject: [issue33736] Improve the documentation of asyncio stream API Message-ID: <1527870595.97.0.81473610881.issue33736@psf.upfronthosting.co.za> Change by Elvis Pranskevichus : ---------- keywords: +patch pull_requests: +6955 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 12:30:15 2018 From: report at bugs.python.org (Hynek Schlawack) Date: Fri, 01 Jun 2018 16:30:15 +0000 Subject: [issue33734] asyncio/ssl: Fix AttributeError, increase default handshake timeout In-Reply-To: <1527864833.64.0.81473610881.issue33734@psf.upfronthosting.co.za> Message-ID: <1527870615.8.0.81473610881.issue33734@psf.upfronthosting.co.za> Hynek Schlawack added the comment: For some context: 10s seems to be more common than I liked to believe (seems like Go's http client uses it by default too). Nevertheless I ran into the 10s after updating uvloop and stopped being able to connect to a server in India. Therefore I'd consider 10s at least a regression that should be fixed. What was the effective timeout before? Depending on the old value, 60s could be excessive for clients and might lead to self-DoS on the client side? P.S. I tried to reply on my phone and now I fully support Mariatta?s proposal of moving to GitHub issues. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 12:35:28 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 01 Jun 2018 16:35:28 +0000 Subject: [issue33734] asyncio/ssl: Fix AttributeError, increase default handshake timeout In-Reply-To: <1527864833.64.0.81473610881.issue33734@psf.upfronthosting.co.za> Message-ID: <1527870928.8.0.81473610881.issue33734@psf.upfronthosting.co.za> Yury Selivanov added the comment: > What was the effective timeout before? Depending on the old value, 60s could be excessive for clients and might lead to self-DoS on the client side? Previous timeout was effectively infinite. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 12:37:17 2018 From: report at bugs.python.org (R. David Murray) Date: Fri, 01 Jun 2018 16:37:17 +0000 Subject: [issue33721] os.path.exists() ought to return False if pathname contains NUL In-Reply-To: <1527787165.92.0.682650639539.issue33721@psf.upfronthosting.co.za> Message-ID: <1527871037.88.0.81473610881.issue33721@psf.upfronthosting.co.za> R. David Murray added the comment: I seem to recall that this ValueError behavior was discussed at some length and it is the desired behavior. (At some previous point I think everything after the NUL was ignored.) I'm not really sure why it needs to be documented either, NULs are invalid in filenames, aren't they? Or are there some OSes that allow them? ---------- nosy: +r.david.murray _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 12:52:48 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Fri, 01 Jun 2018 16:52:48 +0000 Subject: [issue33649] asyncio docs overhaul In-Reply-To: <1527277722.54.0.682650639539.issue33649@psf.upfronthosting.co.za> Message-ID: <1527871968.3.0.81473610881.issue33649@psf.upfronthosting.co.za> Change by Alexander Belopolsky : ---------- nosy: +belopolsky _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 12:53:05 2018 From: report at bugs.python.org (Eric V. Smith) Date: Fri, 01 Jun 2018 16:53:05 +0000 Subject: [issue33721] os.path.exists() ought to return False if pathname contains NUL In-Reply-To: <1527787165.92.0.682650639539.issue33721@psf.upfronthosting.co.za> Message-ID: <1527871985.01.0.81473610881.issue33721@psf.upfronthosting.co.za> Eric V. Smith added the comment: I don't know of any OS that supports NULs in filenames (not that my knowledge is encyclopedic). My reason for suggesting we document it is that os.path.exists() returns False for otherwise invalid filenames, where something like open() raises. On Windows: >>> os.path.exists('c::bar') False >>> open('c::bar') Traceback (most recent call last): File "", line 1, in OSError: [Errno 22] Invalid argument: 'c::bar' So I do think it's a little surprising that os.path.exists() would raise with a NUL, instead of returning False. But I don't think it's worth changing the behavior, due to potential (though unlikely) breakage. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 12:55:26 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Fri, 01 Jun 2018 16:55:26 +0000 Subject: [issue33701] test_datetime crashed (SIGSEGV) on Travis CI In-Reply-To: <1527719641.19.0.682650639539.issue33701@psf.upfronthosting.co.za> Message-ID: <1527872126.93.0.81473610881.issue33701@psf.upfronthosting.co.za> Change by Alexander Belopolsky : ---------- nosy: +belopolsky _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 13:03:44 2018 From: report at bugs.python.org (Jakub Wilk) Date: Fri, 01 Jun 2018 17:03:44 +0000 Subject: [issue33661] urllib may leak sensitive HTTP headers to a third-party web site In-Reply-To: <1527430806.55.0.682650639539.issue33661@psf.upfronthosting.co.za> Message-ID: <1527872624.93.0.81473610881.issue33661@psf.upfronthosting.co.za> Change by Jakub Wilk : ---------- nosy: +jwilk _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 13:05:10 2018 From: report at bugs.python.org (Puneet Singh) Date: Fri, 01 Jun 2018 17:05:10 +0000 Subject: [issue33737] Multiprocessing not working Message-ID: <1527872710.36.0.81473610881.issue33737@psf.upfronthosting.co.za> New submission from Puneet Singh : I have attached a sampl program for my project.can anyone help e to solve this multiprocessing problem.I have applied all the tpes of multiprocessing ( map,map_async, starmap, starmap_async, aplly_async) but the result is same that CPU utilisation is one core instead it had to use all of them. The picture for cpu utilisation an be found in github account:- https://github.com/joddiy/multiprocess/issues/1 ---------- components: Library (Lib) messages: 318433 nosy: Puneet Singh, docs at python priority: normal severity: normal status: open title: Multiprocessing not working type: performance versions: Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 13:06:40 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 01 Jun 2018 17:06:40 +0000 Subject: [issue33660] pathlib.Path.resolve() returns path with double slash when resolving a relative path in root directory In-Reply-To: <1527418713.03.0.682650639539.issue33660@psf.upfronthosting.co.za> Message-ID: <1527872800.07.0.81473610881.issue33660@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- stage: -> test needed versions: +Python 3.8 -Python 3.4, Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 13:08:51 2018 From: report at bugs.python.org (Jakub Wilk) Date: Fri, 01 Jun 2018 17:08:51 +0000 Subject: [issue17102] tarfile extract can write files outside the destination path In-Reply-To: <1359784947.71.0.187572651427.issue17102@psf.upfronthosting.co.za> Message-ID: <1527872931.88.0.81473610881.issue17102@psf.upfronthosting.co.za> Change by Jakub Wilk : ---------- nosy: +jwilk _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 13:08:56 2018 From: report at bugs.python.org (Jakub Wilk) Date: Fri, 01 Jun 2018 17:08:56 +0000 Subject: [issue29788] [Security] tarfile: Add absolute_path option to tarfile, disabled by default In-Reply-To: <1489162424.66.0.632437535873.issue29788@psf.upfronthosting.co.za> Message-ID: <1527872936.96.0.81473610881.issue29788@psf.upfronthosting.co.za> Change by Jakub Wilk : ---------- nosy: +jwilk _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 13:09:43 2018 From: report at bugs.python.org (Alden) Date: Fri, 01 Jun 2018 17:09:43 +0000 Subject: [issue27071] unittest.TestCase.assertCountEqual is a very misleading name In-Reply-To: <1463788380.52.0.782790370377.issue27071@psf.upfronthosting.co.za> Message-ID: <1527872983.67.0.81473610881.issue27071@psf.upfronthosting.co.za> Alden added the comment: I think we need to re-open this issue. I have done a poll of a number of python developers and every developer I talked to said they initially thought this function "assertCountEqual" asserts that the count is equal. Probably because that's exactly what the words mean. I think most people in this discussion agree that the name is not ideal, but how did we end up picking one that explicitly says something completely incorrect? Not only that but we broke backward compatibility for a name that is significantly worse than the original. If you asked any colleague or developer on the street that isn't a python 3 user what "assert count equal" would do when provided with two lists. I would be amazed if anyone said something other than "checks that the two lists store the same number of elements". I have asked everyone I know and no one has said anything different. assertItemsEqual - Most people get this correct, some people think it also checks order. This confusion actually isn't that common because people first learn the function that DOES check order. (better) assertFrequencyCountsEqual - Most people aren't sure what this does and would be need to look this up. (better) assertElementCountsEqual - Seems like it checks the count of a list, but leaves you with some uncertainty. (not great, but better) assertCountEqual and assertCountsEqual - Everyone i spoke to thought this asserted that number of elements in the collections were equal. Total certainty about the wrong functionality. Explicit is better than implicit. * This name is not explicit it implies a completely different behavior. Readability counts. * The words of this function literally mean something else. Practicality beats purity. * Users not in the Python ivory tower immediately recognize this function name as something else. In the face of ambiguity, refuse the temptation to guess. * This name is not just ambiguous it is misleading and makes users guess and guess incorrectly. If the implementation is hard to explain, it's a bad idea. * If we can't name this function correctly, maybe it's a bad idea? Now is better than never. * This was a mistake and its better to correct it now than let it live on for another two years. ---------- nosy: +aldencolerain _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 13:12:57 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 01 Jun 2018 17:12:57 +0000 Subject: [issue33665] tkinter.ttk.Scrollbar.fraction() is inaccurate, or at least inconsistent compared to the non ttk version In-Reply-To: <1527503945.83.0.682650639539.issue33665@psf.upfronthosting.co.za> Message-ID: <1527873177.51.0.81473610881.issue33665@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Please post the code you used to test this. ---------- nosy: +serhiy.storchaka, terry.reedy stage: -> needs patch versions: +Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 13:14:59 2018 From: report at bugs.python.org (Christian Tismer) Date: Fri, 01 Jun 2018 17:14:59 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 Message-ID: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> New submission from Christian Tismer : The file number.rst on python 3.6 says """ .. c:function:: int PyIndex_Check(PyObject *o) Returns ``1`` if *o* is an index integer (has the nb_index slot of the tp_as_number structure filled in), and ``0`` otherwise. """ But in reality, this is a macro: """ #define PyIndex_Check(obj) \ ((obj)->ob_type->tp_as_number != NULL && \ (obj)->ob_type->tp_as_number->nb_index != NULL) """ But such a macro does not work with the limited API, since non-heaptypes cannot use PyType_GetSlot. The patch is trivial: Define the function instead of the macro when Py_LIMITED_API is set. I also think the documentation makes more sense when it is correct. ---------- components: Extension Modules messages: 318436 nosy: Christian.Tismer, larry, ned.deily priority: release blocker severity: normal status: open title: PyIndex_Check conflicts with PEP 384 type: compile error versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 13:19:27 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 01 Jun 2018 17:19:27 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1527873567.84.0.81473610881.issue33738@psf.upfronthosting.co.za> Change by Ned Deily : ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 13:25:20 2018 From: report at bugs.python.org (Christian Tismer) Date: Fri, 01 Jun 2018 17:25:20 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1527873920.31.0.81473610881.issue33738@psf.upfronthosting.co.za> Change by Christian Tismer : ---------- keywords: +patch pull_requests: +6956 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 13:25:59 2018 From: report at bugs.python.org (Jesse Paul Ogle) Date: Fri, 01 Jun 2018 17:25:59 +0000 Subject: [issue20886] Disabling logging to ~/.python_history is not simple enough In-Reply-To: <1394483435.54.0.13789888009.issue20886@psf.upfronthosting.co.za> Message-ID: <1527873959.64.0.81473610881.issue20886@psf.upfronthosting.co.za> Jesse Paul Ogle added the comment: Greetings, I came across this issue while looking into XDG Base Directory Specification. This issue is only tagged with version 3.4, but the underlying issue (not being able to change the history file / size through environment variables) appears to still exist in the definiton of enablerlcompleter() in Lib/site.py for master. I may be wrong about that. Tag 3.4: https://github.com/python/cpython/blob/3.4/Lib/site.py#L423 Tag 3.7.0b5 (latest as of writing) https://github.com/python/cpython/blob/v3.7.0b5/Lib/site.py#L436 This seems to me like a fairly straight forward fix. I made the change by copying enablercompleter() to a startup.py file and changing that line to the following: if 'PYTHONHISTFILE' in os.environ: history = os.path.expanduser(os.environ['PYTHONHISTFILE']) elif 'XDG_DATA_HOME' in os.environ: history = os.path.join(os.path.expanduser(os.environ['XDG_DATA_HOME']), 'python', 'python_history') else: history = os.path.join(os.path.expanduser('~'), '.python_history') history = os.path.abspath(history) _dir, _ = os.path.split(history) os.makedirs(_dir, exist_ok=True) This enables specifying the history file via PYTHONHISTFILE or using XDG_DATA_HOME. XDG_DATA_HOME is convenient but not necessary as PYTHONHISTFILE would at least provide a work around. One could disable logging by setting PYTHONHISTFILE=/dev/null or whatever it is on Windows. I apologize for not providing a patch but I have literally no idea where to start for that. I assume addition of environment variables requires iterating on the mailing list first? ---------- nosy: +jesse.p.ogle _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 13:39:19 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 17:39:19 +0000 Subject: [issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI In-Reply-To: <1526452224.65.0.682650639539.issue33532@psf.upfronthosting.co.za> Message-ID: <1527874759.05.0.81473610881.issue33532@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 1d4be0a65f66c2eecefb8b8bd4d115a82fa61067 by Victor Stinner in branch '2.7': bpo-33532: Fix test_multiprocessing_forkserver.test_ignore() (GH-7323) https://github.com/python/cpython/commit/1d4be0a65f66c2eecefb8b8bd4d115a82fa61067 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 13:39:19 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 17:39:19 +0000 Subject: [issue31238] pydoc: ServerThread.stop() leaves a dangling thread In-Reply-To: <1503100245.68.0.356327779955.issue31238@psf.upfronthosting.co.za> Message-ID: <1527874759.38.0.81473610881.issue31238@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset f3297433e309e9591eaa3f36e1d7887e9d0620d7 by Victor Stinner in branch '3.6': bpo-31238: pydoc ServerThread.stop() now joins itself (GH-3151) (GH-7324) https://github.com/python/cpython/commit/f3297433e309e9591eaa3f36e1d7887e9d0620d7 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 13:39:40 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 17:39:40 +0000 Subject: [issue33718] Enhance regrtest: meta-ticket for multiple changes In-Reply-To: <1527775539.21.0.682650639539.issue33718@psf.upfronthosting.co.za> Message-ID: <1527874780.09.0.81473610881.issue33718@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 137e80346ff65ad917f733d9b077e530a4797ec5 by Victor Stinner in branch '3.6': bpo-33718: Update regrtest from master (GH-7325) https://github.com/python/cpython/commit/137e80346ff65ad917f733d9b077e530a4797ec5 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 13:39:58 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 01 Jun 2018 17:39:58 +0000 Subject: [issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI In-Reply-To: <1526452224.65.0.682650639539.issue33532@psf.upfronthosting.co.za> Message-ID: <1527874798.51.0.81473610881.issue33532@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 64e538bc703e423a04ab435c4eab6b950b8aef7e by Victor Stinner in branch '3.6': bpo-33532: Fix test_multiprocessing_forkserver.test_ignore() (GH-7322) https://github.com/python/cpython/commit/64e538bc703e423a04ab435c4eab6b950b8aef7e ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 13:46:37 2018 From: report at bugs.python.org (Steve Dower) Date: Fri, 01 Jun 2018 17:46:37 +0000 Subject: [issue33720] test_marshal: crash in Python 3.7b5 on Windows 10 In-Reply-To: <1527779615.11.0.682650639539.issue33720@psf.upfronthosting.co.za> Message-ID: <1527875197.57.0.81473610881.issue33720@psf.upfronthosting.co.za> Steve Dower added the comment: FYI, I posted the problem at https://developercommunity.visualstudio.com/content/problem/265778/pgo-generates-large-stack-frame.html (I _think_ it's public). Until then, it's probably best to reduce the recursion limit. Going to a depth of 1000 seems okay, and it certainly seems less bad than disabling optimisations. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 13:46:38 2018 From: report at bugs.python.org (Eric Snow) Date: Fri, 01 Jun 2018 17:46:38 +0000 Subject: [issue33724] test__xxsubinterpreters failed on ARMv7 Ubuntu 3.x In-Reply-To: <1527803501.98.0.682650639539.issue33724@psf.upfronthosting.co.za> Message-ID: <1527875198.17.0.81473610881.issue33724@psf.upfronthosting.co.za> Eric Snow added the comment: Okay, apparently this is only happening on 2 of the buildbots from bpo-33615: ARMv7 Ubuntu 3.x PPC64 AIX 3.x Judging by the failures I'm guessing that it's something related to handling of int64_t. I'm looking into it. ---------- assignee: -> eric.snow _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 13:54:35 2018 From: report at bugs.python.org (Vinay Sajip) Date: Fri, 01 Jun 2018 17:54:35 +0000 Subject: [issue33400] logging.Formatter does not default to ISO8601 date format In-Reply-To: <1525203444.89.0.682650639539.issue33400@psf.upfronthosting.co.za> Message-ID: <1527875675.7.0.81473610881.issue33400@psf.upfronthosting.co.za> Vinay Sajip added the comment: New changeset 4b6691e40f004bf3a08b1843620f5f6028d2b79d by Vinay Sajip (Miss Islington (bot)) in branch '3.7': bpo-33400: Removed references to RFC3339 and ISO8601 from the logging documentation. (GH-7297) (GH-7302) https://github.com/python/cpython/commit/4b6691e40f004bf3a08b1843620f5f6028d2b79d ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 13:55:13 2018 From: report at bugs.python.org (Vinay Sajip) Date: Fri, 01 Jun 2018 17:55:13 +0000 Subject: [issue33400] logging.Formatter does not default to ISO8601 date format In-Reply-To: <1525203444.89.0.682650639539.issue33400@psf.upfronthosting.co.za> Message-ID: <1527875713.29.0.81473610881.issue33400@psf.upfronthosting.co.za> Vinay Sajip added the comment: New changeset 461ad598d12eba7754181402e00bb7cfc7f1d9cf by Vinay Sajip (Miss Islington (bot)) in branch '3.6': bpo-33400: Removed references to RFC3339 and ISO8601 from the logging documentation. (GH-7297) (GH-7303) https://github.com/python/cpython/commit/461ad598d12eba7754181402e00bb7cfc7f1d9cf ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 13:56:50 2018 From: report at bugs.python.org (Vinay Sajip) Date: Fri, 01 Jun 2018 17:56:50 +0000 Subject: [issue32519] venv API docs - symlinks default incorrect In-Reply-To: <1515423516.58.0.467229070634.issue32519@psf.upfronthosting.co.za> Message-ID: <1527875810.29.0.81473610881.issue32519@psf.upfronthosting.co.za> Vinay Sajip added the comment: New changeset 1df877caad584135263ef94d83a28251e162e643 by Vinay Sajip (Miss Islington (bot)) in branch '3.6': bpo-32519: Removed misleading sentence from EnvBuilder documentation. (GH-7296) (GH-7299) https://github.com/python/cpython/commit/1df877caad584135263ef94d83a28251e162e643 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 13:57:15 2018 From: report at bugs.python.org (Vinay Sajip) Date: Fri, 01 Jun 2018 17:57:15 +0000 Subject: [issue32519] venv API docs - symlinks default incorrect In-Reply-To: <1515423516.58.0.467229070634.issue32519@psf.upfronthosting.co.za> Message-ID: <1527875834.99.0.81473610881.issue32519@psf.upfronthosting.co.za> Vinay Sajip added the comment: New changeset 283e12f91db1a5290f2ddbddee406797fec39d2e by Vinay Sajip (Miss Islington (bot)) in branch '3.7': bpo-32519: Removed misleading sentence from EnvBuilder documentation. (GH-7296) (#7300) https://github.com/python/cpython/commit/283e12f91db1a5290f2ddbddee406797fec39d2e ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 14:04:24 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 01 Jun 2018 18:04:24 +0000 Subject: [issue33719] Test failures on Python 3.7 beta 5 and Windows 10 In-Reply-To: <1527778386.67.0.682650639539.issue33719@psf.upfronthosting.co.za> Message-ID: <1527876264.79.0.81473610881.issue33719@psf.upfronthosting.co.za> Terry J. Reedy added the comment: I ran py -3.7 -m test -j11 -uall I saw test_marshal fail with fatal exception. I saw test_tools and test_site fail as below. C:\Users\Terry>py -3.7 -X utf8 -m test test_pkg 0:00:00 [1/1] test_pkg 1 test OK. test_tools failed -- running: test_io (103 sec), test_largefile (100 sec), test_multiprocessing_spawn (88 sec), test_mmap (91 sec), test_tokenize (43 sec) Usage: 2to3 [options] file|dir ... regrtest.py: error: no such option: --slaveargs test test_tools failed -- Traceback (most recent call last): File "C:\Programs\Python37\lib\optparse.py", line 1387, in parse_args stop = self._process_args(largs, rargs, values) File "C:\Programs\Python37\lib\optparse.py", line 1427, in _process_args self._process_long_opt(rargs, values) File "C:\Programs\Python37\lib\optparse.py", line 1480, in _process_long_opt opt = self._match_long_opt(opt) File "C:\Programs\Python37\lib\optparse.py", line 1465, in _match_long_opt return _match_abbrev(opt, self._long_opt) File "C:\Programs\Python37\lib\optparse.py", line 1670, in _match_abbrev raise BadOptionError(s) optparse.BadOptionError: no such option: --slaveargs During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Programs\Python37\lib\test\test_tools\test_sundry.py", line 36, in test_sundry import_tool(name) File "C:\Programs\Python37\lib\test\test_tools\__init__.py", line 21, in import_tool return importlib.import_module(toolname) File "C:\Programs\Python37\lib\importlib\__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "C:\Programs\Python37\Tools\scripts\2to3.py", line 5, in sys.exit(main("lib2to3.fixes")) File "C:\Programs\Python37\lib\lib2to3\main.py", line 179, in main options, args = parser.parse_args(args) File "C:\Programs\Python37\lib\optparse.py", line 1389, in parse_args self.error(str(err)) File "C:\Programs\Python37\lib\optparse.py", line 1569, in error self.exit(2, "%s: error: %s\n" % (self.get_prog_name(), msg)) File "C:\Programs\Python37\lib\optparse.py", line 1559, in exit sys.exit(status) SystemExit: 2 test test_site failed -- Traceback (most recent call last): File "C:\Programs\Python37\lib\test\test_site.py", line 487, in test_startup_imports self.assertFalse(modules.intersection(collection_mods), stderr) AssertionError: {'heapq', 'types', 'functools', 'keyword', 'operator', 'reprlib', 'collections'} is not false : import _frozen_importlib # frozen import _imp # builtin import '_thread' # import '_warnings' # import '_weakref' # # installing zipimport hook import 'zipimport' # # installed zipimport hook import '_frozen_importlib_external' # import '_io' # import 'marshal' # import 'nt' # import _thread # previously loaded ('_thread') import '_thread' # import _weakref # previously loaded ('_weakref') import '_weakref' # import 'winreg' # # C:\Programs\Python37\lib\encodings\__pycache__\__init__.cpython-37.pyc matches C:\Programs\Python37\lib\encodings\__init__.py # code object from 'C:\\Programs\\Python37\\lib\\encodings\\__pycache__\\__init__.cpython-37.pyc' # C:\Programs\Python37\lib\__pycache__\codecs.cpython-37.pyc matches C:\Programs\Python37\lib\codecs.py # code object from 'C:\\Programs\\Python37\\lib\\__pycache__\\codecs.cpython-37.pyc' import '_codecs' # import 'codecs' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BCB943C8> # C:\Programs\Python37\lib\encodings\__pycache__\aliases.cpython-37.pyc matches C:\Programs\Python37\lib\encodings\aliases.py # code object from 'C:\\Programs\\Python37\\lib\\encodings\\__pycache__\\aliases.cpython-37.pyc' import 'encodings.aliases' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BCBA9EF0> import 'encodings' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BCB88710> # C:\Programs\Python37\lib\encodings\__pycache__\utf_8.cpython-37.pyc matches C:\Programs\Python37\lib\encodings\utf_8.py # code object from 'C:\\Programs\\Python37\\lib\\encodings\\__pycache__\\utf_8.cpython-37.pyc' import 'encodings.utf_8' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BCBBBF98> import '_signal' # # C:\Programs\Python37\lib\encodings\__pycache__\latin_1.cpython-37.pyc matches C:\Programs\Python37\lib\encodings\latin_1.py # code object from 'C:\\Programs\\Python37\\lib\\encodings\\__pycache__\\latin_1.cpython-37.pyc' import 'encodings.latin_1' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BCBBD400> # C:\Programs\Python37\lib\__pycache__\io.cpython-37.pyc matches C:\Programs\Python37\lib\io.py # code object from 'C:\\Programs\\Python37\\lib\\__pycache__\\io.cpython-37.pyc' # C:\Programs\Python37\lib\__pycache__\abc.cpython-37.pyc matches C:\Programs\Python37\lib\abc.py # code object from 'C:\\Programs\\Python37\\lib\\__pycache__\\abc.cpython-37.pyc' import '_abc' # import 'abc' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BCBBD9B0> import 'io' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BCBBD5F8> # C:\Programs\Python37\lib\__pycache__\_bootlocale.cpython-37.pyc matches C:\Programs\Python37\lib\_bootlocale.py # code object from 'C:\\Programs\\Python37\\lib\\__pycache__\\_bootlocale.cpython-37.pyc' import '_locale' # import '_bootlocale' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BCBBDF98> # C:\Programs\Python37\lib\encodings\__pycache__\cp1252.cpython-37.pyc matches C:\Programs\Python37\lib\encodings\cp1252.py # code object from 'C:\\Programs\\Python37\\lib\\encodings\\__pycache__\\cp1252.cpython-37.pyc' import 'encodings.cp1252' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BCBC4828> Python 3.7.0b5 (v3.7.0b5:abb8802389, May 31 2018, 01:54:01) [MSC v.1913 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. # C:\Programs\Python37\lib\__pycache__\site.cpython-37.pyc matches C:\Programs\Python37\lib\site.py # code object from 'C:\\Programs\\Python37\\lib\\__pycache__\\site.cpython-37.pyc' # C:\Programs\Python37\lib\__pycache__\os.cpython-37.pyc matches C:\Programs\Python37\lib\os.py # code object from 'C:\\Programs\\Python37\\lib\\__pycache__\\os.cpython-37.pyc' # C:\Programs\Python37\lib\__pycache__\stat.cpython-37.pyc matches C:\Programs\Python37\lib\stat.py # code object from 'C:\\Programs\\Python37\\lib\\__pycache__\\stat.cpython-37.pyc' import '_stat' # import 'stat' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BCBDF390> # C:\Programs\Python37\lib\__pycache__\ntpath.cpython-37.pyc matches C:\Programs\Python37\lib\ntpath.py # code object from 'C:\\Programs\\Python37\\lib\\__pycache__\\ntpath.cpython-37.pyc' # C:\Programs\Python37\lib\__pycache__\genericpath.cpython-37.pyc matches C:\Programs\Python37\lib\genericpath.py # code object from 'C:\\Programs\\Python37\\lib\\__pycache__\\genericpath.cpython-37.pyc' import 'genericpath' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BCBEE2B0> import 'ntpath' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BCBDFA20> # C:\Programs\Python37\lib\__pycache__\_collections_abc.cpython-37.pyc matches C:\Programs\Python37\lib\_collections_abc.py # code object from 'C:\\Programs\\Python37\\lib\\__pycache__\\_collections_abc.cpython-37.pyc' import '_collections_abc' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BCBEE860> import 'os' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BCBCEF60> # C:\Programs\Python37\lib\__pycache__\_sitebuiltins.cpython-37.pyc matches C:\Programs\Python37\lib\_sitebuiltins.py # code object from 'C:\\Programs\\Python37\\lib\\__pycache__\\_sitebuiltins.cpython-37.pyc' import '_sitebuiltins' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BCBD3320> # C:\Programs\Python37\lib\__pycache__\types.cpython-37.pyc matches C:\Programs\Python37\lib\types.py # code object from 'C:\\Programs\\Python37\\lib\\__pycache__\\types.cpython-37.pyc' import 'types' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BCBD9748> # C:\Programs\Python37\lib\importlib\__pycache__\__init__.cpython-37.pyc matches C:\Programs\Python37\lib\importlib\__init__.py # code object from 'C:\\Programs\\Python37\\lib\\importlib\\__pycache__\\__init__.cpython-37.pyc' # C:\Programs\Python37\lib\__pycache__\warnings.cpython-37.pyc matches C:\Programs\Python37\lib\warnings.py # code object from 'C:\\Programs\\Python37\\lib\\__pycache__\\warnings.cpython-37.pyc' import 'warnings' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BE9493C8> import 'importlib' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BCC0EF98> # C:\Programs\Python37\lib\importlib\__pycache__\util.cpython-37.pyc matches C:\Programs\Python37\lib\importlib\util.py # code object from 'C:\\Programs\\Python37\\lib\\importlib\\__pycache__\\util.cpython-37.pyc' # C:\Programs\Python37\lib\importlib\__pycache__\abc.cpython-37.pyc matches C:\Programs\Python37\lib\importlib\abc.py # code object from 'C:\\Programs\\Python37\\lib\\importlib\\__pycache__\\abc.cpython-37.pyc' # C:\Programs\Python37\lib\importlib\__pycache__\machinery.cpython-37.pyc matches C:\Programs\Python37\lib\importlib\machinery.py # code object from 'C:\\Programs\\Python37\\lib\\importlib\\__pycache__\\machinery.cpython-37.pyc' import 'importlib.machinery' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BE953F98> import 'importlib.abc' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BE953748> # C:\Programs\Python37\lib\__pycache__\contextlib.cpython-37.pyc matches C:\Programs\Python37\lib\contextlib.py # code object from 'C:\\Programs\\Python37\\lib\\__pycache__\\contextlib.cpython-37.pyc' # C:\Programs\Python37\lib\collections\__pycache__\__init__.cpython-37.pyc matches C:\Programs\Python37\lib\collections\__init__.py # code object from 'C:\\Programs\\Python37\\lib\\collections\\__pycache__\\__init__.cpython-37.pyc' # C:\Programs\Python37\lib\__pycache__\operator.cpython-37.pyc matches C:\Programs\Python37\lib\operator.py # code object from 'C:\\Programs\\Python37\\lib\\__pycache__\\operator.cpython-37.pyc' import '_operator' # import 'operator' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BEA8E550> # C:\Programs\Python37\lib\__pycache__\keyword.cpython-37.pyc matches C:\Programs\Python37\lib\keyword.py # code object from 'C:\\Programs\\Python37\\lib\\__pycache__\\keyword.cpython-37.pyc' import 'keyword' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BEA97748> # C:\Programs\Python37\lib\__pycache__\heapq.cpython-37.pyc matches C:\Programs\Python37\lib\heapq.py # code object from 'C:\\Programs\\Python37\\lib\\__pycache__\\heapq.cpython-37.pyc' import '_heapq' # import 'heapq' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BEA9A128> import 'itertools' # # C:\Programs\Python37\lib\__pycache__\reprlib.cpython-37.pyc matches C:\Programs\Python37\lib\reprlib.py # code object from 'C:\\Programs\\Python37\\lib\\__pycache__\\reprlib.cpython-37.pyc' import 'reprlib' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BEA9A710> import '_collections' # import 'collections' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BE96C780> # C:\Programs\Python37\lib\__pycache__\functools.cpython-37.pyc matches C:\Programs\Python37\lib\functools.py # code object from 'C:\\Programs\\Python37\\lib\\__pycache__\\functools.cpython-37.pyc' import '_functools' # import 'functools' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BE96CB70> import 'contextlib' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BE953DD8> import 'importlib.util' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BE949780> # possible namespace for C:\Programs\Python37\lib\site-packages\sphinxcontrib import 'site' # <_frozen_importlib_external.SourceFileLoader object at 0x00000252BCBC4B70> # cleanup[3] wiping _codecs # cleanup[3] wiping encodings.aliases # cleanup[3] wiping encodings.utf_8 # cleanup[3] wiping encodings.latin_1 # cleanup[3] wiping encodings.cp1252 # cleanup[3] wiping importlib._bootstrap # cleanup[3] wiping sys # clear builtins._ # clear sys.path # clear sys.argv # clear sys.ps1 # clear sys.ps2 # clear sys.last_type # clear sys.last_value # clear sys.last_traceback # clear sys.path_hooks # clear sys.path_importer_cache # clear sys.meta_path # clear sys.__interactivehook__ # clear sys.flags # clear sys.float_info # restore sys.stdin # restore sys.stdout # restore sys.stderr # cleanup[2] removing sys # cleanup[2] removing builtins # cleanup[2] removing _frozen_importlib # cleanup[2] removing _imp # cleanup[2] removing _thread # cleanup[2] removing _warnings # cleanup[2] removing _weakref # cleanup[2] removing zipimport # cleanup[2] removing _frozen_importlib_external # cleanup[2] removing _io # cleanup[2] removing marshal # cleanup[2] removing nt # cleanup[2] removing winreg # cleanup[2] removing encodings # destroy encodings # cleanup[2] removing codecs # cleanup[2] removing _codecs # cleanup[2] removing encodings.aliases # cleanup[2] removing encodings.utf_8 # cleanup[2] removing _signal # cleanup[2] removing __main__ # destroy __main__ # cleanup[2] removing encodings.latin_1 # cleanup[2] removing io # destroy io # cleanup[2] removing abc # cleanup[2] removing _abc # cleanup[2] removing _bootlocale # destroy _bootlocale # cleanup[2] removing _locale # cleanup[2] removing encodings.cp1252 # cleanup[2] removing site # destroy site # cleanup[2] removing os # cleanup[2] removing stat # cleanup[2] removing _stat # cleanup[2] removing ntpath # cleanup[2] removing genericpath # cleanup[2] removing os.path # cleanup[2] removing _collections_abc # cleanup[2] removing _sitebuiltins # cleanup[2] removing types # cleanup[2] removing importlib # destroy importlib # cleanup[2] removing importlib._bootstrap # cleanup[2] removing importlib._bootstrap_external # cleanup[2] removing warnings # cleanup[2] removing importlib.util # cleanup[2] removing importlib.abc # cleanup[2] removing importlib.machinery # cleanup[2] removing contextlib # destroy contextlib # cleanup[2] removing collections # destroy collections # cleanup[2] removing operator # destroy operator # cleanup[2] removing _operator # cleanup[2] removing keyword # destroy keyword # cleanup[2] removing heapq # cleanup[2] removing _heapq # cleanup[2] removing itertools # cleanup[2] removing reprlib # destroy reprlib # cleanup[2] removing _collections # cleanup[2] removing functools # cleanup[2] removing _functools # cleanup[2] removing sphinxcontrib # destroy sphinxcontrib # destroy zipimport # destroy _signal # destroy _locale # destroy _sitebuiltins # destroy ntpath # destroy _stat # destroy genericpath # destroy os # destroy stat # destroy importlib.util # destroy importlib.abc # destroy functools # destroy types # destroy importlib.machinery # destroy warnings # destroy abc # destroy _collections_abc # destroy heapq # destroy _abc # destroy _functools # destroy _operator # destroy _heapq # destroy itertools # destroy _collections # cleanup[3] wiping _frozen_importlib # destroy _frozen_importlib_external # cleanup[3] wiping _imp # cleanup[3] wiping _thread # cleanup[3] wiping _warnings # cleanup[3] wiping _weakref # cleanup[3] wiping _io # cleanup[3] wiping marshal # cleanup[3] wiping nt # cleanup[3] wiping winreg # cleanup[3] wiping codecs # cleanup[3] wiping builtins ---------- nosy: +terry.reedy _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 14:25:08 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 01 Jun 2018 18:25:08 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1527877508.84.0.81473610881.issue33738@psf.upfronthosting.co.za> Ned Deily added the comment: This is not a security issue so a change would not be applicable to the 3.4 or 3.5 branches, currently in security-fix-only mode. ---------- versions: +Python 3.8 -Python 3.4, Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 14:27:14 2018 From: report at bugs.python.org (Puneet Singh) Date: Fri, 01 Jun 2018 18:27:14 +0000 Subject: [issue33737] Multiprocessing not working In-Reply-To: <1527872710.36.0.81473610881.issue33737@psf.upfronthosting.co.za> Message-ID: <1527877634.67.0.81473610881.issue33737@psf.upfronthosting.co.za> Puneet Singh added the comment: Can anyone help me in solving this problem ?? ---------- Added file: https://bugs.python.org/file47629/Prog.py _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 14:33:51 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 01 Jun 2018 18:33:51 +0000 Subject: [issue33737] Multiprocessing not working In-Reply-To: <1527872710.36.0.81473610881.issue33737@psf.upfronthosting.co.za> Message-ID: <1527878031.24.0.81473610881.issue33737@psf.upfronthosting.co.za> Ned Deily added the comment: Puneet, sorry but this bug tracker is for reporting issues found with the Python language and its implementation, not for help with programming problems. Please see the Help page on python.org for suggestions on getting help: https://www.python.org/about/help/ ---------- nosy: +ned.deily resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 14:41:45 2018 From: report at bugs.python.org (Andres Ayala) Date: Fri, 01 Jun 2018 18:41:45 +0000 Subject: [issue33660] pathlib.Path.resolve() returns path with double slash when resolving a relative path in root directory In-Reply-To: <1527418713.03.0.682650639539.issue33660@psf.upfronthosting.co.za> Message-ID: <1527878505.95.0.81473610881.issue33660@psf.upfronthosting.co.za> Andres Ayala added the comment: Script to reproduce: import os import pathlib # Change to the Root directory os.chdir('/') # Create a relative path object. p = pathlib.Path('spam') print(p.resolve()) Expected output: /span Incorrect output //span ---------- Added file: https://bugs.python.org/file47630/plbug.py _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 14:51:18 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 01 Jun 2018 18:51:18 +0000 Subject: [issue33650] Prohibit adding a signal handler for SIGCHLD In-Reply-To: <1527281795.42.0.682650639539.issue33650@psf.upfronthosting.co.za> Message-ID: <1527879078.68.0.81473610881.issue33650@psf.upfronthosting.co.za> Change by Ned Deily : ---------- nosy: +gregory.p.smith _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 14:52:51 2018 From: report at bugs.python.org (Ivan Pozdeev) Date: Fri, 01 Jun 2018 18:52:51 +0000 Subject: [issue33661] urllib may leak sensitive HTTP headers to a third-party web site In-Reply-To: <1527430806.55.0.682650639539.issue33661@psf.upfronthosting.co.za> Message-ID: <1527879171.39.0.81473610881.issue33661@psf.upfronthosting.co.za> Ivan Pozdeev added the comment: It's not about "convincing" me or anyone else. It's about showing how this will be a strict improvement. I showed that the HTTP RFC allows apps to rely on the fact that they are receiving all the headers. So filtering them arbitrarily violates the HTTP standard -- while the whole purpose of `urllib` is to conform to it (or it would not be able to reliably talk to HTTP servers). So, your suggestion is a disaster rather than improvement. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 15:00:39 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 01 Jun 2018 19:00:39 +0000 Subject: [issue33650] Prohibit adding a signal handler for SIGCHLD In-Reply-To: <1527281795.42.0.682650639539.issue33650@psf.upfronthosting.co.za> Message-ID: <1527879639.57.0.81473610881.issue33650@psf.upfronthosting.co.za> Yury Selivanov added the comment: To clarify this ticket: I'm talking about prohibiting `loop.add_signal_handler(SIGCHLD)` as it would break child processes watchers that asyncio installs. In other words, setting a custom SIGCHLD breaks asyncio internals. We can allow user-set SIGCHLD signals if we add some code to make sure that 'add_signal_handler(SIGCHLD)' delivers the signal to *both* asyncio internals and user code. But I'm not sure if there's a valid use case for listening for SIGCHLD for user code at all. For now, I disabled SIGCHLD in uvloop, let's see if people complain. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 15:02:27 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 01 Jun 2018 19:02:27 +0000 Subject: [issue33663] Web.py wsgiserver3.py raises TypeError when CSS file is not found In-Reply-To: <1527462202.39.0.682650639539.issue33663@psf.upfronthosting.co.za> Message-ID: <1527879747.77.0.81473610881.issue33663@psf.upfronthosting.co.za> Change by Ned Deily : ---------- keywords: +easy nosy: +orsenthil versions: +Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 15:39:53 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Fri, 01 Jun 2018 19:39:53 +0000 Subject: [issue33650] asyncio: Prohibit adding a signal handler for SIGCHLD In-Reply-To: <1527281795.42.0.682650639539.issue33650@psf.upfronthosting.co.za> Message-ID: <1527881993.48.0.81473610881.issue33650@psf.upfronthosting.co.za> Change by Antoine Pitrou : ---------- title: Prohibit adding a signal handler for SIGCHLD -> asyncio: Prohibit adding a signal handler for SIGCHLD _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 15:41:05 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Fri, 01 Jun 2018 19:41:05 +0000 Subject: [issue33650] asyncio: Prohibit adding a signal handler for SIGCHLD In-Reply-To: <1527281795.42.0.682650639539.issue33650@psf.upfronthosting.co.za> Message-ID: <1527882065.12.0.81473610881.issue33650@psf.upfronthosting.co.za> Antoine Pitrou added the comment: Some people may have reasons to do that (for example: they write their own subprocess implementation). I suggest emitting a warning rather than forbidding it. ---------- nosy: +pitrou _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 15:49:10 2018 From: report at bugs.python.org (Mayank Singhal) Date: Fri, 01 Jun 2018 19:49:10 +0000 Subject: [issue31215] Add version changed notes for OpenSSL 1.1.0 compatibility In-Reply-To: <1502860659.7.0.930691554308.issue31215@psf.upfronthosting.co.za> Message-ID: <1527882550.15.0.81473610881.issue31215@psf.upfronthosting.co.za> Mayank Singhal <17mayanksinghal at gmail.com> added the comment: Hey, I'll take this up. ---------- nosy: +storymode7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 16:20:21 2018 From: report at bugs.python.org (Hynek Schlawack) Date: Fri, 01 Jun 2018 20:20:21 +0000 Subject: [issue33734] asyncio/ssl: Fix AttributeError, increase default handshake timeout In-Reply-To: <1527864833.64.0.81473610881.issue33734@psf.upfronthosting.co.za> Message-ID: <1527884421.43.0.81473610881.issue33734@psf.upfronthosting.co.za> Hynek Schlawack added the comment: > Previous timeout was effectively infinite. Oi, well then 60s are an improvement indeed. :) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 16:34:48 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Fri, 01 Jun 2018 20:34:48 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1527885288.68.0.81473610881.issue33738@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Seems PyIter_Check and PySequence_ITEM have the same problem. And maybe more. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 16:36:26 2018 From: report at bugs.python.org (Brett Cannon) Date: Fri, 01 Jun 2018 20:36:26 +0000 Subject: [issue29235] Allow profile/cProfile to be used as context managers In-Reply-To: <1484097220.43.0.363931456874.issue29235@psf.upfronthosting.co.za> Message-ID: <1527885386.06.0.81473610881.issue29235@psf.upfronthosting.co.za> Brett Cannon added the comment: New changeset 2e01b75884892d5aabdaab658fbd17f7a7ccebaa by Brett Cannon (Scott Sanderson) in branch 'master': bpo-29235: Make cProfile.Profile a context manager (GH-6808) https://github.com/python/cpython/commit/2e01b75884892d5aabdaab658fbd17f7a7ccebaa ---------- nosy: +brett.cannon _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 16:42:58 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Fri, 01 Jun 2018 20:42:58 +0000 Subject: [issue29235] Allow profile/cProfile to be used as context managers In-Reply-To: <1484097220.43.0.363931456874.issue29235@psf.upfronthosting.co.za> Message-ID: <1527885778.03.0.81473610881.issue29235@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Please add a versionadded or versionchanged directive in the documentation (not sure what is more appropriate in this case) and an entry in What's New. A news entry shouldn't consist of several paragraphs. This will be lost when news entries will be merged into a single NEWS file. ---------- nosy: +serhiy.storchaka versions: +Python 3.8 -Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 16:45:57 2018 From: report at bugs.python.org (Christian Tismer) Date: Fri, 01 Jun 2018 20:45:57 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1527885957.23.0.81473610881.issue33738@psf.upfronthosting.co.za> Christian Tismer added the comment: Ok, I tried to submit a patch (not yet successful), but as it stands, there are more locations in the code where this will show up with similar problems. Should I take care of these all as much as I can, or is it better to leave it to one of you? Whatever you prefer is ok. I just want the problem to disappear in 3.7, because I hate to break the API any longer. Cheers - Chris ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 16:53:57 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Fri, 01 Jun 2018 20:53:57 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1527886437.28.0.81473610881.issue33738@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Would be nice if you fix as much similar as you can with a single PR. For performance it makes sense to keep macros if the limited API is not used. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 17:03:25 2018 From: report at bugs.python.org (Eryk Sun) Date: Fri, 01 Jun 2018 21:03:25 +0000 Subject: [issue33721] os.path.exists() ought to return False if pathname contains NUL In-Reply-To: <1527787165.92.0.682650639539.issue33721@psf.upfronthosting.co.za> Message-ID: <1527887005.49.0.81473610881.issue33721@psf.upfronthosting.co.za> Eryk Sun added the comment: It has to be a ValueError since the error is an invalid parameter at the Python level. Similarly, in 3.6+ when using bytes paths in Windows, for which Python uses UTF-8 as the file-system encoding, os.path.exists() may raise UnicodeDecodeError: >>> try: ... os.path.exists(b'\xc8spam') ... except ValueError as e: err = e ... >>> err UnicodeDecodeError('utf-8', b'\xc8spam', 0, 1, 'invalid continuation byte') There's no practical support for NUL in paths in any OS as far as I know. In principle, the native NT API of Windows allows NUL in device names since it uses counted strings. However, Python only supports the Windows API, which uses null-terminated strings. So, practically speaking, not supporting NUL in paths is not an issue. Here's an example of using an NT device name that contains a NUL character. It creates a DOS 'device' named "A\x00B" that targets "C:\\Temp". It's like a SUBST drive, but with any device name instead of just a drive-letter name. I omitted the ctypes definitions for brevity. obja = OBJECT_ATTRIBUTES("\\??\\A\x00B") target = UNICODE_STRING("\\??\\C:\\Temp") handle = ctypes.c_void_p() NtCreateSymbolicLinkObject(ctypes.byref(handle), GENERIC_ALL, ctypes.byref(obja), ctypes.byref(target)) Query the timestamps of the "A\x00B" device: info = (ctypes.c_ulonglong * 5)() NtQueryAttributesFile(ctypes.byref(obja), info) times = (ctypes.c_int * 4)() for i in range(4): RtlTimeToSecondsSince1970(ctypes.byref(info, i*8), ctypes.byref(times, i*4)) Verify that the creation, last access, and last write times are the same as "C:\\Temp": s = os.stat('C:\\Temp') times2 = [int(x) for x in (s.st_ctime, s.st_atime, s.st_mtime)] >>> times[:3] == times2 True (The fourth timestamp is the change time, which isn't supported in Windows Python for legacy reasons that also relate to the bizarre use of st_ctime for the creation time, instead of st_birthtime.) ---------- nosy: +eryksun _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 17:06:29 2018 From: report at bugs.python.org (Cheryl Sabella) Date: Fri, 01 Jun 2018 21:06:29 +0000 Subject: [issue33642] IDLE: Use variable number of lines in CodeContext In-Reply-To: <1527208905.36.0.682650639539.issue33642@psf.upfronthosting.co.za> Message-ID: <1527887189.63.0.81473610881.issue33642@psf.upfronthosting.co.za> Cheryl Sabella added the comment: I see similar behavior on Linux, except after maximizing and then minimizing, it seems to stay with option 2. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 17:12:53 2018 From: report at bugs.python.org (Christian Tismer) Date: Fri, 01 Jun 2018 21:12:53 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1527887573.06.0.81473610881.issue33738@psf.upfronthosting.co.za> Christian Tismer added the comment: Yes, sure, I will submit a patch that tries to reach as much as possible locations that have a similar problem. Of course, the code will only be turned into functions for the PEP context. Takes a day because I need to re-learn a bit how to do this :-) (last patch was 2010, I think... ) -- related personal note - does someone know what happened to Martin? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 17:26:49 2018 From: report at bugs.python.org (Brett Cannon) Date: Fri, 01 Jun 2018 21:26:49 +0000 Subject: [issue33562] Check that the global settings for asyncio are not changed by tests In-Reply-To: <1526590170.07.0.682650639539.issue33562@psf.upfronthosting.co.za> Message-ID: <1527888409.63.0.81473610881.issue33562@psf.upfronthosting.co.za> Change by Brett Cannon : ---------- pull_requests: +6957 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 17:40:55 2018 From: report at bugs.python.org (Cheryl Sabella) Date: Fri, 01 Jun 2018 21:40:55 +0000 Subject: [issue33610] IDLE: Make multiple improvements to CodeContext In-Reply-To: <1527052692.02.0.682650639539.issue33610@psf.upfronthosting.co.za> Message-ID: <1527889255.63.0.81473610881.issue33610@psf.upfronthosting.co.za> Cheryl Sabella added the comment: > That leaves line alignment. If you are working on it, but don't have a PR ready yet, please say so. I was going to work on it this weekend, but haven't started yet. I agree that moving Code Context to the Windows menu makes sense. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 17:53:12 2018 From: report at bugs.python.org (Eric Snow) Date: Fri, 01 Jun 2018 21:53:12 +0000 Subject: [issue33724] test__xxsubinterpreters failed on ARMv7 Ubuntu 3.x In-Reply-To: <1527803501.98.0.682650639539.issue33724@psf.upfronthosting.co.za> Message-ID: <1527889992.32.0.81473610881.issue33724@psf.upfronthosting.co.za> Eric Snow added the comment: I'm pretty sure at this point that the failures are due to using a %d format string for int64_t instead of %lld. I'll have a PR up shortly. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 17:57:15 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 01 Jun 2018 21:57:15 +0000 Subject: [issue33739] pathlib: Allow ellipsis to appear after "/" to navigate to parent path Message-ID: <1527890235.56.0.81473610881.issue33739@psf.upfronthosting.co.za> New submission from Yury Selivanov : We can allow using ... to navigate the "parent" path: >>> import pathlib >>> p = pathlib.Path('a/b/c') >>> p PosixPath('a/b/c') >>> p / ... PosixPath('a/b') >>> p / ... / ... / 'temp' PosixPath('a/temp') The patch is trivial and I think that using "..." instead of ".parent" makes code clearer and cuter. ---------- components: Library (Lib) messages: 318468 nosy: brett.cannon, pitrou, yselivanov priority: normal severity: normal stage: patch review status: open title: pathlib: Allow ellipsis to appear after "/" to navigate to parent path type: enhancement _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 17:58:48 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 01 Jun 2018 21:58:48 +0000 Subject: [issue33739] pathlib: Allow ellipsis to appear after "/" to navigate to parent path In-Reply-To: <1527890235.56.0.81473610881.issue33739@psf.upfronthosting.co.za> Message-ID: <1527890328.02.0.81473610881.issue33739@psf.upfronthosting.co.za> Change by Yury Selivanov : ---------- keywords: +patch pull_requests: +6958 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 18:06:57 2018 From: report at bugs.python.org (Eric Snow) Date: Fri, 01 Jun 2018 22:06:57 +0000 Subject: [issue33724] test__xxsubinterpreters failed on ARMv7 Ubuntu 3.x In-Reply-To: <1527803501.98.0.682650639539.issue33724@psf.upfronthosting.co.za> Message-ID: <1527890817.28.0.81473610881.issue33724@psf.upfronthosting.co.za> Change by Eric Snow : ---------- keywords: +patch pull_requests: +6959 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 18:06:57 2018 From: report at bugs.python.org (Eric Snow) Date: Fri, 01 Jun 2018 22:06:57 +0000 Subject: [issue32604] Expose the subinterpreters C-API in Python for testing use. In-Reply-To: <1516413482.13.0.467229070634.issue32604@psf.upfronthosting.co.za> Message-ID: <1527890817.36.0.612199116773.issue32604@psf.upfronthosting.co.za> Change by Eric Snow : ---------- pull_requests: +6960 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 18:26:04 2018 From: report at bugs.python.org (Eric Snow) Date: Fri, 01 Jun 2018 22:26:04 +0000 Subject: [issue33724] test__xxsubinterpreters failed on ARMv7 Ubuntu 3.x In-Reply-To: <1527803501.98.0.682650639539.issue33724@psf.upfronthosting.co.za> Message-ID: <1527891964.81.0.81473610881.issue33724@psf.upfronthosting.co.za> Eric Snow added the comment: New changeset 6854e803b73ac4d02ba160d514b8a53dd7a62905 by Eric Snow in branch 'master': bpo-33724: Use the right format code for int64_t in subinterpreters code. (gh-7330) https://github.com/python/cpython/commit/6854e803b73ac4d02ba160d514b8a53dd7a62905 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 18:27:21 2018 From: report at bugs.python.org (Scott Sanderson) Date: Fri, 01 Jun 2018 22:27:21 +0000 Subject: [issue29235] Allow profile/cProfile to be used as context managers In-Reply-To: <1484097220.43.0.363931456874.issue29235@psf.upfronthosting.co.za> Message-ID: <1527892041.68.0.81473610881.issue29235@psf.upfronthosting.co.za> Change by Scott Sanderson : ---------- pull_requests: +6961 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 18:29:25 2018 From: report at bugs.python.org (Scott Sanderson) Date: Fri, 01 Jun 2018 22:29:25 +0000 Subject: [issue29235] Allow profile/cProfile to be used as context managers In-Reply-To: <1484097220.43.0.363931456874.issue29235@psf.upfronthosting.co.za> Message-ID: <1527892165.19.0.81473610881.issue29235@psf.upfronthosting.co.za> Scott Sanderson added the comment: I've posted a patch to update the docs to https://github.com/python/cpython/pull/7331. ---------- nosy: +Scott Sanderson2 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 19:11:34 2018 From: report at bugs.python.org (Eric Snow) Date: Fri, 01 Jun 2018 23:11:34 +0000 Subject: [issue33724] test__xxsubinterpreters failed on ARMv7 Ubuntu 3.x In-Reply-To: <1527803501.98.0.682650639539.issue33724@psf.upfronthosting.co.za> Message-ID: <1527894694.13.0.81473610881.issue33724@psf.upfronthosting.co.za> Eric Snow added the comment: The fix took care of the failures. ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 19:23:02 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 01 Jun 2018 23:23:02 +0000 Subject: [issue33642] IDLE: Use variable number of lines in CodeContext In-Reply-To: <1527208905.36.0.682650639539.issue33642@psf.upfronthosting.co.za> Message-ID: <1527895382.57.0.81473610881.issue33642@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset 29996a1c4e8bd6dde6adce2b44d11a0982a47a3a by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106) https://github.com/python/cpython/commit/29996a1c4e8bd6dde6adce2b44d11a0982a47a3a ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 19:23:23 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 01 Jun 2018 23:23:23 +0000 Subject: [issue33642] IDLE: Use variable number of lines in CodeContext In-Reply-To: <1527208905.36.0.682650639539.issue33642@psf.upfronthosting.co.za> Message-ID: <1527895403.65.0.81473610881.issue33642@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6963 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 19:24:11 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 01 Jun 2018 23:24:11 +0000 Subject: [issue33642] IDLE: Use variable number of lines in CodeContext In-Reply-To: <1527208905.36.0.682650639539.issue33642@psf.upfronthosting.co.za> Message-ID: <1527895451.8.0.81473610881.issue33642@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6964 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 19:46:04 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 01 Jun 2018 23:46:04 +0000 Subject: [issue33642] IDLE: Use variable number of lines in CodeContext In-Reply-To: <1527208905.36.0.682650639539.issue33642@psf.upfronthosting.co.za> Message-ID: <1527896764.58.0.81473610881.issue33642@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 0800b6c17a829ecb554d93cba8c97f92b15be52a by Miss Islington (bot) in branch '3.7': bpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106) https://github.com/python/cpython/commit/0800b6c17a829ecb554d93cba8c97f92b15be52a ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 20:08:08 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 02 Jun 2018 00:08:08 +0000 Subject: [issue33642] IDLE: Use variable number of lines in CodeContext In-Reply-To: <1527208905.36.0.682650639539.issue33642@psf.upfronthosting.co.za> Message-ID: <1527898088.93.0.81473610881.issue33642@psf.upfronthosting.co.za> miss-islington added the comment: New changeset a42fe3c67ca86ac08dc6f47af27eed089d35fdd0 by Miss Islington (bot) in branch '3.6': bpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106) https://github.com/python/cpython/commit/a42fe3c67ca86ac08dc6f47af27eed089d35fdd0 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 20:10:39 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 02 Jun 2018 00:10:39 +0000 Subject: [issue33610] IDLE: Make multiple improvements to CodeContext In-Reply-To: <1527052692.02.0.682650639539.issue33610@psf.upfronthosting.co.za> Message-ID: <1527898239.91.0.81473610881.issue33610@psf.upfronthosting.co.za> Terry J. Reedy added the comment: I merged 'variable lines' and edited 'colors' to fix the resulting conflicts. Travis passed the latter so I expect to merge it also. To avoid more conflicts, you should wait to create the 'alignment' branch until 'colors' is merged and pulled into your clone. (We should continue to keep having two pending patches for the same file rare.) Counter-argument for menu location. Window has 1 to n top-level window items. Options will have just one item without Code Context. So moving Zoom would make things more balanced. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 20:15:17 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 02 Jun 2018 00:15:17 +0000 Subject: [issue33642] IDLE: Use variable number of lines in CodeContext In-Reply-To: <1527208905.36.0.682650639539.issue33642@psf.upfronthosting.co.za> Message-ID: <1527898517.42.0.81473610881.issue33642@psf.upfronthosting.co.za> Terry J. Reedy added the comment: I am leaving this open until the new behavior is documented, even though it might be part of another issue that includes other context changes. For this issue, I will leave what happens when unzooming unspecific. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 20:45:23 2018 From: report at bugs.python.org (Eric Snow) Date: Sat, 02 Jun 2018 00:45:23 +0000 Subject: [issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x In-Reply-To: <1527078316.31.0.682650639539.issue33615@psf.upfronthosting.co.za> Message-ID: <1527900323.54.0.81473610881.issue33615@psf.upfronthosting.co.za> Eric Snow added the comment: New changeset 63799136e6c0491bb5d6f4a234d5a775db3458db by Eric Snow in branch 'master': bpo-33615: Re-enable a subinterpreter test. (gh-7251) https://github.com/python/cpython/commit/63799136e6c0491bb5d6f4a234d5a775db3458db ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 20:45:23 2018 From: report at bugs.python.org (Eric Snow) Date: Sat, 02 Jun 2018 00:45:23 +0000 Subject: [issue32604] Expose the subinterpreters C-API in Python for testing use. In-Reply-To: <1516413482.13.0.467229070634.issue32604@psf.upfronthosting.co.za> Message-ID: <1527900323.82.0.269611931914.issue32604@psf.upfronthosting.co.za> Eric Snow added the comment: New changeset 63799136e6c0491bb5d6f4a234d5a775db3458db by Eric Snow in branch 'master': bpo-33615: Re-enable a subinterpreter test. (gh-7251) https://github.com/python/cpython/commit/63799136e6c0491bb5d6f4a234d5a775db3458db ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 20:46:37 2018 From: report at bugs.python.org (Eric Snow) Date: Sat, 02 Jun 2018 00:46:37 +0000 Subject: [issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x In-Reply-To: <1527078316.31.0.682650639539.issue33615@psf.upfronthosting.co.za> Message-ID: <1527900397.1.0.81473610881.issue33615@psf.upfronthosting.co.za> Change by Eric Snow : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> pending _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 21:45:56 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 02 Jun 2018 01:45:56 +0000 Subject: [issue33679] IDLE: Configurable color on code context In-Reply-To: <1527592431.06.0.682650639539.issue33679@psf.upfronthosting.co.za> Message-ID: <1527903956.81.0.81473610881.issue33679@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset de6516264e793be991f692fdd892707afb9104a7 by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-33679: IDLE: Re-enable color configuration for code context (GH-7199) https://github.com/python/cpython/commit/de6516264e793be991f692fdd892707afb9104a7 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 21:47:11 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 02 Jun 2018 01:47:11 +0000 Subject: [issue33679] IDLE: Configurable color on code context In-Reply-To: <1527592431.06.0.682650639539.issue33679@psf.upfronthosting.co.za> Message-ID: <1527904031.04.0.81473610881.issue33679@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6965 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 21:47:15 2018 From: report at bugs.python.org (Ivan Pozdeev) Date: Sat, 02 Jun 2018 01:47:15 +0000 Subject: [issue33709] test.support.FS_NONASCII returns incorrect result in Windows with non-US locale In-Reply-To: <1527756850.06.0.682650639539.issue33709@psf.upfronthosting.co.za> Message-ID: <1527904035.39.0.81473610881.issue33709@psf.upfronthosting.co.za> Ivan Pozdeev added the comment: In 3.x, it turns out, this doesn't result in test failures in stock configuration. It does though if PYTHONLEGACYWINDOWSFSENCODING is in system environment. I was diagnosing failures in 2.x and saw that 3.x has the same logic, so it was a no-brainer to replicate the change... ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 21:48:04 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 02 Jun 2018 01:48:04 +0000 Subject: [issue33679] IDLE: Configurable color on code context In-Reply-To: <1527592431.06.0.682650639539.issue33679@psf.upfronthosting.co.za> Message-ID: <1527904084.18.0.81473610881.issue33679@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6966 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 22:16:07 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 02 Jun 2018 02:16:07 +0000 Subject: [issue33679] IDLE: Configurable color on code context In-Reply-To: <1527592431.06.0.682650639539.issue33679@psf.upfronthosting.co.za> Message-ID: <1527905767.26.0.81473610881.issue33679@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 4e033c5aa12766b1a4ba90d2184dbf32ef87f06e by Miss Islington (bot) in branch '3.7': bpo-33679: IDLE: Re-enable color configuration for code context (GH-7199) https://github.com/python/cpython/commit/4e033c5aa12766b1a4ba90d2184dbf32ef87f06e ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 22:56:00 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 02 Jun 2018 02:56:00 +0000 Subject: [issue33679] IDLE: Configurable color on code context In-Reply-To: <1527592431.06.0.682650639539.issue33679@psf.upfronthosting.co.za> Message-ID: <1527908160.2.0.81473610881.issue33679@psf.upfronthosting.co.za> miss-islington added the comment: New changeset dd851d6019efe79f67b13d67899afa36b33e10a8 by Miss Islington (bot) in branch '3.6': bpo-33679: IDLE: Re-enable color configuration for code context (GH-7199) https://github.com/python/cpython/commit/dd851d6019efe79f67b13d67899afa36b33e10a8 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 23:02:39 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 02 Jun 2018 03:02:39 +0000 Subject: [issue33679] IDLE: Re-enable color configuration for code context In-Reply-To: <1527592431.06.0.682650639539.issue33679@psf.upfronthosting.co.za> Message-ID: <1527908559.22.0.81473610881.issue33679@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: IDLE: Configurable color on code context -> IDLE: Re-enable color configuration for code context type: enhancement -> behavior _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 23:12:22 2018 From: report at bugs.python.org (Benjamin Peterson) Date: Sat, 02 Jun 2018 03:12:22 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527909142.79.0.81473610881.issue30654@psf.upfronthosting.co.za> Benjamin Peterson added the comment: It seems like this only affects embeddings and for embeddings, it's strictly an improvement? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 23:34:13 2018 From: report at bugs.python.org (Brett Cannon) Date: Sat, 02 Jun 2018 03:34:13 +0000 Subject: [issue33562] Check that the global settings for asyncio are not changed by tests In-Reply-To: <1526590170.07.0.682650639539.issue33562@psf.upfronthosting.co.za> Message-ID: <1527910453.93.0.81473610881.issue33562@psf.upfronthosting.co.za> Brett Cannon added the comment: New changeset 8425de4147eb8d83befbb8ea77516fc764bb4309 by Brett Cannon in branch 'master': bpo-33562: Check the global asyncio event loop policy isn't set after any tests (GH-7328) https://github.com/python/cpython/commit/8425de4147eb8d83befbb8ea77516fc764bb4309 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 23:34:28 2018 From: report at bugs.python.org (Brett Cannon) Date: Sat, 02 Jun 2018 03:34:28 +0000 Subject: [issue33562] Check that the global settings for asyncio are not changed by tests In-Reply-To: <1526590170.07.0.682650639539.issue33562@psf.upfronthosting.co.za> Message-ID: <1527910468.45.0.81473610881.issue33562@psf.upfronthosting.co.za> Change by Brett Cannon : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 1 23:43:53 2018 From: report at bugs.python.org (Nick Coghlan) Date: Sat, 02 Jun 2018 03:43:53 +0000 Subject: [issue21142] Daily/weekly ABI scan? In-Reply-To: <1396515016.38.0.140196375249.issue21142@psf.upfronthosting.co.za> Message-ID: <1527911033.85.0.81473610881.issue21142@psf.upfronthosting.co.za> Nick Coghlan added the comment: Updated link to the ABI tracker report: https://abi-laboratory.pro/tracker/timeline/python/ (The stable ABI report still has a separate entry on http://upstream.rosalinux.ru/ but it links to the same report as I've linked above) I'm bumping this based on the 3.7.0 stable ABI break that Christian Tismer reported for PyIndex_Check - it's clear that we *need* some form of automated testing for the stable ABI, or we're going to continue to see issues like this crop up at release time. (Folks freshly added to the nosy list: I added you either as release managers for 3.7+, or else because we've previously talked about the stable ABI and its maintainability) ---------- nosy: +Christian.Tismer, benjamin.peterson, eric.snow, lukasz.langa, ned.deily, petr.viktorin, steve.dower, vstinner _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 00:17:59 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sat, 02 Jun 2018 04:17:59 +0000 Subject: [issue33721] os.path.exists() ought to return False if pathname contains NUL In-Reply-To: <1527787165.92.0.682650639539.issue33721@psf.upfronthosting.co.za> Message-ID: <1527913079.58.0.81473610881.issue33721@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: In earlier versions NULs in paths caused silent truncating the path, and this is considered a vulnerability. In 2.7 and earlier versions of 3.x a TypeError was raised in os.path.exists(). ValueError in this function (and many others) is raised since 3.5, because it looks more appropriate. Similar exceptions are raised perhaps in hundreds functions. It is impossible to document them all, and os.path.exists() doesn't look special enough for documenting this only for it. However os.path.exists() is special in the sense that this exception can be interpreted as a false value. Since os.path.exists() already catches OSError and interprets it as a false result, it is easier to add a ValueError here. I don't think this will break much code if add it only in 3.8. This will cover also the case of unencodable/undecodable paths ('\udfff', b'\x98'). ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 00:19:31 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sat, 02 Jun 2018 04:19:31 +0000 Subject: [issue21142] Daily/weekly ABI scan? In-Reply-To: <1396515016.38.0.140196375249.issue21142@psf.upfronthosting.co.za> Message-ID: <1527913171.93.0.81473610881.issue21142@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 00:29:46 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sat, 02 Jun 2018 04:29:46 +0000 Subject: [issue33739] pathlib: Allow ellipsis to appear after "/" to navigate to parent path In-Reply-To: <1527890235.56.0.81473610881.issue33739@psf.upfronthosting.co.za> Message-ID: <1527913786.08.0.81473610881.issue33739@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Note that 'a/b/c/..' is not the same as 'a/b' if 'c' is a link. And since "p / ..." looks very similar to "p / '..'", it will cause mistakes. "p.parent" is more explicit. AFAIK in cmd.exe on Windows 'a/b/c/...' means 'a/b/c/../..'. This is yet one source of confusion. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 00:35:44 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sat, 02 Jun 2018 04:35:44 +0000 Subject: [issue33660] pathlib.Path.resolve() returns path with double slash when resolving a relative path in root directory In-Reply-To: <1527418713.03.0.682650639539.issue33660@psf.upfronthosting.co.za> Message-ID: <1527914144.7.0.81473610881.issue33660@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- nosy: +pitrou, serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 00:45:36 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sat, 02 Jun 2018 04:45:36 +0000 Subject: [issue33663] Web.py wsgiserver3.py raises TypeError when CSS file is not found In-Reply-To: <1527462202.39.0.682650639539.issue33663@psf.upfronthosting.co.za> Message-ID: <1527914736.9.0.81473610881.issue33663@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: This code was added in issue16088. Taking into account all other uses of send_header(), and that len() always returns an integer, seems "int" should be replaced with "str". ---------- nosy: +pitrou, serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 03:34:49 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Sat, 02 Jun 2018 07:34:49 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527924889.4.0.592728768989.issue30654@psf.upfronthosting.co.za> Antoine Pitrou added the comment: Short of any bug in the patch, yes, it's stricly an improvement. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 03:48:26 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 02 Jun 2018 07:48:26 +0000 Subject: [issue26979] The danger of PyType_FromSpec() In-Reply-To: <1462731878.82.0.9073654009.issue26979@psf.upfronthosting.co.za> Message-ID: <1527925706.81.0.592728768989.issue26979@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- stage: -> needs patch versions: +Python 3.7, Python 3.8 -Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 04:40:21 2018 From: report at bugs.python.org (Robert Collins) Date: Sat, 02 Jun 2018 08:40:21 +0000 Subject: [issue27071] unittest.TestCase.assertCountEqual is a very misleading name In-Reply-To: <1463788380.52.0.782790370377.issue27071@psf.upfronthosting.co.za> Message-ID: <1527928821.34.0.592728768989.issue27071@psf.upfronthosting.co.za> Robert Collins added the comment: So, I think we're in a local minima here. As I said earlier, neither the old nor new names really grab me, and I think everyone has aknowledged that the new name is -at best- confusing. We don't need *any more discussion* about that. The question is how to fix it without yet more rounds of 'well this is confusing so lets change it again'. I want to suggest some basic criteria for a dramatically better name, just to unblock this. - follow the existing assert naming convention - be short enough to be comfortably usable - pass some user testing: do some lightning talks. Or ask on twitter for folk to tell you what the proposed name does without any hints. - follow up here with how you tested and the name you've chosen based on that testing. - we'll then do a straw poll amongst a few committers - me and michael at a minimum, and advise on go/nogo. Once thats done I'll happily review a patch that adds a new, better name as an alias, and doesn't deprecate the existing one. I'm leaving the bug in rejected status, because at this point there is nothing any committers seem to have appetite/energy to do: same as per https://bugs.python.org/msg266244 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 04:40:37 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Sat, 02 Jun 2018 08:40:37 +0000 Subject: [issue33739] pathlib: Allow ellipsis to appear after "/" to navigate to parent path In-Reply-To: <1527890235.56.0.81473610881.issue33739@psf.upfronthosting.co.za> Message-ID: <1527928837.55.0.592728768989.issue33739@psf.upfronthosting.co.za> Antoine Pitrou added the comment: I've just tried, "..." doesn't seem to mean anything on the Windows CLI. But I agree with the reservation that having "..." mean something different than ".." is a recipe for confusion. ---------- nosy: +steve.dower _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 05:54:47 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sat, 02 Jun 2018 09:54:47 +0000 Subject: [issue33720] test_marshal: crash in Python 3.7b5 on Windows 10 In-Reply-To: <1527779615.11.0.682650639539.issue33720@psf.upfronthosting.co.za> Message-ID: <1527933287.42.0.592728768989.issue33720@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- keywords: +patch pull_requests: +6967 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 06:30:09 2018 From: report at bugs.python.org (Christian Tismer) Date: Sat, 02 Jun 2018 10:30:09 +0000 Subject: [issue26979] The danger of PyType_FromSpec() In-Reply-To: <1462731878.82.0.9073654009.issue26979@psf.upfronthosting.co.za> Message-ID: <1527935409.08.0.592728768989.issue26979@psf.upfronthosting.co.za> Christian Tismer added the comment: There is another catch that belongs in the same category. There is line 2841 in typeobject.c if (type->tp_dealloc == NULL) { /* It's a heap type, so needs the heap types' dealloc. subtype_dealloc will call the base type's tp_dealloc, if necessary. */ type->tp_dealloc = subtype_dealloc; } When converting the PySide types, it became a real problem. Types with an existing tp_dealloc behaved normal, but those with tp_dealloc=NULL gave segfaults. I ended up supplying a default dummy_dealloc() that is just there to occupy this slot. Then it worked. And another source of incompatibility: PyType_FromSpec() enforces a tp_name field to be dotted, to compute a module name. Very annoying incompatibility that could be avoided. A small but remarkable glitch: Most fields of the PyType_Spec/PyType_Slot combo are copied, but some are not. So expect funny behaviour when creating types with dynamically generated specs without strdup. That should IMHO be changed. ---------- nosy: +Christian.Tismer _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 06:43:00 2018 From: report at bugs.python.org (STINNER Victor) Date: Sat, 02 Jun 2018 10:43:00 +0000 Subject: [issue33724] test__xxsubinterpreters failed on ARMv7 Ubuntu 3.x In-Reply-To: <1527803501.98.0.682650639539.issue33724@psf.upfronthosting.co.za> Message-ID: <1527936180.33.0.592728768989.issue33724@psf.upfronthosting.co.za> STINNER Victor added the comment: You may use PRId64 instead of %lld. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 06:45:38 2018 From: report at bugs.python.org (Timo Furrer) Date: Sat, 02 Jun 2018 10:45:38 +0000 Subject: [issue33739] pathlib: Allow ellipsis to appear after "/" to navigate to parent path In-Reply-To: <1527890235.56.0.81473610881.issue33739@psf.upfronthosting.co.za> Message-ID: <1527936338.75.0.592728768989.issue33739@psf.upfronthosting.co.za> Timo Furrer added the comment: > I've just tried, "..." doesn't seem to mean anything on the Windows CLI. It's not only about Windows / Linux here - it's about the shell and command which is being used. If we talk about "cd" for example - it's a builtin in most common shells on Linux, which behave differently: bash: /a/b/c $ cd ... bash: cd: ...: No such file or directory dash: /a/b/c $ cd ... dash: 8: cd: can't cd to ... zsh: /a/b/c $ cd ... /a $ I think using '...' to navigate to the parent is confusing. It's well known and agreed that '..' is for navigating to the parent. '...' looks similar but is definitely not the same as '..' and therefore shouldn't be treated as such. ---------- nosy: +tuxtimo _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 06:45:59 2018 From: report at bugs.python.org (STINNER Victor) Date: Sat, 02 Jun 2018 10:45:59 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527936359.96.0.592728768989.issue30654@psf.upfronthosting.co.za> STINNER Victor added the comment: IMHO it's a bugfix. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 06:49:18 2018 From: report at bugs.python.org (Timo Furrer) Date: Sat, 02 Jun 2018 10:49:18 +0000 Subject: [issue33660] pathlib.Path.resolve() returns path with double slash when resolving a relative path in root directory In-Reply-To: <1527418713.03.0.682650639539.issue33660@psf.upfronthosting.co.za> Message-ID: <1527936558.68.0.592728768989.issue33660@psf.upfronthosting.co.za> Change by Timo Furrer : ---------- nosy: +tuxtimo _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 06:52:15 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sat, 02 Jun 2018 10:52:15 +0000 Subject: [issue33720] test_marshal: crash in Python 3.7b5 on Windows 10 In-Reply-To: <1527779615.11.0.682650639539.issue33720@psf.upfronthosting.co.za> Message-ID: <1527936735.61.0.592728768989.issue33720@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: As for the test itself, the original test was added in dc78cc6f7cea2040114a350aa9db835cc433ae05. It tested that the stack overflow is not happen when unmarshal a fake code object with a deeply nested dict instead of co_code. It was renamed to test_loads_recursion in cf0fab2686799b562c9c6f6255557e36f9af095e. In issue16475 (d7009c69136a3809282804f460902ab42e9972f6) it was updated to mirror the changed structure of the code object in Python 3, but the original test was kept with the name test_loads_2x_code. Actually both tests work the same, because the value of few first bytes doesn't affect the result of these tests. Yet this test is fragile, it depends on the unstable structure of the code object, and it serves its purpose only because input data checking is not very strong in the current implementation. Future changes in the marshal module can make this test invalid, and this will not be noticed. In PR 7336 this test is rewritten in more reliable way. This likely is not directly related to the crash. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 06:55:18 2018 From: report at bugs.python.org (STINNER Victor) Date: Sat, 02 Jun 2018 10:55:18 +0000 Subject: [issue33724] test__xxsubinterpreters failed on ARMv7 Ubuntu 3.x In-Reply-To: <1527803501.98.0.682650639539.issue33724@psf.upfronthosting.co.za> Message-ID: <1527936918.21.0.592728768989.issue33724@psf.upfronthosting.co.za> STINNER Victor added the comment: The bug is not fixed yet. The test crashed again on x86 Gentoo Refleaks 3.x: http://buildbot.python.org/all/#/builders/1/builds/242 commit 8425de4147eb8d83befbb8ea77516fc764bb4309 test_ids_global (test.test__xxsubinterpreters.ChannelTests) ... ok test_recv_empty (test.test__xxsubinterpreters.ChannelTests) ... ok test_recv_not_found (test.test__xxsubinterpreters.ChannelTests) ... ok test_run_string_arg_resolved (test.test__xxsubinterpreters.ChannelTests) ... python: Modules/gcmodule.c:277: visit_decref: Assertion `_PyGCHead_REFS(gc) != 0' failed. Fatal Python error: Aborted Current thread 0xb7497700 (most recent call first): File "/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/unittest/case.py", line 615 in run File "/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/unittest/case.py", line 663 in __call__ File "/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/unittest/suite.py", line 122 in run File "/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/unittest/suite.py", line 84 in __call__ File "/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/unittest/suite.py", line 122 in run File "/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/unittest/suite.py", line 84 in __call__ File "/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/unittest/suite.py", line 122 in run File "/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/unittest/suite.py", line 84 in __call__ File "/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/unittest/runner.py", line 176 in run File "/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/test/support/__init__.py", line 1883 in _run_suite File "/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/test/support/__init__.py", line 1973 in run_unittest File "/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/test/libregrtest/runtest.py", line 175 in test_runner File "/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/test/libregrtest/runtest.py", line 176 in runtest_inner File "/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/test/libregrtest/runtest.py", line 140 in runtest File "/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/test/libregrtest/main.py", line 283 in rerun_failed_tests File "/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/test/libregrtest/main.py", line 548 in _main File "/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/test/libregrtest/main.py", line 518 in main File "/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/test/libregrtest/main.py", line 562 in main File "/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/test/__main__.py", line 2 in File "/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/runpy.py", line 85 in _run_code File "/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/runpy.py", line 193 in _run_module_as_main make: *** [Makefile:1097: buildbottest] Aborted program finished with exit code 2 ---------- resolution: fixed -> status: closed -> open _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 07:09:49 2018 From: report at bugs.python.org (Steven D'Aprano) Date: Sat, 02 Jun 2018 11:09:49 +0000 Subject: [issue33721] os.path.exists() ought to return False if pathname contains NUL In-Reply-To: <1527787165.92.0.682650639539.issue33721@psf.upfronthosting.co.za> Message-ID: <1527937789.63.0.592728768989.issue33721@psf.upfronthosting.co.za> Change by Steven D'Aprano : ---------- nosy: +steven.daprano _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 07:58:23 2018 From: report at bugs.python.org (Timo Furrer) Date: Sat, 02 Jun 2018 11:58:23 +0000 Subject: [issue30974] Update os.samefile docstring to match documentation In-Reply-To: <1500538030.77.0.17785692497.issue30974@psf.upfronthosting.co.za> Message-ID: <1527940703.56.0.592728768989.issue30974@psf.upfronthosting.co.za> Change by Timo Furrer : ---------- keywords: +patch pull_requests: +6968 stage: needs patch -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 11:02:18 2018 From: report at bugs.python.org (Mariatta Wijaya) Date: Sat, 02 Jun 2018 15:02:18 +0000 Subject: [issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list) In-Reply-To: <1424465153.78.0.58816335685.issue23495@psf.upfronthosting.co.za> Message-ID: <1527951738.87.0.592728768989.issue23495@psf.upfronthosting.co.za> Mariatta Wijaya added the comment: New changeset a801cf164be7c62b6a6dba47ff91d6c3edb67729 by Mariatta (Zackery Spytz) in branch 'master': bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316) https://github.com/python/cpython/commit/a801cf164be7c62b6a6dba47ff91d6c3edb67729 ---------- nosy: +Mariatta _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 11:03:54 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 02 Jun 2018 15:03:54 +0000 Subject: [issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list) In-Reply-To: <1424465153.78.0.58816335685.issue23495@psf.upfronthosting.co.za> Message-ID: <1527951834.26.0.592728768989.issue23495@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6969 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 11:04:59 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 02 Jun 2018 15:04:59 +0000 Subject: [issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list) In-Reply-To: <1424465153.78.0.58816335685.issue23495@psf.upfronthosting.co.za> Message-ID: <1527951899.33.0.592728768989.issue23495@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6970 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 11:05:53 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 02 Jun 2018 15:05:53 +0000 Subject: [issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list) In-Reply-To: <1424465153.78.0.58816335685.issue23495@psf.upfronthosting.co.za> Message-ID: <1527951953.95.0.592728768989.issue23495@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6971 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 11:10:40 2018 From: report at bugs.python.org (Jean-Marc Le Peuvedic) Date: Sat, 02 Jun 2018 15:10:40 +0000 Subject: [issue33663] Web.py wsgiserver3.py raises TypeError when CSS file is not found In-Reply-To: <1527462202.39.0.682650639539.issue33663@psf.upfronthosting.co.za> Message-ID: <1527952240.7.0.592728768989.issue33663@psf.upfronthosting.co.za> Jean-Marc Le Peuvedic added the comment: The exception is raised in the start_response function provided by web.py's WSGIGateway class in wsgiserver3.py:1997. # According to PEP 3333, when using Python 3, the response status # and headers must be bytes masquerading as unicode; that is, they # must be of type "str" but are restricted to code points in the # "latin-1" set. Therefore, header values must be strings whenever start_response is called. WSGI servers must accumulate headers in some data structure and must call the supplied "start_response" function, when they have gathered all the headers and converted all the values to strings. The fault I observed is not strictly speaking caused by a bug in Python lib "server.py". Rather, it is a component interaction failure caused by inadequately defined semantics. The interaction between web.py and server.py is quite complex, and no component is faulty when considered alone. I explain: Response and headers management in server.py is handled by 3 methods of class BaseHTTPRequestHandler: - send_response : puts response in buffer - send_header : converts to string and adds to buffer ("%s: %s\r\n" % (keyword, value)).encode('latin-1', 'strict')) - end_headers : flushes buffer to socket This implementation is correct even if send_header is called with an int value. Now, web.py's application.py defines a "wsgi(env, start_resp)" function, which gets plugged into the CherryPy WSGI HTTP server. The server is an instance of class wsgiserver.CherryPyWSGIServer created in httpserver.py:169 (digging deeper, actually at line 195). This server is implemented as a HTTPServer configured to use gateways of type class WSGIGateway_10 to handle requests. A gateway is basically an instance of class initialized with a HTTPRequest instance, that has a "respond" method. Of course the WSGIGateway implements "respond" as described in the WSGI standard: it calls the WSGI-compliant web app, which is a function(environ, start_response(status, headers)) returning an iterator (for chunked HTTP responses). The start_response function provided by class WSGIGateway is where the failure occurs. When the application calls web.py's app.run(), the function runwsgi in web.py's wsgi.py get called. This function determines if it gets request via CGI or directly. In my case it starts a HTTP server using web.py's runsimple function (file httpserver.py:158). This function never returns, and runs the CherryPyWSGIServer, but it first wraps the wsgi function in two WGSI Middleware callables. Both are defined in web.py's httpserver.py file. The interesting one is StaticMiddleWare (line 281). Its role, is to hijack URLs starting with /static, as is the case with my missing CSS file. In order to serve those static resources quickly, its implementation uses StaticApp (a WSGI function serving static stuff, defined line 225), which extends Python's SimpleHTTPRequestHandler. That's where to two libraries connect. StaticApp changes the way headers are processed using overloaded methods for send_response, send_header and end_headers. This means that, when StaticApp calls SimpleHTTPRequestHandler.send_head() to send the HEAD part of the response, the headers are managed using the overloaded methods. When send_head() finds out that my CSS file does not exist and calls send_error() a Content-Length header gets written, but it is not converted to string, because the overloaded implementation just stores the header name and value in a list as they come. When it has finished gathering headers using Python's send_head(), it immediately calls start_response provided by WSGIGateway, where the failure occurs. The bug in Python is not strictly that send_header gets called with an int in send_error. Rather, it is a documentation bug which fails to mention that send_header/end_headers MUST CONVERT TO STRING and ENCODE IN LATIN-1. Therefore the correction I proposed is still invalid, because the combination of web.py and server.py after the correction, still does not properly encode the headers. As a conclusion I would say that: - In Python lib, the bug is a documentation bug, where documentation fails to indicate that send_headers and/or end_headers can receive header names or values which are not strings and not encoded in strict latin-1, and that it is their responsibility to do so. - In Web.py because the implementation of the overloaded methods fails to properly encode the headers. Of course, changing int to str does no harm and makes everything more resilient, but does not fix the underlying bug. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 11:37:30 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 02 Jun 2018 15:37:30 +0000 Subject: [issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list) In-Reply-To: <1424465153.78.0.58816335685.issue23495@psf.upfronthosting.co.za> Message-ID: <1527953850.98.0.592728768989.issue23495@psf.upfronthosting.co.za> miss-islington added the comment: New changeset db3039085845af5d68ab863f03e9684681b1516d by Miss Islington (bot) in branch '3.6': bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316) https://github.com/python/cpython/commit/db3039085845af5d68ab863f03e9684681b1516d ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 11:40:03 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 02 Jun 2018 15:40:03 +0000 Subject: [issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list) In-Reply-To: <1424465153.78.0.58816335685.issue23495@psf.upfronthosting.co.za> Message-ID: <1527954003.71.0.592728768989.issue23495@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 949da9e44b4e0d5b32745b91f9582158442b68d1 by Miss Islington (bot) in branch '3.7': bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316) https://github.com/python/cpython/commit/949da9e44b4e0d5b32745b91f9582158442b68d1 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 11:41:29 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 02 Jun 2018 15:41:29 +0000 Subject: [issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list) In-Reply-To: <1424465153.78.0.58816335685.issue23495@psf.upfronthosting.co.za> Message-ID: <1527954089.27.0.592728768989.issue23495@psf.upfronthosting.co.za> miss-islington added the comment: New changeset af3685963652721269ca0196f9f7fc08d3e830b7 by Miss Islington (bot) in branch '2.7': bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316) https://github.com/python/cpython/commit/af3685963652721269ca0196f9f7fc08d3e830b7 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 11:54:24 2018 From: report at bugs.python.org (Mariatta Wijaya) Date: Sat, 02 Jun 2018 15:54:24 +0000 Subject: [issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list) In-Reply-To: <1424465153.78.0.58816335685.issue23495@psf.upfronthosting.co.za> Message-ID: <1527954864.62.0.592728768989.issue23495@psf.upfronthosting.co.za> Mariatta Wijaya added the comment: Thanks all! ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 12:37:12 2018 From: report at bugs.python.org (Jonathan G. Underwood) Date: Sat, 02 Jun 2018 16:37:12 +0000 Subject: [issue24085] large memory overhead when pyc is recompiled In-Reply-To: <1430420344.67.0.572478851339.issue24085@psf.upfronthosting.co.za> Message-ID: <1527957432.21.0.592728768989.issue24085@psf.upfronthosting.co.za> Jonathan G. Underwood added the comment: Seeing a very similar problem - very high memory useage during byte compilation. Consider the very simple code in a file: ``` def test_huge(): try: huge = b'\0' * 0x100000000 # this allocates 4GB of memory! except MemoryError: print('OOM') ``` Running this sequence of commands shows that during byte compilation, 4 GB memory is used. Presumably this is because of the `huge` object - note of course the function isn't actually executed. ``` valgrind --tool=massif python memdemo.py ms_print massif.out.7591 | less ``` You'll need to replace 7591 with whatever process number valgrind reports. Is there any hope of fixing this? It's currently a problem for me when running tests on Travis, where the memory limit is 3GB. I had hoped to use a conditional like the above to skip tests that would require more memory than is available. However, the testing is killed before that simply because the byte compilation is causing an OOM. ---------- nosy: +jonathan.underwood _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 13:26:48 2018 From: report at bugs.python.org (Nikhil Patel) Date: Sat, 02 Jun 2018 17:26:48 +0000 Subject: [issue25237] Add doc for tkinter commondialog.Dialog and subclasses In-Reply-To: <1443236612.77.0.515516122635.issue25237@psf.upfronthosting.co.za> Message-ID: <1527960408.69.0.592728768989.issue25237@psf.upfronthosting.co.za> Nikhil Patel added the comment: PR to add documentation still up-to-date and all checks successful just pending review ---------- assignee: -> docs at python components: +Documentation nosy: +docs at python _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 14:29:02 2018 From: report at bugs.python.org (R. David Murray) Date: Sat, 02 Jun 2018 18:29:02 +0000 Subject: [issue24085] large memory overhead when pyc is recompiled In-Reply-To: <1430420344.67.0.572478851339.issue24085@psf.upfronthosting.co.za> Message-ID: <1527964142.96.0.592728768989.issue24085@psf.upfronthosting.co.za> R. David Murray added the comment: That's presumably due to the compile-time constant-expression optimization. Have you tried bytes(0x1000000)? I don't think that gets treated as a constant by the optimizer (but I could be wrong since a bunch of things ahve been added to it lately). ---------- nosy: +r.david.murray _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 14:29:07 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Sat, 02 Jun 2018 18:29:07 +0000 Subject: [issue33696] Install python-docs-theme even if SPHINXBUILD is defined In-Reply-To: <1527686402.52.0.682650639539.issue33696@psf.upfronthosting.co.za> Message-ID: <1527964147.91.0.592728768989.issue33696@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 14:31:30 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sat, 02 Jun 2018 18:31:30 +0000 Subject: [issue24085] large memory overhead when pyc is recompiled In-Reply-To: <1430420344.67.0.572478851339.issue24085@psf.upfronthosting.co.za> Message-ID: <1527964290.95.0.592728768989.issue24085@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Jonathan, this is a different problem, and it is fixed in 3.6+ (see issue21074). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 14:45:38 2018 From: report at bugs.python.org (Jonathan G. Underwood) Date: Sat, 02 Jun 2018 18:45:38 +0000 Subject: [issue24085] large memory overhead when pyc is recompiled In-Reply-To: <1430420344.67.0.572478851339.issue24085@psf.upfronthosting.co.za> Message-ID: <1527965138.6.0.592728768989.issue24085@psf.upfronthosting.co.za> Jonathan G. Underwood added the comment: Thanks to both Serhiy Storchaka and David Murray - indeed you're both correct, and that is the issue in 21074, and the workaround from there of declaring a variable for that size fixes the problem. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 15:13:04 2018 From: report at bugs.python.org (Mayank Singhal) Date: Sat, 02 Jun 2018 19:13:04 +0000 Subject: [issue31215] Add version changed notes for OpenSSL 1.1.0 compatibility In-Reply-To: <1502860659.7.0.930691554308.issue31215@psf.upfronthosting.co.za> Message-ID: <1527966783.99.0.592728768989.issue31215@psf.upfronthosting.co.za> Change by Mayank Singhal <17mayanksinghal at gmail.com>: ---------- keywords: +patch pull_requests: +6972 stage: needs patch -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 15:43:45 2018 From: report at bugs.python.org (Ned Batchelder) Date: Sat, 02 Jun 2018 19:43:45 +0000 Subject: [issue2506] Add mechanism to disable optimizations In-Reply-To: <1206797921.05.0.258043023613.issue2506@psf.upfronthosting.co.za> Message-ID: <1527968625.76.0.592728768989.issue2506@psf.upfronthosting.co.za> Ned Batchelder added the comment: Serhiy: thanks for the fuller story about the optimizations in place now. I'll repeat my earlier plea: providing a way to disable optimization is beneficial for tooling like coverage.py, and also for helping us to ensure that the optimizer is working correctly. I doubt anyone commenting here would be happy with a C compiler that optimized with no off-switch. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 16:01:30 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sat, 02 Jun 2018 20:01:30 +0000 Subject: [issue30416] constant folding opens compiler to quadratic time hashing In-Reply-To: <1495314097.2.0.680001526088.issue30416@psf.upfronthosting.co.za> Message-ID: <1527969690.15.0.592728768989.issue30416@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Reverting issue27942 (67edf73183b8bf0127456454747f596428cc28f6) doesn't solve this issue in 2.7. The previous revision has this issue, as well as 2.7.12 and 2.7.11. Even 2.6.9 and 2.5.6 have this issue. We have either merge PR 4896 or decide that this issue is "won't fix" in 2.7. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 16:04:02 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Sat, 02 Jun 2018 20:04:02 +0000 Subject: [issue30416] constant folding opens compiler to quadratic time hashing In-Reply-To: <1495314097.2.0.680001526088.issue30416@psf.upfronthosting.co.za> Message-ID: <1527969842.44.0.592728768989.issue30416@psf.upfronthosting.co.za> Antoine Pitrou added the comment: I vote for "won't fix". 2.7 has lived long enough with this issue, AFAIU. And it won't be triggered by regular code. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 16:04:48 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Sat, 02 Jun 2018 20:04:48 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527969888.38.0.592728768989.issue30654@psf.upfronthosting.co.za> Antoine Pitrou added the comment: Reopening for the 2.7 backport discussion. ---------- status: closed -> open _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 16:11:54 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Sat, 02 Jun 2018 20:11:54 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1527970314.47.0.592728768989.issue30654@psf.upfronthosting.co.za> Change by Antoine Pitrou : ---------- pull_requests: +6973 stage: resolved -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 16:30:25 2018 From: report at bugs.python.org (Brett Cannon) Date: Sat, 02 Jun 2018 20:30:25 +0000 Subject: [issue33739] pathlib: Allow ellipsis to appear after "/" to navigate to parent path In-Reply-To: <1527890235.56.0.81473610881.issue33739@psf.upfronthosting.co.za> Message-ID: <1527971425.93.0.592728768989.issue33739@psf.upfronthosting.co.za> Brett Cannon added the comment: I'm personally not loving the idea either by re-purposing Ellipsis for this since my brain keeps thinking you're trying to go two levels up instead of just one with that extra dot. It should also be mentioned that paths ending in an ellipsis has actual meaning in Perforce when it comes at the end of a path. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 17:10:56 2018 From: report at bugs.python.org (Egor Dranischnikow) Date: Sat, 02 Jun 2018 21:10:56 +0000 Subject: [issue33740] PyByteArray_AsString C-API description lacks the assurance, that the trailing null-byte is appended. Message-ID: <1527973856.37.0.592728768989.issue33740@psf.upfronthosting.co.za> New submission from Egor Dranischnikow : The C-API for Python2.7 https://docs.python.org/2/c-api/bytearray.html#c.PyByteArray_AsString lacks the sentence: "The returned array always has an extra null byte appended." which clarifies, that the returned C-string is null-terminated. This sentence is a part of Python3-documentation: https://docs.python.org/3/c-api/bytearray.html#c.PyByteArray_AsString I might be very wrong, but so far I understand the code this is the case for both versions, Python3 and Python2. Probably parts of this change https://github.com/python/cpython/commit/0a560a11af0ccc816d1172180f44e5afb34ba600 could be integrated in Python2.7 ---------- assignee: docs at python components: Documentation messages: 318515 nosy: docs at python, realead priority: normal severity: normal status: open title: PyByteArray_AsString C-API description lacks the assurance, that the trailing null-byte is appended. versions: Python 2.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 18:06:58 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Sat, 02 Jun 2018 22:06:58 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1527977218.29.0.592728768989.issue33738@psf.upfronthosting.co.za> Antoine Pitrou added the comment: > related personal note - does someone know what happened to Martin? I don't think anything bad happened. He still seems to be teaching: http://www.beuth-hochschule.de/people/detail/1398/ ---------- nosy: +pitrou _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 18:40:36 2018 From: report at bugs.python.org (=?utf-8?q?Lars_P=C3=B6tter?=) Date: Sat, 02 Jun 2018 22:40:36 +0000 Subject: [issue33741] UnicodeEncodeError onsmtplib.login(MAIL_USER, MAIL_PASSWORD) Message-ID: <1527979236.47.0.592728768989.issue33741@psf.upfronthosting.co.za> New submission from Lars P?tter : if the password contains non ascii characters then the login fails: >>> smtObj.login(MAIL_USER, MAIL_PASSWORD) Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.5/smtplib.py", line 720, in login initial_response_ok=initial_response_ok) File "/usr/lib/python3.5/smtplib.py", line 637, in auth authobject(challenge).encode('ascii'), eol='') File "/usr/lib/python3.5/smtplib.py", line 650, in auth_cram_md5 self.password.encode('ascii'), challenge, 'md5').hexdigest() UnicodeEncodeError: 'ascii' codec can't encode character '' in position : ordinal not in range(128) ---------- components: Library (Lib) messages: 318517 nosy: JustAnother1 priority: normal severity: normal status: open title: UnicodeEncodeError onsmtplib.login(MAIL_USER, MAIL_PASSWORD) type: crash versions: Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 22:06:43 2018 From: report at bugs.python.org (David Ford (FirefighterBlu3)) Date: Sun, 03 Jun 2018 02:06:43 +0000 Subject: [issue29539] [smtplib] collect response data for all recipients In-Reply-To: <1486946725.6.0.180199923995.issue29539@psf.upfronthosting.co.za> Message-ID: <1527991603.66.0.592728768989.issue29539@psf.upfronthosting.co.za> David Ford (FirefighterBlu3) added the comment: 3.7 release candidates are in the queue, any thoughts on this simple enhancement? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 2 22:51:26 2018 From: report at bugs.python.org (Yury Selivanov) Date: Sun, 03 Jun 2018 02:51:26 +0000 Subject: [issue33739] pathlib: Allow ellipsis to appear after "/" to navigate to parent path In-Reply-To: <1527890235.56.0.81473610881.issue33739@psf.upfronthosting.co.za> Message-ID: <1527994286.74.0.592728768989.issue33739@psf.upfronthosting.co.za> Yury Selivanov added the comment: Since nobody likes the idea I'm withdrawing the proposal. ---------- resolution: -> rejected stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 01:50:28 2018 From: report at bugs.python.org (Michael Felt) Date: Sun, 03 Jun 2018 05:50:28 +0000 Subject: [issue27643] test_ctypes fails on AIX with xlc In-Reply-To: <1469718089.88.0.404760174195.issue27643@psf.upfronthosting.co.za> Message-ID: <1528005028.69.0.592728768989.issue27643@psf.upfronthosting.co.za> Michael Felt added the comment: I know it is not earth shattering - but it will permit one more test to pass. Please review the PR. Thx. ---------- versions: +Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 02:01:17 2018 From: report at bugs.python.org (Michael Felt) Date: Sun, 03 Jun 2018 06:01:17 +0000 Subject: [issue28009] core logic of uuid.getnode() is broken for AIX - all versions In-Reply-To: <1473290315.48.0.840701308825.issue28009@psf.upfronthosting.co.za> Message-ID: <1528005677.81.0.592728768989.issue28009@psf.upfronthosting.co.za> Michael Felt added the comment: Please review PR. at least for "master" ---------- versions: +Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 02:05:34 2018 From: report at bugs.python.org (Michael Felt) Date: Sun, 03 Jun 2018 06:05:34 +0000 Subject: [issue11191] test_search_cpp error on AIX (with xlc) In-Reply-To: <1297436536.39.0.921212376741.issue11191@psf.upfronthosting.co.za> Message-ID: <1528005934.76.0.592728768989.issue11191@psf.upfronthosting.co.za> Michael Felt added the comment: I hope this can be reviewed and eventually closed - not because it is X years old and unresolved - but because it is resolved for the latest branches! Thx ---------- versions: +Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 02:37:33 2018 From: report at bugs.python.org (Pasha Stetsenko) Date: Sun, 03 Jun 2018 06:37:33 +0000 Subject: [issue33742] Unsafe memory access in PyStructSequence_InitType Message-ID: <1528007853.29.0.592728768989.issue33742@psf.upfronthosting.co.za> New submission from Pasha Stetsenko : The documentation (https://docs.python.org/3/c-api/tuple.html) for `PyStructSequence_InitType` describes the function as follows: > void PyStructSequence_InitType(PyTypeObject *type, PyStructSequence_Desc *desc) > Initializes a struct sequence type `type` from `desc` in place. And most of the time it does just that. However, when running under python compiled in debug mode, the body of the function will contain the following code at the very beginning: ``` if (type->ob_base.ob_base._ob_next) { _Py_ForgetReference((PyObject*)type); } ``` Since `type` here is a preallocated but an uninitialized piece of memory, it may contain garbage data that when interpreted as a "live" PyObject will result in memory corruption or process crash. Thus, either the description for the `PyStructSequence_InitType` method has to document that the `type` object must be zeroed-out before being passed to the method, or the call to `_Py_ForgetReference` be removed. ---------- messages: 318523 nosy: Pasha Stetsenko priority: normal severity: normal status: open title: Unsafe memory access in PyStructSequence_InitType type: crash versions: Python 3.5, Python 3.6, Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 03:41:56 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 07:41:56 +0000 Subject: [issue33743] test_asyncio raises a deprecation warning Message-ID: <1528011716.86.0.592728768989.issue33743@psf.upfronthosting.co.za> New submission from Serhiy Storchaka : $ ./python -We -m test -v -m test__register_task_3 test_asyncio ... ====================================================================== ERROR: test__register_task_3 (test.test_asyncio.test_tasks.CIntrospectionTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/test_asyncio/test_tasks.py", line 2616, in test__register_task_3 self.assertEqual(asyncio.Task.all_tasks(loop), {task}) PendingDeprecationWarning: Task.all_tasks() is deprecated, use asyncio.all_tasks() instead ====================================================================== ERROR: test__register_task_3 (test.test_asyncio.test_tasks.PyIntrospectionTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/test_asyncio/test_tasks.py", line 2616, in test__register_task_3 self.assertEqual(asyncio.Task.all_tasks(loop), {task}) PendingDeprecationWarning: Task.all_tasks() is deprecated, use asyncio.all_tasks() instead ---------------------------------------------------------------------- And the test is failed if run with -We. ---------- components: Tests messages: 318524 nosy: asvetlov, giampaolo.rodola, serhiy.storchaka, yselivanov priority: normal severity: normal status: open title: test_asyncio raises a deprecation warning type: behavior versions: Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 03:47:13 2018 From: report at bugs.python.org (Farhaan Bukhsh) Date: Sun, 03 Jun 2018 07:47:13 +0000 Subject: [issue30516] Documentation for datetime substract operation incorrect? In-Reply-To: <1496179333.45.0.413102703331.issue30516@psf.upfronthosting.co.za> Message-ID: <1528012033.48.0.592728768989.issue30516@psf.upfronthosting.co.za> Change by Farhaan Bukhsh : ---------- keywords: +patch pull_requests: +6974 stage: needs patch -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 03:48:26 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 07:48:26 +0000 Subject: [issue33712] OrderedDict can set an exception in tp_clear In-Reply-To: <1527768528.87.0.682650639539.issue33712@psf.upfronthosting.co.za> Message-ID: <1528012106.52.0.592728768989.issue33712@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- keywords: +patch pull_requests: +6975 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 03:57:04 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 07:57:04 +0000 Subject: [issue33742] Unsafe memory access in PyStructSequence_InitType In-Reply-To: <1528007853.29.0.592728768989.issue33742@psf.upfronthosting.co.za> Message-ID: <1528012624.49.0.592728768989.issue33742@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Could you please provide a C code that reproduces the crash? ---------- components: +Interpreter Core nosy: +serhiy.storchaka versions: +Python 3.8 -Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 04:00:38 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 08:00:38 +0000 Subject: [issue33274] minidom removeAttributeNode returns None In-Reply-To: <1523644603.75.0.682650639539.issue33274@psf.upfronthosting.co.za> Message-ID: <1528012838.75.0.592728768989.issue33274@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Please add a test and document the new feature (add a versionchanged directive in the module documentation, add a news entry and an entry in What's New). ---------- nosy: +serhiy.storchaka stage: -> test needed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 04:03:35 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 08:03:35 +0000 Subject: [issue5945] PyMapping_Check returns 1 for lists In-Reply-To: <1241560036.33.0.817766851688.issue5945@psf.upfronthosting.co.za> Message-ID: <1528013015.34.0.592728768989.issue5945@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Are these changes enough? Can this issue be closed now? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 04:47:57 2018 From: report at bugs.python.org (Ronald Oussoren) Date: Sun, 03 Jun 2018 08:47:57 +0000 Subject: [issue33725] High Sierra hang when using multi-processing In-Reply-To: <1527814386.62.0.682650639539.issue33725@psf.upfronthosting.co.za> Message-ID: <1528015677.4.0.592728768989.issue33725@psf.upfronthosting.co.za> Ronald Oussoren added the comment: Antoine, the issue is not necessarily related to POSIX compliance, AFAIK strictly POSIX compliant code should work just fine. The problem is in higher-level APIs (CoreFoundation, Foundation, AppKit, ...), and appears to be related to using multi-threading in those libraries without spending effort on pre/post fork handlers to ensure that new processes are in a sane state after fork(). In older macOS versions this could result in hard to debug issues, in newer versions APIs seem to guard against this by aborting when the detect that the pid changed. Anyways... I agree that we shouldn't try to work around this in CPython, there's bound to more problems that are hidden with the proposed workaround. --- describes what the environment variable does, and this "just" changes behavior of the ObjC runtime, and doesn't make using macOS system frameworks after a fork saver. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 04:51:31 2018 From: report at bugs.python.org (Ronald Oussoren) Date: Sun, 03 Jun 2018 08:51:31 +0000 Subject: [issue33725] High Sierra hang when using multi-processing In-Reply-To: <1527814386.62.0.682650639539.issue33725@psf.upfronthosting.co.za> Message-ID: <1528015891.7.0.592728768989.issue33725@psf.upfronthosting.co.za> Ronald Oussoren added the comment: @Ned: In the long run the macOS installers should be build using the latest SDK, primarily to get full API coverage and access to all system APIs. AFAIK building using the macOS 10.9 SDK still excludes a number of libSystem APIs that would be made available through the posix module when building with a newer SDK. That's something that would require some effort though to ensure that the resulting binary still works on older versions of macOS (basically similar to the work I've done in the post to weak link some other symbols in the posix module). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 05:18:11 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 09:18:11 +0000 Subject: [issue33744] Fix and improve tests for the uu module Message-ID: <1528017491.17.0.592728768989.issue33744@psf.upfronthosting.co.za> New submission from Serhiy Storchaka : Separate tests in test_uu leak files of depend on the file leaked in other tests. $ ./python -m test -m test_decode test_uu ... Warning -- files was modified by test_uu Before: [] After: ['@test_12637_tmpi'] test_uu failed (env changed) $ ./python -m test -m test_decode_filename test_uu ... Warning -- files was modified by test_uu Before: [] After: ['@test_12627_tmpi'] test_uu failed (env changed) $ ./python -m test -m test_decodetwice test_uu ... test test_uu failed -- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/test_uu.py", line 263, in test_decodetwice f = open(self.tmpin, 'rb') FileNotFoundError: [Errno 2] No such file or directory: '@test_12622_tmpi' ---------- assignee: serhiy.storchaka components: Tests messages: 318530 nosy: serhiy.storchaka priority: normal severity: normal status: open title: Fix and improve tests for the uu module type: behavior versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 05:20:24 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 09:20:24 +0000 Subject: [issue33744] Fix and improve tests for the uu module In-Reply-To: <1528017491.17.0.592728768989.issue33744@psf.upfronthosting.co.za> Message-ID: <1528017624.07.0.592728768989.issue33744@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- keywords: +patch pull_requests: +6977 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 05:36:43 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 09:36:43 +0000 Subject: [issue28962] Crash when throwing an exception with a malicious __hash__ override In-Reply-To: <1481646487.87.0.692050241508.issue28962@psf.upfronthosting.co.za> Message-ID: <1528018603.79.0.592728768989.issue28962@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- superseder: -> traceback module can't format/print unhashable exceptions _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 05:59:49 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 09:59:49 +0000 Subject: [issue28962] Crash when throwing an exception with a malicious __hash__ override In-Reply-To: <1481646487.87.0.692050241508.issue28962@psf.upfronthosting.co.za> Message-ID: <1528019989.35.0.592728768989.issue28962@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: It was fixed in issue28603. ---------- resolution: -> out of date stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 06:01:31 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 10:01:31 +0000 Subject: [issue18533] Avoid error from repr() of recursive dictview In-Reply-To: <1374531750.42.0.70756948567.issue18533@psf.upfronthosting.co.za> Message-ID: <1528020091.3.0.592728768989.issue18533@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 06:09:29 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 10:09:29 +0000 Subject: [issue32584] Uninitialized free_extra in code_dealloc In-Reply-To: <1516203304.77.0.467229070634.issue32584@psf.upfronthosting.co.za> Message-ID: <1528020569.12.0.592728768989.issue32584@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- nosy: +brett.cannon priority: normal -> high versions: +Python 3.6, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 07:11:49 2018 From: report at bugs.python.org (Ned Batchelder) Date: Sun, 03 Jun 2018 11:11:49 +0000 Subject: [issue33745] 3.7.0b5 changes the line number of empty functions with docstrings Message-ID: <1528024309.59.0.592728768989.issue33745@psf.upfronthosting.co.za> New submission from Ned Batchelder : I'm not sure if this is a regression or an intentional change. I know that the behavior has changed. If a function has a docstring but no other body, Python 3.7b5 assigns the line number of the docstring to the implicit "return None". Previous versions (including 3.7b4) used the line number of the "def". Demonstration: $ cat /tmp/empty.py def empty(): pass def empty_with_docstring(): '''Docstring''' def docstring(): '''Docstring''' return 1 import dis, sys print(sys.version) for fn in [empty, empty_with_docstring, docstring]: print(fn.__name__) dis.dis(fn) $ /usr/local/pythonz/pythons/CPython-2.7.14/bin/python2.7 /tmp/empty.py 2.7.14 (default, Oct 4 2017, 09:45:53) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)] empty 2 0 LOAD_CONST 0 (None) 3 RETURN_VALUE empty_with_docstring 4 0 LOAD_CONST 1 (None) 3 RETURN_VALUE docstring 9 0 LOAD_CONST 1 (1) 3 RETURN_VALUE $ /usr/local/pythonz/pythons/CPython-3.6.4/bin/python3.6 /tmp/empty.py 3.6.4 (default, Dec 19 2017, 08:11:42) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] empty 2 0 LOAD_CONST 0 (None) 2 RETURN_VALUE empty_with_docstring 4 0 LOAD_CONST 1 (None) 2 RETURN_VALUE docstring 9 0 LOAD_CONST 1 (1) 2 RETURN_VALUE $ /usr/local/pythonz/pythons/CPython-3.7.0b4/bin/python3.7 /tmp/empty.py 3.7.0b4 (default, May 2 2018, 21:07:21) [Clang 9.0.0 (clang-900.0.39.2)] empty 2 0 LOAD_CONST 0 (None) 2 RETURN_VALUE empty_with_docstring 4 0 LOAD_CONST 1 (None) 2 RETURN_VALUE docstring 9 0 LOAD_CONST 1 (1) 2 RETURN_VALUE $ /usr/local/pythonz/pythons/CPython-3.7.0b5/bin/python3.7 /tmp/empty.py 3.7.0b5 (default, Jun 2 2018, 11:27:19) [Clang 9.1.0 (clang-902.0.39.2)] empty 2 0 LOAD_CONST 0 (None) 2 RETURN_VALUE empty_with_docstring 5 0 LOAD_CONST 1 (None) 2 RETURN_VALUE docstring 9 0 LOAD_CONST 1 (1) 2 RETURN_VALUE ---------- keywords: 3.7regression messages: 318532 nosy: nedbat priority: normal severity: normal status: open title: 3.7.0b5 changes the line number of empty functions with docstrings versions: Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 07:33:27 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 11:33:27 +0000 Subject: [issue33746] testRegisterResult in test_unittest fails in verbose mode Message-ID: <1528025607.41.0.592728768989.issue33746@psf.upfronthosting.co.za> New submission from Serhiy Storchaka : $ ./python -m test -m testRegisterResult test_unittest Run tests sequentially 0:00:00 load avg: 4.42 [1/1] test_unittest == Tests result: SUCCESS == 1 test OK. Total duration: 98 ms Tests result: SUCCESS $ ./python -m test -v -m testRegisterResult test_unittest == CPython 3.8.0a0 (heads/master-dirty:a801cf164b, Jun 3 2018, 12:58:45) [GCC 7.3.0] == Linux-4.15.0-22-generic-x86_64-with-glibc2.9 little-endian == cwd: /home/serhiy/py/cpython/build/test_python_3610 == CPU count: 8 == encodings: locale=UTF-8, FS=utf-8 Run tests sequentially 0:00:00 load avg: 4.17 [1/1] test_unittest testRegisterResult (unittest.test.test_break.TestBreak) ... FAIL testRegisterResult (unittest.test.test_break.TestBreakDefaultIntHandler) ... ok testRegisterResult (unittest.test.test_break.TestBreakSignalDefault) ... ok testRegisterResult (unittest.test.test_break.TestBreakSignalIgnored) ... ok ====================================================================== FAIL: testRegisterResult (unittest.test.test_break.TestBreak) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/unittest/test/test_break.py", line 48, in testRegisterResult self.fail("odd object in result set") AssertionError: odd object in result set ---------------------------------------------------------------------- Ran 4 tests in 0.002s FAILED (failures=1) test test_unittest failed test_unittest failed == Tests result: FAILURE == 1 test failed: test_unittest Total duration: 138 ms Tests result: FAILURE The test is passed in 2.7 and 3.4. It fails only starting from 3.5. ---------- components: Tests messages: 318533 nosy: ezio.melotti, michael.foord, rbcollins, serhiy.storchaka, vstinner priority: normal severity: normal status: open title: testRegisterResult in test_unittest fails in verbose mode type: behavior versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 07:59:10 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 11:59:10 +0000 Subject: [issue33747] Failed separate test_patch_propogrates_exc_on_exit in test_unittest Message-ID: <1528027150.62.0.592728768989.issue33747@psf.upfronthosting.co.za> New submission from Serhiy Storchaka : $ ./python -m test -v -m test_patch_propogrates_exc_on_exit test_unittest ... test_patch_propogrates_exc_on_exit (unittest.test.testmock.testpatch.PatchTest) ... ERROR ====================================================================== ERROR: test_patch_propogrates_exc_on_exit (unittest.test.testmock.testpatch.PatchTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/unittest/test/testmock/testpatch.py", line 1699, in test_patch_propogrates_exc_on_exit self.assertRaises(RuntimeError, test) File "/home/serhiy/py/cpython/Lib/unittest/case.py", line 743, in assertRaises return context.handle('assertRaises', args, kwargs) File "/home/serhiy/py/cpython/Lib/unittest/case.py", line 178, in handle callable_obj(*args, **kwargs) File "/home/serhiy/py/cpython/Lib/unittest/mock.py", line 1183, in patched arg = patching.__enter__() File "/home/serhiy/py/cpython/Lib/unittest/mock.py", line 1239, in __enter__ self.target = self.getter() File "/home/serhiy/py/cpython/Lib/unittest/mock.py", line 1409, in getter = lambda: _importer(target) File "/home/serhiy/py/cpython/Lib/unittest/mock.py", line 1092, in _importer thing = __import__(import_path) ModuleNotFoundError: No module named 'squizz' ---------------------------------------------------------------------- ---------- components: Tests messages: 318534 nosy: michael.foord, serhiy.storchaka priority: normal severity: normal status: open title: Failed separate test_patch_propogrates_exc_on_exit in test_unittest type: behavior versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 08:03:13 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 12:03:13 +0000 Subject: [issue33748] test_discovery_failed_discovery in test_unittest modifies sys.path Message-ID: <1528027393.44.0.592728768989.issue33748@psf.upfronthosting.co.za> New submission from Serhiy Storchaka : $ ./python -m test -v -m test_discovery_failed_discovery test_unittest ... Warning -- sys.path was modified by test_unittest Before: (139720094056760, ['/home/serhiy/py/cpython', '/usr/local/lib/python38.zip', '/home/serhiy/py/cpython/Lib', '/home/serhiy/py/cpython/build/lib.linux-x86_64-3.8-pydebug', '/home/serhiy/.local/lib/python3.8/site-packages'], ['/home/serhiy/py/cpython', '/usr/local/lib/python38.zip', '/home/serhiy/py/cpython/Lib', '/home/serhiy/py/cpython/build/lib.linux-x86_64-3.8-pydebug', '/home/serhiy/.local/lib/python3.8/site-packages']) After: (139720094056760, ['/home/serhiy/py/cpython', '/usr/local/lib/python38.zip', '/home/serhiy/py/cpython/Lib', '/home/serhiy/py/cpython/build/lib.linux-x86_64-3.8-pydebug', '/home/serhiy/.local/lib/python3.8/site-packages'], ['/home/serhiy/py/cpython/build/test_python_8308/package', '/home/serhiy/py/cpython', '/usr/local/lib/python38.zip', '/home/serhiy/py/cpython/Lib', '/home/serhiy/py/cpython/build/lib.linux-x86_64-3.8-pydebug', '/home/serhiy/.local/lib/python3.8/site-packages']) test_unittest failed (env changed) ---------- components: Tests messages: 318535 nosy: ezio.melotti, michael.foord, rbcollins, serhiy.storchaka priority: normal severity: normal status: open title: test_discovery_failed_discovery in test_unittest modifies sys.path type: behavior versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 08:03:45 2018 From: report at bugs.python.org (Michiel) Date: Sun, 03 Jun 2018 12:03:45 +0000 Subject: [issue33749] pdb.Pdb constructor stdout override required to disable use_rawinput Message-ID: <1528027425.26.0.592728768989.issue33749@psf.upfronthosting.co.za> New submission from Michiel : It looks like there's possibly a typo/small bug in the pdb.Pdb code. If I supply the stdin argument to the constructor, and provide e.g. a io.StringIO object, then I expect commands to be read from there. This however doesn't happen. If I additionally supply a stdout argument, then it works. This is because use_rawinput is only disabled if stdout is specified, see https://github.com/python/cpython/blob/3.7/Lib/pdb.py#L144: ... def __init__(self, completekey='tab', stdin=None, stdout=None, skip=None, nosigint=False, readrc=True): bdb.Bdb.__init__(self, skip=skip) cmd.Cmd.__init__(self, completekey, stdin, stdout) if stdout: self.use_rawinput = 0 ... I think it should be disabled if stdin is supplied, or possibly if either is specified (I'm not sure). Repro: import pdb import io pdb_script = io.StringIO("p 'hello';; c") output = io.StringIO() Buggy behaviour: In [5]: pdb.Pdb(stdin=pdb_script).set_trace() --Call-- > /usr/lib/python3.6/site-packages/IPython/core/displayhook.py(247)__call__() -> def __call__(self, result=None): (Pdb) c Expected behaviour: (Pdb) 'hello' Working if stdout is supplied: In [6]: pdb_script.seek(0) Out[6]: 0 In [7]: pdb.Pdb(stdin=pdb_script, stdout=output).set_trace() In [8]: print(output.getvalue()) --Call-- > /usr/lib/python3.6/site-packages/IPython/core/displayhook.py(247)__call__() -> def __call__(self, result=None): (Pdb) 'hello' I would've had a go at fixing this, but even after reading the docs at https://docs.python.org/3/library/cmd.html#cmd.Cmd.use_rawinput it's not entirely obvious to me which combinations of stdin/stdout overrides should be valid and when use_rawinput should be set to 0. However, I'm pretty sure it should at least be set to 0 if stdin is supplied, which currently isn't the case. ---------- components: Library (Lib) messages: 318536 nosy: m01 priority: normal severity: normal status: open title: pdb.Pdb constructor stdout override required to disable use_rawinput type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 08:20:07 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 12:20:07 +0000 Subject: [issue9141] Allow objects to decide if they can be collected by GC In-Reply-To: <1278070212.7.0.406390843902.issue9141@psf.upfronthosting.co.za> Message-ID: <1528028407.89.0.592728768989.issue9141@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Is this issue still actual after PEP 442? ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 08:32:52 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 12:32:52 +0000 Subject: [issue33012] Invalid function cast warnings with gcc 8 for METH_NOARGS In-Reply-To: <1520335093.04.0.467229070634.issue33012@psf.upfronthosting.co.za> Message-ID: <1528029172.67.0.592728768989.issue33012@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: The problem with invalid function signatures was initially reported in old issue1648268. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 08:33:48 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 12:33:48 +0000 Subject: [issue1648268] Parameter list mismatches (portation problem) Message-ID: <1528029228.74.0.592728768989.issue1648268@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: This issue has been partially (for METH_NOARGS methods) fixed in issue33012. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 08:37:35 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 12:37:35 +0000 Subject: [issue4896] Faster why variable manipulation in ceval.c In-Reply-To: <18791.24525.745699.580609@montanaro.dyndns.org> Message-ID: <1528029455.32.0.592728768989.issue4896@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: This issue is outdated since moving unwinding of stack for "pseudo exceptions" from interpreter to compiler in issue17611. ---------- resolution: -> out of date stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 08:39:02 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 12:39:02 +0000 Subject: [issue17045] Improve C-API doc for PyTypeObject In-Reply-To: <1359245485.06.0.557532055897.issue17045@psf.upfronthosting.co.za> Message-ID: <1528029542.1.0.592728768989.issue17045@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Do you mind to create a PR Eric? ---------- nosy: +serhiy.storchaka versions: +Python 3.6, Python 3.7, Python 3.8 -Python 3.3, Python 3.4 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 08:44:19 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 12:44:19 +0000 Subject: [issue33750] Failed separate test_from_tuple in test_decimal Message-ID: <1528029859.0.0.592728768989.issue33750@psf.upfronthosting.co.za> New submission from Serhiy Storchaka : $ ./python -m test -v -m test_from_tuple test_decimal ... test_from_tuple (test.test_decimal.CWhitebox) ... FAIL ====================================================================== FAIL: test_from_tuple (test.test_decimal.CWhitebox) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/test_decimal.py", line 5413, in test_from_tuple self.assertEqual(str(c.create_decimal(x)), '-0E-1000026') AssertionError: '-0E-1000007' != '-0E-1000026' - -0E-1000007 ? ^^ + -0E-1000026 ? ^^ ---------------------------------------------------------------------- ---------- components: Tests messages: 318542 nosy: facundobatista, mark.dickinson, rhettinger, serhiy.storchaka, skrah priority: normal severity: normal status: open title: Failed separate test_from_tuple in test_decimal type: behavior versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 08:47:27 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 12:47:27 +0000 Subject: [issue33751] Failed separate testTruncateOnWindows in test_file Message-ID: <1528030047.94.0.592728768989.issue33751@psf.upfronthosting.co.za> New submission from Serhiy Storchaka : $ ./python -m test -v -m testTruncateOnWindows test_file ... testTruncateOnWindows (test.test_file.COtherFileTests) ... ERROR testTruncateOnWindows (test.test_file.PyOtherFileTests) ... ERROR ====================================================================== ERROR: testTruncateOnWindows (test.test_file.COtherFileTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/test_file.py", line 188, in testTruncateOnWindows os.unlink(TESTFN) FileNotFoundError: [Errno 2] No such file or directory: '@test_8845_tmp' ====================================================================== ERROR: testTruncateOnWindows (test.test_file.PyOtherFileTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/test_file.py", line 188, in testTruncateOnWindows os.unlink(TESTFN) FileNotFoundError: [Errno 2] No such file or directory: '@test_8845_tmp' ---------------------------------------------------------------------- ---------- components: Tests messages: 318543 nosy: serhiy.storchaka priority: normal severity: normal status: open title: Failed separate testTruncateOnWindows in test_file type: behavior versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 08:50:26 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 12:50:26 +0000 Subject: [issue33752] Leaked file in test_anydbm_creation_n_file_exists_with_invalid_contents in test_dbm Message-ID: <1528030226.3.0.592728768989.issue33752@psf.upfronthosting.co.za> New submission from Serhiy Storchaka : $ ./python -m test -v -m test_anydbm_creation_n_file_exists_with_invalid_contents test_dbm ... test_anydbm_creation_n_file_exists_with_invalid_contents (test.test_dbm.TestCase-dbm.gnu) ... ok test_anydbm_creation_n_file_exists_with_invalid_contents (test.test_dbm.TestCase-dbm.ndbm) ... ok test_anydbm_creation_n_file_exists_with_invalid_contents (test.test_dbm.TestCase-dbm.dumb) ... ok ---------------------------------------------------------------------- Ran 3 tests in 0.011s OK Warning -- files was modified by test_dbm Before: [] After: ['@test_17166_tmp.dir'] test_dbm failed (env changed) ---------- components: Tests messages: 318544 nosy: serhiy.storchaka priority: normal severity: normal status: open title: Leaked file in test_anydbm_creation_n_file_exists_with_invalid_contents in test_dbm type: behavior versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 08:53:11 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 12:53:11 +0000 Subject: [issue33753] Leaked file in test_nextfile_oserror_deleting_backup in test_fileinput Message-ID: <1528030391.57.0.592728768989.issue33753@psf.upfronthosting.co.za> New submission from Serhiy Storchaka : $ ./python -m test -v -m test_nextfile_oserror_deleting_backup test_fileinput ... Warning -- files was modified by test_fileinput Before: [] After: ['@test_23936_tmp1.bak'] test_fileinput failed (env changed) ---------- components: Tests messages: 318545 nosy: serhiy.storchaka priority: normal severity: normal status: open title: Leaked file in test_nextfile_oserror_deleting_backup in test_fileinput type: behavior versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 08:59:31 2018 From: report at bugs.python.org (Stefan Krah) Date: Sun, 03 Jun 2018 12:59:31 +0000 Subject: [issue33750] Failed separate test_from_tuple in test_decimal In-Reply-To: <1528029859.0.0.592728768989.issue33750@psf.upfronthosting.co.za> Message-ID: <1528030771.77.0.592728768989.issue33750@psf.upfronthosting.co.za> Stefan Krah added the comment: I think the tests are order-dependent in multiple places. Personally, I don't see much value in fixing that because it has little effect on the actual code. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 08:59:38 2018 From: report at bugs.python.org (David Halter) Date: Sun, 03 Jun 2018 12:59:38 +0000 Subject: [issue33754] f-strings should be part of the Grammar Message-ID: <1528030778.27.0.592728768989.issue33754@psf.upfronthosting.co.za> New submission from David Halter : Currently f-strings are a bit of a hack. They certainly work very well for users, but they are implemented in ast.c and therefore not part of the Python grammar and the tokenizer. I want to change this. I wrote an alternative implementation of f-strings in parso (http://parso.readthedocs.io/en/latest/). The idea I have is to modify the Python grammar slightly (https://github.com/davidhalter/parso/blob/master/parso/python/grammar37.txt#L149): fstring: FSTRING_START fstring_content* FSTRING_END fstring_content: FSTRING_STRING | fstring_expr fstring_conversion: '!' NAME fstring_expr: '{' testlist [ fstring_conversion ] [ fstring_format_spec ] '}' fstring_format_spec: ':' fstring_content* We would push most of the hard work to the tokenizer. This obviously means that we have to add a lot of code there. I wrote a tokenizer in Python for parso here: in https://github.com/davidhalter/parso/blob/master/parso/python/tokenize.py. It is definitely working well. The biggest difference to the current tokenizer.c is that you have to work with stacks and be way more context-sensitive. There were attempts to change the Grammar of f-strings like https://www.python.org/dev/peps/pep-0536/. It hasn't caught on, because it tried to change the semantics of f-strings. The implementation in parso has not changed the semantics of f-strings. In a first step I would like to get this working for CPython and not tokenize.py. Modifying tokenize.py will not be part of my initial work here. I have discussed this with ?ukasz Langa, so if you guys have no objections I will start working on it. Please let me know if you support this or not. ---------- components: Interpreter Core messages: 318547 nosy: davidhalter priority: normal severity: normal status: open title: f-strings should be part of the Grammar type: enhancement versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 09:16:15 2018 From: report at bugs.python.org (Cheryl Sabella) Date: Sun, 03 Jun 2018 13:16:15 +0000 Subject: [issue33664] IDLE: scroll text by lines, not pixels. In-Reply-To: <1527468406.58.0.682650639539.issue33664@psf.upfronthosting.co.za> Message-ID: <1528031775.91.0.592728768989.issue33664@psf.upfronthosting.co.za> Change by Cheryl Sabella : ---------- keywords: +patch pull_requests: +6978 stage: test needed -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 09:28:12 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 13:28:12 +0000 Subject: [issue33750] Failed separate test_from_tuple in test_decimal In-Reply-To: <1528029859.0.0.592728768989.issue33750@psf.upfronthosting.co.za> Message-ID: <1528032492.5.0.592728768989.issue33750@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Doesn't this mean that the test is incorrect? It expects the result be '-0E-1000026', but actually it should be '-0E-1000007', and it is '-0E-1000026' only after performing some actions outside of the test. Or maybe that there is a leak of the state out of localcontext? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 09:39:36 2018 From: report at bugs.python.org (Stefan Krah) Date: Sun, 03 Jun 2018 13:39:36 +0000 Subject: [issue33750] Failed separate test_from_tuple in test_decimal In-Reply-To: <1528029859.0.0.592728768989.issue33750@psf.upfronthosting.co.za> Message-ID: <1528033176.24.0.592728768989.issue33750@psf.upfronthosting.co.za> Stefan Krah added the comment: The test is insignificant. The real tests are mpdecimal-testit- 2.4.1.tar.gz (http://www.bytereef.org/mpdecimal/download.html), deccheck.py and my private python test suite. This test uses the global context that has been modified somewhere. I think I added that test to increase code coverage. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 09:44:22 2018 From: report at bugs.python.org (Berker Peksag) Date: Sun, 03 Jun 2018 13:44:22 +0000 Subject: [issue33754] f-strings should be part of the Grammar In-Reply-To: <1528030778.27.0.592728768989.issue33754@psf.upfronthosting.co.za> Message-ID: <1528033462.45.0.592728768989.issue33754@psf.upfronthosting.co.za> Change by Berker Peksag : ---------- nosy: +eric.smith _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 09:54:14 2018 From: report at bugs.python.org (Eric V. Smith) Date: Sun, 03 Jun 2018 13:54:14 +0000 Subject: [issue33754] f-strings should be part of the Grammar In-Reply-To: <1528030778.27.0.592728768989.issue33754@psf.upfronthosting.co.za> Message-ID: <1528034054.27.0.592728768989.issue33754@psf.upfronthosting.co.za> Eric V. Smith added the comment: What is the goal here? Are you just trying to simplify ast.c? My concern is that there are many, many edge cases, and that you'll be unknowingly changing the behavior of f-strings. One of the goals of the f-string specification is for a simple third-party parser to be able to lexically recognize f-strings just like normal, raw, or byte strings. It should require no change to such a lexer except for adding "f" where "b", "r", or "u" is currently allowed. I do not want to break that design principle. There are plenty of examples in the wild where this design was leveraged. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 10:12:34 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 14:12:34 +0000 Subject: [issue33755] Failed separate tests in test_importlib Message-ID: <1528035154.67.0.592728768989.issue33755@psf.upfronthosting.co.za> New submission from Serhiy Storchaka : $ ./python -m test -v -m test_resource test_importlib ... ====================================================================== ERROR: test_is_submodule_resource (test.test_importlib.test_resource.ResourceFromZipsTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/test_importlib/test_resource.py", line 113, in test_is_submodule_resource submodule = import_module('ziptestdata.subdirectory') File "/home/serhiy/py/cpython/Lib/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 965, in _find_and_load_unlocked ModuleNotFoundError: No module named 'ziptestdata.subdirectory' ====================================================================== ERROR: test_read_submodule_resource_by_name (test.test_importlib.test_resource.ResourceFromZipsTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/test_importlib/test_resource.py", line 119, in test_read_submodule_resource_by_name resources.is_resource('ziptestdata.subdirectory', 'binary.file')) File "/home/serhiy/py/cpython/Lib/importlib/resources.py", line 223, in is_resource package = _get_package(package) File "/home/serhiy/py/cpython/Lib/importlib/resources.py", line 47, in _get_package module = import_module(package) File "/home/serhiy/py/cpython/Lib/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 965, in _find_and_load_unlocked ModuleNotFoundError: No module named 'ziptestdata.subdirectory' ====================================================================== ERROR: test_submodule_contents (test.test_importlib.test_resource.ResourceFromZipsTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/test_importlib/test_resource.py", line 122, in test_submodule_contents submodule = import_module('ziptestdata.subdirectory') File "/home/serhiy/py/cpython/Lib/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 965, in _find_and_load_unlocked ModuleNotFoundError: No module named 'ziptestdata.subdirectory' ====================================================================== ERROR: test_submodule_contents_by_name (test.test_importlib.test_resource.ResourceFromZipsTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/test_importlib/test_resource.py", line 129, in test_submodule_contents_by_name set(resources.contents('ziptestdata.subdirectory')), File "/home/serhiy/py/cpython/Lib/importlib/resources.py", line 248, in contents package = _get_package(package) File "/home/serhiy/py/cpython/Lib/importlib/resources.py", line 47, in _get_package module = import_module(package) File "/home/serhiy/py/cpython/Lib/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 965, in _find_and_load_unlocked ModuleNotFoundError: No module named 'ziptestdata.subdirectory' ---------------------------------------------------------------------- ---------- components: Tests messages: 318551 nosy: brett.cannon, serhiy.storchaka, twouters priority: normal severity: normal status: open title: Failed separate tests in test_importlib type: behavior versions: Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 10:22:44 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 14:22:44 +0000 Subject: [issue33744] Fix and improve tests for the uu module In-Reply-To: <1528017491.17.0.592728768989.issue33744@psf.upfronthosting.co.za> Message-ID: <1528035764.9.0.592728768989.issue33744@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: New changeset 027f95c736457f12c5713d9cf5b95ac335e583df by Serhiy Storchaka in branch 'master': bpo-33744: Fix test_uu. (GH-7350) https://github.com/python/cpython/commit/027f95c736457f12c5713d9cf5b95ac335e583df ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 10:22:54 2018 From: report at bugs.python.org (David Halter) Date: Sun, 03 Jun 2018 14:22:54 +0000 Subject: [issue33754] f-strings should be part of the Grammar In-Reply-To: <1528030778.27.0.592728768989.issue33754@psf.upfronthosting.co.za> Message-ID: <1528035774.23.0.592728768989.issue33754@psf.upfronthosting.co.za> David Halter added the comment: As I wrote before, I'm not trying to change anything about the f-string behavior. It is a refactoring. If anyone wants to change the behavior, I feel like they should probably write a PEP anyway. I personally don't like that f-strings get parsed multiple times. It just smells bad. Also f-strings are IMO not just strings. They should maybe look like strings for other tools to parse them. But they are more or less statements that get executed. The code in ast.c is not bad. Don't get me wrong. I just think that it's the wrong approach. Regarding the edge cases: I don't think there are that many. In the end the ast output will look similar anyway. All the backslashes, string literals and comments can be checked and rejected in the tokenizer already. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 10:22:58 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 03 Jun 2018 14:22:58 +0000 Subject: [issue33744] Fix and improve tests for the uu module In-Reply-To: <1528017491.17.0.592728768989.issue33744@psf.upfronthosting.co.za> Message-ID: <1528035778.35.0.592728768989.issue33744@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6979 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 10:23:51 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 03 Jun 2018 14:23:51 +0000 Subject: [issue33744] Fix and improve tests for the uu module In-Reply-To: <1528017491.17.0.592728768989.issue33744@psf.upfronthosting.co.za> Message-ID: <1528035831.95.0.592728768989.issue33744@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6980 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 10:31:34 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 14:31:34 +0000 Subject: [issue27485] urllib.splitport -- is it official or not? In-Reply-To: <1468260123.51.0.000787877209911.issue27485@psf.upfronthosting.co.za> Message-ID: <1528036294.74.0.592728768989.issue27485@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: New changeset 867b825830b9b0baff791c9bcda57bba3809722a by Serhiy Storchaka (Cheryl Sabella) in branch 'master': bpo-27485: Change urlparse tests to use private methods. (GH-7070) https://github.com/python/cpython/commit/867b825830b9b0baff791c9bcda57bba3809722a ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 10:45:53 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 14:45:53 +0000 Subject: [issue33744] Fix and improve tests for the uu module In-Reply-To: <1528017491.17.0.592728768989.issue33744@psf.upfronthosting.co.za> Message-ID: <1528037153.52.0.592728768989.issue33744@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- pull_requests: +6981 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 10:47:49 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 14:47:49 +0000 Subject: [issue27485] urllib.splitport -- is it official or not? In-Reply-To: <1468260123.51.0.000787877209911.issue27485@psf.upfronthosting.co.za> Message-ID: <1528037269.72.0.592728768989.issue27485@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 10:51:12 2018 From: report at bugs.python.org (Manjusaka) Date: Sun, 03 Jun 2018 14:51:12 +0000 Subject: [issue33756] Python 3.7.0b5 build error Message-ID: <1528037472.78.0.592728768989.issue33756@psf.upfronthosting.co.za> New submission from Manjusaka : When I build 3.70.b5 in Mac , the compiler raise an error show that "./Modules/posixmodule.c:6018:11: error: implicit declaration of function 'forkpty' is invalid in C99 [-Werror,-Wimplicit-function-declaration] pid = forkpty(&master_fd, NULL, NULL, NULL);" the makefile was generated by './configuration" command without no argument. ---------- components: Build messages: 318555 nosy: Manjusaka priority: normal severity: normal status: open title: Python 3.7.0b5 build error type: compile error versions: Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 10:53:09 2018 From: report at bugs.python.org (Eric V. Smith) Date: Sun, 03 Jun 2018 14:53:09 +0000 Subject: [issue33754] f-strings should be part of the Grammar In-Reply-To: <1528030778.27.0.592728768989.issue33754@psf.upfronthosting.co.za> Message-ID: <1528037589.71.0.592728768989.issue33754@psf.upfronthosting.co.za> Eric V. Smith added the comment: I'm not completely opposed to it, but I need to understand the benefits and side effects. And I wouldn't exactly describe the multiple passes over the string as "parsing", but I see your point. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 11:22:57 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 15:22:57 +0000 Subject: [issue33744] Fix and improve tests for the uu module In-Reply-To: <1528017491.17.0.592728768989.issue33744@psf.upfronthosting.co.za> Message-ID: <1528039377.4.0.592728768989.issue33744@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: New changeset da7f8ce21adc6cd0d7f86f5784a1d477891976f7 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': bpo-33744: Fix test_uu. (GH-7350) (GH-7353) https://github.com/python/cpython/commit/da7f8ce21adc6cd0d7f86f5784a1d477891976f7 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 11:23:56 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 15:23:56 +0000 Subject: [issue33744] Fix and improve tests for the uu module In-Reply-To: <1528017491.17.0.592728768989.issue33744@psf.upfronthosting.co.za> Message-ID: <1528039436.15.0.592728768989.issue33744@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: New changeset ad4c7954df11b45ab2d17eefeb42bb7385615697 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.7': bpo-33744: Fix test_uu. (GH-7350) (GH-7352) https://github.com/python/cpython/commit/ad4c7954df11b45ab2d17eefeb42bb7385615697 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 11:37:39 2018 From: report at bugs.python.org (Michiel) Date: Sun, 03 Jun 2018 15:37:39 +0000 Subject: [issue33749] pdb.Pdb constructor stdout override required to disable use_rawinput In-Reply-To: <1528027425.26.0.592728768989.issue33749@psf.upfronthosting.co.za> Message-ID: <1528040259.73.0.592728768989.issue33749@psf.upfronthosting.co.za> Michiel added the comment: Based on code inspection, this affects 2.7 - current master ---------- versions: +Python 2.7, Python 3.4, Python 3.5, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 11:43:25 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 15:43:25 +0000 Subject: [issue33757] Failed separate test_pdb_next_command_in_generator_for_loop in test_pdb Message-ID: <1528040605.03.0.592728768989.issue33757@psf.upfronthosting.co.za> New submission from Serhiy Storchaka : $ ./python -m test -v -m test_pdb_next_command_in_generator_for_loop test_pdb ... test_pdb_next_command_in_generator_for_loop (test.test_pdb) Doctest: test.test_pdb.test_pdb_next_command_in_generator_for_loop ... FAIL ====================================================================== FAIL: test_pdb_next_command_in_generator_for_loop (test.test_pdb) Doctest: test.test_pdb.test_pdb_next_command_in_generator_for_loop ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython-tmp2/Lib/doctest.py", line 2193, in runTest test, out=new.write, clear_globs=False) AssertionError: Failed doctest test for test.test_pdb.test_pdb_next_command_in_generator_for_loop File "/home/serhiy/py/cpython-tmp2/Lib/test/test_pdb.py", line 1035, in test_pdb_next_command_in_generator_for_loop ---------------------------------------------------------------------- File "/home/serhiy/py/cpython-tmp2/Lib/test/test_pdb.py", line 1048, in test.test_pdb.test_pdb_next_command_in_generator_for_loop Failed example: with PdbTestInput(['break test_gen', 'continue', 'next', 'next', 'next', 'continue']): test_function() Expected: > (3)test_function() -> for i in test_gen(): (Pdb) break test_gen Breakpoint 6 at :1 (Pdb) continue > (2)test_gen() -> yield 0 (Pdb) next value 0 > (3)test_gen() -> return 1 (Pdb) next Internal StopIteration: 1 > (3)test_function() -> for i in test_gen(): (Pdb) next > (5)test_function() -> x = 123 (Pdb) continue Got: > (3)test_function() -> for i in test_gen(): (Pdb) break test_gen Breakpoint 1 at :1 (Pdb) continue > (2)test_gen() -> yield 0 (Pdb) next value 0 > (3)test_gen() -> return 1 (Pdb) next Internal StopIteration: 1 > (3)test_function() -> for i in test_gen(): (Pdb) next > (5)test_function() -> x = 123 (Pdb) continue ---------------------------------------------------------------------- ---------- components: Tests messages: 318560 nosy: serhiy.storchaka priority: normal severity: normal status: open title: Failed separate test_pdb_next_command_in_generator_for_loop in test_pdb type: behavior versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 11:47:58 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 15:47:58 +0000 Subject: [issue24215] test_trace uses test_pprint In-Reply-To: <1431842150.15.0.237267681297.issue24215@psf.upfronthosting.co.za> Message-ID: <1528040878.6.0.592728768989.issue24215@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: There is different failure when run this test separately: $ ./python -m test -v -m test_coverage test_trace ... ====================================================================== FAIL: test_coverage (test.test_trace.TestCoverage) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/test_trace.py", line 318, in test_coverage self.assertIn("pprint.cover", files) AssertionError: 'pprint.cover' not found in ['warnings.cover', 'unittest.case.cover', 'test.support.__init__.cover', 'test.test_pprint.cover', 'trace.cover', 'platform.cover', 'weakref.cover', 'unittest.loader.cover', 'unittest.util.cover', 'copy.cover', 'unittest.runner.cover', 'unittest.result.cover', 'unittest.suite.cover', 'unittest.signals.cover', 'test.test_set.cover'] ---------------------------------------------------------------------- ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 11:48:54 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sun, 03 Jun 2018 15:48:54 +0000 Subject: [issue33610] IDLE: Make multiple improvements to CodeContext In-Reply-To: <1527052692.02.0.682650639539.issue33610@psf.upfronthosting.co.za> Message-ID: <1528040934.1.0.592728768989.issue33610@psf.upfronthosting.co.za> Terry J. Reedy added the comment: After writing the above, I realized that line scroll only touches editor.py, not codecontext.py. On the other hand, the next item, 8. jump to context line did have to wait. Replacing Label with Text will require explicit height setting with each context change. The click handler will be a simplified version of the scroll handler you just wrote. Jumping to a line will look much better when it jumps to a whole rather than a fractional line. Again, one of us should say something before starting. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 11:52:01 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 15:52:01 +0000 Subject: [issue33758] Unexpected success of test_get_type_hints_modules_forwardref in test_typing Message-ID: <1528041121.47.0.592728768989.issue33758@psf.upfronthosting.co.za> New submission from Serhiy Storchaka : $ ./python -m test -v -m test_get_type_hints_modules_forwardref test_typing ... test_get_type_hints_modules_forwardref (test.test_typing.GetTypeHintTests) ... unexpected success ---------------------------------------------------------------------- Ran 1 test in 0.001s FAILED (unexpected successes=1) ---------- components: Tests messages: 318563 nosy: levkivskyi, serhiy.storchaka priority: normal severity: normal status: open title: Unexpected success of test_get_type_hints_modules_forwardref in test_typing type: behavior versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 11:56:37 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 15:56:37 +0000 Subject: [issue33509] warnings.warn_explicit with module_globals=True raises a SystemError In-Reply-To: <1526332146.43.0.682650639539.issue33509@psf.upfronthosting.co.za> Message-ID: <1528041397.25.0.592728768989.issue33509@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: This test is failed with -We. $ ./python -We -m test -v test_warnings ... ====================================================================== ERROR: test_module_globals (test.test_warnings.CFilterTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/test_warnings/__init__.py", line 226, in test_module_globals module_globals=None) UserWarning: msg ====================================================================== ERROR: test_module_globals (test.test_warnings.PyFilterTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/test_warnings/__init__.py", line 226, in test_module_globals module_globals=None) File "/home/serhiy/py/cpython/Lib/warnings.py", line 375, in warn_explicit raise message UserWarning: msg ---------------------------------------------------------------------- ---------- status: closed -> open _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 12:00:35 2018 From: report at bugs.python.org (Stefan Krah) Date: Sun, 03 Jun 2018 16:00:35 +0000 Subject: [issue33750] Failed separate test_from_tuple in test_decimal In-Reply-To: <1528029859.0.0.592728768989.issue33750@psf.upfronthosting.co.za> Message-ID: <1528041635.95.0.592728768989.issue33750@psf.upfronthosting.co.za> Change by Stefan Krah : ---------- keywords: +patch pull_requests: +6982 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 12:02:51 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 16:02:51 +0000 Subject: [issue33759] Failed separate ServerProxyTestCase tests in test_xmlrpc Message-ID: <1528041771.94.0.592728768989.issue33759@psf.upfronthosting.co.za> New submission from Serhiy Storchaka : $ ./python -m test -v -m ServerProxyTestCase test_xmlrpc ... ====================================================================== ERROR: test_close (test.test_xmlrpc.ServerProxyTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/test_xmlrpc.py", line 1181, in test_close p = xmlrpclib.ServerProxy(self.url) File "/home/serhiy/py/cpython/Lib/xmlrpc/client.py", line 1416, in __init__ type, uri = urllib.parse._splittype(uri) File "/home/serhiy/py/cpython/Lib/urllib/parse.py", line 967, in _splittype match = _typeprog.match(url) TypeError: expected string or bytes-like object ====================================================================== ERROR: test_transport (test.test_xmlrpc.ServerProxyTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/test_xmlrpc.py", line 1186, in test_transport p = xmlrpclib.ServerProxy(self.url, transport=t) File "/home/serhiy/py/cpython/Lib/xmlrpc/client.py", line 1416, in __init__ type, uri = urllib.parse._splittype(uri) File "/home/serhiy/py/cpython/Lib/urllib/parse.py", line 967, in _splittype match = _typeprog.match(url) TypeError: expected string or bytes-like object ---------------------------------------------------------------------- ---------- components: Tests messages: 318565 nosy: serhiy.storchaka priority: normal severity: normal status: open title: Failed separate ServerProxyTestCase tests in test_xmlrpc type: behavior versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 12:06:23 2018 From: report at bugs.python.org (Stefan Krah) Date: Sun, 03 Jun 2018 16:06:23 +0000 Subject: [issue33750] Failed separate test_from_tuple in test_decimal In-Reply-To: <1528029859.0.0.592728768989.issue33750@psf.upfronthosting.co.za> Message-ID: <1528041983.12.0.592728768989.issue33750@psf.upfronthosting.co.za> Stefan Krah added the comment: The thread local context was modified in test_round(), so prec=28 was used in test_from_tuple() when running the whole test suite but prec=9 when running the single test. I don't really consider that a bug, but it is easy to "fix". I wouldn't be surprised if other similar cases exist. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 12:12:46 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 16:12:46 +0000 Subject: [issue33760] Leaked files in test_io Message-ID: <1528042366.45.0.592728768989.issue33760@psf.upfronthosting.co.za> New submission from Serhiy Storchaka : $ ./python -m test -v -m test.test_io.CBufferedReaderTest.test_garbage_collection test_io ... Warning -- files was modified by test_io Before: [] After: ['@test_18627_tmp'] test_io failed (env changed) $ ./python -m test -v -m test.test_io.CBufferedWriterTest.test_garbage_collection test_io ... Warning -- files was modified by test_io Before: [] After: ['@test_18654_tmp'] test_io failed (env changed) $ ./python -m test -v -m test.test_io.CBufferedWriterTest.test_truncate test_io ... Warning -- files was modified by test_io Before: [] After: ['@test_18663_tmp'] test_io failed (env changed) $ ./python -m test -v -m test.test_io.CBufferedWriterTest.test_truncate_after_write test_io ... Warning -- files was modified by test_io Before: [] After: ['@test_18666_tmp'] test_io failed (env changed) And the same for PyBufferedWriterTest, CBufferedRandomTest and PyBufferedRandomTest. ---------- messages: 318567 nosy: serhiy.storchaka priority: normal severity: normal status: open title: Leaked files in test_io _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 12:15:22 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 16:15:22 +0000 Subject: [issue33761] Leaked file in test_iterparse in test_xml_etree Message-ID: <1528042522.11.0.592728768989.issue33761@psf.upfronthosting.co.za> New submission from Serhiy Storchaka : $ ./python -m test -v -m test_iterparse test_xml_etree ... Warning -- files was modified by test_xml_etree Before: [] After: ['@test_18721_tmp'] test_xml_etree failed (env changed) ---------- components: Tests messages: 318568 nosy: eli.bendersky, scoder, serhiy.storchaka priority: normal severity: normal status: open title: Leaked file in test_iterparse in test_xml_etree type: behavior versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 12:18:02 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Sun, 03 Jun 2018 16:18:02 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528042682.91.0.592728768989.issue33694@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: The test fails also on x86 Windows7 3.x: http://buildbot.python.org/all/#/builders/58/builds/947 ---------- nosy: +pablogsal _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 12:29:15 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 16:29:15 +0000 Subject: [issue33750] Failed separate test_from_tuple in test_decimal In-Reply-To: <1528029859.0.0.592728768989.issue33750@psf.upfronthosting.co.za> Message-ID: <1528043355.79.0.592728768989.issue33750@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: I ran all tests separately and this was the only case. PR 7355 fixes it. There are no other failures, errors or warnings. ./python -m test -uall --list-cases test_decimal | xargs -n1 -I '{}' ./python -We -m test -vuall -m '{}' test_decimal ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 12:31:55 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 16:31:55 +0000 Subject: [issue33744] Fix and improve tests for the uu module In-Reply-To: <1528017491.17.0.592728768989.issue33744@psf.upfronthosting.co.za> Message-ID: <1528043515.65.0.592728768989.issue33744@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: New changeset 9b5c9488c77aeaddeafa7e2302bdc87dd77ac084 by Serhiy Storchaka in branch '2.7': [2.7] bpo-33744: Fix test_uu. (GH-7350) (GH-7354) https://github.com/python/cpython/commit/9b5c9488c77aeaddeafa7e2302bdc87dd77ac084 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 12:32:14 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 16:32:14 +0000 Subject: [issue33744] Fix and improve tests for the uu module In-Reply-To: <1528017491.17.0.592728768989.issue33744@psf.upfronthosting.co.za> Message-ID: <1528043534.19.0.592728768989.issue33744@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 12:40:02 2018 From: report at bugs.python.org (Stefan Krah) Date: Sun, 03 Jun 2018 16:40:02 +0000 Subject: [issue33750] Failed separate test_from_tuple in test_decimal In-Reply-To: <1528029859.0.0.592728768989.issue33750@psf.upfronthosting.co.za> Message-ID: <1528044002.77.0.592728768989.issue33750@psf.upfronthosting.co.za> Stefan Krah added the comment: New changeset e95dfc5006d19e59c7871faa9973356844ddb3ae by Stefan Krah in branch 'master': bpo-33750: Reset thread-local context precision in test_round(). (#7355) https://github.com/python/cpython/commit/e95dfc5006d19e59c7871faa9973356844ddb3ae ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 12:45:55 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 03 Jun 2018 16:45:55 +0000 Subject: [issue33750] Failed separate test_from_tuple in test_decimal In-Reply-To: <1528029859.0.0.592728768989.issue33750@psf.upfronthosting.co.za> Message-ID: <1528044355.87.0.592728768989.issue33750@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6983 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 12:46:59 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 03 Jun 2018 16:46:59 +0000 Subject: [issue33750] Failed separate test_from_tuple in test_decimal In-Reply-To: <1528029859.0.0.592728768989.issue33750@psf.upfronthosting.co.za> Message-ID: <1528044419.96.0.592728768989.issue33750@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6984 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 13:09:28 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 17:09:28 +0000 Subject: [issue33761] Leaked file in test_iterparse in test_xml_etree In-Reply-To: <1528042522.11.0.592728768989.issue33761@psf.upfronthosting.co.za> Message-ID: <1528045768.72.0.592728768989.issue33761@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- keywords: +patch pull_requests: +6985 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 13:30:14 2018 From: report at bugs.python.org (Stefan Krah) Date: Sun, 03 Jun 2018 17:30:14 +0000 Subject: [issue33750] Failed separate test_from_tuple in test_decimal In-Reply-To: <1528029859.0.0.592728768989.issue33750@psf.upfronthosting.co.za> Message-ID: <1528047014.92.0.592728768989.issue33750@psf.upfronthosting.co.za> Stefan Krah added the comment: New changeset 7f1bcda9bc3c04100cb047373732db0eba00e581 by Stefan Krah (Miss Islington (bot)) in branch '3.6': bpo-33750: Reset thread-local context precision in test_round(). (GH-7355) (#7356) https://github.com/python/cpython/commit/7f1bcda9bc3c04100cb047373732db0eba00e581 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 13:36:36 2018 From: report at bugs.python.org (Stefan Krah) Date: Sun, 03 Jun 2018 17:36:36 +0000 Subject: [issue33750] Failed separate test_from_tuple in test_decimal In-Reply-To: <1528029859.0.0.592728768989.issue33750@psf.upfronthosting.co.za> Message-ID: <1528047396.92.0.592728768989.issue33750@psf.upfronthosting.co.za> Stefan Krah added the comment: New changeset bdab3ea8b98db2133ef1e2d92b2a2c539f08ddaf by Stefan Krah (Miss Islington (bot)) in branch '3.7': bpo-33750: Reset thread-local context precision in test_round(). (GH-7355) (#7357) https://github.com/python/cpython/commit/bdab3ea8b98db2133ef1e2d92b2a2c539f08ddaf ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 13:39:06 2018 From: report at bugs.python.org (Stefan Krah) Date: Sun, 03 Jun 2018 17:39:06 +0000 Subject: [issue33750] Failed separate test_from_tuple in test_decimal In-Reply-To: <1528029859.0.0.592728768989.issue33750@psf.upfronthosting.co.za> Message-ID: <1528047546.18.0.592728768989.issue33750@psf.upfronthosting.co.za> Stefan Krah added the comment: OK, thanks for checking the other tests! ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 13:56:57 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 17:56:57 +0000 Subject: [issue33761] Leaked file in test_iterparse in test_xml_etree In-Reply-To: <1528042522.11.0.592728768989.issue33761@psf.upfronthosting.co.za> Message-ID: <1528048617.45.0.592728768989.issue33761@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: New changeset 13f51d9eec569e08475390e2a8f49f4afed1ea06 by Serhiy Storchaka in branch 'master': bpo-33761: Fix a file leak in test_iterparse in test_xml_etree. (GH-7358) https://github.com/python/cpython/commit/13f51d9eec569e08475390e2a8f49f4afed1ea06 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 13:57:16 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 03 Jun 2018 17:57:16 +0000 Subject: [issue33761] Leaked file in test_iterparse in test_xml_etree In-Reply-To: <1528042522.11.0.592728768989.issue33761@psf.upfronthosting.co.za> Message-ID: <1528048636.3.0.592728768989.issue33761@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6986 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 13:58:02 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 03 Jun 2018 17:58:02 +0000 Subject: [issue33761] Leaked file in test_iterparse in test_xml_etree In-Reply-To: <1528042522.11.0.592728768989.issue33761@psf.upfronthosting.co.za> Message-ID: <1528048682.57.0.592728768989.issue33761@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6987 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 14:12:07 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 18:12:07 +0000 Subject: [issue33760] Leaked files in test_io In-Reply-To: <1528042366.45.0.592728768989.issue33760@psf.upfronthosting.co.za> Message-ID: <1528049527.35.0.592728768989.issue33760@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- keywords: +patch pull_requests: +6988 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 14:12:40 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 18:12:40 +0000 Subject: [issue33760] Leaked files in test_io In-Reply-To: <1528042366.45.0.592728768989.issue33760@psf.upfronthosting.co.za> Message-ID: <1528049560.93.0.592728768989.issue33760@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- components: +Tests stage: patch review -> versions: +Python 2.7, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 14:46:45 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Sun, 03 Jun 2018 18:46:45 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1528051605.88.0.592728768989.issue30654@psf.upfronthosting.co.za> Antoine Pitrou added the comment: New changeset ded666ff0ce44785a495ff89b676ca68e4cc08e8 by Antoine Pitrou in branch '2.7': [2.7] bpo-30654: Do not reset SIGINT handler to SIG_DFL in finisignal (GH-7146) (GH-7347) https://github.com/python/cpython/commit/ded666ff0ce44785a495ff89b676ca68e4cc08e8 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 14:50:44 2018 From: report at bugs.python.org (Brett Cannon) Date: Sun, 03 Jun 2018 18:50:44 +0000 Subject: [issue33755] Failed separate tests in test_importlib In-Reply-To: <1528035154.67.0.592728768989.issue33755@psf.upfronthosting.co.za> Message-ID: <1528051844.19.0.592728768989.issue33755@psf.upfronthosting.co.za> Change by Brett Cannon : ---------- nosy: +barry _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 14:52:13 2018 From: report at bugs.python.org (Brett Cannon) Date: Sun, 03 Jun 2018 18:52:13 +0000 Subject: [issue33755] Failed separate tests in test_importlib In-Reply-To: <1528035154.67.0.592728768989.issue33755@psf.upfronthosting.co.za> Message-ID: <1528051933.66.0.592728768989.issue33755@psf.upfronthosting.co.za> Brett Cannon added the comment: Was this on your machine or has this started across CI or buildbots? And was this from a build or installed copy? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 14:53:10 2018 From: report at bugs.python.org (Brett Cannon) Date: Sun, 03 Jun 2018 18:53:10 +0000 Subject: [issue32584] Uninitialized free_extra in code_dealloc In-Reply-To: <1516203304.77.0.467229070634.issue32584@psf.upfronthosting.co.za> Message-ID: <1528051990.61.0.592728768989.issue32584@psf.upfronthosting.co.za> Change by Brett Cannon : ---------- nosy: +dino.viehland _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 15:02:23 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 03 Jun 2018 19:02:23 +0000 Subject: [issue33761] Leaked file in test_iterparse in test_xml_etree In-Reply-To: <1528042522.11.0.592728768989.issue33761@psf.upfronthosting.co.za> Message-ID: <1528052543.02.0.592728768989.issue33761@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 2332fedb8d7037172946520bb1a552c7018261d5 by Miss Islington (bot) in branch '3.7': bpo-33761: Fix a file leak in test_iterparse in test_xml_etree. (GH-7358) https://github.com/python/cpython/commit/2332fedb8d7037172946520bb1a552c7018261d5 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 15:06:47 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 19:06:47 +0000 Subject: [issue33759] Failed separate ServerProxyTestCase tests in test_xmlrpc In-Reply-To: <1528041771.94.0.592728768989.issue33759@psf.upfronthosting.co.za> Message-ID: <1528052807.9.0.592728768989.issue33759@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- keywords: +patch pull_requests: +6989 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 15:11:15 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Sun, 03 Jun 2018 19:11:15 +0000 Subject: [issue30654] signal module always overwrites SIGINT on interpreter shutdown In-Reply-To: <1497359164.84.0.615765342748.issue30654@psf.upfronthosting.co.za> Message-ID: <1528053075.2.0.592728768989.issue30654@psf.upfronthosting.co.za> Antoine Pitrou added the comment: So this is in 2.7 finally. Closing again. ---------- stage: patch review -> resolved status: open -> closed versions: +Python 2.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 15:12:21 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 03 Jun 2018 19:12:21 +0000 Subject: [issue33755] Failed separate tests in test_importlib In-Reply-To: <1528035154.67.0.592728768989.issue33755@psf.upfronthosting.co.za> Message-ID: <1528053141.25.0.592728768989.issue33755@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Tests are passed if run the whole test_importlib. They are failed only when run the test_resource subset of them. This means that test_resource tests depend on the global environment changed by other tests. And this also means that some changes of the global environment are leaked from some tests, and may affect also other tests. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 15:19:44 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Sun, 03 Jun 2018 19:19:44 +0000 Subject: [issue9141] Allow objects to decide if they can be collected by GC In-Reply-To: <1278070212.7.0.406390843902.issue9141@psf.upfronthosting.co.za> Message-ID: <1528053584.14.0.592728768989.issue9141@psf.upfronthosting.co.za> Antoine Pitrou added the comment: It's hard to say as I never fully understood the underlying intent. Perhaps Kristj?n or some other developer who better understood than me can chime in. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 15:50:02 2018 From: report at bugs.python.org (Barry A. Warsaw) Date: Sun, 03 Jun 2018 19:50:02 +0000 Subject: [issue33755] Failed separate tests in test_importlib In-Reply-To: <1528035154.67.0.592728768989.issue33755@psf.upfronthosting.co.za> Message-ID: <1528055402.71.0.592728768989.issue33755@psf.upfronthosting.co.za> Barry A. Warsaw added the comment: I can take a look at this tomorrow. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 15:50:12 2018 From: report at bugs.python.org (Barry A. Warsaw) Date: Sun, 03 Jun 2018 19:50:12 +0000 Subject: [issue33755] Failed separate tests in test_importlib In-Reply-To: <1528035154.67.0.592728768989.issue33755@psf.upfronthosting.co.za> Message-ID: <1528055412.34.0.592728768989.issue33755@psf.upfronthosting.co.za> Change by Barry A. Warsaw : ---------- assignee: -> barry _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 16:05:56 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 03 Jun 2018 20:05:56 +0000 Subject: [issue33761] Leaked file in test_iterparse in test_xml_etree In-Reply-To: <1528042522.11.0.592728768989.issue33761@psf.upfronthosting.co.za> Message-ID: <1528056355.99.0.592728768989.issue33761@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6990 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 16:34:51 2018 From: report at bugs.python.org (Ned Deily) Date: Sun, 03 Jun 2018 20:34:51 +0000 Subject: [issue33756] Python 3.7.0b5 build error In-Reply-To: <1528037472.78.0.592728768989.issue33756@psf.upfronthosting.co.za> Message-ID: <1528058091.91.0.592728768989.issue33756@psf.upfronthosting.co.za> Ned Deily added the comment: Have you run "xcode-select --install" to ensure system header files are installed? If so, what compiler are you using from what source? What version of macOS are you using? https://devguide.python.org/setup/#macos ---------- nosy: +ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 16:53:05 2018 From: report at bugs.python.org (Dutcho) Date: Sun, 03 Jun 2018 20:53:05 +0000 Subject: [issue33762] temp file isn't IOBase Message-ID: <1528059185.23.0.592728768989.issue33762@psf.upfronthosting.co.za> New submission from Dutcho : I'd expect isinstance(tempfile.TemporaryFile(), io.IOBase) to be True as you can read() from and write() to the temp file. However, on Python 3.6.5 64 bit on Windows 7 above isinstance() == False and and type(tempfile.TemporaryFile()) == tempfile._TemporaryFileWrapper, which has no super class (other than object). Whereas, on Python 3.6.1 on iOS 11.4 (Pythonista 3.2) above isinstance() == True and type(tempfile.TemporaryFile()) == io.BufferedRandom, which has io.IOBase as its (indirect) super class. The difference is likely caused by tempfile line 565 that equals TemporaryFile = NamedTemporaryFile in case of Windows. This may be somewhat related to issue 26175, but isn't a duplicate as 26175 is on a temp file's attributes, and this issue is on its type ---------- components: Library (Lib) messages: 318585 nosy: Dutcho priority: normal severity: normal status: open title: temp file isn't IOBase type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 17:37:07 2018 From: report at bugs.python.org (Stefan Krah) Date: Sun, 03 Jun 2018 21:37:07 +0000 Subject: [issue33713] memoryview can set an exception in tp_clear In-Reply-To: <1527768910.92.0.682650639539.issue33713@psf.upfronthosting.co.za> Message-ID: <1528061827.35.0.592728768989.issue33713@psf.upfronthosting.co.za> Stefan Krah added the comment: Okay that makes sense. :) I looked a bit at the gc code. A consumer object always has one reference to a memoryview with an export, which isn't visited. So it looks to me that the gc_refs of that memoryview cannot fall to 0. So memory_clear() isn't called in that case, but mbuf_clear() is, which is known and expected to handle mbuf->exports >= 0. Indeed let's perhaps just add "if (self->exports > 0) return 0" to memory_clear() if those assumptions are too complex. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 18:21:39 2018 From: report at bugs.python.org (STINNER Victor) Date: Sun, 03 Jun 2018 22:21:39 +0000 Subject: [issue33509] warnings.warn_explicit with module_globals=True raises a SystemError In-Reply-To: <1526332146.43.0.682650639539.issue33509@psf.upfronthosting.co.za> Message-ID: <1528064499.36.0.592728768989.issue33509@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +6991 stage: resolved -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 18:45:19 2018 From: report at bugs.python.org (R. David Murray) Date: Sun, 03 Jun 2018 22:45:19 +0000 Subject: [issue33749] pdb.Pdb constructor stdout override required to disable use_rawinput In-Reply-To: <1528027425.26.0.592728768989.issue33749@psf.upfronthosting.co.za> Message-ID: <1528065919.79.0.592728768989.issue33749@psf.upfronthosting.co.za> R. David Murray added the comment: This is a duplicate of 2571 and 10396. As I commented in 10396, if you want to work on an enhancement request (for cmd) that improves the situation, it will be welcome; but as you observed what to do isn't immediately obvious, so discussion before implementation is probably a good idea. I'm going to close this, but feel free to open an enhancement issue with a proposal. ---------- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 18:45:42 2018 From: report at bugs.python.org (R. David Murray) Date: Sun, 03 Jun 2018 22:45:42 +0000 Subject: [issue33749] pdb.Pdb constructor stdout override required to disable use_rawinput In-Reply-To: <1528027425.26.0.592728768989.issue33749@psf.upfronthosting.co.za> Message-ID: <1528065942.92.0.592728768989.issue33749@psf.upfronthosting.co.za> Change by R. David Murray : ---------- superseder: -> can cmd.py's API/docs for the use of an alternate stdin be improved? _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 19:24:31 2018 From: report at bugs.python.org (Anthony Sottile) Date: Sun, 03 Jun 2018 23:24:31 +0000 Subject: [issue17909] Autodetecting JSON encoding In-Reply-To: <1367759430.76.0.988181674037.issue17909@psf.upfronthosting.co.za> Message-ID: <1528068271.93.0.592728768989.issue17909@psf.upfronthosting.co.za> Change by Anthony Sottile : ---------- pull_requests: +6992 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 20:11:29 2018 From: report at bugs.python.org (Cheryl Sabella) Date: Mon, 04 Jun 2018 00:11:29 +0000 Subject: [issue33763] IDLE: Use text widget for code context instead of label widget Message-ID: <1528071089.01.0.592728768989.issue33763@psf.upfronthosting.co.za> New submission from Cheryl Sabella : Item 11 from #33610. Use read-only Text instead of Label for context. * Change widget type from Label to Text and remove Label-only arguments. * Add height and state arguments. * Change widget name from self.label to self.context. * Tests: change widget name and method for getting text. ---------- assignee: terry.reedy components: IDLE messages: 318588 nosy: cheryl.sabella, terry.reedy priority: normal severity: normal status: open title: IDLE: Use text widget for code context instead of label widget type: enhancement versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 20:15:46 2018 From: report at bugs.python.org (Cheryl Sabella) Date: Mon, 04 Jun 2018 00:15:46 +0000 Subject: [issue33763] IDLE: Use text widget for code context instead of label widget In-Reply-To: <1528071089.01.0.592728768989.issue33763@psf.upfronthosting.co.za> Message-ID: <1528071346.91.0.592728768989.issue33763@psf.upfronthosting.co.za> Change by Cheryl Sabella : ---------- keywords: +patch pull_requests: +6993 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 20:16:07 2018 From: report at bugs.python.org (Cheryl Sabella) Date: Mon, 04 Jun 2018 00:16:07 +0000 Subject: [issue33610] IDLE: Make multiple improvements to CodeContext In-Reply-To: <1527052692.02.0.682650639539.issue33610@psf.upfronthosting.co.za> Message-ID: <1528071367.9.0.592728768989.issue33610@psf.upfronthosting.co.za> Cheryl Sabella added the comment: For item 11 - #33763 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 20:17:45 2018 From: report at bugs.python.org (Cheryl Sabella) Date: Mon, 04 Jun 2018 00:17:45 +0000 Subject: [issue33610] IDLE: Make multiple improvements to CodeContext In-Reply-To: <1527052692.02.0.682650639539.issue33610@psf.upfronthosting.co.za> Message-ID: <1528071465.16.0.592728768989.issue33610@psf.upfronthosting.co.za> Change by Cheryl Sabella : ---------- dependencies: +IDLE: Use text widget for code context instead of label widget _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 20:53:32 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 00:53:32 +0000 Subject: [issue33764] AppVeyor builds interrupted before tests complete Message-ID: <1528073612.86.0.592728768989.issue33764@psf.upfronthosting.co.za> New submission from STINNER Victor : While looking at AppVeyor history, I saw two builds which seem like interrupted in the middle of the test 3.6: https://ci.appveyor.com/project/python/cpython/build/3.6build16876/job/t9nyt59wkwcn68nk ... 0:04:32 [312/407] test_genexps passed -- running: test_largefile (2 min 21 sec), test_mmap (4 min 30 sec) 0:04:32 [313/407] test_weakset passed -- running: test_largefile (2 min 21 sec), test_mmap (4 min 30 sec) 0:04:32 [314/407] test_fractions passed -- running: test_largefile (2 min 21 sec), test_mmap (4 min 31 sec) 3.8: https://ci.appveyor.com/project/python/cpython/build/3.8build16878 ... 0:06:07 [290/416] test_frame passed -- running: test_io (4 min 1 sec), test_mmap (5 min 45 sec) 0:06:09 [291/416] test_codecmaps_cn passed -- running: test_io (4 min 3 sec), test_mmap (5 min 47 sec) fetching http://www.pythontest.net/unicode/gb-18030-2000.xml ... fetching http://www.pythontest.net/unicode/EUC-CN.TXT ... fetching http://www.pythontest.net/unicode/CP936.TXT ... Terry Reedy also noticed the issue: https://mail.python.org/pipermail/python-committers/2018-June/005527.html https://appveyor.statuspage.io/ says that all services are operational. ---------- components: Tests messages: 318590 nosy: vstinner priority: normal severity: normal status: open title: AppVeyor builds interrupted before tests complete _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 20:55:46 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 00:55:46 +0000 Subject: [issue33765] AppVeyor didn't start on my PR 7365 Message-ID: <1528073746.0.0.592728768989.issue33765@psf.upfronthosting.co.za> New submission from STINNER Victor : I created the PR 7365: https://github.com/python/cpython/pull/7365 AppVeyor job is required to pass to allow me to merge my PR. But AppVeyor job didn't start: "continuous-integration/appveyor/pr Expected ? Waiting for status to be reported" I cannot find any job related to my PR in the AppVeyor history: https://ci.appveyor.com/project/python/cpython/history The latest build was 5 hours ago. See also bpo-33764. ---------- components: Tests messages: 318591 nosy: vstinner priority: normal severity: normal status: open title: AppVeyor didn't start on my PR 7365 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 20:56:04 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 00:56:04 +0000 Subject: [issue33764] AppVeyor builds interrupted before tests complete In-Reply-To: <1528073612.86.0.592728768989.issue33764@psf.upfronthosting.co.za> Message-ID: <1528073764.0.0.592728768989.issue33764@psf.upfronthosting.co.za> STINNER Victor added the comment: See also bpo-33765: "AppVeyor didn't start on my PR 7365". ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 20:57:10 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 00:57:10 +0000 Subject: [issue33764] AppVeyor builds interrupted before tests complete In-Reply-To: <1528073612.86.0.592728768989.issue33764@psf.upfronthosting.co.za> Message-ID: <1528073830.23.0.592728768989.issue33764@psf.upfronthosting.co.za> Ned Deily added the comment: Clicking on the Messages tab: https://ci.appveyor.com/project/python/cpython/build/3.8build16878/messages "Build exceeded allowed resource quotas. Fix your build to consume less resources or contact AppVeyor support to request quotas increase." ---------- nosy: +ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 20:59:27 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 00:59:27 +0000 Subject: [issue33764] AppVeyor builds interrupted before tests complete In-Reply-To: <1528073612.86.0.592728768989.issue33764@psf.upfronthosting.co.za> Message-ID: <1528073967.13.0.592728768989.issue33764@psf.upfronthosting.co.za> Ned Deily added the comment: Looks like this was another case of test_mmap on Windows taking a long time. If the change has now been made to disable tests with "largefile" resources, test_mmap should no longer be a hangup. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 21:01:32 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 01:01:32 +0000 Subject: [issue33764] AppVeyor builds interrupted before tests complete In-Reply-To: <1528073612.86.0.592728768989.issue33764@psf.upfronthosting.co.za> Message-ID: <1528074092.75.0.592728768989.issue33764@psf.upfronthosting.co.za> Ned Deily added the comment: We discussed this earlier: https://bugs.python.org/issue33355#msg317587 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 21:02:18 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 01:02:18 +0000 Subject: [issue33764] AppVeyor builds interrupted before tests complete In-Reply-To: <1528073612.86.0.592728768989.issue33764@psf.upfronthosting.co.za> Message-ID: <1528074138.07.0.592728768989.issue33764@psf.upfronthosting.co.za> STINNER Victor added the comment: > Looks like this was another case of test_mmap on Windows taking a long time. Ah yes, bpo-33355. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 21:04:20 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 01:04:20 +0000 Subject: [issue33764] AppVeyor builds interrupted before tests complete In-Reply-To: <1528073612.86.0.592728768989.issue33764@psf.upfronthosting.co.za> Message-ID: <1528074260.99.0.592728768989.issue33764@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- keywords: +patch pull_requests: +6994 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 21:07:48 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 01:07:48 +0000 Subject: [issue33764] AppVeyor builds interrupted before tests complete In-Reply-To: <1528073612.86.0.592728768989.issue33764@psf.upfronthosting.co.za> Message-ID: <1528074468.83.0.592728768989.issue33764@psf.upfronthosting.co.za> STINNER Victor added the comment: > We discussed this earlier: https://bugs.python.org/issue33355#msg317587 At that time, I didn't know that AppVeyor was impacted. In my mind, the bug was specific to buildbots on slow cloud providers (slow cloud flavors). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 21:10:34 2018 From: report at bugs.python.org (Zachary Ware) Date: Mon, 04 Jun 2018 01:10:34 +0000 Subject: [issue33764] AppVeyor builds interrupted before tests complete In-Reply-To: <1528073612.86.0.592728768989.issue33764@psf.upfronthosting.co.za> Message-ID: <1528074634.54.0.592728768989.issue33764@psf.upfronthosting.co.za> Change by Zachary Ware : ---------- pull_requests: +6995 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 21:13:33 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 01:13:33 +0000 Subject: [issue33764] AppVeyor builds interrupted before tests complete In-Reply-To: <1528073612.86.0.592728768989.issue33764@psf.upfronthosting.co.za> Message-ID: <1528074813.49.0.592728768989.issue33764@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 47a6c79f0986ce9a84d0efc3c565b28255042911 by Ned Deily (Zachary Ware) in branch 'master': bpo-33764: Appveyor fixes (GH-7364) https://github.com/python/cpython/commit/47a6c79f0986ce9a84d0efc3c565b28255042911 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 21:13:50 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 01:13:50 +0000 Subject: [issue33765] AppVeyor didn't start on my PR 7365 In-Reply-To: <1528073746.0.0.592728768989.issue33765@psf.upfronthosting.co.za> Message-ID: <1528074830.44.0.592728768989.issue33765@psf.upfronthosting.co.za> STINNER Victor added the comment: > See also bpo-33764. Some AppVeyor builds failed recently with: "Build exceeded allowed resource quotas. Fix your build to consume less resources or contact AppVeyor support to request quotas increase." Maybe we reached quotas and so AppVeyor will no longer spawn new builds in the next 24 hours? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 21:14:50 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 01:14:50 +0000 Subject: [issue33764] AppVeyor builds interrupted before tests complete In-Reply-To: <1528073612.86.0.592728768989.issue33764@psf.upfronthosting.co.za> Message-ID: <1528074890.24.0.592728768989.issue33764@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6996 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 21:17:02 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 01:17:02 +0000 Subject: [issue33764] AppVeyor builds interrupted before tests complete In-Reply-To: <1528073612.86.0.592728768989.issue33764@psf.upfronthosting.co.za> Message-ID: <1528075022.19.0.592728768989.issue33764@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 37343a2db8763a114e63ac63a249603b1df2554d by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33764: Appveyor fixes (GH-7364) (GH-7369) https://github.com/python/cpython/commit/37343a2db8763a114e63ac63a249603b1df2554d ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 22:19:13 2018 From: report at bugs.python.org (Manjusaka) Date: Mon, 04 Jun 2018 02:19:13 +0000 Subject: [issue33756] Python 3.7.0b5 build error In-Reply-To: <1528037472.78.0.592728768989.issue33756@psf.upfronthosting.co.za> Message-ID: <1528078753.76.0.592728768989.issue33756@psf.upfronthosting.co.za> Manjusaka added the comment: Sure, I already set "xcode-select --install" in terminal Python 3.6.5 build success with a default setting when running ./configuration" command Xcode version is 9.3 System version 10.13.4 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 22:28:31 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 02:28:31 +0000 Subject: [issue33756] Python 3.7.0b5 build error In-Reply-To: <1528037472.78.0.592728768989.issue33756@psf.upfronthosting.co.za> Message-ID: <1528079311.39.0.592728768989.issue33756@psf.upfronthosting.co.za> Ned Deily added the comment: Sorry, I can't reproduce it and I do not recall every seeing a failure like that. Just to be sure, you do mean ".configure" and not "./configuration"? Perhaps you are picking up an old, third-party version of libutil from /usr/local/lib and/or /usr/local/include? You have tried building from a clean directory? It looks like the library is searched for at the following section of configure.ac (which is used to generate configure): https://github.com/python/cpython/blob/v3.7.0b5/configure.ac#L3772 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 22:42:11 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 02:42:11 +0000 Subject: [issue33764] AppVeyor builds interrupted before tests complete In-Reply-To: <1528073612.86.0.592728768989.issue33764@psf.upfronthosting.co.za> Message-ID: <1528080131.73.0.592728768989.issue33764@psf.upfronthosting.co.za> Ned Deily added the comment: Steve, what do you think about a similar change to the VSTS Windows CI builds to disable the "longfile" resource for the tests? test_mmap seems to take a long time. ---------- nosy: +steve.dower _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 22:54:00 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 02:54:00 +0000 Subject: [issue33760] Leaked files in test_io In-Reply-To: <1528042366.45.0.592728768989.issue33760@psf.upfronthosting.co.za> Message-ID: <1528080840.64.0.592728768989.issue33760@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset e36837cb71032ccfa713e75623b314f091dc22bb by Ned Deily (Serhiy Storchaka) in branch 'master': bpo-33760: Fix file leaks in test_io. (GH-7361) https://github.com/python/cpython/commit/e36837cb71032ccfa713e75623b314f091dc22bb ---------- nosy: +ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 22:55:24 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 02:55:24 +0000 Subject: [issue33760] Leaked files in test_io In-Reply-To: <1528042366.45.0.592728768989.issue33760@psf.upfronthosting.co.za> Message-ID: <1528080924.69.0.592728768989.issue33760@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6997 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 22:55:35 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 02:55:35 +0000 Subject: [issue33759] Failed separate ServerProxyTestCase tests in test_xmlrpc In-Reply-To: <1528041771.94.0.592728768989.issue33759@psf.upfronthosting.co.za> Message-ID: <1528080935.8.0.592728768989.issue33759@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 7cfd8c6a1b53a7dbdea14b6f414f2629dcd130a2 by Ned Deily (Serhiy Storchaka) in branch 'master': bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362) https://github.com/python/cpython/commit/7cfd8c6a1b53a7dbdea14b6f414f2629dcd130a2 ---------- nosy: +ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 22:57:08 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 02:57:08 +0000 Subject: [issue33759] Failed separate ServerProxyTestCase tests in test_xmlrpc In-Reply-To: <1528041771.94.0.592728768989.issue33759@psf.upfronthosting.co.za> Message-ID: <1528081028.58.0.592728768989.issue33759@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6998 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 22:59:41 2018 From: report at bugs.python.org (Manjusaka) Date: Mon, 04 Jun 2018 02:59:41 +0000 Subject: [issue33756] Python 3.7.0b5 build error In-Reply-To: <1528037472.78.0.592728768989.issue33756@psf.upfronthosting.co.za> Message-ID: <1528081181.73.0.592728768989.issue33756@psf.upfronthosting.co.za> Manjusaka added the comment: Actually, I found some interesting problem. In Python 3.6.5 has declared the `extern pid_t forkpty(int *, char *, struct termios *, struct winsize *);` in here https://github.com/python/cpython/blob/3.6/Include/pyport.h#L532 and I add it into the Python 3.7.0b5's pyport.h, It builds success! ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 23:00:13 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 03:00:13 +0000 Subject: [issue33760] Leaked files in test_io In-Reply-To: <1528042366.45.0.592728768989.issue33760@psf.upfronthosting.co.za> Message-ID: <1528081213.39.0.592728768989.issue33760@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +6999 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 23:04:31 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 04 Jun 2018 03:04:31 +0000 Subject: [issue33760] Leaked files in test_io In-Reply-To: <1528042366.45.0.592728768989.issue33760@psf.upfronthosting.co.za> Message-ID: <1528081471.73.0.592728768989.issue33760@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- pull_requests: +7000 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 23:07:12 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 04 Jun 2018 03:07:12 +0000 Subject: [issue33759] Failed separate ServerProxyTestCase tests in test_xmlrpc In-Reply-To: <1528041771.94.0.592728768989.issue33759@psf.upfronthosting.co.za> Message-ID: <1528081632.54.0.592728768989.issue33759@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- pull_requests: +7001 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 23:09:28 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 03:09:28 +0000 Subject: [issue33756] Python 3.7.0b5 build error In-Reply-To: <1528037472.78.0.592728768989.issue33756@psf.upfronthosting.co.za> Message-ID: <1528081768.94.0.592728768989.issue33756@psf.upfronthosting.co.za> Ned Deily added the comment: That change should not have affected the macOS build. Now that you have a working python, can you please run: ./python.exe -m test.pythoninfo and report the results here? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 23:09:34 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 04 Jun 2018 03:09:34 +0000 Subject: [issue33759] Failed separate ServerProxyTestCase tests in test_xmlrpc In-Reply-To: <1528041771.94.0.592728768989.issue33759@psf.upfronthosting.co.za> Message-ID: <1528081774.38.0.592728768989.issue33759@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- pull_requests: +7002 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 23:15:13 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 03:15:13 +0000 Subject: [issue33760] Leaked files in test_io In-Reply-To: <1528042366.45.0.592728768989.issue33760@psf.upfronthosting.co.za> Message-ID: <1528082113.9.0.592728768989.issue33760@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 4d11fe7cad9e138423e16338c88908f24a55f1cf by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33760: Fix file leaks in test_io. (GH-7361) (GH-7370) https://github.com/python/cpython/commit/4d11fe7cad9e138423e16338c88908f24a55f1cf ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 23:16:51 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 03:16:51 +0000 Subject: [issue33759] Failed separate ServerProxyTestCase tests in test_xmlrpc In-Reply-To: <1528041771.94.0.592728768989.issue33759@psf.upfronthosting.co.za> Message-ID: <1528082211.45.0.592728768989.issue33759@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 7453caedbb42dd16e069dd08009f0317f7a9abc9 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362) (GH-7371) https://github.com/python/cpython/commit/7453caedbb42dd16e069dd08009f0317f7a9abc9 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 23:31:53 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 03:31:53 +0000 Subject: [issue33760] Leaked files in test_io In-Reply-To: <1528042366.45.0.592728768989.issue33760@psf.upfronthosting.co.za> Message-ID: <1528083113.74.0.592728768989.issue33760@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset d18b13d36a22f93050a9d7cdfce594002f69236f by Ned Deily (Miss Islington (bot)) in branch '3.6': bpo-33760: Fix file leaks in test_io. (GH-7361) (GH-7372) https://github.com/python/cpython/commit/d18b13d36a22f93050a9d7cdfce594002f69236f ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 23:36:18 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 03:36:18 +0000 Subject: [issue33759] Failed separate ServerProxyTestCase tests in test_xmlrpc In-Reply-To: <1528041771.94.0.592728768989.issue33759@psf.upfronthosting.co.za> Message-ID: <1528083378.25.0.592728768989.issue33759@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 2e601c54d9d5f03f1fe1f7b4a1f2cb8e843fdeae by Ned Deily (Serhiy Storchaka) in branch '3.6': [3.6] bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362) (GH-7375) https://github.com/python/cpython/commit/2e601c54d9d5f03f1fe1f7b4a1f2cb8e843fdeae ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 23:37:59 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 03:37:59 +0000 Subject: [issue33760] Leaked files in test_io In-Reply-To: <1528042366.45.0.592728768989.issue33760@psf.upfronthosting.co.za> Message-ID: <1528083479.84.0.592728768989.issue33760@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset b02ceb57d23c26aca6666b3a9f4c5b7d84d0ea0a by Ned Deily (Serhiy Storchaka) in branch '2.7': [2.7] bpo-33760: Fix file leaks in test_io. (GH-7361). (GH-7373) https://github.com/python/cpython/commit/b02ceb57d23c26aca6666b3a9f4c5b7d84d0ea0a ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 23:39:02 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 03:39:02 +0000 Subject: [issue33759] Failed separate ServerProxyTestCase tests in test_xmlrpc In-Reply-To: <1528041771.94.0.592728768989.issue33759@psf.upfronthosting.co.za> Message-ID: <1528083542.61.0.592728768989.issue33759@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 93ba6da27eed980600a874dfeffb2856fe1d4126 by Ned Deily (Serhiy Storchaka) in branch '2.7': [2.7] bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362) (GH-7374) https://github.com/python/cpython/commit/93ba6da27eed980600a874dfeffb2856fe1d4126 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 23:40:15 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 04 Jun 2018 03:40:15 +0000 Subject: [issue33752] Leaked file in test_anydbm_creation_n_file_exists_with_invalid_contents in test_dbm In-Reply-To: <1528030226.3.0.592728768989.issue33752@psf.upfronthosting.co.za> Message-ID: <1528083615.76.0.592728768989.issue33752@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: The file was leaked because it was created in the database's close() method which was called after deleting temporary files in tearDown(). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 23:43:24 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 04 Jun 2018 03:43:24 +0000 Subject: [issue33752] Leaked file in test_anydbm_creation_n_file_exists_with_invalid_contents in test_dbm In-Reply-To: <1528030226.3.0.592728768989.issue33752@psf.upfronthosting.co.za> Message-ID: <1528083804.81.0.592728768989.issue33752@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- keywords: +patch pull_requests: +7003 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 23:44:28 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 04 Jun 2018 03:44:28 +0000 Subject: [issue33753] Leaked file in test_nextfile_oserror_deleting_backup in test_fileinput In-Reply-To: <1528030391.57.0.592728768989.issue33753@psf.upfronthosting.co.za> Message-ID: <1528083868.98.0.592728768989.issue33753@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- keywords: +patch pull_requests: +7004 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 3 23:52:41 2018 From: report at bugs.python.org (Manjusaka) Date: Mon, 04 Jun 2018 03:52:41 +0000 Subject: [issue33756] Python 3.7.0b5 build error In-Reply-To: <1528037472.78.0.592728768989.issue33756@psf.upfronthosting.co.za> Message-ID: <1528084361.15.0.592728768989.issue33756@psf.upfronthosting.co.za> Manjusaka added the comment: The result in here https://gist.github.com/Zheaoli/86b04395748b998ad7d870a927a95aea ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 00:04:57 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 04:04:57 +0000 Subject: [issue33756] Python 3.7.0b5 build error In-Reply-To: <1528037472.78.0.592728768989.issue33756@psf.upfronthosting.co.za> Message-ID: <1528085097.24.0.592728768989.issue33756@psf.upfronthosting.co.za> Ned Deily added the comment: The only really suspicious thing I see is that your shell PATH is *gigantic*. pulling things in from all over the place including Homebrew. If you want to pursue further, suggest you try a clean build from the tarball without the modification and use a simple PATH like: export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin I'm willing to bet that some old versions of headers and/or libs are being picked up somewhere. You probably should go through and permanently clean up that PATH. Also make sure your Homebrew installation is up-to-date. Rather than pulling in things from various places, consider pulling everything you need from Homebrew; it looks like you may have run various binary installers of various things in the past. I'm going to close this issue. Feel free to re-open if you discover something that appears to be a bug in Python. Good luck! ---------- resolution: -> works for me stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 00:05:20 2018 From: report at bugs.python.org (Isaac Elliott) Date: Mon, 04 Jun 2018 04:05:20 +0000 Subject: [issue33766] Grammar Incongruence Message-ID: <1528085120.11.0.592728768989.issue33766@psf.upfronthosting.co.za> New submission from Isaac Elliott : echo 'print("a");print("b")' > test.py This program is grammatically incorrect according to the specification (https://docs.python.org/3.8/reference/grammar.html). But Python 3 runs it without issue. It's this production here simple_stmt: small_stmt (';' small_stmt)* [';'] NEWLINE which says 'simple_stmt's must be terminated by a newline. However, the program I wrote doesn't contain any newlines. I think the grammar spec is missing some information, but I'm not quite sure what. Does anyone have an idea? ---------- components: Interpreter Core messages: 318617 nosy: Isaac Elliott priority: normal severity: normal status: open title: Grammar Incongruence type: behavior versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 00:11:41 2018 From: report at bugs.python.org (Manjusaka) Date: Mon, 04 Jun 2018 04:11:41 +0000 Subject: [issue33756] Python 3.7.0b5 build error In-Reply-To: <1528037472.78.0.592728768989.issue33756@psf.upfronthosting.co.za> Message-ID: <1528085501.09.0.592728768989.issue33756@psf.upfronthosting.co.za> Manjusaka added the comment: it seems like what you say but I think that you can't ensure everyone has a clean path especially when people use some tools such as pyenv or others to build Python from source code, but not get the binary package directly. Anyway, it's just a personal idea. Thanks for what you do. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 00:17:01 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 04:17:01 +0000 Subject: [issue33756] Python 3.7.0b5 build error In-Reply-To: <1528037472.78.0.592728768989.issue33756@psf.upfronthosting.co.za> Message-ID: <1528085821.89.0.592728768989.issue33756@psf.upfronthosting.co.za> Ned Deily added the comment: As I said, I do not recall ever seeing a failure like this before and I regularly build and test Python on macOS in many different versions and environments. It would be very time-consuming to try to debug your environment remotely, time that would be better spent on other problems, I'm afraid. If you can demonstrate that the problem is with a clean version of pyenv, for example, then that's something to pursue with the pyenv project or here. But, as it stands, there are so many ways things could have gone wrong for you that it would be foolish for me to try to guess. Sorry! ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 00:20:32 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 04 Jun 2018 04:20:32 +0000 Subject: [issue33751] Failed separate testTruncateOnWindows in test_file In-Reply-To: <1528030047.94.0.592728768989.issue33751@psf.upfronthosting.co.za> Message-ID: <1528086032.25.0.592728768989.issue33751@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- keywords: +patch pull_requests: +7005 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 00:24:17 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 04:24:17 +0000 Subject: [issue33764] AppVeyor builds interrupted before tests complete In-Reply-To: <1528073612.86.0.592728768989.issue33764@psf.upfronthosting.co.za> Message-ID: <1528086257.62.0.592728768989.issue33764@psf.upfronthosting.co.za> Change by Ned Deily : ---------- pull_requests: +7006 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 00:31:27 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 04 Jun 2018 04:31:27 +0000 Subject: [issue33766] Grammar Incongruence In-Reply-To: <1528085120.11.0.592728768989.issue33766@psf.upfronthosting.co.za> Message-ID: <1528086687.81.0.592728768989.issue33766@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: NEWLINE is not a newline. It is the NEWLINE token. And it is generated at the end of file. $ echo 'print("a");print("b")' | ./python -m tokenize 1,0-1,5: NAME 'print' 1,5-1,6: OP '(' 1,6-1,9: STRING '"a"' 1,9-1,10: OP ')' 1,10-1,11: OP ';' 1,11-1,16: NAME 'print' 1,16-1,17: OP '(' 1,17-1,20: STRING '"b"' 1,20-1,21: OP ')' 1,21-1,22: NEWLINE '\n' 2,0-2,0: ENDMARKER '' ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 00:31:27 2018 From: report at bugs.python.org (Manjusaka) Date: Mon, 04 Jun 2018 04:31:27 +0000 Subject: [issue33756] Python 3.7.0b5 build error In-Reply-To: <1528037472.78.0.592728768989.issue33756@psf.upfronthosting.co.za> Message-ID: <1528086687.9.0.592728768989.issue33756@psf.upfronthosting.co.za> Manjusaka added the comment: Finally, I must say when I first build the Python 3.7.0b5, I don't use Pyenv or others tools. As you say, It should be a PATH problem. I build success without no patch in a clean Mac. I think I will figure out what's wrong. But just as what I say, You can't ensure everyone has a clean PATH. Anyway, Thanks for your helping! ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 00:37:17 2018 From: report at bugs.python.org (Isaac Elliott) Date: Mon, 04 Jun 2018 04:37:17 +0000 Subject: [issue33766] Grammar Incongruence In-Reply-To: <1528085120.11.0.592728768989.issue33766@psf.upfronthosting.co.za> Message-ID: <1528087037.86.0.592728768989.issue33766@psf.upfronthosting.co.za> Isaac Elliott added the comment: Thanks for the clarification. Is there a reference to this in the documentation? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 00:40:18 2018 From: report at bugs.python.org (Zackery Spytz) Date: Mon, 04 Jun 2018 04:40:18 +0000 Subject: [issue33767] Improper use of SystemError in the mmap module Message-ID: <1528087218.45.0.592728768989.issue33767@psf.upfronthosting.co.za> New submission from Zackery Spytz : Both mmap_concat() and mmap_repeat() raise a SystemError when invoked. ---------- components: Extension Modules messages: 318623 nosy: ZackerySpytz priority: normal severity: normal status: open title: Improper use of SystemError in the mmap module type: behavior versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 00:41:29 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 04:41:29 +0000 Subject: [issue33764] AppVeyor builds interrupted before tests complete In-Reply-To: <1528073612.86.0.592728768989.issue33764@psf.upfronthosting.co.za> Message-ID: <1528087289.05.0.592728768989.issue33764@psf.upfronthosting.co.za> Change by Ned Deily : ---------- pull_requests: +7007 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 00:42:09 2018 From: report at bugs.python.org (Ammar Askar) Date: Mon, 04 Jun 2018 04:42:09 +0000 Subject: [issue33766] Grammar Incongruence In-Reply-To: <1528085120.11.0.592728768989.issue33766@psf.upfronthosting.co.za> Message-ID: <1528087328.99.0.592728768989.issue33766@psf.upfronthosting.co.za> Ammar Askar added the comment: https://docs.python.org/3.8/reference/lexical_analysis.html ---------- nosy: +ammar2 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 00:44:04 2018 From: report at bugs.python.org (Zackery Spytz) Date: Mon, 04 Jun 2018 04:44:04 +0000 Subject: [issue33767] Improper use of SystemError in the mmap module In-Reply-To: <1528087218.45.0.592728768989.issue33767@psf.upfronthosting.co.za> Message-ID: <1528087444.69.0.592728768989.issue33767@psf.upfronthosting.co.za> Change by Zackery Spytz : ---------- keywords: +patch pull_requests: +7008 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 00:47:10 2018 From: report at bugs.python.org (Isaac Elliott) Date: Mon, 04 Jun 2018 04:47:10 +0000 Subject: [issue33766] Grammar Incongruence In-Reply-To: <1528085120.11.0.592728768989.issue33766@psf.upfronthosting.co.za> Message-ID: <1528087630.88.0.592728768989.issue33766@psf.upfronthosting.co.za> Isaac Elliott added the comment: I went through that document before I created this issue. I can't find anything which describes this behavior - could you be more specific please? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 00:47:41 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 04:47:41 +0000 Subject: [issue33764] AppVeyor builds interrupted before tests complete In-Reply-To: <1528073612.86.0.592728768989.issue33764@psf.upfronthosting.co.za> Message-ID: <1528087661.16.0.592728768989.issue33764@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset b8f2fb52007f6d0d9eacfb459a9e813678f55f7e by Ned Deily in branch '3.6': bpo-33764: Appveyor fixes (GH-7364) (GH-7379) https://github.com/python/cpython/commit/b8f2fb52007f6d0d9eacfb459a9e813678f55f7e ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 00:51:27 2018 From: report at bugs.python.org (Ammar Askar) Date: Mon, 04 Jun 2018 04:51:27 +0000 Subject: [issue33766] Grammar Incongruence In-Reply-To: <1528085120.11.0.592728768989.issue33766@psf.upfronthosting.co.za> Message-ID: <1528087887.19.0.592728768989.issue33766@psf.upfronthosting.co.za> Ammar Askar added the comment: Actually, echo implicitly puts a newline at the end. If you run with echo -n, this is the output: $ echo -n 'print("a");print("b")' | python3 -m tokenize 1,0-1,5: NAME 'print' 1,5-1,6: OP '(' 1,6-1,9: STRING '"a"' 1,9-1,10: OP ')' 1,10-1,11: OP ';' 1,11-1,16: NAME 'print' 1,16-1,17: OP '(' 1,17-1,20: STRING '"b"' 1,20-1,21: OP ')' 2,0-2,0: ENDMARKER '' No newline token present. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 00:52:40 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 04:52:40 +0000 Subject: [issue33764] AppVeyor builds interrupted before tests complete In-Reply-To: <1528073612.86.0.592728768989.issue33764@psf.upfronthosting.co.za> Message-ID: <1528087960.92.0.592728768989.issue33764@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 1cbdbf35db16f2b06c0974b711c4d8b840c8a264 by Ned Deily in branch '2.7': bpo-33764: Appveyor fixes (GH-7364) (GH-7380) https://github.com/python/cpython/commit/1cbdbf35db16f2b06c0974b711c4d8b840c8a264 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 00:55:42 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 04 Jun 2018 04:55:42 +0000 Subject: [issue33766] Grammar Incongruence In-Reply-To: <1528085120.11.0.592728768989.issue33766@psf.upfronthosting.co.za> Message-ID: <1528088142.11.0.592728768989.issue33766@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Good point Ammar. Seems there is also a missing corner case in the definition of a physical line: https://docs.python.org/3.8/reference/lexical_analysis.html#physical-lines """ A physical line is a sequence of characters terminated by an end-of-line sequence. In source files, any of the standard platform line termination sequences can be used - the Unix form using ASCII LF (linefeed), the Windows form using the ASCII sequence CR LF (return followed by linefeed), or the old Macintosh form using the ASCII CR (return) character. All of these forms can be used equally, regardless of platform. """ It misses a case when a physical line is terminated by the end of file. ---------- assignee: -> docs at python components: +Documentation -Interpreter Core nosy: +docs at python, gvanrossum versions: +Python 2.7 -Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 00:59:09 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 04 Jun 2018 04:59:09 +0000 Subject: [issue33767] Improper use of SystemError in the mmap module In-Reply-To: <1528087218.45.0.592728768989.issue33767@psf.upfronthosting.co.za> Message-ID: <1528088349.77.0.592728768989.issue33767@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Thank you for your PR Zackery! I concur that an alternative would be to remove mmap_concat() and mmap_repeat(). Why not use this simpler way? Are there any drawbacks? ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 01:01:35 2018 From: report at bugs.python.org (Ammar Askar) Date: Mon, 04 Jun 2018 05:01:35 +0000 Subject: [issue33766] Grammar Incongruence In-Reply-To: <1528085120.11.0.592728768989.issue33766@psf.upfronthosting.co.za> Message-ID: <1528088495.41.0.592728768989.issue33766@psf.upfronthosting.co.za> Ammar Askar added the comment: Relevant bit of the parser that emits a fake newline at the end of the file if not present: https://github.com/python/cpython/blob/master/Parser/tokenizer.c#L1059-L1069 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 01:14:49 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 05:14:49 +0000 Subject: [issue33509] warnings.warn_explicit with module_globals=True raises a SystemError In-Reply-To: <1526332146.43.0.682650639539.issue33509@psf.upfronthosting.co.za> Message-ID: <1528089289.15.0.592728768989.issue33509@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset e292b75e3ecdc6bbe81cda09de836dc9e27ab9e6 by Ned Deily (Victor Stinner) in branch 'master': bpo-33509: Fix test_warnings for python3 -Werror (GH-7365) https://github.com/python/cpython/commit/e292b75e3ecdc6bbe81cda09de836dc9e27ab9e6 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 01:16:53 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 04 Jun 2018 05:16:53 +0000 Subject: [issue33760] Leaked files in test_io In-Reply-To: <1528042366.45.0.592728768989.issue33760@psf.upfronthosting.co.za> Message-ID: <1528089413.77.0.592728768989.issue33760@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 01:29:33 2018 From: report at bugs.python.org (Isaac Elliott) Date: Mon, 04 Jun 2018 05:29:33 +0000 Subject: [issue33766] Grammar Incongruence In-Reply-To: <1528085120.11.0.592728768989.issue33766@psf.upfronthosting.co.za> Message-ID: <1528090173.32.0.592728768989.issue33766@psf.upfronthosting.co.za> Isaac Elliott added the comment: Cool, thanks for the help. Should I submit a PR with the updated documentation? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 01:30:37 2018 From: report at bugs.python.org (Ammar Askar) Date: Mon, 04 Jun 2018 05:30:37 +0000 Subject: [issue33766] Grammar Incongruence In-Reply-To: <1528085120.11.0.592728768989.issue33766@psf.upfronthosting.co.za> Message-ID: <1528090237.27.0.592728768989.issue33766@psf.upfronthosting.co.za> Change by Ammar Askar : ---------- keywords: +patch pull_requests: +7009 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 01:37:06 2018 From: report at bugs.python.org (Ammar Askar) Date: Mon, 04 Jun 2018 05:37:06 +0000 Subject: [issue33766] Grammar Incongruence In-Reply-To: <1528085120.11.0.592728768989.issue33766@psf.upfronthosting.co.za> Message-ID: <1528090626.68.0.592728768989.issue33766@psf.upfronthosting.co.za> Ammar Askar added the comment: Sorry, I was already working on the patch by the time you posted the comment. If we see above, it seems like the tokenize module doesn't correctly mirror the behavior of the C tokenizer. Do you want to try fixing that as a bug? That would involve making a new bpo ticket and submitting a PR there. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 01:47:22 2018 From: report at bugs.python.org (Zackery Spytz) Date: Mon, 04 Jun 2018 05:47:22 +0000 Subject: [issue33767] Improper use of SystemError in the mmap module In-Reply-To: <1528087218.45.0.592728768989.issue33767@psf.upfronthosting.co.za> Message-ID: <1528091242.95.0.592728768989.issue33767@psf.upfronthosting.co.za> Zackery Spytz added the comment: It doesn't look like it. I've updated the PR. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 01:54:31 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 04 Jun 2018 05:54:31 +0000 Subject: [issue33768] IDLE: click on context line should jump to line, at top of window Message-ID: <1528091671.87.0.592728768989.issue33768@psf.upfronthosting.co.za> New submission from Terry J. Reedy : Item 8. on #33610. Clicking on a line in the context box jumps the editor to that line, displayed as the first line. If we do item 11, replace Label with Text, this has to start after #33763 is merged. We could determine the context line clicked from click event.y by using .dlineinfo('1.0') on the editor window to get the offset and height of textlines for the font used. Disabled texts still have an 'insert' mark that is moved by clicks. It is just not visible. The line clicked on is int(self.context.index('insert').split('.')[0]), or int(float(index('insert'))), or next(map(int, t.index('insert').split('.'))), or s=t.index('insert'); int(s[:s.find('.')]) the same as if the context were 'normal' with a visible cursor. This only works if the default click handler fires first, so the mark is moved before we look at it. The default handler is a class binding to Button (press), so we should just be able to bind to ButtonRelease, which is generally a better choice anyway "because if the user accidentally presses the button, they can move the mouse off the widget to avoid setting off the event." ---------- assignee: terry.reedy components: IDLE messages: 318636 nosy: terry.reedy priority: normal severity: normal stage: test needed status: open title: IDLE: click on context line should jump to line, at top of window type: enhancement versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 01:55:37 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 04 Jun 2018 05:55:37 +0000 Subject: [issue33768] IDLE: click on context line should jump to line, at top of window In-Reply-To: <1528091671.87.0.592728768989.issue33768@psf.upfronthosting.co.za> Message-ID: <1528091737.49.0.592728768989.issue33768@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- dependencies: +IDLE: Use text widget for code context instead of label widget nosy: +cheryl.sabella _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 02:07:29 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 04 Jun 2018 06:07:29 +0000 Subject: [issue33763] IDLE: Use text widget for code context instead of label widget In-Reply-To: <1528071089.01.0.592728768989.issue33763@psf.upfronthosting.co.za> Message-ID: <1528092449.18.0.592728768989.issue33763@psf.upfronthosting.co.za> Terry J. Reedy added the comment: This makes detecting the context line a user clicks on slightly easier. See new issue #33768 for discussion. I am not sure now I would do this just for this reason, without trying with the label first. Using a text also allows us to experiment with tagging the context keyword somehow, to see if it seems like an improvement. Perhaps make it bold, or underlined, or the normal keyword color, or some variant thereof (grayed?). So I am inclined to go ahead. I did notice that most of the patch is straightforward substitution. To me, this suggests that the code is pretty good. Also, I think change 'label' (implentation) to 'context' (purpose) is a good change by itself. I would keep this even if we reverted to using Label. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 02:42:52 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 06:42:52 +0000 Subject: [issue33509] warnings.warn_explicit with module_globals=True raises a SystemError In-Reply-To: <1526332146.43.0.682650639539.issue33509@psf.upfronthosting.co.za> Message-ID: <1528094572.87.0.592728768989.issue33509@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7010 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 02:48:40 2018 From: report at bugs.python.org (Zackery Spytz) Date: Mon, 04 Jun 2018 06:48:40 +0000 Subject: [issue30436] importlib.find_spec raises AttributeError when parent is not a package/module In-Reply-To: <1495500424.56.0.88806724527.issue30436@psf.upfronthosting.co.za> Message-ID: <1528094920.26.0.592728768989.issue30436@psf.upfronthosting.co.za> Change by Zackery Spytz : ---------- pull_requests: +7011 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 03:29:04 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 07:29:04 +0000 Subject: [issue33640] [EASY DOC] uuid: endian of the bytes argument is not documented In-Reply-To: <1527196125.95.0.682650639539.issue33640@psf.upfronthosting.co.za> Message-ID: <1528097344.68.0.592728768989.issue33640@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset b75ec0856771b51684b08c4e5068fbfad25c5e83 by Victor Stinner (Farhaan Bukhsh) in branch 'master': bpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263) https://github.com/python/cpython/commit/b75ec0856771b51684b08c4e5068fbfad25c5e83 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 03:30:21 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 07:30:21 +0000 Subject: [issue33640] [EASY DOC] uuid: endian of the bytes argument is not documented In-Reply-To: <1527196125.95.0.682650639539.issue33640@psf.upfronthosting.co.za> Message-ID: <1528097421.29.0.592728768989.issue33640@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7012 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 03:31:20 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 07:31:20 +0000 Subject: [issue33640] [EASY DOC] uuid: endian of the bytes argument is not documented In-Reply-To: <1527196125.95.0.682650639539.issue33640@psf.upfronthosting.co.za> Message-ID: <1528097480.16.0.592728768989.issue33640@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7013 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 03:32:26 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 07:32:26 +0000 Subject: [issue33640] [EASY DOC] uuid: endian of the bytes argument is not documented In-Reply-To: <1527196125.95.0.682650639539.issue33640@psf.upfronthosting.co.za> Message-ID: <1528097546.24.0.592728768989.issue33640@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7014 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 04:12:28 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 08:12:28 +0000 Subject: [issue33764] AppVeyor builds interrupted before tests complete In-Reply-To: <1528073612.86.0.592728768989.issue33764@psf.upfronthosting.co.za> Message-ID: <1528099948.15.0.592728768989.issue33764@psf.upfronthosting.co.za> STINNER Victor added the comment: I asked AppVeyor to increase our quotas: https://help.appveyor.com/discussions/problems/14532-cpython-exceeded-allowed-resource-quotas-what-are-these-quotas-can-them-be-increased ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 05:34:21 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 09:34:21 +0000 Subject: [issue33746] testRegisterResult in test_unittest fails in verbose mode In-Reply-To: <1528025607.41.0.592728768989.issue33746@psf.upfronthosting.co.za> Message-ID: <1528104861.56.0.592728768989.issue33746@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- keywords: +patch pull_requests: +7015 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 06:07:26 2018 From: report at bugs.python.org (INADA Naoki) Date: Mon, 04 Jun 2018 10:07:26 +0000 Subject: [issue27902] pstats.Stats: strip_dirs() method cannot handle file paths from different OS In-Reply-To: <1472590175.77.0.992836532809.issue27902@psf.upfronthosting.co.za> Message-ID: <1528106846.32.0.592728768989.issue27902@psf.upfronthosting.co.za> INADA Naoki added the comment: New changeset f7745e1dcb8e8473cc86112a0213b3f244a07230 by INADA Naoki (Tobias Kunze) in branch 'master': bpo-27902: Add compatibility note to Profile docs (GH-7295) https://github.com/python/cpython/commit/f7745e1dcb8e8473cc86112a0213b3f244a07230 ---------- nosy: +inada.naoki _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 06:08:28 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 10:08:28 +0000 Subject: [issue27902] pstats.Stats: strip_dirs() method cannot handle file paths from different OS In-Reply-To: <1472590175.77.0.992836532809.issue27902@psf.upfronthosting.co.za> Message-ID: <1528106908.04.0.592728768989.issue27902@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7016 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 06:09:27 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 10:09:27 +0000 Subject: [issue27902] pstats.Stats: strip_dirs() method cannot handle file paths from different OS In-Reply-To: <1472590175.77.0.992836532809.issue27902@psf.upfronthosting.co.za> Message-ID: <1528106967.63.0.592728768989.issue27902@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7017 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 06:10:26 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 10:10:26 +0000 Subject: [issue27902] pstats.Stats: strip_dirs() method cannot handle file paths from different OS In-Reply-To: <1472590175.77.0.992836532809.issue27902@psf.upfronthosting.co.za> Message-ID: <1528107026.66.0.592728768989.issue27902@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7018 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 06:11:46 2018 From: report at bugs.python.org (=?utf-8?q?Kristj=C3=A1n_Valur_J=C3=B3nsson?=) Date: Mon, 04 Jun 2018 10:11:46 +0000 Subject: [issue9141] Allow objects to decide if they can be collected by GC In-Reply-To: <1278070212.7.0.406390843902.issue9141@psf.upfronthosting.co.za> Message-ID: <1528107106.02.0.592728768989.issue9141@psf.upfronthosting.co.za> Kristj?n Valur J?nsson added the comment: Hi there! By the time pep 442 was introduced, I wasn't very active in python core stuff anymore, and still am not. The intent of this patch, which is explained (IMHO) quite clearly in the first few comments was to - Formalize a way for custom objects to tell GC "No, please don't delete my references _at this time_ because if you do, I will have to run non-trivial code that may wreak havoc". This is different from just having a __del__ method. Sometimes deleting is okay. Sometimes not. - Make this way available to all objects, not just Generator objects. We already identified a separate such instance in stackless python and it seemed prudent to "give back" the generalization that we made there for the benefit of python at large. - Not introduce new slots for this purpose. Now, with pep 442, I have no idea how Generators can postpone being garbage collection since I'm honestly not familiar with how things work now. I have no particular skin in this game anymore, I'm no longer actively working on Stackless or Python integrations and I stopped trying to push stuff thought the bugtracker to preserve my sanity. So, lets just close this until the day in the future when needs arise once more :) ---------- resolution: -> out of date stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 06:38:51 2018 From: report at bugs.python.org (Ivan Levkivskyi) Date: Mon, 04 Jun 2018 10:38:51 +0000 Subject: [issue5945] PyMapping_Check returns 1 for lists In-Reply-To: <1241560036.33.0.817766851688.issue5945@psf.upfronthosting.co.za> Message-ID: <1528108731.82.0.592728768989.issue5945@psf.upfronthosting.co.za> Change by Ivan Levkivskyi : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 06:57:10 2018 From: report at bugs.python.org (INADA Naoki) Date: Mon, 04 Jun 2018 10:57:10 +0000 Subject: [issue31849] Python/pyhash.c warning: comparison of integers of different signs In-Reply-To: <1508774476.87.0.213398074469.issue31849@psf.upfronthosting.co.za> Message-ID: <1528109830.8.0.592728768989.issue31849@psf.upfronthosting.co.za> INADA Naoki added the comment: New changeset a8eb58546b37a7cd5f332f019bb07388f5212c2d by INADA Naoki (A. Jesse Jiryu Davis) in branch 'master': bpo-31849: Fix warning in pyhash.c (GH-6799) https://github.com/python/cpython/commit/a8eb58546b37a7cd5f332f019bb07388f5212c2d ---------- nosy: +inada.naoki _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 06:58:17 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 10:58:17 +0000 Subject: [issue31849] Python/pyhash.c warning: comparison of integers of different signs In-Reply-To: <1508774476.87.0.213398074469.issue31849@psf.upfronthosting.co.za> Message-ID: <1528109897.22.0.592728768989.issue31849@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7019 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 06:59:17 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 10:59:17 +0000 Subject: [issue31849] Python/pyhash.c warning: comparison of integers of different signs In-Reply-To: <1508774476.87.0.213398074469.issue31849@psf.upfronthosting.co.za> Message-ID: <1528109957.23.0.592728768989.issue31849@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7020 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 07:04:06 2018 From: report at bugs.python.org (Ivan Levkivskyi) Date: Mon, 04 Jun 2018 11:04:06 +0000 Subject: [issue33758] Unexpected success of test_get_type_hints_modules_forwardref in test_typing In-Reply-To: <1528041121.47.0.592728768989.issue33758@psf.upfronthosting.co.za> Message-ID: <1528110246.35.0.592728768989.issue33758@psf.upfronthosting.co.za> Ivan Levkivskyi added the comment: Oh yes, this is a "stateful" bug. It will not appear if run in isolation. Btw, the underlying bug will be worse with `from __future__ import annotations`, so it would make sense to fix this sooner than later. ---------- nosy: +lukasz.langa _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 07:17:50 2018 From: report at bugs.python.org (INADA Naoki) Date: Mon, 04 Jun 2018 11:17:50 +0000 Subject: [issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++" In-Reply-To: <1239729771.84.0.97828652099.issue5755@psf.upfronthosting.co.za> Message-ID: <1528111070.91.0.592728768989.issue5755@psf.upfronthosting.co.za> INADA Naoki added the comment: Can we backport this to 3.7 and 3.6? I think it's safe and helpful. ---------- nosy: +inada.naoki _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 07:53:31 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 04 Jun 2018 11:53:31 +0000 Subject: [issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++" In-Reply-To: <1239729771.84.0.97828652099.issue5755@psf.upfronthosting.co.za> Message-ID: <1528113211.56.0.592728768989.issue5755@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: I am not sure now about removing -Wstrict-prototypes. I haven't found confirmation that this option is included in -Wall or -Wextra. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 08:35:33 2018 From: report at bugs.python.org (INADA Naoki) Date: Mon, 04 Jun 2018 12:35:33 +0000 Subject: [issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++" In-Reply-To: <1239729771.84.0.97828652099.issue5755@psf.upfronthosting.co.za> Message-ID: <1528115733.75.0.592728768989.issue5755@psf.upfronthosting.co.za> Change by INADA Naoki : ---------- pull_requests: +7021 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 08:37:32 2018 From: report at bugs.python.org (Cheryl Sabella) Date: Mon, 04 Jun 2018 12:37:32 +0000 Subject: [issue33763] IDLE: Use text widget for code context instead of label widget In-Reply-To: <1528071089.01.0.592728768989.issue33763@psf.upfronthosting.co.za> Message-ID: <1528115852.38.0.592728768989.issue33763@psf.upfronthosting.co.za> Cheryl Sabella added the comment: To your point, when I was adding the colors to configuration for context, I wondered if having context as a text widget could somehow use the colorizer. I didn't really look into it, but it did seem like it might make sense to keep all the foreground text colors the same as they are in the editor. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 08:38:01 2018 From: report at bugs.python.org (INADA Naoki) Date: Mon, 04 Jun 2018 12:38:01 +0000 Subject: [issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++" In-Reply-To: <1239729771.84.0.97828652099.issue5755@psf.upfronthosting.co.za> Message-ID: <1528115881.04.0.592728768989.issue5755@psf.upfronthosting.co.za> INADA Naoki added the comment: -Wstrict-prototypes is not included in -Wall and -Wextra. I created PR-7395 which moves the option to CFLAGS_NODIST, as Serhiy suggested before. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 08:48:46 2018 From: report at bugs.python.org (Jeroen Demeyer) Date: Mon, 04 Jun 2018 12:48:46 +0000 Subject: [issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++" In-Reply-To: <1239729771.84.0.97828652099.issue5755@psf.upfronthosting.co.za> Message-ID: <1528116526.34.0.592728768989.issue5755@psf.upfronthosting.co.za> Jeroen Demeyer added the comment: > Can we backport this to 3.7 and 3.6? I think it's safe and helpful. And 2.7 for the same reasons. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 08:54:33 2018 From: report at bugs.python.org (Ronald Oussoren) Date: Mon, 04 Jun 2018 12:54:33 +0000 Subject: [issue33527] Invalid child function scope In-Reply-To: <1526417770.88.0.682650639539.issue33527@psf.upfronthosting.co.za> Message-ID: <1528116873.65.0.592728768989.issue33527@psf.upfronthosting.co.za> Ronald Oussoren added the comment: >From the zip file, the "bug" is: # ---- def parent_function2( argument1 ): def child_function(): print( argument1 ) if False: argument1 = None # Same function but with fake assignment return child_function # ---- This doesn't work because "argument1" is a local variable in the nested function, and not the same as "argument1" in the outer function. This is expected behavior. The workaround from the same zipfile is to assign the argument of the outer function to a local variable in that outer function, that way the value can be used in the inner function. That is a valid way to deal with this, although I'd use a different name in the inner function. The "nonlocal" keyword in Python 3 might be useful here, but that depends on whether or not you want changes to "argument1" in the inner function to affect the value of "argument1" in the outer function. All in all I don't think there's a bug in Python here. ---------- nosy: +ronaldoussoren _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 08:58:12 2018 From: report at bugs.python.org (Nick Coghlan) Date: Mon, 04 Jun 2018 12:58:12 +0000 Subject: [issue19982] Add a "target" parameter to runpy.run_path and runpy.run_module In-Reply-To: <1387027323.14.0.795736210788.issue19982@psf.upfronthosting.co.za> Message-ID: <1528117092.17.0.592728768989.issue19982@psf.upfronthosting.co.za> Change by Nick Coghlan : ---------- versions: +Python 3.8 -Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 09:02:48 2018 From: report at bugs.python.org (INADA Naoki) Date: Mon, 04 Jun 2018 13:02:48 +0000 Subject: [issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++" In-Reply-To: <1239729771.84.0.97828652099.issue5755@psf.upfronthosting.co.za> Message-ID: <1528117368.8.0.592728768989.issue5755@psf.upfronthosting.co.za> INADA Naoki added the comment: 2.7 doesn't have CFLAGS_NODIST and I don't have motivation to manually backport it to 2.7. (I'm not expert of autotools) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 09:18:27 2018 From: report at bugs.python.org (Jeroen Demeyer) Date: Mon, 04 Jun 2018 13:18:27 +0000 Subject: [issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++" In-Reply-To: <1239729771.84.0.97828652099.issue5755@psf.upfronthosting.co.za> Message-ID: <1528118307.37.0.592728768989.issue5755@psf.upfronthosting.co.za> Jeroen Demeyer added the comment: > 2.7 doesn't have CFLAGS_NODIST I meant backporting this patch as-is to 2.7 without adding -Wstrict-prototypes to CFLAGS_NODIST ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 09:25:20 2018 From: report at bugs.python.org (Steve Dower) Date: Mon, 04 Jun 2018 13:25:20 +0000 Subject: [issue33764] AppVeyor builds interrupted before tests complete In-Reply-To: <1528073612.86.0.592728768989.issue33764@psf.upfronthosting.co.za> Message-ID: <1528118720.76.0.592728768989.issue33764@psf.upfronthosting.co.za> Steve Dower added the comment: Are we sure we haven't actually regressed something here and it's actually taking more resources? I can't tell from this discussion if it's memory CPU, disk or time that we're hitting problems. I'll have to look at the VSTS build history to see whether it needs to be disabled there too. I haven't been watching much over the last week. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 10:43:47 2018 From: report at bugs.python.org (Eric Snow) Date: Mon, 04 Jun 2018 14:43:47 +0000 Subject: [issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x In-Reply-To: <1527078316.31.0.682650639539.issue33615@psf.upfronthosting.co.za> Message-ID: <1528123427.12.0.592728768989.issue33615@psf.upfronthosting.co.za> Eric Snow added the comment: This appears to be recurring on the "x86 Gentoo Refleaks 3.x" builder still. I was thrown off by the success of the first run after I landed my fix: http://buildbot.python.org/all/#/builders/1/builds/241 FYI, the other buildbots having this issue before (e.g. "ARMv7 Ubuntu 3.x") are still passing. ---------- resolution: fixed -> stage: resolved -> needs patch status: pending -> open _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 10:45:30 2018 From: report at bugs.python.org (Eric Snow) Date: Mon, 04 Jun 2018 14:45:30 +0000 Subject: [issue33724] test__xxsubinterpreters failed on ARMv7 Ubuntu 3.x In-Reply-To: <1527803501.98.0.682650639539.issue33724@psf.upfronthosting.co.za> Message-ID: <1528123530.25.0.592728768989.issue33724@psf.upfronthosting.co.za> Eric Snow added the comment: Sorry for any confusion. This issue is still resolved. It is bpo-33615 that had an unexpected recurrence. I've re-opened that one. ---------- resolution: -> fixed status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 11:01:08 2018 From: report at bugs.python.org (Eric Snow) Date: Mon, 04 Jun 2018 15:01:08 +0000 Subject: [issue21142] Daily/weekly ABI scan? In-Reply-To: <1396515016.38.0.140196375249.issue21142@psf.upfronthosting.co.za> Message-ID: <1528124468.9.0.592728768989.issue21142@psf.upfronthosting.co.za> Eric Snow added the comment: FTR, the issue of ABI breakage has come up quite a few times on the mailing list. Most recently: https://mail.python.org/pipermail/python-dev/2018-June/153775.html ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 11:03:21 2018 From: report at bugs.python.org (Eric Snow) Date: Mon, 04 Jun 2018 15:03:21 +0000 Subject: [issue21142] Daily/weekly ABI scan? In-Reply-To: <1396515016.38.0.140196375249.issue21142@psf.upfronthosting.co.za> Message-ID: <1528124601.11.0.592728768989.issue21142@psf.upfronthosting.co.za> Eric Snow added the comment: That email thread contains multiple references to scripts that may be used to identify ABI issues, among other good points. FWIW, when consolidating the C globals last year I added a tool to track the remaining globals: Tools/c-globals It is similar (at least in intent) to any solution we might pursue relative to the stable ABI. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 11:06:31 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 15:06:31 +0000 Subject: [issue33336] [imaplib] MOVE is a legal command In-Reply-To: <1524436182.1.0.682650639539.issue33336@psf.upfronthosting.co.za> Message-ID: <1528124791.07.0.592728768989.issue33336@psf.upfronthosting.co.za> STINNER Victor added the comment: https://tools.ietf.org/html/rfc6851 Internet Message Access Protocol (IMAP) - MOVE Extension January 2013 ---------- nosy: +vstinner _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 11:10:24 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 15:10:24 +0000 Subject: [issue33336] [imaplib] MOVE is a legal command In-Reply-To: <1524436182.1.0.682650639539.issue33336@psf.upfronthosting.co.za> Message-ID: <1528125024.05.0.592728768989.issue33336@psf.upfronthosting.co.za> STINNER Victor added the comment: Should we also add the MOVE command to Python 2.7, 3.6 and 3.7? The change looks safe and trivial. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 11:12:42 2018 From: report at bugs.python.org (Eric Snow) Date: Mon, 04 Jun 2018 15:12:42 +0000 Subject: [issue17045] Improve C-API doc for PyTypeObject In-Reply-To: <1359245485.06.0.557532055897.issue17045@psf.upfronthosting.co.za> Message-ID: <1528125162.3.0.592728768989.issue17045@psf.upfronthosting.co.za> Eric Snow added the comment: I'll definitely take a look. It might not be until Friday though. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 11:20:16 2018 From: report at bugs.python.org (Eric Snow) Date: Mon, 04 Jun 2018 15:20:16 +0000 Subject: [issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x In-Reply-To: <1527078316.31.0.682650639539.issue33615@psf.upfronthosting.co.za> Message-ID: <1528125616.82.0.592728768989.issue33615@psf.upfronthosting.co.za> Eric Snow added the comment: FTR, bpo-33724 is related ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 11:32:40 2018 From: report at bugs.python.org (Yury Selivanov) Date: Mon, 04 Jun 2018 15:32:40 +0000 Subject: [issue33734] asyncio/ssl: Fix AttributeError, increase default handshake timeout In-Reply-To: <1527864833.64.0.81473610881.issue33734@psf.upfronthosting.co.za> Message-ID: <1528126360.87.0.592728768989.issue33734@psf.upfronthosting.co.za> Yury Selivanov added the comment: New changeset 9602643120a509858d0bee4215d7f150e6125468 by Yury Selivanov in branch 'master': bpo-33734: asyncio/ssl: a bunch of bugfixes (#7321) https://github.com/python/cpython/commit/9602643120a509858d0bee4215d7f150e6125468 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 11:33:48 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 15:33:48 +0000 Subject: [issue33734] asyncio/ssl: Fix AttributeError, increase default handshake timeout In-Reply-To: <1527864833.64.0.81473610881.issue33734@psf.upfronthosting.co.za> Message-ID: <1528126428.15.0.592728768989.issue33734@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7022 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 11:48:24 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 04 Jun 2018 15:48:24 +0000 Subject: [issue33664] IDLE: scroll text by lines, not pixels. In-Reply-To: <1527468406.58.0.682650639539.issue33664@psf.upfronthosting.co.za> Message-ID: <1528127304.38.0.592728768989.issue33664@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset d49dbd9acc6db544ca6cb2445fe17eb0c3be4bba by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-33664: Scroll IDLE editor text by lines (GH-7351) https://github.com/python/cpython/commit/d49dbd9acc6db544ca6cb2445fe17eb0c3be4bba ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 11:49:32 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 15:49:32 +0000 Subject: [issue33664] IDLE: scroll text by lines, not pixels. In-Reply-To: <1527468406.58.0.682650639539.issue33664@psf.upfronthosting.co.za> Message-ID: <1528127372.55.0.592728768989.issue33664@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7023 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 11:50:34 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 15:50:34 +0000 Subject: [issue33664] IDLE: scroll text by lines, not pixels. In-Reply-To: <1527468406.58.0.682650639539.issue33664@psf.upfronthosting.co.za> Message-ID: <1528127434.38.0.592728768989.issue33664@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7024 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 11:58:47 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 04 Jun 2018 15:58:47 +0000 Subject: [issue33763] IDLE: Use text widget for code context instead of label widget In-Reply-To: <1528071089.01.0.592728768989.issue33763@psf.upfronthosting.co.za> Message-ID: <1528127927.16.0.592728768989.issue33763@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset b609e687a076d77bdd687f5e4def85e29a044bfc by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-33763: IDLE: Replace label widget with text widget in code context (GH-7367) https://github.com/python/cpython/commit/b609e687a076d77bdd687f5e4def85e29a044bfc ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 11:59:54 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 15:59:54 +0000 Subject: [issue33763] IDLE: Use text widget for code context instead of label widget In-Reply-To: <1528071089.01.0.592728768989.issue33763@psf.upfronthosting.co.za> Message-ID: <1528127994.48.0.592728768989.issue33763@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7025 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 12:00:57 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 16:00:57 +0000 Subject: [issue33763] IDLE: Use text widget for code context instead of label widget In-Reply-To: <1528071089.01.0.592728768989.issue33763@psf.upfronthosting.co.za> Message-ID: <1528128057.3.0.592728768989.issue33763@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7026 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 12:05:27 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 16:05:27 +0000 Subject: [issue33664] IDLE: scroll text by lines, not pixels. In-Reply-To: <1527468406.58.0.682650639539.issue33664@psf.upfronthosting.co.za> Message-ID: <1528128327.56.0.592728768989.issue33664@psf.upfronthosting.co.za> miss-islington added the comment: New changeset cfc12ec68c3f90ebd94bc47d14d18b7217850391 by Miss Islington (bot) in branch '3.7': bpo-33664: Scroll IDLE editor text by lines (GH-7351) https://github.com/python/cpython/commit/cfc12ec68c3f90ebd94bc47d14d18b7217850391 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 12:05:48 2018 From: report at bugs.python.org (Yury Selivanov) Date: Mon, 04 Jun 2018 16:05:48 +0000 Subject: [issue33734] asyncio/ssl: Fix AttributeError, increase default handshake timeout In-Reply-To: <1527864833.64.0.81473610881.issue33734@psf.upfronthosting.co.za> Message-ID: <1528128348.87.0.592728768989.issue33734@psf.upfronthosting.co.za> Yury Selivanov added the comment: New changeset 87936d03cb29ca039c5799190e8da764e62b7882 by Yury Selivanov (Miss Islington (bot)) in branch '3.7': bpo-33734: asyncio/ssl: a bunch of bugfixes (GH-7321) (GH-7396) https://github.com/python/cpython/commit/87936d03cb29ca039c5799190e8da764e62b7882 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 12:07:38 2018 From: report at bugs.python.org (Yury Selivanov) Date: Mon, 04 Jun 2018 16:07:38 +0000 Subject: [issue33734] asyncio/ssl: Fix AttributeError, increase default handshake timeout In-Reply-To: <1527864833.64.0.81473610881.issue33734@psf.upfronthosting.co.za> Message-ID: <1528128458.89.0.592728768989.issue33734@psf.upfronthosting.co.za> Yury Selivanov added the comment: Fixes are in master and 3.7 now, so this should be fixed in 3.7.0rc1. Ned, I'm not sure what's the workflow here, please feel free to close this issue and change its priority. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 12:13:46 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 16:13:46 +0000 Subject: [issue33664] IDLE: scroll text by lines, not pixels. In-Reply-To: <1527468406.58.0.682650639539.issue33664@psf.upfronthosting.co.za> Message-ID: <1528128825.99.0.592728768989.issue33664@psf.upfronthosting.co.za> miss-islington added the comment: New changeset db222296871765d76dedb06cace8fa393678ae56 by Miss Islington (bot) in branch '3.6': bpo-33664: Scroll IDLE editor text by lines (GH-7351) https://github.com/python/cpython/commit/db222296871765d76dedb06cace8fa393678ae56 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 12:18:03 2018 From: report at bugs.python.org (Guido van Rossum) Date: Mon, 04 Jun 2018 16:18:03 +0000 Subject: [issue33766] Grammar Incongruence In-Reply-To: <1528085120.11.0.592728768989.issue33766@psf.upfronthosting.co.za> Message-ID: <1528129083.5.0.592728768989.issue33766@psf.upfronthosting.co.za> Guido van Rossum added the comment: I am fine with adding this to the docs. But the irony of the case is that the echo command adds a newline, so the original premise (that test.py contains an invalid program) is incorrect. ;-) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 12:22:14 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 16:22:14 +0000 Subject: [issue33763] IDLE: Use text widget for code context instead of label widget In-Reply-To: <1528071089.01.0.592728768989.issue33763@psf.upfronthosting.co.za> Message-ID: <1528129334.27.0.592728768989.issue33763@psf.upfronthosting.co.za> miss-islington added the comment: New changeset ffe29dbcd96dc2fbda212f8335908fa1bc8ed893 by Miss Islington (bot) in branch '3.6': bpo-33763: IDLE: Replace label widget with text widget in code context (GH-7367) https://github.com/python/cpython/commit/ffe29dbcd96dc2fbda212f8335908fa1bc8ed893 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 12:22:24 2018 From: report at bugs.python.org (Steve Dower) Date: Mon, 04 Jun 2018 16:22:24 +0000 Subject: [issue33720] test_marshal: crash in Python 3.7b5 on Windows 10 In-Reply-To: <1527779615.11.0.682650639539.issue33720@psf.upfronthosting.co.za> Message-ID: <1528129344.76.0.592728768989.issue33720@psf.upfronthosting.co.za> Change by Steve Dower : ---------- pull_requests: +7027 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 12:23:30 2018 From: report at bugs.python.org (R. David Murray) Date: Mon, 04 Jun 2018 16:23:30 +0000 Subject: [issue33527] Invalid child function scope In-Reply-To: <1526417770.88.0.682650639539.issue33527@psf.upfronthosting.co.za> Message-ID: <1528129410.65.0.592728768989.issue33527@psf.upfronthosting.co.za> Change by R. David Murray : ---------- resolution: -> not a bug stage: test needed -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 12:33:27 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 16:33:27 +0000 Subject: [issue33763] IDLE: Use text widget for code context instead of label widget In-Reply-To: <1528071089.01.0.592728768989.issue33763@psf.upfronthosting.co.za> Message-ID: <1528130007.38.0.592728768989.issue33763@psf.upfronthosting.co.za> miss-islington added the comment: New changeset b7eb1024d06e51598fc8a19ed6e22b91120c6a1e by Miss Islington (bot) in branch '3.7': bpo-33763: IDLE: Replace label widget with text widget in code context (GH-7367) https://github.com/python/cpython/commit/b7eb1024d06e51598fc8a19ed6e22b91120c6a1e ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 12:35:59 2018 From: report at bugs.python.org (Pasha Stetsenko) Date: Mon, 04 Jun 2018 16:35:59 +0000 Subject: [issue33742] Unsafe memory access in PyStructSequence_InitType In-Reply-To: <1528007853.29.0.592728768989.issue33742@psf.upfronthosting.co.za> Message-ID: <1528130159.53.0.592728768989.issue33742@psf.upfronthosting.co.za> Pasha Stetsenko added the comment: The code is simple: ``` // first initialize PyStructSequence_Field* fields; then: PyTypeObject* type = malloc(sizeof(PyTypeObject)); PyStructSequence_InitType(type, desc); ``` Of course, `malloc` can accidentally allocate memory that is already filled with 0s (especially if it is run at the start of the program). So in order to make the code exhibit the bug reliably, you can add ``` memset(type, 0xDA, sizeof(PyTypeObject)); ``` after the `malloc`. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 12:36:40 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 16:36:40 +0000 Subject: [issue33734] asyncio/ssl: Fix AttributeError, increase default handshake timeout In-Reply-To: <1527864833.64.0.81473610881.issue33734@psf.upfronthosting.co.za> Message-ID: <1528130200.54.0.592728768989.issue33734@psf.upfronthosting.co.za> Ned Deily added the comment: Thanks for the fix! Since it apparently does not apply to 3.6, we should just close it like any other issue, right? So doing! ---------- priority: release blocker -> resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 12:41:06 2018 From: report at bugs.python.org (Yury Selivanov) Date: Mon, 04 Jun 2018 16:41:06 +0000 Subject: [issue33734] asyncio/ssl: Fix AttributeError, increase default handshake timeout In-Reply-To: <1527864833.64.0.81473610881.issue33734@psf.upfronthosting.co.za> Message-ID: <1528130466.47.0.592728768989.issue33734@psf.upfronthosting.co.za> Yury Selivanov added the comment: > Since it apparently does not apply to 3.6, we should just close it like any other issue, right? So doing! Sure. My understanding is that all changes including this one in 3.7 branch will end up in 3.7.0rc1, right? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 12:41:56 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 16:41:56 +0000 Subject: [issue33734] asyncio/ssl: Fix AttributeError, increase default handshake timeout In-Reply-To: <1527864833.64.0.81473610881.issue33734@psf.upfronthosting.co.za> Message-ID: <1528130516.21.0.592728768989.issue33734@psf.upfronthosting.co.za> Ned Deily added the comment: > My understanding is that all changes including this one in 3.7 branch will end up in 3.7.0rc1, right? Yes. Don't worry, the train won't leave without it. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 12:46:53 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 04 Jun 2018 16:46:53 +0000 Subject: [issue33664] IDLE: scroll text by lines, not pixels. In-Reply-To: <1527468406.58.0.682650639539.issue33664@psf.upfronthosting.co.za> Message-ID: <1528130813.69.0.592728768989.issue33664@psf.upfronthosting.co.za> Terry J. Reedy added the comment: I checked that with the patch, the wwindow top stayed synchronized with the text after multiple movement operations of different types. The minimum requirement for correct operation of the scrollbar slider is that moving the slider to the top and bottom of its trough moves the text to the top and bottom of the file. Before merging, I checked with editor.py, about 3000 lines, and a new editor with just a couple more lines than the window size. It is desireable that each pixel movement of the slider move the text. This requires that there be at least as many hidden lines in the text as there are exposed pixel in the slider trough. I don't know that this will always be true on all systems. As near as I could tell with editor.py, which meets this requirement, moving the slider a pixel away from top or bottom also moved the text. (I can't move a single pixel, so it was more a matter that moving 2 or 3 pixels made 2 or 3 jumps ;-) I considered these tests enough for now to merge. ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 12:52:10 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 16:52:10 +0000 Subject: [issue33718] Enhance regrtest: meta-ticket for multiple changes In-Reply-To: <1527775539.21.0.682650639539.issue33718@psf.upfronthosting.co.za> Message-ID: <1528131130.69.0.592728768989.issue33718@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7028 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 13:02:38 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 04 Jun 2018 17:02:38 +0000 Subject: [issue33763] IDLE: Use text widget for code context instead of label widget In-Reply-To: <1528071089.01.0.592728768989.issue33763@psf.upfronthosting.co.za> Message-ID: <1528131758.66.0.592728768989.issue33763@psf.upfronthosting.co.za> Terry J. Reedy added the comment: I believe the colorizer would need some new code, maybe in a subclass, but it should be possible. I would not know if I liked it until we tried it ;-). ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 13:11:39 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 17:11:39 +0000 Subject: [issue33745] 3.7.0b5 changes the line number of empty functions with docstrings In-Reply-To: <1528024309.59.0.592728768989.issue33745@psf.upfronthosting.co.za> Message-ID: <1528132299.11.0.592728768989.issue33745@psf.upfronthosting.co.za> Ned Deily added the comment: Setting to deferred blocker for evaluation ---------- nosy: +inada.naoki, ncoghlan, ned.deily priority: normal -> deferred blocker versions: +Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 13:14:29 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 17:14:29 +0000 Subject: [issue31849] Python/pyhash.c warning: comparison of integers of different signs In-Reply-To: <1508774476.87.0.213398074469.issue31849@psf.upfronthosting.co.za> Message-ID: <1528132469.28.0.592728768989.issue31849@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 4251d2a3540bf7a23949c7fafad64b796585674a by Miss Islington (bot) in branch '3.6': bpo-31849: Fix warning in pyhash.c (GH-6799) https://github.com/python/cpython/commit/4251d2a3540bf7a23949c7fafad64b796585674a ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 13:17:31 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 17:17:31 +0000 Subject: [issue33640] [EASY DOC] uuid: endian of the bytes argument is not documented In-Reply-To: <1527196125.95.0.682650639539.issue33640@psf.upfronthosting.co.za> Message-ID: <1528132651.52.0.592728768989.issue33640@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 1cdd0e71ecba53ab60080958c24193c27c3adee2 by Miss Islington (bot) in branch '3.7': bpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263) https://github.com/python/cpython/commit/1cdd0e71ecba53ab60080958c24193c27c3adee2 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 13:18:25 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 17:18:25 +0000 Subject: [issue33640] [EASY DOC] uuid: endian of the bytes argument is not documented In-Reply-To: <1527196125.95.0.682650639539.issue33640@psf.upfronthosting.co.za> Message-ID: <1528132705.71.0.592728768989.issue33640@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 6a43d5f4fb3a83815bf7c2f157773a3b0d8f59b3 by Miss Islington (bot) in branch '3.6': bpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263) https://github.com/python/cpython/commit/6a43d5f4fb3a83815bf7c2f157773a3b0d8f59b3 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 13:22:20 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 17:22:20 +0000 Subject: [issue33761] Leaked file in test_iterparse in test_xml_etree In-Reply-To: <1528042522.11.0.592728768989.issue33761@psf.upfronthosting.co.za> Message-ID: <1528132940.55.0.592728768989.issue33761@psf.upfronthosting.co.za> miss-islington added the comment: New changeset a7de1483c28eb818135a8c9a2e414e3a1d0fe648 by Miss Islington (bot) in branch '3.6': bpo-33761: Fix a file leak in test_iterparse in test_xml_etree. (GH-7358) https://github.com/python/cpython/commit/a7de1483c28eb818135a8c9a2e414e3a1d0fe648 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 13:23:43 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 17:23:43 +0000 Subject: [issue33509] warnings.warn_explicit with module_globals=True raises a SystemError In-Reply-To: <1526332146.43.0.682650639539.issue33509@psf.upfronthosting.co.za> Message-ID: <1528133023.92.0.592728768989.issue33509@psf.upfronthosting.co.za> miss-islington added the comment: New changeset d2c6ecc234e705b60cbcbb9dd4c99022407d0dd0 by Miss Islington (bot) in branch '3.7': bpo-33509: Fix test_warnings for python3 -Werror (GH-7365) https://github.com/python/cpython/commit/d2c6ecc234e705b60cbcbb9dd4c99022407d0dd0 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 13:24:40 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 17:24:40 +0000 Subject: [issue33640] [EASY DOC] uuid: endian of the bytes argument is not documented In-Reply-To: <1527196125.95.0.682650639539.issue33640@psf.upfronthosting.co.za> Message-ID: <1528133080.47.0.592728768989.issue33640@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 5f0726a3813dd9873e10690e708f8da9ede9502e by Miss Islington (bot) in branch '2.7': bpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263) https://github.com/python/cpython/commit/5f0726a3813dd9873e10690e708f8da9ede9502e ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 13:25:39 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 17:25:39 +0000 Subject: [issue27902] pstats.Stats: strip_dirs() method cannot handle file paths from different OS In-Reply-To: <1472590175.77.0.992836532809.issue27902@psf.upfronthosting.co.za> Message-ID: <1528133139.77.0.592728768989.issue27902@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 7548a9327409df787eef5f8c2780b53b5788012f by Miss Islington (bot) in branch '3.7': bpo-27902: Add compatibility note to Profile docs (GH-7295) https://github.com/python/cpython/commit/7548a9327409df787eef5f8c2780b53b5788012f ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 13:29:57 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 17:29:57 +0000 Subject: [issue27902] pstats.Stats: strip_dirs() method cannot handle file paths from different OS In-Reply-To: <1472590175.77.0.992836532809.issue27902@psf.upfronthosting.co.za> Message-ID: <1528133397.52.0.592728768989.issue27902@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 134bb46db706416d76d03c0af6018372f35be06f by Miss Islington (bot) in branch '2.7': bpo-27902: Add compatibility note to Profile docs (GH-7295) https://github.com/python/cpython/commit/134bb46db706416d76d03c0af6018372f35be06f ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 13:30:36 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 17:30:36 +0000 Subject: [issue27902] pstats.Stats: strip_dirs() method cannot handle file paths from different OS In-Reply-To: <1472590175.77.0.992836532809.issue27902@psf.upfronthosting.co.za> Message-ID: <1528133436.98.0.592728768989.issue27902@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 889a1ef6833d47cc732c291852602b5fc8d5fde7 by Miss Islington (bot) in branch '3.6': bpo-27902: Add compatibility note to Profile docs (GH-7295) https://github.com/python/cpython/commit/889a1ef6833d47cc732c291852602b5fc8d5fde7 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 13:31:10 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 17:31:10 +0000 Subject: [issue31849] Python/pyhash.c warning: comparison of integers of different signs In-Reply-To: <1508774476.87.0.213398074469.issue31849@psf.upfronthosting.co.za> Message-ID: <1528133470.42.0.592728768989.issue31849@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 150033d1599f55c10860a733d370707a3f7c444e by Miss Islington (bot) in branch '3.7': bpo-31849: Fix warning in pyhash.c (GH-6799) https://github.com/python/cpython/commit/150033d1599f55c10860a733d370707a3f7c444e ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 13:35:36 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 17:35:36 +0000 Subject: [issue33394] the build of the shared modules is quiet/non-visible when GNU make gets passed macros In-Reply-To: <1525109371.22.0.682650639539.issue33394@psf.upfronthosting.co.za> Message-ID: <1528133736.66.0.592728768989.issue33394@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7029 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 13:45:55 2018 From: report at bugs.python.org (Yury Selivanov) Date: Mon, 04 Jun 2018 17:45:55 +0000 Subject: [issue33769] Cleanup start_tls() implementation Message-ID: <1528134355.5.0.592728768989.issue33769@psf.upfronthosting.co.za> New submission from Yury Selivanov : Current start_tls() implementation might raise an incorrect error message. It should also consistently cancel callbacks that it schedules in case of unhandled error. ---------- assignee: yselivanov components: asyncio messages: 318688 nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Cleanup start_tls() implementation type: enhancement versions: Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 13:47:43 2018 From: report at bugs.python.org (Yury Selivanov) Date: Mon, 04 Jun 2018 17:47:43 +0000 Subject: [issue33769] Cleanup start_tls() implementation In-Reply-To: <1528134355.5.0.592728768989.issue33769@psf.upfronthosting.co.za> Message-ID: <1528134463.68.0.592728768989.issue33769@psf.upfronthosting.co.za> Change by Yury Selivanov : ---------- keywords: +patch pull_requests: +7030 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 15:24:19 2018 From: report at bugs.python.org (Steve Dower) Date: Mon, 04 Jun 2018 19:24:19 +0000 Subject: [issue33720] test_marshal: crash in Python 3.7b5 on Windows 10 In-Reply-To: <1527779615.11.0.682650639539.issue33720@psf.upfronthosting.co.za> Message-ID: <1528140259.69.0.592728768989.issue33720@psf.upfronthosting.co.za> Steve Dower added the comment: Ned - PR 7401 fixes the crash at the cost of reducing the permitted recursion depth in marshal. Your call whether we take this fix or disable PGO, but I'd much rather take this fix (PGO has full-interpreter effects whereas this is very narrow). When I hear back about the compiler bug - if it is one - we should be able to raise the limit again without causing any compatibility issues. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 15:28:37 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 19:28:37 +0000 Subject: [issue33720] test_marshal: crash in Python 3.7b5 on Windows 10 In-Reply-To: <1527779615.11.0.682650639539.issue33720@psf.upfronthosting.co.za> Message-ID: <1528140517.07.0.592728768989.issue33720@psf.upfronthosting.co.za> Ned Deily added the comment: Steve, I'm OK with the proposed reduction as a workaround. We have other platform- and build-specific limits based on stack sizes etc. It's hard to have one-size-fits-all. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 15:53:31 2018 From: report at bugs.python.org (Dmitry) Date: Mon, 04 Jun 2018 19:53:31 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception even though the string length is a multiple of 4 Message-ID: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> New submission from Dmitry : All base64 decoding methods fail to decode a valid base64 string, throwing 'incorrect padding' regardless of the string padding. Here's an example: >>> base64.urlsafe_b64decode('AQAAQDhAAMAAQAAAAAAAAthAAAAJDczODFmZDM2LTNiOTYtNDVmYS04MjQ2LWRkYzJkMmViYjQ2YQ===') Traceback (most recent call last): File "", line 1, in File "/export/apps/python/3.6/lib/python3.6/base64.py", line 133, in urlsafe_b64decode return b64decode(s) File "/export/apps/python/3.6/lib/python3.6/base64.py", line 87, in b64decode return binascii.a2b_base64(s) binascii.Error: Incorrect padding The same string gets decoded without any issues using Perl's MIME::Base64 module or Java. So far Python's base64 module is the only one that fails to decode it. ---------- components: Extension Modules messages: 318691 nosy: dniq priority: normal severity: normal status: open title: base64 throws 'incorrect padding' exception even though the string length is a multiple of 4 versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 16:18:23 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Mon, 04 Jun 2018 20:18:23 +0000 Subject: [issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x In-Reply-To: <1527078316.31.0.682650639539.issue33615@psf.upfronthosting.co.za> Message-ID: <1528143503.9.0.592728768989.issue33615@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: Same error in AMD64 Windows10 3.x: http://buildbot.python.org/all/#/builders/3/builds/941 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 16:25:03 2018 From: report at bugs.python.org (Steve Dower) Date: Mon, 04 Jun 2018 20:25:03 +0000 Subject: [issue33720] test_marshal: crash in Python 3.7b5 on Windows 10 In-Reply-To: <1527779615.11.0.682650639539.issue33720@psf.upfronthosting.co.za> Message-ID: <1528143903.38.0.592728768989.issue33720@psf.upfronthosting.co.za> Steve Dower added the comment: New changeset 2a4a62ba4ae770bbc7b7fdec0760031c83fe1f7b by Steve Dower in branch 'master': bpo-33720: Reduces maximum marshal recursion depth on release builds. (GH-7401) https://github.com/python/cpython/commit/2a4a62ba4ae770bbc7b7fdec0760031c83fe1f7b ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 16:25:27 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 20:25:27 +0000 Subject: [issue33720] test_marshal: crash in Python 3.7b5 on Windows 10 In-Reply-To: <1527779615.11.0.682650639539.issue33720@psf.upfronthosting.co.za> Message-ID: <1528143927.32.0.592728768989.issue33720@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7031 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 16:25:57 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 20:25:57 +0000 Subject: [issue33718] Enhance regrtest: meta-ticket for multiple changes In-Reply-To: <1527775539.21.0.682650639539.issue33718@psf.upfronthosting.co.za> Message-ID: <1528143957.37.0.592728768989.issue33718@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset a30d587eb55cbf3b9af65b9883e87c1255ecba75 by Victor Stinner in branch '2.7': [2.7] bpo-33718: Update regrtest from master (GH-7402) https://github.com/python/cpython/commit/a30d587eb55cbf3b9af65b9883e87c1255ecba75 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 16:26:25 2018 From: report at bugs.python.org (Steve Dower) Date: Mon, 04 Jun 2018 20:26:25 +0000 Subject: [issue33720] test_marshal: crash in Python 3.7b5 on Windows 10 In-Reply-To: <1527779615.11.0.682650639539.issue33720@psf.upfronthosting.co.za> Message-ID: <1528143985.12.0.592728768989.issue33720@psf.upfronthosting.co.za> Steve Dower added the comment: Thanks. I merged, and miss-islington is backporting it. I guess at this stage you're manually cherry-picking into your own 3.7 branch for release? I'll merge for 3.7.1 though. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 16:28:17 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 20:28:17 +0000 Subject: [issue33720] test_marshal: crash in Python 3.7b5 on Windows 10 In-Reply-To: <1527779615.11.0.682650639539.issue33720@psf.upfronthosting.co.za> Message-ID: <1528144097.16.0.592728768989.issue33720@psf.upfronthosting.co.za> Ned Deily added the comment: > I guess at this stage you're manually cherry-picking into your own 3.7 branch for release? No, not until 3.7.0rc1 next week. No need to cherry pick. Thanks! ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 16:29:52 2018 From: report at bugs.python.org (Mark Dickinson) Date: Mon, 04 Jun 2018 20:29:52 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception even though the string length is a multiple of 4 In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528144192.19.0.592728768989.issue33770@psf.upfronthosting.co.za> Mark Dickinson added the comment: This doesn't look like a valid base64 string to me: the padding (if present) at the end of the string should be either "=" or "==", never "===". Is the length of the decoded string equal to 58? If so, what's the last character of that decoded string? Whatever it is, it should end up being encoded as "xx==" (for some values of "x"), not as "Q===". ---------- nosy: +mark.dickinson _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 16:41:51 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 20:41:51 +0000 Subject: [issue33720] test_marshal: crash in Python 3.7b5 on Windows 10 In-Reply-To: <1527779615.11.0.682650639539.issue33720@psf.upfronthosting.co.za> Message-ID: <1528144911.9.0.592728768989.issue33720@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 103058e19bea48f4a80afde51df04338a753e952 by Miss Islington (bot) in branch '3.7': bpo-33720: Reduces maximum marshal recursion depth on release builds. (GH-7401) https://github.com/python/cpython/commit/103058e19bea48f4a80afde51df04338a753e952 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 16:43:33 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 20:43:33 +0000 Subject: [issue33640] [EASY DOC] uuid: endian of the bytes argument is not documented In-Reply-To: <1527196125.95.0.682650639539.issue33640@psf.upfronthosting.co.za> Message-ID: <1528145013.43.0.592728768989.issue33640@psf.upfronthosting.co.za> STINNER Victor added the comment: Thank you Farhaan Bukhsh for your documentation enhancement! I applied your change to 2.7, 3.6, 3.7 and master branches. ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 16:44:24 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 20:44:24 +0000 Subject: [issue33509] warnings.warn_explicit with module_globals=True raises a SystemError In-Reply-To: <1526332146.43.0.682650639539.issue33509@psf.upfronthosting.co.za> Message-ID: <1528145064.87.0.592728768989.issue33509@psf.upfronthosting.co.za> STINNER Victor added the comment: > This test is failed with -We. Thank you Serhiy for the bug report. It should now be fixed again. ---------- stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 16:45:03 2018 From: report at bugs.python.org (Dmitry) Date: Mon, 04 Jun 2018 20:45:03 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception even though the string length is a multiple of 4 In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528145103.99.0.592728768989.issue33770@psf.upfronthosting.co.za> Dmitry added the comment: It doesn?t matter how many ?=? characters are appended - it?s always throwing the same exception :( ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 16:48:10 2018 From: report at bugs.python.org (Cheryl Sabella) Date: Mon, 04 Jun 2018 20:48:10 +0000 Subject: [issue33768] IDLE: click on context line should jump to line, at top of window In-Reply-To: <1528091671.87.0.592728768989.issue33768@psf.upfronthosting.co.za> Message-ID: <1528145290.98.0.592728768989.issue33768@psf.upfronthosting.co.za> Cheryl Sabella added the comment: I'll try to have a PR for this by later today. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 16:55:20 2018 From: report at bugs.python.org (Barry A. Warsaw) Date: Mon, 04 Jun 2018 20:55:20 +0000 Subject: [issue33755] Failed separate tests in test_importlib In-Reply-To: <1528035154.67.0.592728768989.issue33755@psf.upfronthosting.co.za> Message-ID: <1528145720.3.0.592728768989.issue33755@psf.upfronthosting.co.za> Barry A. Warsaw added the comment: Looks like a sys.modules leak. I'm working on a branch. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 17:04:58 2018 From: report at bugs.python.org (Dmitry) Date: Mon, 04 Jun 2018 21:04:58 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception even though the string length is a multiple of 4 In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528146298.94.0.592728768989.issue33770@psf.upfronthosting.co.za> Dmitry added the comment: Apologies: apparently this particular string was given with one character missing in the beginning - should be "AAQAAQDhAAMAAQAAAAAAAAthAAAAJDczODFmZDM2LTNiOTYtNDVmYS04MjQ2LWRkYzJkMmViYjQ2YQ". In this case, the problem is the exception itself: it's not an "incorrect padding" issue. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 17:07:32 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 21:07:32 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528146452.52.0.592728768989.issue33694@psf.upfronthosting.co.za> STINNER Victor added the comment: A variant of the bug? AMD64 Windows8.1 Non-Debug 3.x: http://buildbot.python.org/all/#/builders/12/builds/948 ====================================================================== ERROR: test_create_connection_ssl_failed_certificate (test.test_asyncio.test_sslproto.ProactorStartTLSTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "D:\buildarea\3.x.ware-win81-release\build\lib\test\test_asyncio\test_sslproto.py", line 623, in test_create_connection_ssl_failed_certificate self.loop.run_until_complete(client(srv.addr)) File "D:\buildarea\3.x.ware-win81-release\build\lib\asyncio\base_events.py", line 566, in run_until_complete raise RuntimeError('Event loop stopped before Future completed.') RuntimeError: Event loop stopped before Future completed. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 17:13:27 2018 From: report at bugs.python.org (Barry A. Warsaw) Date: Mon, 04 Jun 2018 21:13:27 +0000 Subject: [issue29539] [smtplib] collect response data for all recipients In-Reply-To: <1486946725.6.0.180199923995.issue29539@psf.upfronthosting.co.za> Message-ID: <1528146807.36.0.592728768989.issue29539@psf.upfronthosting.co.za> Barry A. Warsaw added the comment: It's too late for 3.7, but something like this could be an interesting enhancement for 3.8. I'm not so sure about the name of the suggested parameter since it seems more about recording successful deliveries in addition to the normally failed deliveries. But we can quibble about that later. Would you be willing and able to turn your patch into a pull request against our GitHub repo? You would need to sign the CLA. We're also going to want a test, some additional documentation, and a news entry. See devguide.python.org for details. ---------- versions: +Python 3.8 -Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 17:33:08 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 21:33:08 +0000 Subject: [issue31234] Make support.threading_cleanup() stricter In-Reply-To: <1503076378.29.0.950087882836.issue31234@psf.upfronthosting.co.za> Message-ID: <1528147988.1.0.592728768989.issue31234@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7032 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 17:36:24 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 21:36:24 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528148184.45.0.592728768989.issue33694@psf.upfronthosting.co.za> STINNER Victor added the comment: > AMD64 Windows8.1 Non-Debug 3.x > ERROR: test_create_connection_ssl_failed_certificate (test.test_asyncio.test_sslproto.ProactorStartTLSTests) Not surprising: same error on AMD64 Windows8.1 Non-Debug 3.7: http://buildbot.python.org/all/#builders/133/builds/304 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 17:39:10 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 21:39:10 +0000 Subject: [issue33725] High Sierra hang when using multi-processing In-Reply-To: <1527814386.62.0.682650639539.issue33725@psf.upfronthosting.co.za> Message-ID: <1528148350.72.0.592728768989.issue33725@psf.upfronthosting.co.za> Ned Deily added the comment: {Note: this is not particularly relevant to the issue here.) Ronald: > In the long run the macOS installers should be build using the latest SDK [...] That's something that would require some effort though to ensure that the resulting binary still works on older versions of macOS I agree that being able to build with the latest SDK would be nice but it's also true it would require effort on our part, both one-time and ongoing, at least for every new macOS SDK release and update to test with each older system. It would also require that the third-party libraries we build for an installer also behave correctly. And to make full use of it, third-party Python packages with extension modules would also need to behave correctly. I see one of the primary use cases for the python.org macOS installers as being for Python app developers who want to provide apps that run on a range of macOS releases. It seems to me that the safest and simplest way to guarantee that python.org macOS Pythons fulfill that need is to continue to always build them on the oldest supported system. Yes, that means that users may miss out on a few features only supported on the more recent macOS releases but I think that's the right trade-off until we have the resources to truly investigate and decide to support weak linking from current systems. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 17:42:47 2018 From: report at bugs.python.org (Julien Palard) Date: Mon, 04 Jun 2018 21:42:47 +0000 Subject: [issue32523] inconsistent spacing in changelog.html In-Reply-To: <1515514882.86.0.467229070634.issue32523@psf.upfronthosting.co.za> Message-ID: <1528148567.02.0.592728768989.issue32523@psf.upfronthosting.co.za> Julien Palard added the comment: It's from docutils (see details below), it can be fixed in pydoctheme.css by adding something like: li p { margin-bottom: 0; } Would look like: https://mdk.fr/list-before.png ? https://mdk.fr/list-after.png is it better? (If it's better I still have to ensure this rule won't break something else in another place.) For more information I quote here the docstring of `class HTMLTranslator`: The html4css1 writer has been optimized to produce visually compact lists (less vertical whitespace). HTML's mixed content models allow list items to contain "
  • body elements

  • " or "
  • just text
  • " or even "
  • text

    and body elements

    combined
  • ", each with different effects. It would be best to stick with strict body elements in list items, but they affect vertical spacing in older browsers (although they really shouldn't). The html5_polyglot writer solves this using CSS2. Here is an outline of the optimization: - Check for and omit

    tags in "simple" lists: list items contain either a single paragraph, a nested simple list, or a paragraph followed by a nested simple list. This means that this list can be compact: - Item 1. - Item 2. But this list cannot be compact: - Item 1. This second paragraph forces space between list items. - Item 2. - In non-list contexts, omit

    tags on a paragraph if that paragraph is the only child of its parent (footnotes & citations are allowed a label first). - Regardless of the above, in definitions, table cells, field bodies, option descriptions, and list items, mark the first child with 'class="first"' and the last child with 'class="last"'. The stylesheet sets the margins (top & bottom respectively) to 0 for these elements. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 17:50:35 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 04 Jun 2018 21:50:35 +0000 Subject: [issue33768] IDLE: click on context line should jump to line, at top of window In-Reply-To: <1528091671.87.0.592728768989.issue33768@psf.upfronthosting.co.za> Message-ID: <1528149035.96.0.592728768989.issue33768@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Great. I might try some timing experiments later. I have seen both of the first 2 options above in use. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 17:53:43 2018 From: report at bugs.python.org (Julien Palard) Date: Mon, 04 Jun 2018 21:53:43 +0000 Subject: [issue32523] inconsistent spacing in changelog.html In-Reply-To: <1515514882.86.0.467229070634.issue32523@psf.upfronthosting.co.za> Message-ID: <1528149223.23.0.592728768989.issue32523@psf.upfronthosting.co.za> Julien Palard added the comment: An intermediate fix would be to remove only bottom of first paragraphs: li p.first { margin-bottom: 0; } It looks like: https://mdk.fr/list-intermediate.png ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 17:53:54 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 21:53:54 +0000 Subject: [issue31234] Make support.threading_cleanup() stricter In-Reply-To: <1503076378.29.0.950087882836.issue31234@psf.upfronthosting.co.za> Message-ID: <1528149234.8.0.592728768989.issue31234@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 146351860a34b3cde387930a360e57391e7b99f3 by Victor Stinner in branch '2.7': [2.7] bpo-31234: Join threads explicitly in tests (#7406) https://github.com/python/cpython/commit/146351860a34b3cde387930a360e57391e7b99f3 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 17:55:55 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 21:55:55 +0000 Subject: [issue32523] inconsistent spacing in changelog.html In-Reply-To: <1515514882.86.0.467229070634.issue32523@psf.upfronthosting.co.za> Message-ID: <1528149355.37.0.592728768989.issue32523@psf.upfronthosting.co.za> Ned Deily added the comment: Thank you for looking into it! In the example you chose, I think the first step would be to trim the two two-paragraph news items to be only one paragraph each; in general, news items should only be a few sentences at most. With that change, I think the choice is pretty clear (to me, at least:): I prefer without the blank lines. And the issue is that today the changelogs have a "random" mixture of both. So, if news items followed that rule, would the css change still be necessary? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 18:04:14 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 22:04:14 +0000 Subject: [issue33720] test_marshal: crash in Python 3.7b5 on Windows 10 In-Reply-To: <1527779615.11.0.682650639539.issue33720@psf.upfronthosting.co.za> Message-ID: <1528149854.93.0.592728768989.issue33720@psf.upfronthosting.co.za> Ned Deily added the comment: With the workaround merged for 3.7.0rc1, I'm downgrading from "release blocker" to "high" since I believe Steve wants to keep this issue open for a possible compiler resolution. ---------- priority: release blocker -> high _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 18:09:33 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 22:09:33 +0000 Subject: [issue33609] Document that dicts preserve insertion order In-Reply-To: <1527023250.35.0.682650639539.issue33609@psf.upfronthosting.co.za> Message-ID: <1528150173.38.0.592728768989.issue33609@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset f822549653d8d09bffff5b7dcddfdf12679a787c by Ned Deily (INADA Naoki) in branch 'master': bpo-33609: Document dict insertion order guarantee as of 3.7 (GH-7093) https://github.com/python/cpython/commit/f822549653d8d09bffff5b7dcddfdf12679a787c ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 18:09:40 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 22:09:40 +0000 Subject: [issue33609] Document that dicts preserve insertion order In-Reply-To: <1527023250.35.0.682650639539.issue33609@psf.upfronthosting.co.za> Message-ID: <1528150180.9.0.592728768989.issue33609@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7033 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 18:15:34 2018 From: report at bugs.python.org (R. David Murray) Date: Mon, 04 Jun 2018 22:15:34 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception even though the string length is a multiple of 4 In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528150534.55.0.592728768989.issue33770@psf.upfronthosting.co.za> R. David Murray added the comment: I always assumed that any string composed of valid base64 characters could be decoded to *something* if you added some padding characters, but apparently that was an invalid assumption. I agree that the message is incorrect for this case. ---------- nosy: +r.david.murray stage: -> needs patch type: -> behavior versions: +Python 2.7, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 18:23:20 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 22:23:20 +0000 Subject: [issue18174] Make regrtest with --huntrleaks check for fd leaks In-Reply-To: <1370807273.91.0.83033499223.issue18174@psf.upfronthosting.co.za> Message-ID: <1528151000.93.0.592728768989.issue18174@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7034 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 18:25:14 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 04 Jun 2018 22:25:14 +0000 Subject: [issue33609] Document that dicts preserve insertion order In-Reply-To: <1527023250.35.0.682650639539.issue33609@psf.upfronthosting.co.za> Message-ID: <1528151114.75.0.592728768989.issue33609@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 8585ec9b761947aae6be5f653a5b9ddef2801d58 by Miss Islington (bot) in branch '3.7': bpo-33609: Document dict insertion order guarantee as of 3.7 (GH-7093) https://github.com/python/cpython/commit/8585ec9b761947aae6be5f653a5b9ddef2801d58 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 18:27:42 2018 From: report at bugs.python.org (Neil Schemenauer) Date: Mon, 04 Jun 2018 22:27:42 +0000 Subject: [issue33609] Document that dicts preserve insertion order In-Reply-To: <1527023250.35.0.682650639539.issue33609@psf.upfronthosting.co.za> Message-ID: <1528151262.56.0.592728768989.issue33609@psf.upfronthosting.co.za> Neil Schemenauer added the comment: The wording sounds strange to me. Currently it is: > Note that updating key doesn't affects the order ... I would say: > Note that updating a key does not affect the order ... ---------- nosy: +nascheme _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 18:30:54 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 04 Jun 2018 22:30:54 +0000 Subject: [issue33609] Document that dicts preserve insertion order In-Reply-To: <1527023250.35.0.682650639539.issue33609@psf.upfronthosting.co.za> Message-ID: <1528151454.81.0.592728768989.issue33609@psf.upfronthosting.co.za> Ned Deily added the comment: Neil, that looks like a perfect opportunity to use the GitHub web interface to make that edit :) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 18:36:44 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 22:36:44 +0000 Subject: [issue18174] Make regrtest with --huntrleaks check for fd leaks In-Reply-To: <1370807273.91.0.83033499223.issue18174@psf.upfronthosting.co.za> Message-ID: <1528151804.89.0.592728768989.issue18174@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 270581905cab2747ae8f7ee945301d6a29509cc7 by Victor Stinner in branch '2.7': bpo-18174: Fix file descriptor leaks in tests (GH-7408) https://github.com/python/cpython/commit/270581905cab2747ae8f7ee945301d6a29509cc7 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 18:43:38 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 04 Jun 2018 22:43:38 +0000 Subject: [issue18174] Make regrtest with --huntrleaks check for fd leaks In-Reply-To: <1370807273.91.0.83033499223.issue18174@psf.upfronthosting.co.za> Message-ID: <1528152218.38.0.592728768989.issue18174@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7035 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 18:45:21 2018 From: report at bugs.python.org (Dmitry) Date: Mon, 04 Jun 2018 22:45:21 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception even though the string length is a multiple of 4 In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528152321.01.0.592728768989.issue33770@psf.upfronthosting.co.za> Dmitry added the comment: Ideally there needs to be an option to ignore non-fatal errors. Indeed, pretty much any string should be base64-decodeable. Take a look at Perl's MIME::Base64 - it can decode pretty much any random string (so long as it only contains valid base64 characters). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 18:46:13 2018 From: report at bugs.python.org (Dmitry) Date: Mon, 04 Jun 2018 22:46:13 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528152373.06.0.592728768989.issue33770@psf.upfronthosting.co.za> Change by Dmitry : ---------- title: base64 throws 'incorrect padding' exception even though the string length is a multiple of 4 -> base64 throws 'incorrect padding' exception when the issue is NOT with the padding _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 19:26:15 2018 From: report at bugs.python.org (Cheryl Sabella) Date: Mon, 04 Jun 2018 23:26:15 +0000 Subject: [issue33768] IDLE: click on context line should jump to line, at top of window In-Reply-To: <1528091671.87.0.592728768989.issue33768@psf.upfronthosting.co.za> Message-ID: <1528154775.95.0.592728768989.issue33768@psf.upfronthosting.co.za> Change by Cheryl Sabella : ---------- keywords: +patch pull_requests: +7036 stage: test needed -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 19:50:55 2018 From: report at bugs.python.org (Barry A. Warsaw) Date: Mon, 04 Jun 2018 23:50:55 +0000 Subject: [issue33755] Failed separate tests in test_importlib In-Reply-To: <1528035154.67.0.592728768989.issue33755@psf.upfronthosting.co.za> Message-ID: <1528156255.68.0.592728768989.issue33755@psf.upfronthosting.co.za> Change by Barry A. Warsaw : ---------- keywords: +patch pull_requests: +7037 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 20:54:10 2018 From: report at bugs.python.org (Eric Snow) Date: Tue, 05 Jun 2018 00:54:10 +0000 Subject: [issue17045] Improve C-API doc for PyTypeObject In-Reply-To: <1359245485.06.0.557532055897.issue17045@psf.upfronthosting.co.za> Message-ID: <1528160050.29.0.592728768989.issue17045@psf.upfronthosting.co.za> Change by Eric Snow : ---------- pull_requests: +7038 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 20:55:13 2018 From: report at bugs.python.org (Eric Snow) Date: Tue, 05 Jun 2018 00:55:13 +0000 Subject: [issue17045] Improve C-API doc for PyTypeObject In-Reply-To: <1359245485.06.0.557532055897.issue17045@psf.upfronthosting.co.za> Message-ID: <1528160113.31.0.592728768989.issue17045@psf.upfronthosting.co.za> Eric Snow added the comment: I found some time to at least get the patch to apply cleanly to master and to make a PR. :) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 22:11:49 2018 From: report at bugs.python.org (Mark Lawrence) Date: Tue, 05 Jun 2018 02:11:49 +0000 Subject: [issue18174] Make regrtest with --huntrleaks check for fd leaks In-Reply-To: <1370807273.91.0.83033499223.issue18174@psf.upfronthosting.co.za> Message-ID: <1528164709.02.0.592728768989.issue18174@psf.upfronthosting.co.za> Change by Mark Lawrence : ---------- nosy: -BreamoreBoy _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 4 23:59:03 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Tue, 05 Jun 2018 03:59:03 +0000 Subject: [issue28602] `tzinfo.fromutc()` fails when used for a fold-aware tzinfo implementation In-Reply-To: <1478199350.04.0.93782925147.issue28602@psf.upfronthosting.co.za> Message-ID: <1528171143.81.0.592728768989.issue28602@psf.upfronthosting.co.za> Change by Alexander Belopolsky : ---------- stage: -> needs patch versions: -Python 3.6, Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 01:02:15 2018 From: report at bugs.python.org (David Ford (FirefighterBlu3)) Date: Tue, 05 Jun 2018 05:02:15 +0000 Subject: [issue29539] [smtplib] collect response data for all recipients In-Reply-To: <1486946725.6.0.180199923995.issue29539@psf.upfronthosting.co.za> Message-ID: <1528174935.81.0.592728768989.issue29539@psf.upfronthosting.co.za> David Ford (FirefighterBlu3) added the comment: Yes, it is distinctly intended to collect the results for every recipient as in modern MTAs, there's more than just success/fail results. This is to collect data such as queue ID and the MTA's programmatic response for each individual recipient. I have several needs of knowing if the message was immediately relayed, queued for later because of a remote issue, queued because of MTA issue, graylisted or blocked because of milter reasons, or ... any of a list of failure reasons. This data can be collected if there is only one recipient per message, but that is considerably resource expensive. Without this patch, when sending to say 100 recipients, the only response returned to the caller is the very last (100th) result. A 250 then assumes that all 100 were transmitted successfully when in truth, the first 99 could have failed. Yes, I'll make a PR, do the CLA, and add some tests. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 01:09:48 2018 From: report at bugs.python.org (Julien Palard) Date: Tue, 05 Jun 2018 05:09:48 +0000 Subject: [issue32523] inconsistent spacing in changelog.html In-Reply-To: <1515514882.86.0.467229070634.issue32523@psf.upfronthosting.co.za> Message-ID: <1528175388.28.0.592728768989.issue32523@psf.upfronthosting.co.za> Julien Palard added the comment: > So, if news items followed that rule, would the css change still be necessary? The CSS change would not be necessary, so yes the issue is "Don't mix paragraphs in changelogs". Maybe we can add an option to blurb merge to only keep the first paragraph, to fix every list in a single shot, then better document the "a single paragraph per news entry"? Would it be OK to edit old Misc/NEWS.d/ to fix it in the past? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 02:21:02 2018 From: report at bugs.python.org (INADA Naoki) Date: Tue, 05 Jun 2018 06:21:02 +0000 Subject: [issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set In-Reply-To: <1493196813.64.0.567701209744.issue30167@psf.upfronthosting.co.za> Message-ID: <1528179662.29.0.592728768989.issue30167@psf.upfronthosting.co.za> INADA Naoki added the comment: https://github.com/python/cpython/blob/f822549653d8d09bffff5b7dcddfdf12679a787c/Python/pythonrun.c#L391-L399 __file__ and __cached__ are added here. And, https://github.com/python/cpython/blob/f822549653d8d09bffff5b7dcddfdf12679a787c/Python/pythonrun.c#L441-L442 Only __file__ is removed here. I feel __cached__ should be removed too. On the other hand, if None is valid value for __cached__, site.abs_paths() should ignore it. https://www.python.org/dev/peps/pep-3147/#file > It is recommended that when nothing sensible can be calculated, implementations should set the __cached__ attribute to None. It seems it's valid, and recommended for some cases. So PR-6731 looks OK. ---------- nosy: +inada.naoki _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 02:54:27 2018 From: report at bugs.python.org (INADA Naoki) Date: Tue, 05 Jun 2018 06:54:27 +0000 Subject: [issue31849] Python/pyhash.c warning: comparison of integers of different signs In-Reply-To: <1508774476.87.0.213398074469.issue31849@psf.upfronthosting.co.za> Message-ID: <1528181667.71.0.592728768989.issue31849@psf.upfronthosting.co.za> Change by INADA Naoki : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 02:55:04 2018 From: report at bugs.python.org (INADA Naoki) Date: Tue, 05 Jun 2018 06:55:04 +0000 Subject: [issue27902] pstats.Stats: strip_dirs() method cannot handle file paths from different OS In-Reply-To: <1472590175.77.0.992836532809.issue27902@psf.upfronthosting.co.za> Message-ID: <1528181704.72.0.592728768989.issue27902@psf.upfronthosting.co.za> Change by INADA Naoki : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 03:25:04 2018 From: report at bugs.python.org (INADA Naoki) Date: Tue, 05 Jun 2018 07:25:04 +0000 Subject: [issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set In-Reply-To: <1493196813.64.0.567701209744.issue30167@psf.upfronthosting.co.za> Message-ID: <1528183504.14.0.592728768989.issue30167@psf.upfronthosting.co.za> Change by INADA Naoki : ---------- pull_requests: +7039 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 03:49:14 2018 From: report at bugs.python.org (Svyatoslav) Date: Tue, 05 Jun 2018 07:49:14 +0000 Subject: [issue33771] Module: timeit. According to documentation default_repeat should have the value 3. Has 5. Message-ID: <1528184954.23.0.592728768989.issue33771@psf.upfronthosting.co.za> Change by Svyatoslav : ---------- components: Library (Lib) nosy: svyatoslav priority: normal severity: normal status: open title: Module: timeit. According to documentation default_repeat should have the value 3. Has 5. type: behavior versions: Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 04:20:37 2018 From: report at bugs.python.org (INADA Naoki) Date: Tue, 05 Jun 2018 08:20:37 +0000 Subject: [issue33578] cjkcodecs missing getstate and setstate implementations In-Reply-To: <1526713206.06.0.682650639539.issue33578@psf.upfronthosting.co.za> Message-ID: <1528186837.02.0.592728768989.issue33578@psf.upfronthosting.co.za> INADA Naoki added the comment: ISO-2022-* is "stateful" encoding. It uses escape sequence to change state. So keeping only `pending` is not enough. >>> enc.encode("abc???") b'abc\x1b$B$"$$$&' >>> enc.getstate() 0 >>> enc.encode("abc") b'\x1b(Babc' >>> enc.encode("abc???") b'abc\x1b$B$"$$$&' >>> enc.getstate() 0 >>> enc.setstate(0) >>> enc.encode("abc") b'abc' I don't know much about other encodings. ---------- nosy: +inada.naoki _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 04:33:47 2018 From: report at bugs.python.org (Svyatoslav) Date: Tue, 05 Jun 2018 08:33:47 +0000 Subject: [issue33771] Module: timeit. According to documentation default_repeat should have the value 3. Has 5. Message-ID: <1528187627.24.0.592728768989.issue33771@psf.upfronthosting.co.za> Change by Svyatoslav : ---------- assignee: -> docs at python components: +Documentation nosy: +docs at python _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 04:36:40 2018 From: report at bugs.python.org (Tal Einat) Date: Tue, 05 Jun 2018 08:36:40 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528187800.04.0.592728768989.issue33770@psf.upfronthosting.co.za> Change by Tal Einat : ---------- keywords: +patch pull_requests: +7040 stage: needs patch -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 04:41:53 2018 From: report at bugs.python.org (Tal Einat) Date: Tue, 05 Jun 2018 08:41:53 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528188113.0.0.592728768989.issue33770@psf.upfronthosting.co.za> Tal Einat added the comment: A base64-encoded string's length can only have a remainder of 0, 2 or 3, but never 1. This is why the padding you get when encoding can only be '=' or '==' but never '==='. ---------- nosy: +taleinat _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 04:43:31 2018 From: report at bugs.python.org (Tal Einat) Date: Tue, 05 Jun 2018 08:43:31 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528188211.01.0.592728768989.issue33770@psf.upfronthosting.co.za> Tal Einat added the comment: Oops: when I wrote "length can only have a remainder of ..." I meant remainder upon division by 4. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 04:46:10 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 05 Jun 2018 08:46:10 +0000 Subject: [issue33771] Module: timeit. According to documentation default_repeat should have the value 3. Has 5. Message-ID: <1528188370.13.0.592728768989.issue33771@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- nosy: +vstinner _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 04:55:30 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 05 Jun 2018 08:55:30 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528188930.57.0.592728768989.issue33770@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: I'm not sure that "Invalid length" is better than "Invalid padding". Doesn't it mean the same? ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 05:08:46 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 05 Jun 2018 09:08:46 +0000 Subject: [issue33753] Leaked file in test_nextfile_oserror_deleting_backup in test_fileinput In-Reply-To: <1528030391.57.0.592728768989.issue33753@psf.upfronthosting.co.za> Message-ID: <1528189726.4.0.592728768989.issue33753@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: New changeset 5f48e2644dcfb47f0bbc0fcdc2b103a19bdec288 by Serhiy Storchaka in branch 'master': bpo-33753: Refactor creating temporary files in test_fileinput. (GH-7377) https://github.com/python/cpython/commit/5f48e2644dcfb47f0bbc0fcdc2b103a19bdec288 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 05:08:59 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 05 Jun 2018 09:08:59 +0000 Subject: [issue33753] Leaked file in test_nextfile_oserror_deleting_backup in test_fileinput In-Reply-To: <1528030391.57.0.592728768989.issue33753@psf.upfronthosting.co.za> Message-ID: <1528189739.95.0.592728768989.issue33753@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7041 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 05:27:42 2018 From: report at bugs.python.org (David Carlier) Date: Tue, 05 Jun 2018 09:27:42 +0000 Subject: [issue33772] Fix few dead code paths Message-ID: <1528190862.37.0.592728768989.issue33772@psf.upfronthosting.co.za> Change by David Carlier : ---------- components: Interpreter Core nosy: David Carlier priority: normal pull_requests: 7042 severity: normal status: open title: Fix few dead code paths versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 05:28:32 2018 From: report at bugs.python.org (David Carlier) Date: Tue, 05 Jun 2018 09:28:32 +0000 Subject: [issue33164] Blake 2 module update Message-ID: <1528190912.78.0.592728768989.issue33164@psf.upfronthosting.co.za> Change by David Carlier : ---------- keywords: +patch pull_requests: +7043 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 06:13:39 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 05 Jun 2018 10:13:39 +0000 Subject: [issue33753] Leaked file in test_nextfile_oserror_deleting_backup in test_fileinput In-Reply-To: <1528030391.57.0.592728768989.issue33753@psf.upfronthosting.co.za> Message-ID: <1528193619.28.0.592728768989.issue33753@psf.upfronthosting.co.za> miss-islington added the comment: New changeset fff25cc369da83cfeab1d6a15f42748b17a30aa4 by Miss Islington (bot) in branch '3.7': bpo-33753: Refactor creating temporary files in test_fileinput. (GH-7377) https://github.com/python/cpython/commit/fff25cc369da83cfeab1d6a15f42748b17a30aa4 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 06:26:19 2018 From: report at bugs.python.org (Matej Cepl) Date: Tue, 05 Jun 2018 10:26:19 +0000 Subject: [issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO In-Reply-To: <1494519392.85.0.668925519236.issue30345@psf.upfronthosting.co.za> Message-ID: <1528194379.61.0.592728768989.issue30345@psf.upfronthosting.co.za> Change by Matej Cepl : ---------- nosy: +mcepl _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 06:36:35 2018 From: report at bugs.python.org (STINNER Victor) Date: Tue, 05 Jun 2018 10:36:35 +0000 Subject: [issue18174] Make regrtest with --huntrleaks check for fd leaks In-Reply-To: <1370807273.91.0.83033499223.issue18174@psf.upfronthosting.co.za> Message-ID: <1528194995.55.0.592728768989.issue18174@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 64856ad8b7279718ff10a9fb32003c2221af7228 by Victor Stinner in branch '2.7': bpo-18174: regrtest -R 3:3 now also detects FD leak (#7409) https://github.com/python/cpython/commit/64856ad8b7279718ff10a9fb32003c2221af7228 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 06:43:09 2018 From: report at bugs.python.org (Tal Einat) Date: Tue, 05 Jun 2018 10:43:09 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528195389.46.0.592728768989.issue33770@psf.upfronthosting.co.za> Tal Einat added the comment: They're not the same. When the encoded string's length modulu 4 is 2 or 3, there just need to be (at least) 2 or 1 padding characters ('=') for decoding to be successful, due to our decoder being rather strict. Less strict decoders may ignore the missing padding and successfully decode the encoded string. When the remainder is 0, no padding is needed and everything is fine. When the remainder is 1, the encoded string is simply invalid. It is not a padding issue. There is no valid way to decode the encoded string. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 06:43:13 2018 From: report at bugs.python.org (STINNER Victor) Date: Tue, 05 Jun 2018 10:43:13 +0000 Subject: [issue28240] Enhance the timeit module: display average +- std dev instead of minimum In-Reply-To: <1474466930.94.0.352912034658.issue28240@psf.upfronthosting.co.za> Message-ID: <1528195393.01.0.592728768989.issue28240@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7044 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 07:19:28 2018 From: report at bugs.python.org (STINNER Victor) Date: Tue, 05 Jun 2018 11:19:28 +0000 Subject: [issue18174] Make regrtest with --huntrleaks check for fd leaks In-Reply-To: <1370807273.91.0.83033499223.issue18174@psf.upfronthosting.co.za> Message-ID: <1528197568.5.0.592728768989.issue18174@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7045 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 07:29:39 2018 From: report at bugs.python.org (STINNER Victor) Date: Tue, 05 Jun 2018 11:29:39 +0000 Subject: [issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/ Message-ID: <1528198179.8.0.592728768989.issue33773@psf.upfronthosting.co.za> New submission from STINNER Victor : test.support.fd_count() has two implementation: list /proc/self/fd/ on Linux and FreeBSD, or check all file descriptors from 0 and MAXFD. The problem is that the two implementation don't give the same result... List /proc/self/fd/ (used by default on Linux): vstinner at apu$ ./python -c 'from test.support import fd_count; print(fd_count())' 4 Check all FD (I modified fd_count() to force using this implementation): vstinner at apu$ ./python -c 'from test.support import fd_count; print(fd_count())' 3 On Linux and FreeBSD, listdir() opens internally a file descriptor to list the content of the /proc/self/fd/ directory. So the function should substract one to the result. Attached PR fixes the issue. ---------- components: Tests messages: 318734 nosy: pitrou, vstinner priority: normal severity: normal status: open versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 07:30:51 2018 From: report at bugs.python.org (STINNER Victor) Date: Tue, 05 Jun 2018 11:30:51 +0000 Subject: [issue18174] Make regrtest with --huntrleaks check for fd leaks In-Reply-To: <1370807273.91.0.83033499223.issue18174@psf.upfronthosting.co.za> Message-ID: <1528198251.4.0.592728768989.issue18174@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset bc3df70b266304f78ebe5eabead71cabd4738d12 by Victor Stinner in branch '2.7': bpo-18174: Fix fd_count() on FreeBSD (GH-7420) https://github.com/python/cpython/commit/bc3df70b266304f78ebe5eabead71cabd4738d12 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 07:31:17 2018 From: report at bugs.python.org (STINNER Victor) Date: Tue, 05 Jun 2018 11:31:17 +0000 Subject: [issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/ In-Reply-To: <1528198179.8.0.592728768989.issue33773@psf.upfronthosting.co.za> Message-ID: <1528198277.28.0.592728768989.issue33773@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- keywords: +patch pull_requests: +7046 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 07:32:01 2018 From: report at bugs.python.org (STINNER Victor) Date: Tue, 05 Jun 2018 11:32:01 +0000 Subject: [issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/ In-Reply-To: <1528198179.8.0.592728768989.issue33773@psf.upfronthosting.co.za> Message-ID: <1528198321.47.0.592728768989.issue33773@psf.upfronthosting.co.za> STINNER Victor added the comment: fd_count() has been added by bpo-18174. I just backported it to Python 2.7 to check for leak of file descriptors in tests. I found the bug when I fixed a bug on Python 2.7 on FreeBSD. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 07:40:56 2018 From: report at bugs.python.org (INADA Naoki) Date: Tue, 05 Jun 2018 11:40:56 +0000 Subject: [issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++" In-Reply-To: <1239729771.84.0.97828652099.issue5755@psf.upfronthosting.co.za> Message-ID: <1528198856.51.0.592728768989.issue5755@psf.upfronthosting.co.za> INADA Naoki added the comment: New changeset e33648484775fa533fc8f1e5cc45f60061d29d54 by INADA Naoki in branch 'master': bpo-5755: Move -Wstrict-prototypes to CFLAGS_NODIST (GH-7395) https://github.com/python/cpython/commit/e33648484775fa533fc8f1e5cc45f60061d29d54 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 07:41:44 2018 From: report at bugs.python.org (Berker Peksag) Date: Tue, 05 Jun 2018 11:41:44 +0000 Subject: [issue32392] subprocess.run documentation does not have **kwargs In-Reply-To: <1513802831.78.0.213398074469.issue32392@psf.upfronthosting.co.za> Message-ID: <1528198904.54.0.592728768989.issue32392@psf.upfronthosting.co.za> Berker Peksag added the comment: New changeset af1ec97a6d1dde68b2dc0ee9b78965eb219061a8 by Berker Peksag (Tobias Kunze) in branch 'master': bpo-32392: Document env keyword argument of subprocess.run() (GH-7289) https://github.com/python/cpython/commit/af1ec97a6d1dde68b2dc0ee9b78965eb219061a8 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 07:42:12 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 05 Jun 2018 11:42:12 +0000 Subject: [issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++" In-Reply-To: <1239729771.84.0.97828652099.issue5755@psf.upfronthosting.co.za> Message-ID: <1528198932.49.0.592728768989.issue5755@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7047 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 07:43:02 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 05 Jun 2018 11:43:02 +0000 Subject: [issue32392] subprocess.run documentation does not have **kwargs In-Reply-To: <1513802831.78.0.213398074469.issue32392@psf.upfronthosting.co.za> Message-ID: <1528198982.45.0.592728768989.issue32392@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7048 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 07:52:39 2018 From: report at bugs.python.org (Vinay Sajip) Date: Tue, 05 Jun 2018 11:52:39 +0000 Subject: [issue33165] Add stacklevel parameter to logging APIs In-Reply-To: <1522227921.35.0.467229070634.issue33165@psf.upfronthosting.co.za> Message-ID: <1528199559.99.0.592728768989.issue33165@psf.upfronthosting.co.za> Change by Vinay Sajip : ---------- keywords: +patch pull_requests: +7049 stage: needs patch -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 07:59:09 2018 From: report at bugs.python.org (Tal Einat) Date: Tue, 05 Jun 2018 11:59:09 +0000 Subject: [issue33748] test_discovery_failed_discovery in test_unittest modifies sys.path In-Reply-To: <1528027393.44.0.592728768989.issue33748@psf.upfronthosting.co.za> Message-ID: <1528199949.4.0.592728768989.issue33748@psf.upfronthosting.co.za> Tal Einat added the comment: It seems that adding a directory to sys.path is the intended behavior of `loader.discover()`. Should the test be restoring sys.path back to it original value when it's done? Also, shouldn't this test (and some others) be restoring sys.modules when they're done? ---------- nosy: +taleinat _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 08:03:04 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 05 Jun 2018 12:03:04 +0000 Subject: [issue32392] subprocess.run documentation does not have **kwargs In-Reply-To: <1513802831.78.0.213398074469.issue32392@psf.upfronthosting.co.za> Message-ID: <1528200184.81.0.592728768989.issue32392@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 23b7ee205270320f836e93e411b28ac995cbabf1 by Miss Islington (bot) in branch '3.7': bpo-32392: Document env keyword argument of subprocess.run() (GH-7289) https://github.com/python/cpython/commit/23b7ee205270320f836e93e411b28ac995cbabf1 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 08:13:48 2018 From: report at bugs.python.org (Cheryl Sabella) Date: Tue, 05 Jun 2018 12:13:48 +0000 Subject: [issue17045] Improve C-API doc for PyTypeObject In-Reply-To: <1359245485.06.0.557532055897.issue17045@psf.upfronthosting.co.za> Message-ID: <1528200828.08.0.592728768989.issue17045@psf.upfronthosting.co.za> Cheryl Sabella added the comment: This isn't directly related to this change, but I wanted to point out #23869 since you seem to understand the topic enough to respond to that ticket. Thanks! ---------- nosy: +cheryl.sabella _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 08:27:39 2018 From: report at bugs.python.org (Paul Ganssle) Date: Tue, 05 Jun 2018 12:27:39 +0000 Subject: [issue28602] `tzinfo.fromutc()` fails when used for a fold-aware tzinfo implementation In-Reply-To: <1478199350.04.0.93782925147.issue28602@psf.upfronthosting.co.za> Message-ID: <1528201659.47.0.592728768989.issue28602@psf.upfronthosting.co.za> Change by Paul Ganssle : ---------- keywords: +patch pull_requests: +7050 stage: needs patch -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 08:32:32 2018 From: report at bugs.python.org (Christopher Thorne) Date: Tue, 05 Jun 2018 12:32:32 +0000 Subject: [issue33578] cjkcodecs missing getstate and setstate implementations In-Reply-To: <1526713206.06.0.682650639539.issue33578@psf.upfronthosting.co.za> Message-ID: <1528201952.42.0.592728768989.issue33578@psf.upfronthosting.co.za> Christopher Thorne added the comment: Ah, good find. I suppose that means `MultibyteCodec_State` and `pending` are both needed to fully capture state, as is done in `decoder.getstate`/`setstate` by returning a tuple of both. Unfortunately `encoder.getstate` is defined to return an integer, and because `MultibyteCodec_State` can occupy 8 bytes, and `pending` can occupy 2 bytes (MAXENCPENDING), we get a total of 10 bytes which I think exceeds what a PyLong can represent. Returning either `pending` or `MultibyteCodec_State` seems infeasible because `setstate` will not know how to process it, and both may be needed together. Some alternatives could be: 1. If we are restricted to returning an integer, perhaps this integer could be an index that references a state in a pool of encoder states stored internally (effectively a pointer). Managing this state pool seems quite complex. 2. encoder.getstate could be redefined to return a tuple, but obviously this is a breaking change. Backwards compatibility could be somewhat preserved by allowing setstate to accept either an integer or tuple. 3. Remove `PyObject *pending` from `MultibyteStatefulEncoderContext` and change encoders to only use `MultibyteCodec_State`. Not sure how feasible this is. I think approach 2 would be simplest and matches the decoder interface. Does anyone have any opinions or further alternatives? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 08:32:45 2018 From: report at bugs.python.org (Paul Ganssle) Date: Tue, 05 Jun 2018 12:32:45 +0000 Subject: [issue28602] `tzinfo.fromutc()` fails when used for a fold-aware tzinfo implementation In-Reply-To: <1478199350.04.0.93782925147.issue28602@psf.upfronthosting.co.za> Message-ID: <1528201965.32.0.592728768989.issue28602@psf.upfronthosting.co.za> Paul Ganssle added the comment: So I created a little patch for this, and when I was working on it I realized that it's actually possible to implement full `fold` support in a generic way in `fromutc` under the assumption that `utcoffset - dst` holds at all points (which is the fundamental assumption of the builtin `fromutc` function). It adds a bit of overhead, but I think any current fold-aware operations need to be implemented in pure Python anyway (and involve even more overhead), so I think it would be a net gain. The big downside I see here is that it cannot take advantage of any sort of "is_ambiguous" function and has to rely on the method of "change the fold and see if the answer is different" to determine ambiguity. I think this is a small cost to pay for a generic implementation, though. I'm pretty busy this week and next week will be hectic too, but towards the end of the month I can probably come up with a test suite for this and look at some actual performance numbers. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 08:37:22 2018 From: report at bugs.python.org (Cheryl Sabella) Date: Tue, 05 Jun 2018 12:37:22 +0000 Subject: [issue33771] Module: timeit. According to documentation default_repeat should have the value 3. Has 5. Message-ID: <1528202242.78.0.592728768989.issue33771@psf.upfronthosting.co.za> New submission from Cheryl Sabella : Looks like this was changed in #28240. @svyatoslav, would you like to make a github pull request for the change? ---------- keywords: +easy nosy: +cheryl.sabella stage: -> needs patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 08:43:06 2018 From: report at bugs.python.org (STINNER Victor) Date: Tue, 05 Jun 2018 12:43:06 +0000 Subject: [issue33771] Module: timeit. According to documentation default_repeat should have the value 3. Has 5. In-Reply-To: <1528202242.78.0.592728768989.issue33771@psf.upfronthosting.co.za> Message-ID: <1528202586.92.0.592728768989.issue33771@psf.upfronthosting.co.za> STINNER Victor added the comment: I created https://github.com/python/cpython/pull/7419 to update the documentation. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 08:55:27 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 05 Jun 2018 12:55:27 +0000 Subject: [issue33748] test_discovery_failed_discovery in test_unittest modifies sys.path In-Reply-To: <1528027393.44.0.592728768989.issue33748@psf.upfronthosting.co.za> Message-ID: <1528203327.25.0.592728768989.issue33748@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Yes, and there are helpers in test.support and test.test_importlib.util. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 08:56:01 2018 From: report at bugs.python.org (Cheryl Sabella) Date: Tue, 05 Jun 2018 12:56:01 +0000 Subject: [issue33771] Module: timeit. According to documentation default_repeat should have the value 3. Has 5. In-Reply-To: <1528202242.78.0.592728768989.issue33771@psf.upfronthosting.co.za> Message-ID: <1528203361.75.0.592728768989.issue33771@psf.upfronthosting.co.za> Cheryl Sabella added the comment: Thanks, Victor. Sorry about the noise. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 08:59:47 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 05 Jun 2018 12:59:47 +0000 Subject: [issue33767] Improper use of SystemError in the mmap module In-Reply-To: <1528087218.45.0.592728768989.issue33767@psf.upfronthosting.co.za> Message-ID: <1528203587.48.0.592728768989.issue33767@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: New changeset e9e397605789b2a67b67558fbbe756b7b88934f5 by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381) https://github.com/python/cpython/commit/e9e397605789b2a67b67558fbbe756b7b88934f5 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 09:00:00 2018 From: report at bugs.python.org (Yury Selivanov) Date: Tue, 05 Jun 2018 13:00:00 +0000 Subject: [issue33769] Cleanup start_tls() implementation In-Reply-To: <1528134355.5.0.592728768989.issue33769@psf.upfronthosting.co.za> Message-ID: <1528203600.58.0.592728768989.issue33769@psf.upfronthosting.co.za> Yury Selivanov added the comment: New changeset 415bc46a78e785f357c8960ae70f18a6b6cccbb6 by Yury Selivanov in branch 'master': bpo-33769: start_tls: Fix error message; cancel callbacks on error (GH-7403) https://github.com/python/cpython/commit/415bc46a78e785f357c8960ae70f18a6b6cccbb6 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 09:00:53 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 05 Jun 2018 13:00:53 +0000 Subject: [issue33767] Improper use of SystemError in the mmap module In-Reply-To: <1528087218.45.0.592728768989.issue33767@psf.upfronthosting.co.za> Message-ID: <1528203653.23.0.592728768989.issue33767@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7052 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 09:02:51 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 05 Jun 2018 13:02:51 +0000 Subject: [issue33767] Improper use of SystemError in the mmap module In-Reply-To: <1528087218.45.0.592728768989.issue33767@psf.upfronthosting.co.za> Message-ID: <1528203771.69.0.592728768989.issue33767@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7053 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 09:03:02 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 05 Jun 2018 13:03:02 +0000 Subject: [issue33752] Leaked file in test_anydbm_creation_n_file_exists_with_invalid_contents in test_dbm In-Reply-To: <1528030226.3.0.592728768989.issue33752@psf.upfronthosting.co.za> Message-ID: <1528203782.61.0.592728768989.issue33752@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: New changeset 6592d7fe11477f8f974d2d4a85c3382a1ad05217 by Serhiy Storchaka in branch 'master': bpo-33752: Fix a file leak in test_dbm. (GH-7376) https://github.com/python/cpython/commit/6592d7fe11477f8f974d2d4a85c3382a1ad05217 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 09:03:52 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 05 Jun 2018 13:03:52 +0000 Subject: [issue33769] Cleanup start_tls() implementation In-Reply-To: <1528134355.5.0.592728768989.issue33769@psf.upfronthosting.co.za> Message-ID: <1528203832.22.0.592728768989.issue33769@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7054 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 09:04:51 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 05 Jun 2018 13:04:51 +0000 Subject: [issue33752] Leaked file in test_anydbm_creation_n_file_exists_with_invalid_contents in test_dbm In-Reply-To: <1528030226.3.0.592728768989.issue33752@psf.upfronthosting.co.za> Message-ID: <1528203891.17.0.592728768989.issue33752@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7055 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 09:05:51 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 05 Jun 2018 13:05:51 +0000 Subject: [issue33752] Leaked file in test_anydbm_creation_n_file_exists_with_invalid_contents in test_dbm In-Reply-To: <1528030226.3.0.592728768989.issue33752@psf.upfronthosting.co.za> Message-ID: <1528203951.26.0.592728768989.issue33752@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7056 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 09:07:28 2018 From: report at bugs.python.org (Dmitry) Date: Tue, 05 Jun 2018 13:07:28 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528204048.27.0.592728768989.issue33770@psf.upfronthosting.co.za> Dmitry added the comment: I think something like ?invalid length? message does make more sense in this case than the misleading ?incorrect padding?. It would also be great if there was a way to force it to try its best at decoding the string. :) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 09:13:04 2018 From: report at bugs.python.org (=?utf-8?q?Miro_Hron=C4=8Dok?=) Date: Tue, 05 Jun 2018 13:13:04 +0000 Subject: [issue29298] argparse fails with required subparsers, un-named dest, and empty argv In-Reply-To: <1484664769.91.0.625725054847.issue29298@psf.upfronthosting.co.za> Message-ID: <1528204384.84.0.592728768989.issue29298@psf.upfronthosting.co.za> Change by Miro Hron?ok : ---------- nosy: +hroncok _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 09:20:28 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 05 Jun 2018 13:20:28 +0000 Subject: [issue33753] Leaked file in test_nextfile_oserror_deleting_backup in test_fileinput In-Reply-To: <1528030391.57.0.592728768989.issue33753@psf.upfronthosting.co.za> Message-ID: <1528204828.96.0.592728768989.issue33753@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- pull_requests: +7057 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 09:21:07 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 05 Jun 2018 13:21:07 +0000 Subject: [issue33767] Improper use of SystemError in the mmap module In-Reply-To: <1528087218.45.0.592728768989.issue33767@psf.upfronthosting.co.za> Message-ID: <1528204867.38.0.592728768989.issue33767@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 631fe1fa423c42197d533103dcf349ca19baed0c by Miss Islington (bot) in branch '3.7': bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381) https://github.com/python/cpython/commit/631fe1fa423c42197d533103dcf349ca19baed0c ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 09:24:54 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 05 Jun 2018 13:24:54 +0000 Subject: [issue33767] Improper use of SystemError in the mmap module In-Reply-To: <1528087218.45.0.592728768989.issue33767@psf.upfronthosting.co.za> Message-ID: <1528205094.04.0.592728768989.issue33767@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- pull_requests: +7058 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 09:25:24 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 05 Jun 2018 13:25:24 +0000 Subject: [issue33767] Improper use of SystemError in the mmap module In-Reply-To: <1528087218.45.0.592728768989.issue33767@psf.upfronthosting.co.za> Message-ID: <1528205124.5.0.592728768989.issue33767@psf.upfronthosting.co.za> miss-islington added the comment: New changeset ae55d29fe04ee1aeb1bcb2e9b84e5bc9d4ecb070 by Miss Islington (bot) in branch '3.6': bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381) https://github.com/python/cpython/commit/ae55d29fe04ee1aeb1bcb2e9b84e5bc9d4ecb070 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 09:30:49 2018 From: report at bugs.python.org (R. David Murray) Date: Tue, 05 Jun 2018 13:30:49 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528205449.59.0.592728768989.issue33770@psf.upfronthosting.co.za> R. David Murray added the comment: I agree, but that would be a separate enhancement PR. The email library would use that capability if it existed...currently it adds padding in a loop trying to do the decode if it gets the invalid padding message. Which of course is going to fail for this case. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 09:47:45 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 05 Jun 2018 13:47:45 +0000 Subject: [issue33752] Leaked file in test_anydbm_creation_n_file_exists_with_invalid_contents in test_dbm In-Reply-To: <1528030226.3.0.592728768989.issue33752@psf.upfronthosting.co.za> Message-ID: <1528206465.09.0.592728768989.issue33752@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 194a5c07228342106c98dcf85c8a5f4cd2c8b04e by Miss Islington (bot) in branch '3.6': bpo-33752: Fix a file leak in test_dbm. (GH-7376) https://github.com/python/cpython/commit/194a5c07228342106c98dcf85c8a5f4cd2c8b04e ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 09:50:59 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 05 Jun 2018 13:50:59 +0000 Subject: [issue33752] Leaked file in test_anydbm_creation_n_file_exists_with_invalid_contents in test_dbm In-Reply-To: <1528030226.3.0.592728768989.issue33752@psf.upfronthosting.co.za> Message-ID: <1528206659.39.0.592728768989.issue33752@psf.upfronthosting.co.za> miss-islington added the comment: New changeset ffd72acc508bbc994812cefbfb9532d3be2ab737 by Miss Islington (bot) in branch '3.7': bpo-33752: Fix a file leak in test_dbm. (GH-7376) https://github.com/python/cpython/commit/ffd72acc508bbc994812cefbfb9532d3be2ab737 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 09:58:34 2018 From: report at bugs.python.org (STINNER Victor) Date: Tue, 05 Jun 2018 13:58:34 +0000 Subject: [issue33771] Module: timeit. According to documentation default_repeat should have the value 3. Has 5. In-Reply-To: <1528202242.78.0.592728768989.issue33771@psf.upfronthosting.co.za> Message-ID: <1528207114.97.0.592728768989.issue33771@psf.upfronthosting.co.za> STINNER Victor added the comment: > Thanks, Victor. Sorry about the noise. No worry, it's my fault: I forgot to mention bpo-33771 in my PR. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 10:14:47 2018 From: report at bugs.python.org (Nick Coghlan) Date: Tue, 05 Jun 2018 14:14:47 +0000 Subject: [issue31215] Add version changed notes for OpenSSL 1.1.0 compatibility In-Reply-To: <1502860659.7.0.930691554308.issue31215@psf.upfronthosting.co.za> Message-ID: <1528208087.22.0.592728768989.issue31215@psf.upfronthosting.co.za> Nick Coghlan added the comment: New changeset 9ef1b0690b90c526798b6b3125b0fa7ae98319a2 by Nick Coghlan (Mayank Singhal) in branch 'master': bpo-31215: Add version changed notes for OpenSSL 1.1.0 compatibility (GH-7346) https://github.com/python/cpython/commit/9ef1b0690b90c526798b6b3125b0fa7ae98319a2 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 10:18:23 2018 From: report at bugs.python.org (Yury Selivanov) Date: Tue, 05 Jun 2018 14:18:23 +0000 Subject: [issue33769] Cleanup start_tls() implementation In-Reply-To: <1528134355.5.0.592728768989.issue33769@psf.upfronthosting.co.za> Message-ID: <1528208303.14.0.592728768989.issue33769@psf.upfronthosting.co.za> Yury Selivanov added the comment: New changeset 79c7e57c46a9e5ae2b99a821e152f334b775df2d by Yury Selivanov (Miss Islington (bot)) in branch '3.7': bpo-33769: start_tls: Fix error message; cancel callbacks on error (GH-7403) (GH-7428) https://github.com/python/cpython/commit/79c7e57c46a9e5ae2b99a821e152f334b775df2d ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 10:18:43 2018 From: report at bugs.python.org (Yury Selivanov) Date: Tue, 05 Jun 2018 14:18:43 +0000 Subject: [issue33769] Cleanup start_tls() implementation In-Reply-To: <1528134355.5.0.592728768989.issue33769@psf.upfronthosting.co.za> Message-ID: <1528208323.23.0.592728768989.issue33769@psf.upfronthosting.co.za> Change by Yury Selivanov : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 10:41:54 2018 From: report at bugs.python.org (Nick Coghlan) Date: Tue, 05 Jun 2018 14:41:54 +0000 Subject: [issue33745] 3.7.0b5 changes the line number of empty functions with docstrings In-Reply-To: <1528024309.59.0.592728768989.issue33745@psf.upfronthosting.co.za> Message-ID: <1528209714.94.0.592728768989.issue33745@psf.upfronthosting.co.za> Nick Coghlan added the comment: While I wouldn't describe this as completely intentional (as it's an artifact of the change-and-revert dance with 3.7 previously removing docstring nodes from the AST entirely), I also wouldn't want to change it again at this late stage of the release process. Instead I'd suggest simply noting it in the porting section of What's New. Something like "Due to a change in the way docstrings are handled by the compiler, the implicit ``return None`` in a function body consisting solely of a docstring is now marked as occurring on the same line as the docstring, not on the function's header line". ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 11:00:43 2018 From: report at bugs.python.org (Tal Einat) Date: Tue, 05 Jun 2018 15:00:43 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528210843.86.0.592728768989.issue33770@psf.upfronthosting.co.za> Tal Einat added the comment: Would an exception message as following be acceptable? "Invalid base64-encoded string: length cannot be 1 more than a multiple of 4" ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 11:14:40 2018 From: report at bugs.python.org (Tal Einat) Date: Tue, 05 Jun 2018 15:14:40 +0000 Subject: [issue33748] test_discovery_failed_discovery in test_unittest modifies sys.path In-Reply-To: <1528027393.44.0.592728768989.issue33748@psf.upfronthosting.co.za> Message-ID: <1528211680.21.0.592728768989.issue33748@psf.upfronthosting.co.za> Change by Tal Einat : ---------- keywords: +patch pull_requests: +7059 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 11:36:11 2018 From: report at bugs.python.org (Tal Einat) Date: Tue, 05 Jun 2018 15:36:11 +0000 Subject: [issue27397] email.message.Message.get_payload(decode=True) raises AssertionError that "should never happen" In-Reply-To: <1467003168.77.0.181135273122.issue27397@psf.upfronthosting.co.za> Message-ID: <1528212971.92.0.592728768989.issue27397@psf.upfronthosting.co.za> Tal Einat added the comment: See #33770, which will make recognizing and handling this case straightforward. ---------- nosy: +taleinat _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 12:24:20 2018 From: report at bugs.python.org (Vinay Sajip) Date: Tue, 05 Jun 2018 16:24:20 +0000 Subject: [issue33165] Add stacklevel parameter to logging APIs In-Reply-To: <1522227921.35.0.467229070634.issue33165@psf.upfronthosting.co.za> Message-ID: <1528215860.8.0.592728768989.issue33165@psf.upfronthosting.co.za> Vinay Sajip added the comment: New changeset dde9fdbe453925279ac3d2a6a72102f6f9ef247c by Vinay Sajip in branch 'master': bpo-33165: Added stacklevel parameter to logging APIs. (GH-7424) https://github.com/python/cpython/commit/dde9fdbe453925279ac3d2a6a72102f6f9ef247c ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 12:26:27 2018 From: report at bugs.python.org (Vinay Sajip) Date: Tue, 05 Jun 2018 16:26:27 +0000 Subject: [issue33165] Add stacklevel parameter to logging APIs In-Reply-To: <1522227921.35.0.467229070634.issue33165@psf.upfronthosting.co.za> Message-ID: <1528215987.65.0.592728768989.issue33165@psf.upfronthosting.co.za> Change by Vinay Sajip : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 12:37:47 2018 From: report at bugs.python.org (Vinay Sajip) Date: Tue, 05 Jun 2018 16:37:47 +0000 Subject: [issue33057] logging.Manager.logRecordFactory is never used In-Reply-To: <1520871485.85.0.467229070634.issue33057@psf.upfronthosting.co.za> Message-ID: <1528216667.96.0.592728768989.issue33057@psf.upfronthosting.co.za> Vinay Sajip added the comment: I'm closing this, please reopen if you have more information which might change my view. ---------- resolution: -> not a bug stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 12:40:48 2018 From: report at bugs.python.org (Barry A. Warsaw) Date: Tue, 05 Jun 2018 16:40:48 +0000 Subject: [issue33755] Failed separate tests in test_importlib In-Reply-To: <1528035154.67.0.592728768989.issue33755@psf.upfronthosting.co.za> Message-ID: <1528216848.95.0.592728768989.issue33755@psf.upfronthosting.co.za> Barry A. Warsaw added the comment: New changeset ac1ee1badade69d5cd6d8b9112281f121183e7c0 by Barry Warsaw in branch 'master': bpo-33755: Fix importlib.resources isolation tests (#7412) https://github.com/python/cpython/commit/ac1ee1badade69d5cd6d8b9112281f121183e7c0 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 12:41:57 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 05 Jun 2018 16:41:57 +0000 Subject: [issue33755] Failed separate tests in test_importlib In-Reply-To: <1528035154.67.0.592728768989.issue33755@psf.upfronthosting.co.za> Message-ID: <1528216917.86.0.592728768989.issue33755@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7060 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 12:51:06 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 05 Jun 2018 16:51:06 +0000 Subject: [issue33752] Leaked file in test_anydbm_creation_n_file_exists_with_invalid_contents in test_dbm In-Reply-To: <1528030226.3.0.592728768989.issue33752@psf.upfronthosting.co.za> Message-ID: <1528217466.9.0.592728768989.issue33752@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 12:51:46 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 05 Jun 2018 16:51:46 +0000 Subject: [issue33767] Improper use of SystemError in the mmap module In-Reply-To: <1528087218.45.0.592728768989.issue33767@psf.upfronthosting.co.za> Message-ID: <1528217506.17.0.592728768989.issue33767@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: New changeset 3014d6eb7f6ed8cc61b9b26fe1c4454760dc8621 by Serhiy Storchaka in branch '2.7': [2.7] bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381) (GH-7432) https://github.com/python/cpython/commit/3014d6eb7f6ed8cc61b9b26fe1c4454760dc8621 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 12:52:00 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 05 Jun 2018 16:52:00 +0000 Subject: [issue33767] Improper use of SystemError in the mmap module In-Reply-To: <1528087218.45.0.592728768989.issue33767@psf.upfronthosting.co.za> Message-ID: <1528217520.52.0.592728768989.issue33767@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 12:53:06 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 05 Jun 2018 16:53:06 +0000 Subject: [issue33753] Leaked file in test_nextfile_oserror_deleting_backup in test_fileinput In-Reply-To: <1528030391.57.0.592728768989.issue33753@psf.upfronthosting.co.za> Message-ID: <1528217586.55.0.592728768989.issue33753@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: New changeset b8baa33d931de557d2915c604df85ab168da0904 by Serhiy Storchaka in branch '3.6': [3.6] bpo-33753: Refactor creating temporary files in test_fileinput. (GH-7377). (GH-7431) https://github.com/python/cpython/commit/b8baa33d931de557d2915c604df85ab168da0904 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 12:53:34 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 05 Jun 2018 16:53:34 +0000 Subject: [issue33753] Leaked file in test_nextfile_oserror_deleting_backup in test_fileinput In-Reply-To: <1528030391.57.0.592728768989.issue33753@psf.upfronthosting.co.za> Message-ID: <1528217614.18.0.592728768989.issue33753@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 12:54:19 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 05 Jun 2018 16:54:19 +0000 Subject: [issue33761] Leaked file in test_iterparse in test_xml_etree In-Reply-To: <1528042522.11.0.592728768989.issue33761@psf.upfronthosting.co.za> Message-ID: <1528217659.31.0.592728768989.issue33761@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 12:55:43 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 05 Jun 2018 16:55:43 +0000 Subject: [issue33751] Failed separate testTruncateOnWindows in test_file In-Reply-To: <1528030047.94.0.592728768989.issue33751@psf.upfronthosting.co.za> Message-ID: <1528217743.52.0.592728768989.issue33751@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: New changeset c2745d2d05546d76f655ab450eb23d1af39e0b1c by Serhiy Storchaka in branch 'master': bpo-33751: Fix test_file. (GH-7378) https://github.com/python/cpython/commit/c2745d2d05546d76f655ab450eb23d1af39e0b1c ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 12:56:05 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 05 Jun 2018 16:56:05 +0000 Subject: [issue33759] Failed separate ServerProxyTestCase tests in test_xmlrpc In-Reply-To: <1528041771.94.0.592728768989.issue33759@psf.upfronthosting.co.za> Message-ID: <1528217765.22.0.592728768989.issue33759@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 12:56:51 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 05 Jun 2018 16:56:51 +0000 Subject: [issue33751] Failed separate testTruncateOnWindows in test_file In-Reply-To: <1528030047.94.0.592728768989.issue33751@psf.upfronthosting.co.za> Message-ID: <1528217811.92.0.592728768989.issue33751@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7061 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 12:58:53 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 05 Jun 2018 16:58:53 +0000 Subject: [issue33751] Failed separate testTruncateOnWindows in test_file In-Reply-To: <1528030047.94.0.592728768989.issue33751@psf.upfronthosting.co.za> Message-ID: <1528217933.16.0.592728768989.issue33751@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7062 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 12:58:55 2018 From: report at bugs.python.org (Al-Scandar Solstag) Date: Tue, 05 Jun 2018 16:58:55 +0000 Subject: [issue33774] Improve doc of @lru_cache to avoid misuse and confusion Message-ID: <1528217935.32.0.592728768989.issue33774@psf.upfronthosting.co.za> New submission from Al-Scandar Solstag : Ni! It is not clear at all in the documentation of @lru_cache that the cache takes into account the exact way the function was called, not the values passed to its arguments, as one could/would expect. I mean that for function(a, b, c=3) the three calls below are not considered equivalent as far as the cache is concerned: function(1, 2, 3) function(1, 2, c=3) function(1, 2) I hope this can be clarified in the documentation. I wasted a great deal of time today trying to understand why my calls were not getting cached and only figured it out when I decided to go read @lru_cache's code. It seems very likely that other people have had the same problem. Or worse, people might be using @lru_cache believing it is working when it isn't. Cheers! ---------- assignee: docs at python components: Documentation messages: 318770 nosy: docs at python, solstag priority: normal severity: normal status: open title: Improve doc of @lru_cache to avoid misuse and confusion _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 12:59:36 2018 From: report at bugs.python.org (Steve Dower) Date: Tue, 05 Jun 2018 16:59:36 +0000 Subject: [issue33720] test_marshal: crash in Python 3.7b5 on Windows 10 In-Reply-To: <1527779615.11.0.682650639539.issue33720@psf.upfronthosting.co.za> Message-ID: <1528217976.61.0.592728768989.issue33720@psf.upfronthosting.co.za> Steve Dower added the comment: Thanks. Agreed this should stay open, but it is blocked on a compiler fix. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 13:01:37 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Tue, 05 Jun 2018 17:01:37 +0000 Subject: [issue28602] `tzinfo.fromutc()` fails when used for a fold-aware tzinfo implementation In-Reply-To: <1478199350.04.0.93782925147.issue28602@psf.upfronthosting.co.za> Message-ID: <1528218097.41.0.592728768989.issue28602@psf.upfronthosting.co.za> Alexander Belopolsky added the comment: > it's actually possible to implement full `fold` support in a generic way I am aware of that. In fact, some of the draft versions of PEP 495 implementation did contain such code. The problem is that any such tz.fromutc() implementation would necessarily change the behavior of the old programs. Moreover, any implementation of tz.fromutc() in terms of tz.utcoffset() is more complicated and less efficient than code that he's direct access to a database of transition times. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 13:19:46 2018 From: report at bugs.python.org (Paul Ganssle) Date: Tue, 05 Jun 2018 17:19:46 +0000 Subject: [issue28602] `tzinfo.fromutc()` fails when used for a fold-aware tzinfo implementation In-Reply-To: <1478199350.04.0.93782925147.issue28602@psf.upfronthosting.co.za> Message-ID: <1528219186.21.0.592728768989.issue28602@psf.upfronthosting.co.za> Paul Ganssle added the comment: > I am aware of that. In fact, some of the draft versions of PEP 495 implementation did contain such code. The problem is that any such tz.fromutc() implementation would necessarily change the behavior of the old programs. This I'm not sure about - the implementation I've provided gives the same answer for any program that pays no attention to `fold`, because I'm relying on `utcoffset` and `dst`'s reaction to a change in fold. Any code that's not explicitly handling fold will give the same answer as it always has. > Moreover, any implementation of tz.fromutc() in terms of tz.utcoffset() is more complicated and less efficient than code that he's direct access to a database of transition times. While true, that does not argue in favor of having a version of `fromutc` that doesn't respect `fold`, because anyone looking for a more efficient implementation will have to reimplement `fromutc` anyway if necessary. Another argument in favor of having `fromutc` respect fold by default is that it makes it very simple to support fold, particularly for people who aren't optimizing for speed. As it is now, you have to duplicate a lot of fold-handling and transition lookup logic in both `fromutc` and `utcoffset` / `dst`, because they are getting the same information but they are not implemented in terms of one another (and it's not even amazingly easy to write a function that factors out the common code). That's more code to write and maintain and test. At the end of the day, almost everyone who cares about efficiency will use dateutil or pytz for their application, and dateutil and pytz can and do re-implement fromutc when appropriate - though there are still some `dateutil` tzinfo subclasses where this would be *more* efficient than what's there now. I don't see why the perfect has to be the enemy of the good here, though; having fold support in `fromutc` is a net benefit for anyone using `fromutc` and for adoption of PEP 495 in a wider context. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 13:25:16 2018 From: report at bugs.python.org (R. David Murray) Date: Tue, 05 Jun 2018 17:25:16 +0000 Subject: [issue33774] Document that @lru_cache caches based on exactly how the function arguments are specified In-Reply-To: <1528217935.32.0.592728768989.issue33774@psf.upfronthosting.co.za> Message-ID: <1528219516.11.0.592728768989.issue33774@psf.upfronthosting.co.za> R. David Murray added the comment: Agreed that this should be documented. ---------- nosy: +r.david.murray, rhettinger stage: -> needs patch title: Improve doc of @lru_cache to avoid misuse and confusion -> Document that @lru_cache caches based on exactly how the function arguments are specified versions: +Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 13:26:41 2018 From: report at bugs.python.org (Carol Willing) Date: Tue, 05 Jun 2018 17:26:41 +0000 Subject: [issue12486] tokenize module should have a unicode API In-Reply-To: <1309751897.67.0.332272921906.issue12486@psf.upfronthosting.co.za> Message-ID: <1528219601.95.0.592728768989.issue12486@psf.upfronthosting.co.za> Carol Willing added the comment: New changeset c56b17bd8c7a3fd03859822246633d2c9586f8bd by Carol Willing (Thomas Kluyver) in branch 'master': bpo-12486: Document tokenize.generate_tokens() as public API (#6957) https://github.com/python/cpython/commit/c56b17bd8c7a3fd03859822246633d2c9586f8bd ---------- nosy: +willingc _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 13:30:56 2018 From: report at bugs.python.org (Carol Willing) Date: Tue, 05 Jun 2018 17:30:56 +0000 Subject: [issue12486] tokenize module should have a unicode API In-Reply-To: <1309751897.67.0.332272921906.issue12486@psf.upfronthosting.co.za> Message-ID: <1528219856.94.0.592728768989.issue12486@psf.upfronthosting.co.za> Change by Carol Willing : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 13:51:04 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 05 Jun 2018 17:51:04 +0000 Subject: [issue33751] Failed separate testTruncateOnWindows in test_file In-Reply-To: <1528030047.94.0.592728768989.issue33751@psf.upfronthosting.co.za> Message-ID: <1528221064.46.0.592728768989.issue33751@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 1d419faccdaae27d968cef1e1ece6b9374694573 by Miss Islington (bot) in branch '3.7': bpo-33751: Fix test_file. (GH-7378) https://github.com/python/cpython/commit/1d419faccdaae27d968cef1e1ece6b9374694573 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 13:51:05 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 05 Jun 2018 17:51:05 +0000 Subject: [issue33751] Failed separate testTruncateOnWindows in test_file In-Reply-To: <1528030047.94.0.592728768989.issue33751@psf.upfronthosting.co.za> Message-ID: <1528221065.17.0.592728768989.issue33751@psf.upfronthosting.co.za> miss-islington added the comment: New changeset f74a1244eba88b562add5193242ac55115aaf25c by Miss Islington (bot) in branch '3.6': bpo-33751: Fix test_file. (GH-7378) https://github.com/python/cpython/commit/f74a1244eba88b562add5193242ac55115aaf25c ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 13:51:27 2018 From: report at bugs.python.org (Thomas Kluyver) Date: Tue, 05 Jun 2018 17:51:27 +0000 Subject: [issue12486] tokenize module should have a unicode API In-Reply-To: <1309751897.67.0.332272921906.issue12486@psf.upfronthosting.co.za> Message-ID: <1528221087.96.0.592728768989.issue12486@psf.upfronthosting.co.za> Thomas Kluyver added the comment: Thanks Carol :-) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 14:28:22 2018 From: report at bugs.python.org (Matthias Bussonnier) Date: Tue, 05 Jun 2018 18:28:22 +0000 Subject: [issue33477] Document that compile(code, 'exec') has different behavior in 3.7+ In-Reply-To: <1526173050.51.0.682650639539.issue33477@psf.upfronthosting.co.za> Message-ID: <1528223302.65.0.592728768989.issue33477@psf.upfronthosting.co.za> Matthias Bussonnier added the comment: Closing as the ast changes have been reverted. ---------- stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 14:37:55 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Tue, 05 Jun 2018 18:37:55 +0000 Subject: [issue28602] `tzinfo.fromutc()` fails when used for a fold-aware tzinfo implementation In-Reply-To: <1478199350.04.0.93782925147.issue28602@psf.upfronthosting.co.za> Message-ID: <1528223875.79.0.592728768989.issue28602@psf.upfronthosting.co.za> Alexander Belopolsky added the comment: Paul, In your opening post to this issue you suggested to change one line [1] in Lib/datetime.py from dtdst = dt.dst() to dtdst = dt.replace(fold=1).dst() This looks like a rather innocuous change, but it does not by itself make fromutc() return properly "enfolded" instances. IIRC, the best algorithm that Tim and I were able to come up with to derive the fold value required something like six utcoffset() probes. PR 7425 that you submitted looks somewhat involved. Can you submit an equivalent datetime.py patch? [1]: https://github.com/python/cpython/blob/c56b17bd8c7a3fd03859822246633d2c9586f8bd/Lib/datetime.py#L1125 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 15:11:46 2018 From: report at bugs.python.org (Barry A. Warsaw) Date: Tue, 05 Jun 2018 19:11:46 +0000 Subject: [issue33755] Failed separate tests in test_importlib In-Reply-To: <1528035154.67.0.592728768989.issue33755@psf.upfronthosting.co.za> Message-ID: <1528225906.3.0.592728768989.issue33755@psf.upfronthosting.co.za> Barry A. Warsaw added the comment: New changeset e135032ffa08ad66caea8205488e037da85d2bf8 by Barry Warsaw (Miss Islington (bot)) in branch '3.7': bpo-33755: Fix importlib.resources isolation tests (GH-7412) (#7434) https://github.com/python/cpython/commit/e135032ffa08ad66caea8205488e037da85d2bf8 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 15:14:42 2018 From: report at bugs.python.org (Barry A. Warsaw) Date: Tue, 05 Jun 2018 19:14:42 +0000 Subject: [issue33755] Failed separate tests in test_importlib In-Reply-To: <1528035154.67.0.592728768989.issue33755@psf.upfronthosting.co.za> Message-ID: <1528226082.02.0.592728768989.issue33755@psf.upfronthosting.co.za> Change by Barry A. Warsaw : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 16:14:49 2018 From: report at bugs.python.org (STINNER Victor) Date: Tue, 05 Jun 2018 20:14:49 +0000 Subject: [issue33600] [EASY DOC] Python 2: document that platform.linux_distribution() has been removed In-Reply-To: <1526994321.44.0.682650639539.issue33600@psf.upfronthosting.co.za> Message-ID: <1528229689.24.0.592728768989.issue33600@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 7b9b87e76c44660de8a973c0e0a118f539532496 by Victor Stinner (Timo Furrer) in branch '2.7': bpo-33600: document that platform.linux_distribution() has been removed (GH-7281) https://github.com/python/cpython/commit/7b9b87e76c44660de8a973c0e0a118f539532496 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 17:43:03 2018 From: report at bugs.python.org (STINNER Victor) Date: Tue, 05 Jun 2018 21:43:03 +0000 Subject: [issue31731] [2.7] test_io hangs on x86 Gentoo Refleaks 2.7 In-Reply-To: <1507533205.95.0.213398074469.issue31731@psf.upfronthosting.co.za> Message-ID: <1528234983.07.0.592728768989.issue31731@psf.upfronthosting.co.za> STINNER Victor added the comment: I succeeded to attach gdb to a regrtest slave process stuck in test_io... but somehow attaching the process into gdb unblocked the process... and the test completed. Sadly, the first time that I attached the process, I forgot to allow a directory to load python-gdb.py. So I had to detach and attach again the process to get a working "py-bt" command. Maybe this action unblocked Python. It's hard to say. (gdb) py-bt Traceback (most recent call first): File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/_pyio.py", line 1126, in _flush_unlocked def _flush_unlocked(self): File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/_pyio.py", line 1104, in write self._flush_unlocked() File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/_pyio.py", line 1302, in write return BufferedWriter.write(self, b) File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/test/test_io.py", line 1186, in check_writes self.assertEqual(bufio.write(contents[n:n+size]), size) File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/test/test_io.py", line 1723, in test_writes_and_peek self.check_writes(_peek) File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/unittest/case.py", line 329, in run testMethod() File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/unittest/case.py", line 393, in __call__ return self.run(*args, **kwds) File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/unittest/suite.py", line 108, in run test(result) File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/unittest/suite.py", line 70, in __call__ return self.run(*args, **kwds) File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/unittest/suite.py", line 108, in run test(result) File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/unittest/suite.py", line 70, in __call__ return self.run(*args, **kwds) File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/test/support/__init__.py", line 1461, in run test(result) File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/test/support/__init__.py", line 1535, in _run_suite result = runner.run(suite) File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/test/support/__init__.py", line 1626, in run_unittest _run_suite(suite) File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/test/test_io.py", line 3367, in test_main support.run_unittest(*tests) File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/test/regrtest.py", line 1361, in run_the_test indirect_test() File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/test/regrtest.py", line 1375, in dash_R run_the_test() File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/test/regrtest.py", line 1239, in runtest_inner huntrleaks) File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/test/regrtest.py", line 1044, in runtest return runtest_inner(test, verbose, quiet, huntrleaks, pgo, testdir) File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/test/regrtest.py", line 513, in main result = runtest(*args, **kwargs) File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/test/regrtest.py", line 2025, in main_in_temp_cwd main() File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/test/regrtest.py", line 2038, in main_in_temp_cwd() File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/runpy.py", line 72, in _run_code exec code in run_globals File "/buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) (gdb) where #0 0x0050b6fd in PyEval_EvalFrameEx ( f=Frame 0xb6bd1634, for file /buildbot/buildarea/2.7.ware-gentoo-x86.refleak/build/Lib/_pyio.py, line 1126, in _flush_unlocked (self=', '?@A', 'BCD', 'EFG', 'HIJ', 'KLM', 'NOP', 'QRS', 'TUV', 'WXY', 'Z[\\]', '^_`a', 'bcde', 'fghi', 'jklm', 'nopq', 'rstu', 'vwxy', 'z{|}', '~\x7f\x80\x81', '\x82\x83\x84\x85', '\x86\x87\x88\x89', '\x8a\x8b\x8c\x8d', '\x8e\x8f\x90\x91', '\x92\x93\x94\x95', '\x96\x97\x98\x99\x9a', '\x9b\x9c\x9d\x9e\x9f', '\xa0\xa1\xa2\xa3\xa4', '\xa5\xa6\xa7\xa8\xa9', '\xaa\xab\xac\xad\xae', '\xaf\xb0\xb1\xb2\xb3', '\xb4\xb5\xb6\xb7\xb8', '\xb9\xba\xbb\xbc\xbd', '\xbe\xbf\xc0\xc1\xc2', '\xc3\xc4\xc5\xc6\xc7', '\xc8\xc9\xca\xcb\xcc', '\xcd\xce\xcf\xd0\xd1', '\xd2\x...(truncated), throwflag=0) at Python/ceval.c:1094 #1 0x0051a9e8 in PyEval_EvalCodeEx (co=0xb6ccdda8, globals={'BufferedReader': , ]), _pending_removals=[], _remove=, _iterating=set([])) at remote 0xb668a4cc>, peek=, _abc_negative_cache_version=26, tell=, read=, __doc__=u'BufferedReader(raw[, buffer_size])\n\n A buffer for a readable, sequential BaseRawIO object.\n\n The constructor creates a BufferedReader for the given readable raw\n stream and buffer_size. If buffer_size is omitted, DEFAULT_BUFFER_SIZE\n is used.\n ', __init__=, _reset_read_buf=, _abc_negative_cache=, _iterating=set([])) at remote 0xb668a0a4>, __module__='_pyio', __abstractmethods__=frozenset([]), _peek_unlocked=, _read_unlocked=, pp_stack=0xbfbcc660, n=1, na=1, nk=0) at Python/ceval.c:4467 #3 0x0051d283 in call_function (pp_stack=0xbfbcc660, oparg=0) at Python/ceval.c:4392 (...) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 17:55:22 2018 From: report at bugs.python.org (STINNER Victor) Date: Tue, 05 Jun 2018 21:55:22 +0000 Subject: [issue33600] [EASY DOC] Python 2: document that platform.linux_distribution() has been removed In-Reply-To: <1526994321.44.0.682650639539.issue33600@psf.upfronthosting.co.za> Message-ID: <1528235722.92.0.592728768989.issue33600@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 18:12:35 2018 From: report at bugs.python.org (woutgg) Date: Tue, 05 Jun 2018 22:12:35 +0000 Subject: [issue33775] argparse: the word 'default' (in help) is not marked as translatable Message-ID: <1528236755.92.0.592728768989.issue33775@psf.upfronthosting.co.za> New submission from woutgg : The word 'default', used to indicate default arguments in the help text (found here: Lib/argparse.py:681) is missing the gettext wrapper, causing it to be untranslatable. ---------- messages: 318784 nosy: woutgg priority: normal severity: normal status: open title: argparse: the word 'default' (in help) is not marked as translatable type: behavior _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 18:17:56 2018 From: report at bugs.python.org (STINNER Victor) Date: Tue, 05 Jun 2018 22:17:56 +0000 Subject: [issue31731] [2.7] test_io hangs on x86 Gentoo Refleaks 2.7 In-Reply-To: <1507533205.95.0.213398074469.issue31731@psf.upfronthosting.co.za> Message-ID: <1528237076.41.0.592728768989.issue31731@psf.upfronthosting.co.za> STINNER Victor added the comment: Hum, I succeeded to reproduce a hang in test_io using the command: *** buildbot at stormageddon ~/python27 $ ./python -m test -v -m 'test_interrupted*' -F test_io (...) 0:04:38 load avg: 3.36 [ 44] test_io test_interrupted_write_buffered (test.test_io.CSignalsTest) ... ok test_interrupted_write_text (test.test_io.CSignalsTest) ... ok test_interrupted_write_unbuffered (test.test_io.CSignalsTest) ... ok test_interrupted_write_buffered (test.test_io.PySignalsTest) ... ok test_interrupted_write_text (test.test_io.PySignalsTest) ... ok test_interrupted_write_unbuffered (test.test_io.PySignalsTest) ... ok ---------------------------------------------------------------------- Ran 6 tests in 6.167s OK 0:04:45 load avg: 3.65 [ 45] test_io test_interrupted_write_buffered (test.test_io.CSignalsTest) ... ok test_interrupted_write_text (test.test_io.CSignalsTest) ... ok test_interrupted_write_unbuffered (test.test_io.CSignalsTest) ... ok test_interrupted_write_buffered (test.test_io.PySignalsTest) ... ok test_interrupted_write_text (test.test_io.PySignalsTest) ... *** Traces in gdb of the stuck process: *** (gdb) py-bt Traceback (most recent call first): Waiting for the GIL File "/buildbot/python27/Lib/threading.py", line 340, in wait waiter.acquire() File "/buildbot/python27/Lib/threading.py", line 940, in join self.__block.wait() File "/buildbot/python27/Lib/test/test_io.py", line 3161, in check_interrupted_write t.join() File "/buildbot/python27/Lib/test/test_io.py", line 3186, in test_interrupted_write_text self.check_interrupted_write("xy", b"xy", mode="w", encoding="ascii") File "/buildbot/python27/Lib/unittest/case.py", line 329, in run testMethod() File "/buildbot/python27/Lib/unittest/case.py", line 393, in __call__ return self.run(*args, **kwds) File "/buildbot/python27/Lib/unittest/suite.py", line 108, in run test(result) File "/buildbot/python27/Lib/unittest/suite.py", line 70, in __call__ return self.run(*args, **kwds) File "/buildbot/python27/Lib/unittest/suite.py", line 108, in run test(result) File "/buildbot/python27/Lib/unittest/suite.py", line 70, in __call__ return self.run(*args, **kwds) File "/buildbot/python27/Lib/unittest/runner.py", line 151, in run test(result) File "/buildbot/python27/Lib/test/support/__init__.py", line 1535, in _run_suite result = runner.run(suite) File "/buildbot/python27/Lib/test/support/__init__.py", line 1626, in run_unittest _run_suite(suite) File "/buildbot/python27/Lib/test/test_io.py", line 3367, in test_main support.run_unittest(*tests) File "/buildbot/python27/Lib/test/regrtest.py", line 1236, in runtest_inner indirect_test() File "/buildbot/python27/Lib/test/regrtest.py", line 1044, in runtest return runtest_inner(test, verbose, quiet, huntrleaks, pgo, testdir) File "/buildbot/python27/Lib/test/regrtest.py", line 837, in local_runtest testdir=testdir) File "/buildbot/python27/Lib/test/regrtest.py", line 851, in main result = local_runtest() File "/buildbot/python27/Lib/test/regrtest.py", line 2025, in main_in_temp_cwd main() File "/buildbot/python27/Lib/test/__main__.py", line 3, in regrtest.main_in_temp_cwd() File "/buildbot/python27/Lib/runpy.py", line 72, in _run_code exec code in run_globals File "/buildbot/python27/Lib/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) (gdb) info threads Id Target Id Frame * 1 Thread 0xb7518700 (LWP 14442) "python" 0xb7772b49 in __kernel_vsyscall () 2 Thread 0xb6b36b40 (LWP 18865) "python" 0xb7772b49 in __kernel_vsyscall () (gdb) t 2 [Switching to thread 2 (Thread 0xb6b36b40 (LWP 18865))] #0 0xb7772b49 in __kernel_vsyscall () (gdb) py-bt Traceback (most recent call first): File "/buildbot/python27/Lib/test/test_io.py", line 3141, in _read s = os.read(r, 1) File "/buildbot/python27/Lib/threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "/buildbot/python27/Lib/threading.py", line 801, in __bootstrap_inner self.run() File "/buildbot/python27/Lib/threading.py", line 774, in __bootstrap self.__bootstrap_inner() *** And now I recall how much I hate this test. It made me crazy in Python 2 for a long time. This specific test was my motiviation to add signal.pthread_sigmask() to Python 3.3. Note: I also implemented the PEP 475 in Python 3.5 to make Python more reliable when getting signals. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 18:27:43 2018 From: report at bugs.python.org (STINNER Victor) Date: Tue, 05 Jun 2018 22:27:43 +0000 Subject: [issue31731] [2.7] test_io hangs on x86 Gentoo Refleaks 2.7 In-Reply-To: <1507533205.95.0.213398074469.issue31731@psf.upfronthosting.co.za> Message-ID: <1528237663.95.0.592728768989.issue31731@psf.upfronthosting.co.za> STINNER Victor added the comment: Sadly, issues with test_io.test_interrupted*() are old. See for example the bpo-23680. Two years ago, Martin Panter saw test_io.test_interrupted_write_text() hangs on Python 3.6 and on AMD64 FreeBSD 9.x 3.5: https://bugs.python.org/issue22331#msg266688 https://bugs.python.org/issue22331#msg266725 Martin proposed a fix using signal.pthread_kill() rather than scheduling a SIGALRM signal in 1 second, but the fix was not merged and I closed the issue since I didn't see the issue recently. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 18:28:32 2018 From: report at bugs.python.org (woutgg) Date: Tue, 05 Jun 2018 22:28:32 +0000 Subject: [issue33775] argparse: the word 'default' (in help) is not marked as translatable In-Reply-To: <1528236755.92.0.592728768989.issue33775@psf.upfronthosting.co.za> Message-ID: <1528237712.03.0.592728768989.issue33775@psf.upfronthosting.co.za> woutgg added the comment: Note: the line number in the link is not correct anymore, I'm not sure how to link to a specific commit so here is the source line: `help += ' (default: %(default)s)'`. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 18:59:31 2018 From: report at bugs.python.org (STINNER Victor) Date: Tue, 05 Jun 2018 22:59:31 +0000 Subject: [issue31731] [2.7] test_io hangs on x86 Gentoo Refleaks 2.7 In-Reply-To: <1507533205.95.0.213398074469.issue31731@psf.upfronthosting.co.za> Message-ID: <1528239571.93.0.592728768989.issue31731@psf.upfronthosting.co.za> STINNER Victor added the comment: > buildbot at stormageddon ~/python27 $ ./python -m test -v -m 'test_interrupted*' -F test_io I'm unable to reproduce this issue on my Fedora 28 laptop (Linux kernel 4.16.11-300.fc28.x86_64). In the previous message, I reproduced the issue directly on Zach's Gentoo buildbot builder. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 19:12:32 2018 From: report at bugs.python.org (Dmitry) Date: Tue, 05 Jun 2018 23:12:32 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528240352.13.0.592728768989.issue33770@psf.upfronthosting.co.za> Dmitry added the comment: @taleinat - yes, that does look much better! ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 19:31:36 2018 From: report at bugs.python.org (=?utf-8?q?=C5=81ukasz_Langa?=) Date: Tue, 05 Jun 2018 23:31:36 +0000 Subject: [issue33504] configparser should use dict instead of OrderedDict in 3.7+ In-Reply-To: <1526321898.65.0.682650639539.issue33504@psf.upfronthosting.co.za> Message-ID: <1528241496.59.0.592728768989.issue33504@psf.upfronthosting.co.za> ?ukasz Langa added the comment: New changeset 3a5b0d8988491d9408b22bceea6fd70b91345724 by ?ukasz Langa (John Reese) in branch 'master': bpo-33504: Migrate configparser from OrderedDict to dict. (#6819) https://github.com/python/cpython/commit/3a5b0d8988491d9408b22bceea6fd70b91345724 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 19:33:57 2018 From: report at bugs.python.org (=?utf-8?q?=C5=81ukasz_Langa?=) Date: Tue, 05 Jun 2018 23:33:57 +0000 Subject: [issue33504] configparser should use dict instead of OrderedDict in 3.7+ In-Reply-To: <1526321898.65.0.682650639539.issue33504@psf.upfronthosting.co.za> Message-ID: <1528241637.54.0.592728768989.issue33504@psf.upfronthosting.co.za> Change by ?ukasz Langa : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 20:00:13 2018 From: report at bugs.python.org (Cheryl Sabella) Date: Wed, 06 Jun 2018 00:00:13 +0000 Subject: [issue33610] IDLE: Make multiple improvements to CodeContext In-Reply-To: <1527052692.02.0.682650639539.issue33610@psf.upfronthosting.co.za> Message-ID: <1528243213.72.0.592728768989.issue33610@psf.upfronthosting.co.za> Cheryl Sabella added the comment: Menu location: If Code Context is moved under Windows, maybe Configure IDLE should be moved as well? - VS Code has Preferences under the File menu. - Spyder has a menu option called Tools which contains Preferences, Update PYTHONPATH manager, and Reset Spyder to defaults - Atom has Preferences under the Edit menu. - Sublime Text has a menu called Preferences. - Notepad++ has a menu called Settings, which includes Preferences. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 20:12:09 2018 From: report at bugs.python.org (miss-islington) Date: Wed, 06 Jun 2018 00:12:09 +0000 Subject: [issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++" In-Reply-To: <1239729771.84.0.97828652099.issue5755@psf.upfronthosting.co.za> Message-ID: <1528243929.03.0.592728768989.issue5755@psf.upfronthosting.co.za> miss-islington added the comment: New changeset d6e789c402330905b1bd9103538d1027fcfb08a4 by Miss Islington (bot) in branch '3.7': bpo-5755: Move -Wstrict-prototypes to CFLAGS_NODIST (GH-7395) https://github.com/python/cpython/commit/d6e789c402330905b1bd9103538d1027fcfb08a4 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 20:18:58 2018 From: report at bugs.python.org (INADA Naoki) Date: Wed, 06 Jun 2018 00:18:58 +0000 Subject: [issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++" In-Reply-To: <1239729771.84.0.97828652099.issue5755@psf.upfronthosting.co.za> Message-ID: <1528244338.96.0.592728768989.issue5755@psf.upfronthosting.co.za> Change by INADA Naoki : ---------- pull_requests: +7065 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 21:07:13 2018 From: report at bugs.python.org (Raymond Hettinger) Date: Wed, 06 Jun 2018 01:07:13 +0000 Subject: [issue33774] Document that @lru_cache caches based on exactly how the function arguments are specified In-Reply-To: <1528217935.32.0.592728768989.issue33774@psf.upfronthosting.co.za> Message-ID: <1528247233.24.0.592728768989.issue33774@psf.upfronthosting.co.za> Raymond Hettinger added the comment: Sure, I can add a line mentioning that distinct argument patterns may be considered as distinct cache entries even though they otherwise seem to be equivalent calls. That will just be a general statement though. The specific details are implementation dependent, have changed over time, and may change again in the future. ---------- assignee: docs at python -> rhettinger priority: normal -> low _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 21:17:45 2018 From: report at bugs.python.org (Jason McKellar) Date: Wed, 06 Jun 2018 01:17:45 +0000 Subject: [issue33776] Segfault when passing invalid argument to asyncio.ensure_future Message-ID: <1528247864.26.0.592728768989.issue33776@psf.upfronthosting.co.za> New submission from Jason McKellar : If time.monotonic() is yielded from a generator that is passed to asyncio.ensure_future a segfault occurs when it's scheduled. The example below shows time.monotonic called in the generator, however the segfault will also occur if a function is called (not a lambda) that uses time.monotonic. I've tested on Python 3.6 and 3.7.0b4. For example: import asyncio import time import faulthandler faulthandler.enable() loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) # Note that ensure_future argument is generator # which yields time.monotonic() return value tasks = [asyncio.ensure_future( time.monotonic() for i in range(1) )] results_future = asyncio.gather(*tasks) # Segmentation fault results = loop.run_until_complete(results_future) The fault handler output: Fatal Python error: Segmentation fault Current thread 0x00007f4b7a042b88 (most recent call first): File "/usr/local/lib/python3.7/asyncio/events.py", line 88 in _run File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1738 in _run_once File "/usr/local/lib/python3.7/asyncio/base_events.py", line 521 in run_forever File "/usr/local/lib/python3.7/asyncio/base_events.py", line 553 in run_until_complete File "/test-seg.py", line 19 in Segmentation fault (core dumped) An example with time.monotonic call nested in a function: import asyncio import time import faulthandler def bad(): return {'nested': time.monotonic()} faulthandler.enable() loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) tasks = [asyncio.ensure_future( bad() for i in range(1) )] results_future = asyncio.gather(*tasks) # Segmentation fault results = loop.run_until_complete(results_future) ---------- components: asyncio messages: 318794 nosy: Jason McKellar, asvetlov, yselivanov priority: normal severity: normal status: open title: Segfault when passing invalid argument to asyncio.ensure_future type: crash versions: Python 3.6, Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 22:00:05 2018 From: report at bugs.python.org (Nate Atkinson) Date: Wed, 06 Jun 2018 02:00:05 +0000 Subject: [issue33777] dummy_threading: .is_alive method returns True after execution has completed Message-ID: <1528250405.09.0.592728768989.issue33777@psf.upfronthosting.co.za> New submission from Nate Atkinson : Here's what I expect to happen (Python2 behavior): Python 2.7.14+ (default, Dec 5 2017, 15:17:02) [GCC 7.2.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from dummy_threading import Thread >>> def f(): print 'foo' ... >>> t = Thread(target=f) >>> t.start() foo >>> t.is_alive() False >>> Here's what actually happens (Python3.6): Python 3.6.4 (default, Jan 5 2018, 02:13:53) [GCC 7.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from dummy_threading import Thread >>> def f(): print('foo') ... >>> t = Thread(target=f) >>> t.start() foo >>> t.is_alive() True >>> After completion of the target function, I would expect .is_alive() to return False for an instance of dummy_thread.Thread. Instead, it returns True until the .join() method of the instance of dummy_thread.Thread is called. ---------- components: Interpreter Core messages: 318795 nosy: njatkinson priority: normal severity: normal status: open title: dummy_threading: .is_alive method returns True after execution has completed type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 22:02:31 2018 From: report at bugs.python.org (Nate Atkinson) Date: Wed, 06 Jun 2018 02:02:31 +0000 Subject: [issue33777] dummy_threading: .is_alive method returns True after execution has completed In-Reply-To: <1528250405.09.0.592728768989.issue33777@psf.upfronthosting.co.za> Message-ID: <1528250551.68.0.592728768989.issue33777@psf.upfronthosting.co.za> Nate Atkinson added the comment: I notice that I maybe have inadvertently assigned this to the wrong group. I suspect that this should apply to the "Library" rather than "Core". Sorry! ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 22:56:19 2018 From: report at bugs.python.org (Ned Deily) Date: Wed, 06 Jun 2018 02:56:19 +0000 Subject: [issue33625] Release GIL for grp.getgr{nam, gid} and pwd.getpw{nam, uid} In-Reply-To: <1527105781.7.0.682650639539.issue33625@psf.upfronthosting.co.za> Message-ID: <1528253779.83.0.592728768989.issue33625@psf.upfronthosting.co.za> Ned Deily added the comment: With the updated PR that uses reentrant system functions if available, this now seems like a pretty big change to be adding to older maintenance releases, especially since it seems like it would be primarily a performance enhancement and not fixing a "repeatable" bug. I don't think we should backport this to 3.6 or 2.7. If we can get it in prior to 3.7.0rc1, I'd be kinda OK with backporting to 3.7. Sound OK? ---------- nosy: +ned.deily versions: -Python 2.7, Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 22:59:13 2018 From: report at bugs.python.org (Yury Selivanov) Date: Wed, 06 Jun 2018 02:59:13 +0000 Subject: [issue33776] Segfault when passing invalid argument to asyncio.ensure_future In-Reply-To: <1528247864.26.0.592728768989.issue33776@psf.upfronthosting.co.za> Message-ID: <1528253953.77.0.592728768989.issue33776@psf.upfronthosting.co.za> Yury Selivanov added the comment: Thanks for reporting it. Looks like this has been fixed in 3.6 (not yet released) and 3.7.0b5 in issue 33584. ---------- resolution: -> out of date stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 23:10:29 2018 From: report at bugs.python.org (Benjamin Peterson) Date: Wed, 06 Jun 2018 03:10:29 +0000 Subject: [issue33778] update Unicode database to 11.0 Message-ID: <1528254629.86.0.592728768989.issue33778@psf.upfronthosting.co.za> New submission from Benjamin Peterson : http://blog.unicode.org/2018/06/announcing-unicode-standard-version-110.html ---------- assignee: benjamin.peterson components: Unicode messages: 318799 nosy: benjamin.peterson, ezio.melotti, vstinner priority: normal severity: normal status: open title: update Unicode database to 11.0 type: enhancement versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 5 23:28:09 2018 From: report at bugs.python.org (Benjamin Peterson) Date: Wed, 06 Jun 2018 03:28:09 +0000 Subject: [issue33778] update Unicode database to 11.0 In-Reply-To: <1528254629.86.0.592728768989.issue33778@psf.upfronthosting.co.za> Message-ID: <1528255689.23.0.592728768989.issue33778@psf.upfronthosting.co.za> Change by Benjamin Peterson : ---------- keywords: +patch pull_requests: +7067 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 00:42:45 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 06 Jun 2018 04:42:45 +0000 Subject: [issue16865] ctypes arrays >=2GB in length causes exception In-Reply-To: <1357334898.38.0.395259266999.issue16865@psf.upfronthosting.co.za> Message-ID: <1528260165.56.0.592728768989.issue16865@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- pull_requests: +7068 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 01:18:19 2018 From: report at bugs.python.org (INADA Naoki) Date: Wed, 06 Jun 2018 05:18:19 +0000 Subject: [issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++" In-Reply-To: <1239729771.84.0.97828652099.issue5755@psf.upfronthosting.co.za> Message-ID: <1528262299.67.0.592728768989.issue5755@psf.upfronthosting.co.za> INADA Naoki added the comment: New changeset d59f97c8325ba509c9b08d488091f45ca642f0b6 by INADA Naoki in branch '3.6': bpo-5755: Move -Wstrict-prototypes to CFLAGS_NODIST (GH-7395) https://github.com/python/cpython/commit/d59f97c8325ba509c9b08d488091f45ca642f0b6 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 01:26:45 2018 From: report at bugs.python.org (INADA Naoki) Date: Wed, 06 Jun 2018 05:26:45 +0000 Subject: [issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++" In-Reply-To: <1239729771.84.0.97828652099.issue5755@psf.upfronthosting.co.za> Message-ID: <1528262805.44.0.592728768989.issue5755@psf.upfronthosting.co.za> Change by INADA Naoki : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 02:32:45 2018 From: report at bugs.python.org (INADA Naoki) Date: Wed, 06 Jun 2018 06:32:45 +0000 Subject: [issue33578] cjkcodecs missing getstate and setstate implementations In-Reply-To: <1526713206.06.0.682650639539.issue33578@psf.upfronthosting.co.za> Message-ID: <1528266765.38.0.592728768989.issue33578@psf.upfronthosting.co.za> INADA Naoki added the comment: > `MultibyteCodec_State` can occupy 8 bytes, and `pending` can occupy 2 bytes (MAXENCPENDING), we get a total of 10 bytes which I think exceeds what a PyLong can represent. PyLong is "long integer", aka "big integer", not C's long type. https://docs.python.org/3.6/c-api/long.html You can encode 12 bytes into single long object. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 04:00:58 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 06 Jun 2018 08:00:58 +0000 Subject: [issue33751] Failed separate testTruncateOnWindows in test_file In-Reply-To: <1528030047.94.0.592728768989.issue33751@psf.upfronthosting.co.za> Message-ID: <1528272058.04.0.592728768989.issue33751@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- pull_requests: +7069 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 04:46:14 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 08:46:14 +0000 Subject: [issue33778] update Unicode database to 11.0 In-Reply-To: <1528254629.86.0.592728768989.issue33778@psf.upfronthosting.co.za> Message-ID: <1528274774.17.0.592728768989.issue33778@psf.upfronthosting.co.za> STINNER Victor added the comment: Benjamin: would you mind to explain how to update Unicode in Python? I would like to document it, if you are not available for example, or don't want to do it anymore. I'm asking for my general idea of having at least two maintainers per "CPython maintenance task": http://vstinner.readthedocs.io/cpython_tasks.html ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 05:30:07 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 09:30:07 +0000 Subject: [issue33625] Release GIL for grp.getgr{nam, gid} and pwd.getpw{nam, uid} In-Reply-To: <1527105781.7.0.682650639539.issue33625@psf.upfronthosting.co.za> Message-ID: <1528277407.55.0.592728768989.issue33625@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- nosy: +vstinner _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 05:38:17 2018 From: report at bugs.python.org (Siddhartha Bose) Date: Wed, 06 Jun 2018 09:38:17 +0000 Subject: [issue33779] Error while installing python 3.6.5 on windows 10 Message-ID: <1528277897.55.0.592728768989.issue33779@psf.upfronthosting.co.za> New submission from Siddhartha Bose : Hi Team, I am getting below error while trying to install python 3.6.5 on windows 10. 0X80070005 Access is denied. Logs attached. Also when I see control panel it shows me under program and feartures however unable to uninstall. I am logged in as administrator. ---------- files: Python 3.6.5 (64-bit)_20180606150607.log messages: 318803 nosy: sid1987 priority: normal severity: normal status: open title: Error while installing python 3.6.5 on windows 10 type: crash versions: Python 3.6 Added file: https://bugs.python.org/file47631/Python 3.6.5 (64-bit)_20180606150607.log _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 05:39:36 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 09:39:36 +0000 Subject: [issue33779] Error while installing python 3.6.5 on windows 10 In-Reply-To: <1528277897.55.0.592728768989.issue33779@psf.upfronthosting.co.za> Message-ID: <1528277976.01.0.592728768989.issue33779@psf.upfronthosting.co.za> STINNER Victor added the comment: Extract of logs: [48E0:48FC][2018-06-06T15:06:11]i360: Creating a system restore point. [48E0:48FC][2018-06-06T15:06:11]w363: Could not create system restore point, error: 0x80070514. Continuing... [4B7C:4B80][2018-06-06T15:06:11]i370: Session begin, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9d1b786e-0fd4-4386-abc1-4b920ab32da9}, options: 0x4, disable resume: No [4B7C:4B80][2018-06-06T15:06:11]i320: Registering bundle dependency provider: CPython-3.6, version: 3.6.5150.0 [4B7C:4B80][2018-06-06T15:06:11]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9d1b786e-0fd4-4386-abc1-4b920ab32da9}, resume: Active, restart initiated: No, disable resume: No [4B7C:4B80][2018-06-06T15:06:11]e000: Error 0x80070005: Failed to write run key value. [4B7C:4B80][2018-06-06T15:06:11]e000: Error 0x80070005: Failed to update resume mode. [4B7C:4B80][2018-06-06T15:06:11]e000: Error 0x80070005: Failed to begin registration session. [4B7C:4B80][2018-06-06T15:06:11]e000: Error 0x80070005: Failed to register bundle. ---------- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, vstinner, zach.ware _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 05:42:50 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 09:42:50 +0000 Subject: [issue33765] AppVeyor didn't start on my PR 7365 In-Reply-To: <1528073746.0.0.592728768989.issue33765@psf.upfronthosting.co.za> Message-ID: <1528278170.3.0.592728768989.issue33765@psf.upfronthosting.co.za> STINNER Victor added the comment: AppVeyor is back! I close the issue. ---------- resolution: -> fixed stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 05:44:09 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 09:44:09 +0000 Subject: [issue33764] AppVeyor builds interrupted before tests complete In-Reply-To: <1528073612.86.0.592728768989.issue33764@psf.upfronthosting.co.za> Message-ID: <1528278249.72.0.592728768989.issue33764@psf.upfronthosting.co.za> STINNER Victor added the comment: Steve Dower: "Are we sure we haven't actually regressed something here and it's actually taking more resources? (...)" According to AppVeyor support, there was an issue on their side: "Regarding disk quota -- we are extremely sorry. This was not your fault, but side effect of build worker image update. You should be good now." https://help.appveyor.com/discussions/problems/14532-cpython-exceeded-allowed-resource-quotas-what-are-these-quotas-can-them-be-increased Moreover, AppVeyor donated us a second parallel job! "We decided to donate additional parallel job to the python account. Let us know how it goes." I close the issue. AppVeyor is back! ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 06:01:53 2018 From: report at bugs.python.org (Yoni Rozenshein) Date: Wed, 06 Jun 2018 10:01:53 +0000 Subject: [issue33780] [subprocess] Better Unicode support for shell=True on Windows Message-ID: <1528279313.05.0.592728768989.issue33780@psf.upfronthosting.co.za> New submission from Yoni Rozenshein : In subprocess, the implementation of shell=True on Windows is to launch a subprocess with using {comspec} /c "{args}" (normally comspec=cmd.exe). By default, the output of cmd is encoded with the "active" codepage. In Python 3.6, you can decode this using encoding='oem'. However, this actually loses information. For example, try creating a file with a filename in a language that is not your active codepage, and then doing subprocess.check_output('dir', shell=True). In the output, the filename is replaced with question marks (not by Python, by cmd!). To get the correct output, cmd has a "/u" switch (this switch has probably existed forever - at least since Windows NT 4.0, by my internet search). The output can then be decoded using encoding='utf-16-le', like any native Windows string. Currently, Popen constructs the command line in this hardcoded format: {comspec} /c "{args}", so you can't get the /u in there with the shell=True shortcut, and have to write your own wrapping code. I suggest adding an feature to Popen where /u may be inserted before the /c within the shell=True shortcut. I've thought of several ways to implement this: 1. A new argument to Popen, which indicates that we want Unicode shell output; if True, add the /u. Note that we already have a couple of Windows-only arguments to Popen, so this would not be a precedent. 2. If the encoding argument is 'utf-16-le' or one of its aliases, then add the /u. 3. If the encoding argument is not None, then add the /u. ---------- components: Library (Lib) messages: 318807 nosy: Yoni Rozenshein priority: normal severity: normal status: open title: [subprocess] Better Unicode support for shell=True on Windows type: enhancement versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 06:23:24 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 10:23:24 +0000 Subject: [issue33781] audioop.c: fbound() casts double to int for its return value Message-ID: <1528280604.0.0.592728768989.issue33781@psf.upfronthosting.co.za> New submission from STINNER Victor : Extract of Python 2.7, Modules/audioop.c: static int fbound(double val, double minval, double maxval) { if (val > maxval) val = maxval; else if (val < minval + 1) val = minval; return val; } Example of usage: double factor, fval, maxval, minval; int len, size, val = 0; fval = (double)val*factor; val = (int)floor(fbound(fval, minval, maxval)); It seems wrong to me to call floor() with an integer. Why fbound() doesn't return a double? fbound() has been modified to explicitly cast its result to an int in the master branch: static int fbound(double val, double minval, double maxval) { if (val > maxval) val = maxval; else if (val < minval + 1) val = minval; return (int)val; } But master still uses something like: val = floor(fbound(val, minval, maxval)); It seems like fbound() result is always passed into floor(). Maybe floor() should be moved into fbound()? Attached PR changes fbound() to round correctly: call floor() into fbound(). -- I looked at the code because of the following compiler warning on Python 2.7: [00:02:21] ..\Modules\audioop.c(38): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data [C:\projects\cpython\PCbuild\pythoncore.vcxproj] ---------- components: Extension Modules messages: 318808 nosy: vstinner priority: normal severity: normal status: open title: audioop.c: fbound() casts double to int for its return value versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 06:30:08 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 10:30:08 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528281008.72.0.592728768989.issue33694@psf.upfronthosting.co.za> STINNER Victor added the comment: Another variant seen on AppVeyor (PR 7439, master branch): https://ci.appveyor.com/project/python/cpython/build/3.8build16980 ====================================================================== ERROR: test_create_connection_ssl_failed_certificate (test.test_asyncio.test_sslproto.ProactorStartTLSTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\projects\cpython\lib\test\test_asyncio\test_sslproto.py", line 623, in test_create_connection_ssl_failed_certificate self.loop.run_until_complete(client(srv.addr)) File "C:\projects\cpython\lib\asyncio\base_events.py", line 566, in run_until_complete raise RuntimeError('Event loop stopped before Future completed.') RuntimeError: Event loop stopped before Future completed. ---------------------------------------------------------------------- ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 06:41:25 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 10:41:25 +0000 Subject: [issue33687] uu.py calls os.path.chmod which doesn't exist In-Reply-To: <1527631327.84.0.682650639539.issue33687@psf.upfronthosting.co.za> Message-ID: <1528281685.16.0.592728768989.issue33687@psf.upfronthosting.co.za> STINNER Victor added the comment: Is the uu module still maintained? Christian Heimes wants to remove the module: https://github.com/tiran/peps/blob/oldbatteries/pep-9999.rst Xiang Zhang made a change in uu last year to add a new feature: new backtick optional parameter, bpo-30103. ---------- nosy: +christian.heimes, vstinner, xiang.zhang _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 06:48:42 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 10:48:42 +0000 Subject: [issue33781] audioop.c: fbound() casts double to int for its return value In-Reply-To: <1528280604.0.0.592728768989.issue33781@psf.upfronthosting.co.za> Message-ID: <1528282122.39.0.592728768989.issue33781@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- keywords: +patch pull_requests: +7070 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 07:02:16 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 11:02:16 +0000 Subject: [issue33781] audioop.c: fbound() casts double to int for its return value In-Reply-To: <1528280604.0.0.592728768989.issue33781@psf.upfronthosting.co.za> Message-ID: <1528282936.66.0.592728768989.issue33781@psf.upfronthosting.co.za> STINNER Victor added the comment: Oh, fbound() cast to (int) has been done by... myself :-D commit f2b9a340ef143099726fb642951410e4ad793c7f Author: Victor Stinner Date: Tue May 7 23:49:15 2013 +0200 audioop: explicit cast to fix a compiler warning diff --git a/Modules/audioop.c b/Modules/audioop.c index 7e40bbddc6..4f2b25f33a 100644 --- a/Modules/audioop.c +++ b/Modules/audioop.c @@ -37,7 +37,7 @@ fbound(double val, double minval, double maxval) val = maxval; else if (val < minval + 1) val = minval; - return val; + return (int)val; } Stupid me! ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 07:05:51 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 11:05:51 +0000 Subject: [issue31044] FAIL: test_makedev (test.test_posix.PosixTester) on AMD64 FreeBSD CURRENT In-Reply-To: <1501069590.31.0.999059356649.issue31044@psf.upfronthosting.co.za> Message-ID: <1528283151.21.0.592728768989.issue31044@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7071 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 07:12:44 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 11:12:44 +0000 Subject: [issue33782] VSTS Windows-PR: internal error Message-ID: <1528283564.84.0.592728768989.issue33782@psf.upfronthosting.co.za> New submission from STINNER Victor : On my PR https://github.com/python/cpython/pull/7447 "VSTS: Windows-PR" failed: "Windows-PR_20180606.13 failed". https://python.visualstudio.com/cpython/_build?buildId=6469 "The request was failed due to an internal service error. Please try again." ---------- components: Build, Tests messages: 318812 nosy: steve.dower, vstinner priority: normal severity: normal status: open title: VSTS Windows-PR: internal error versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 07:12:53 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 11:12:53 +0000 Subject: [issue33782] VSTS Windows-PR: internal error In-Reply-To: <1528283564.84.0.592728768989.issue33782@psf.upfronthosting.co.za> Message-ID: <1528283573.45.0.592728768989.issue33782@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- assignee: -> steve.dower _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 07:15:26 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 11:15:26 +0000 Subject: [issue33782] VSTS Windows-PR: internal error In-Reply-To: <1528283564.84.0.592728768989.issue33782@psf.upfronthosting.co.za> Message-ID: <1528283726.19.0.592728768989.issue33782@psf.upfronthosting.co.za> STINNER Victor added the comment: By the way, it seems like tests were not run on the Linux-PR job: https://python.visualstudio.com/cpython/_build?buildId=6467&tab=summary&_a=summary Linux-PR / Build Linux-PR_20180606.13: "No test runs are available for this build." "Retained state Build not retained" What does it mean? Is it a bug? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 07:46:43 2018 From: report at bugs.python.org (R. David Murray) Date: Wed, 06 Jun 2018 11:46:43 +0000 Subject: [issue33687] uu.py calls os.path.chmod which doesn't exist In-Reply-To: <1527631327.84.0.682650639539.issue33687@psf.upfronthosting.co.za> Message-ID: <1528285603.79.0.592728768989.issue33687@psf.upfronthosting.co.za> R. David Murray added the comment: The email module uses it, so I would object to its being removed. It may not be used often (probably only when working with old email archives), but there's no good reason I can see to break something that currently works. ---------- nosy: +r.david.murray _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 07:56:59 2018 From: report at bugs.python.org (Xiang Zhang) Date: Wed, 06 Jun 2018 11:56:59 +0000 Subject: [issue33687] uu.py calls os.path.chmod which doesn't exist In-Reply-To: <1527631327.84.0.682650639539.issue33687@psf.upfronthosting.co.za> Message-ID: <1528286219.15.0.592728768989.issue33687@psf.upfronthosting.co.za> Xiang Zhang added the comment: I modified it for the feature, not maintain it. I remember at that time I get the feeling it's somewhat strange there are two APIs, with similar functionality resides in two modules, need to be updated. ---------- nosy: -r.david.murray _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 07:58:19 2018 From: report at bugs.python.org (Xiang Zhang) Date: Wed, 06 Jun 2018 11:58:19 +0000 Subject: [issue33687] uu.py calls os.path.chmod which doesn't exist In-Reply-To: <1527631327.84.0.682650639539.issue33687@psf.upfronthosting.co.za> Message-ID: <1528286299.1.0.592728768989.issue33687@psf.upfronthosting.co.za> Change by Xiang Zhang : ---------- nosy: +r.david.murray _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 08:37:02 2018 From: report at bugs.python.org (Cheryl Sabella) Date: Wed, 06 Jun 2018 12:37:02 +0000 Subject: [issue22454] Adding the opposite function of shlex.split() In-Reply-To: <1411328149.26.0.00522128245951.issue22454@psf.upfronthosting.co.za> Message-ID: <1528288622.26.0.592728768989.issue22454@psf.upfronthosting.co.za> Cheryl Sabella added the comment: Hi Vinay, You made the most recent changes to shlex, so I was wondering what you thought of this suggestion. Thanks! ---------- nosy: +cheryl.sabella, vinay.sajip _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 08:59:58 2018 From: report at bugs.python.org (R. David Murray) Date: Wed, 06 Jun 2018 12:59:58 +0000 Subject: [issue22454] Adding the opposite function of shlex.split() In-Reply-To: <1411328149.26.0.00522128245951.issue22454@psf.upfronthosting.co.za> Message-ID: <1528289998.62.0.592728768989.issue22454@psf.upfronthosting.co.za> R. David Murray added the comment: I like it, myself, though there is some danger in promoting the idea that this is a "safe" operation. It theoretically should be, but it increases the attack surface slightly if you actually use it (that is, using shell=False is always safer, by at least a small margin). Maybe a mention of that in the docs would be enough, though. ---------- nosy: +r.david.murray _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 09:15:23 2018 From: report at bugs.python.org (Steve Dower) Date: Wed, 06 Jun 2018 13:15:23 +0000 Subject: [issue33782] VSTS Windows-PR: internal error In-Reply-To: <1528283564.84.0.592728768989.issue33782@psf.upfronthosting.co.za> Message-ID: <1528290923.13.0.592728768989.issue33782@psf.upfronthosting.co.za> Steve Dower added the comment: I'd already started discussing this with the VSTS team, it seems to be a bug on their side. The "build not retained" state just means it'll get cleaned up after seven days. People with login access can mark a build to be kept permanently, which changes that state. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 09:22:59 2018 From: report at bugs.python.org (Steve Dower) Date: Wed, 06 Jun 2018 13:22:59 +0000 Subject: [issue33779] Error while installing python 3.6.5 on windows 10 In-Reply-To: <1528277897.55.0.592728768989.issue33779@psf.upfronthosting.co.za> Message-ID: <1528291379.51.0.592728768989.issue33779@psf.upfronthosting.co.za> Steve Dower added the comment: Did you have a previous install? It looks like it is registered but somehow you don't have the ability to replace it. If you're comfortable with using regedit.exe, you could try renaming SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9d1b786e-0fd4-4386-abc1-4b920ab32da9} (probably under HKEY_CURRENT_USER, but running as admin all the time can make installers choose HKEY_LOCAL_MACHINE instead). Renaming will get it out of the way so you can try installing again, but you can bring it back if something else breaks. If you're not comfortable, let me know and I'll make a Powershell script for you can that do it. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 09:28:56 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 13:28:56 +0000 Subject: [issue31044] FAIL: test_makedev (test.test_posix.PosixTester) on AMD64 FreeBSD CURRENT In-Reply-To: <1501069590.31.0.999059356649.issue31044@psf.upfronthosting.co.za> Message-ID: <1528291736.52.0.592728768989.issue31044@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset b5d702e5e7291eed21666ed931da2a5e92c28a65 by Victor Stinner in branch 'master': bpo-31044, test_posix: Reenable makedev() tests on FreeBSD (#7449) https://github.com/python/cpython/commit/b5d702e5e7291eed21666ed931da2a5e92c28a65 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 09:33:08 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 13:33:08 +0000 Subject: [issue31044] FAIL: test_makedev (test.test_posix.PosixTester) on AMD64 FreeBSD CURRENT In-Reply-To: <1501069590.31.0.999059356649.issue31044@psf.upfronthosting.co.za> Message-ID: <1528291988.15.0.592728768989.issue31044@psf.upfronthosting.co.za> STINNER Victor added the comment: I enabled again the test in the master branch, the FreeBSD kernel bug has been fixed 10 months ago: * https://svnweb.freebsd.org/base?view=revision&revision=321920 * https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221048 Technically, we could reenable the test in 3.7 as well, but I prefer to leave it disabled since I'm not 100% sure that all FreeBSD kernels in the wild are fine, and the code is already well tested by other platforms. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 09:48:39 2018 From: report at bugs.python.org (Al-Scandar Solstag) Date: Wed, 06 Jun 2018 13:48:39 +0000 Subject: [issue33774] Document that @lru_cache caches based on exactly how the function arguments are specified In-Reply-To: <1528217935.32.0.592728768989.issue33774@psf.upfronthosting.co.za> Message-ID: <1528292919.17.0.592728768989.issue33774@psf.upfronthosting.co.za> Al-Scandar Solstag added the comment: Hi Raymond, I think I understand what you mean, and would suggest something along the lines of: """ Note that lru_cache only guarantees cache matches on the exact way function arguments are specified, so the following ways of calling 'def f(a, b=7)' are not guaranteed to cache each other: f(1), f(a=1), f(1, 7), f(1, b=7), f(a=1, b=7). """ ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 09:50:05 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 13:50:05 +0000 Subject: [issue33782] VSTS Windows-PR: internal error In-Reply-To: <1528283564.84.0.592728768989.issue33782@psf.upfronthosting.co.za> Message-ID: <1528293005.97.0.592728768989.issue33782@psf.upfronthosting.co.za> STINNER Victor added the comment: > The "build not retained" state just means it'll get cleaned up after seven days. Oh ok. But I'm confused, I don't see where are the logs. I clicked on Timeline, Code coverage, Tests: all are empty. In the logs ZIP, I cannot see any command related to Python (like building the C code or run tests). The build is failed but didn't run anything? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 09:50:52 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 13:50:52 +0000 Subject: [issue33781] audioop.c: fbound() casts double to int for its return value In-Reply-To: <1528280604.0.0.592728768989.issue33781@psf.upfronthosting.co.za> Message-ID: <1528293052.53.0.592728768989.issue33781@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 45e4efba7fa2abe61d25e4f8b5bf482e19ff1280 by Victor Stinner in branch 'master': bpo-33781: audioop: enhance rounding double as int (GH-7447) https://github.com/python/cpython/commit/45e4efba7fa2abe61d25e4f8b5bf482e19ff1280 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 10:15:44 2018 From: report at bugs.python.org (Steve Dower) Date: Wed, 06 Jun 2018 14:15:44 +0000 Subject: [issue33782] VSTS Windows-PR: internal error In-Reply-To: <1528283564.84.0.592728768989.issue33782@psf.upfronthosting.co.za> Message-ID: <1528294544.3.0.592728768989.issue33782@psf.upfronthosting.co.za> Steve Dower added the comment: Right. This build failed to start, which is why there's only one section on the left hand side (normally you'll see all the build steps there, and clicking on them will show their logs). I think it'll be an internal race condition. I'll pass back whatever info I can as I find out more. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 10:17:16 2018 From: report at bugs.python.org (miss-islington) Date: Wed, 06 Jun 2018 14:17:16 +0000 Subject: [issue33781] audioop.c: fbound() casts double to int for its return value In-Reply-To: <1528280604.0.0.592728768989.issue33781@psf.upfronthosting.co.za> Message-ID: <1528294636.98.0.592728768989.issue33781@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7072 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 10:18:13 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 06 Jun 2018 14:18:13 +0000 Subject: [issue33781] audioop.c: fbound() casts double to int for its return value In-Reply-To: <1528280604.0.0.592728768989.issue33781@psf.upfronthosting.co.za> Message-ID: <1528294693.5.0.592728768989.issue33781@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: It was my mistake. fbound() should be return double. But since it is always used with floor(), it is better to move floor() inside it. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 10:18:13 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 06 Jun 2018 14:18:13 +0000 Subject: [issue33781] audioop.c: fbound() casts double to int for its return value In-Reply-To: <1528280604.0.0.592728768989.issue33781@psf.upfronthosting.co.za> Message-ID: <1528294693.5.0.592728768989.issue33781@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: It was my mistake. fbound() should be return double. But since it is always used with floor(), it is better to move floor() inside it. ---------- nosy: +serhiy.storchaka pull_requests: +7073 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 10:22:42 2018 From: report at bugs.python.org (Nick Coghlan) Date: Wed, 06 Jun 2018 14:22:42 +0000 Subject: [issue33783] Use proper class markup for random.Random docs Message-ID: <1528294962.84.0.592728768989.issue33783@psf.upfronthosting.co.za> New submission from Nick Coghlan : Talking to Berker on http://psf.upfronthosting.co.za/roundup/meta/issue644 I noticed that docs for random.Random are currently embedded in the module preamble text for https://docs.python.org/3/library/random.html and hence really easy to miss. It would be good if they were broken out into a proper Sphix class directive so that the fact you can create your own dedicated pseudorandom number generators for specific purposes is easier to see on a quick scan of the docs. ---------- keywords: easy messages: 318827 nosy: berker.peksag, ncoghlan priority: normal severity: normal stage: needs patch status: open title: Use proper class markup for random.Random docs type: enhancement versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 10:23:20 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 14:23:20 +0000 Subject: [issue33781] audioop.c: fbound() casts double to int for its return value In-Reply-To: <1528280604.0.0.592728768989.issue33781@psf.upfronthosting.co.za> Message-ID: <1528295000.24.0.592728768989.issue33781@psf.upfronthosting.co.za> STINNER Victor added the comment: > But since it is always used with floor(), it is better to move floor() inside it. Yeah, that's what I did ;-) I will backport the change to 3.7, 3.6 and 2.7. My final goal is just to fix a compiler warning in 2.7 :-D ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 10:33:08 2018 From: report at bugs.python.org (miss-islington) Date: Wed, 06 Jun 2018 14:33:08 +0000 Subject: [issue33781] audioop.c: fbound() casts double to int for its return value In-Reply-To: <1528280604.0.0.592728768989.issue33781@psf.upfronthosting.co.za> Message-ID: <1528295588.73.0.592728768989.issue33781@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 5c022f13ab6db8929e092ad035b3dc61701e3198 by Miss Islington (bot) in branch '3.7': bpo-33781: audioop: enhance rounding double as int (GH-7447) https://github.com/python/cpython/commit/5c022f13ab6db8929e092ad035b3dc61701e3198 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 10:40:41 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 14:40:41 +0000 Subject: [issue33781] audioop.c: fbound() casts double to int for its return value In-Reply-To: <1528280604.0.0.592728768989.issue33781@psf.upfronthosting.co.za> Message-ID: <1528296041.96.0.592728768989.issue33781@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7074 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 10:41:36 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 14:41:36 +0000 Subject: [issue33781] audioop.c: fbound() casts double to int for its return value In-Reply-To: <1528280604.0.0.592728768989.issue33781@psf.upfronthosting.co.za> Message-ID: <1528296096.79.0.592728768989.issue33781@psf.upfronthosting.co.za> STINNER Victor added the comment: Note: I chose to not add a NEWS entry, because even if my change might enhance the rounding, I don't think that it has any effect in practice :-) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 11:12:43 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 15:12:43 +0000 Subject: [issue33781] audioop.c: fbound() casts double to int for its return value In-Reply-To: <1528280604.0.0.592728768989.issue33781@psf.upfronthosting.co.za> Message-ID: <1528297963.78.0.592728768989.issue33781@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset b17d409bc0458e3981987c2358da661f228f5891 by Victor Stinner in branch '2.7': bpo-33781: audioop: enhance rounding double as int (GH-7447) (GH-7452) https://github.com/python/cpython/commit/b17d409bc0458e3981987c2358da661f228f5891 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 11:14:11 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 15:14:11 +0000 Subject: [issue33781] audioop.c: fbound() casts double to int for its return value In-Reply-To: <1528280604.0.0.592728768989.issue33781@psf.upfronthosting.co.za> Message-ID: <1528298051.23.0.592728768989.issue33781@psf.upfronthosting.co.za> STINNER Victor added the comment: > New changeset b17d409bc0458e3981987c2358da661f228f5891 by Victor Stinner in branch '2.7': > bpo-33781: audioop: enhance rounding double as int (GH-7447) (GH-7452) I checked AppVeyor logs: this change fixed the audioop.c warning that I wanted to fix ;-) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 11:17:48 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 15:17:48 +0000 Subject: [issue19418] audioop.c giving signed/unsigned warnings on Windows In-Reply-To: <1382903078.0.0.055907083151.issue19418@psf.upfronthosting.co.za> Message-ID: <1528298268.88.0.592728768989.issue19418@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7075 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 11:17:49 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 15:17:49 +0000 Subject: [issue33781] audioop.c: fbound() casts double to int for its return value In-Reply-To: <1528280604.0.0.592728768989.issue33781@psf.upfronthosting.co.za> Message-ID: <1528298269.01.0.786479179495.issue33781@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7076 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 11:18:30 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 15:18:30 +0000 Subject: [issue33781] audioop.c: fbound() casts double to int for its return value In-Reply-To: <1528280604.0.0.592728768989.issue33781@psf.upfronthosting.co.za> Message-ID: <1528298310.04.0.592728768989.issue33781@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 2bc1946fb02e140f5f5ac21a1afa2763615ad16b by Victor Stinner (Miss Islington (bot)) in branch '3.6': bpo-33781: audioop: enhance rounding double as int (GH-7447) (GH-7451) https://github.com/python/cpython/commit/2bc1946fb02e140f5f5ac21a1afa2763615ad16b ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 11:23:52 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 15:23:52 +0000 Subject: [issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/ In-Reply-To: <1528198179.8.0.592728768989.issue33773@psf.upfronthosting.co.za> Message-ID: <1528298632.9.0.592728768989.issue33773@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 492d6424a7ca907c8ec1df21e51062e8f3d88e32 by Victor Stinner in branch 'master': bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421) https://github.com/python/cpython/commit/492d6424a7ca907c8ec1df21e51062e8f3d88e32 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 11:26:42 2018 From: report at bugs.python.org (miss-islington) Date: Wed, 06 Jun 2018 15:26:42 +0000 Subject: [issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/ In-Reply-To: <1528198179.8.0.592728768989.issue33773@psf.upfronthosting.co.za> Message-ID: <1528298802.46.0.592728768989.issue33773@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7077 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 11:27:37 2018 From: report at bugs.python.org (miss-islington) Date: Wed, 06 Jun 2018 15:27:37 +0000 Subject: [issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/ In-Reply-To: <1528198179.8.0.592728768989.issue33773@psf.upfronthosting.co.za> Message-ID: <1528298857.12.0.592728768989.issue33773@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7078 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 11:29:28 2018 From: report at bugs.python.org (Francois Schneider) Date: Wed, 06 Jun 2018 15:29:28 +0000 Subject: [issue33784] hash collision in instances of ipaddress.ip_network Message-ID: <1528298968.12.0.592728768989.issue33784@psf.upfronthosting.co.za> New submission from Francois Schneider : >>> import ipaddress >>> hash(ipaddress.ip_network(u'20.0.2.3/32')) == hash(ipaddress.ip_network(u'20.0.2.0/30')) True ---------- components: Library (Lib) messages: 318835 nosy: Francois Schneider priority: normal severity: normal status: open title: hash collision in instances of ipaddress.ip_network type: behavior versions: Python 2.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 11:32:09 2018 From: report at bugs.python.org (Francois Schneider) Date: Wed, 06 Jun 2018 15:32:09 +0000 Subject: [issue33784] hash collision in instances of ipaddress.ip_network In-Reply-To: <1528298968.12.0.592728768989.issue33784@psf.upfronthosting.co.za> Message-ID: <1528299129.72.0.592728768989.issue33784@psf.upfronthosting.co.za> Change by Francois Schneider : ---------- versions: +Python 3.4, Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 11:48:37 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 15:48:37 +0000 Subject: [issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/ In-Reply-To: <1528198179.8.0.592728768989.issue33773@psf.upfronthosting.co.za> Message-ID: <1528300117.71.0.592728768989.issue33773@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7079 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 11:51:10 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 15:51:10 +0000 Subject: [issue19418] audioop.c giving signed/unsigned warnings on Windows In-Reply-To: <1382903078.0.0.055907083151.issue19418@psf.upfronthosting.co.za> Message-ID: <1528300270.01.0.592728768989.issue19418@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset e5b79c546370521764457ea2ec809303e580f5ea by Victor Stinner in branch '2.7': bpo-19418: audioop.c: Fix warnings on -0x80000000 (GH-7453) https://github.com/python/cpython/commit/e5b79c546370521764457ea2ec809303e580f5ea ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 11:51:10 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 15:51:10 +0000 Subject: [issue33781] audioop.c: fbound() casts double to int for its return value In-Reply-To: <1528280604.0.0.592728768989.issue33781@psf.upfronthosting.co.za> Message-ID: <1528300270.2.0.584625200856.issue33781@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset e5b79c546370521764457ea2ec809303e580f5ea by Victor Stinner in branch '2.7': bpo-19418: audioop.c: Fix warnings on -0x80000000 (GH-7453) https://github.com/python/cpython/commit/e5b79c546370521764457ea2ec809303e580f5ea ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 11:55:20 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 15:55:20 +0000 Subject: [issue28240] Enhance the timeit module: display average +- std dev instead of minimum In-Reply-To: <1474466930.94.0.352912034658.issue28240@psf.upfronthosting.co.za> Message-ID: <1528300520.5.0.592728768989.issue28240@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 3ef769fcd378a7f1cda19c0dfec2e79613d79e48 by Victor Stinner in branch 'master': bpo-28240: timeit: Update repeat() doc (GH-7419) https://github.com/python/cpython/commit/3ef769fcd378a7f1cda19c0dfec2e79613d79e48 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 11:55:54 2018 From: report at bugs.python.org (Romaji Milton Amulo) Date: Wed, 06 Jun 2018 15:55:54 +0000 Subject: =?utf-8?b?W2lzc3VlMzM3ODVdIENyYXNoIGNhdXNlZCBieSBwYXN0aW5nIPCQjIjwkIyW?= =?utf-8?q?_into_python?= Message-ID: <1528300554.15.0.592728768989.issue33785@psf.upfronthosting.co.za> New submission from Romaji Milton Amulo : On Windows 10, 64 bit, "Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on win32" crashes if ?? is pasted into the interpreter window, closing the window immediately. Also ??? crashes it too, suggesting the bug might be in text processing of Etruscan runes. ---------- components: Unicode messages: 318839 nosy: ezio.melotti, romaji, vstinner priority: normal severity: normal status: open title: Crash caused by pasting ?? into python type: crash versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 11:56:31 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 15:56:31 +0000 Subject: =?utf-8?b?W2lzc3VlMzM3ODVdIENyYXNoIGNhdXNlZCBieSBwYXN0aW5nIPCQjIjwkIyW?= =?utf-8?q?_into_python?= In-Reply-To: <1528300554.15.0.592728768989.issue33785@psf.upfronthosting.co.za> Message-ID: <1528300591.56.0.592728768989.issue33785@psf.upfronthosting.co.za> STINNER Victor added the comment: Are you using cmd.exe, PowerShell or IDLE? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 11:56:39 2018 From: report at bugs.python.org (miss-islington) Date: Wed, 06 Jun 2018 15:56:39 +0000 Subject: [issue28240] Enhance the timeit module: display average +- std dev instead of minimum In-Reply-To: <1474466930.94.0.352912034658.issue28240@psf.upfronthosting.co.za> Message-ID: <1528300599.15.0.592728768989.issue28240@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7080 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 11:57:22 2018 From: report at bugs.python.org (miss-islington) Date: Wed, 06 Jun 2018 15:57:22 +0000 Subject: [issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/ In-Reply-To: <1528198179.8.0.592728768989.issue33773@psf.upfronthosting.co.za> Message-ID: <1528300642.38.0.592728768989.issue33773@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 016aff77cbf5f63ed051a98ac628522a1cfd40a4 by Miss Islington (bot) in branch '3.7': bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421) https://github.com/python/cpython/commit/016aff77cbf5f63ed051a98ac628522a1cfd40a4 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 11:58:21 2018 From: report at bugs.python.org (Romaji Milton Amulo) Date: Wed, 06 Jun 2018 15:58:21 +0000 Subject: =?utf-8?b?W2lzc3VlMzM3ODVdIENyYXNoIGNhdXNlZCBieSBwYXN0aW5nIPCQjIjwkIyW?= =?utf-8?q?_into_python?= In-Reply-To: <1528300591.56.0.592728768989.issue33785@psf.upfronthosting.co.za> Message-ID: Romaji Milton Amulo added the comment: IDLE On Wed, Jun 6, 2018, 11:56 STINNER Victor wrote: > > STINNER Victor added the comment: > > Are you using cmd.exe, PowerShell or IDLE? > > ---------- > > _______________________________________ > Python tracker > > _______________________________________ > ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 12:09:28 2018 From: report at bugs.python.org (miss-islington) Date: Wed, 06 Jun 2018 16:09:28 +0000 Subject: [issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/ In-Reply-To: <1528198179.8.0.592728768989.issue33773@psf.upfronthosting.co.za> Message-ID: <1528301368.13.0.592728768989.issue33773@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 97fe1b493df979956c66c57095bc7fce22104faf by Miss Islington (bot) in branch '3.6': bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421) https://github.com/python/cpython/commit/97fe1b493df979956c66c57095bc7fce22104faf ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 12:23:16 2018 From: report at bugs.python.org (Zachary Ware) Date: Wed, 06 Jun 2018 16:23:16 +0000 Subject: =?utf-8?b?W2lzc3VlMzM3ODVdIENyYXNoIGNhdXNlZCBieSBwYXN0aW5nIPCQjIjwkIyW?= =?utf-8?q?_into_python?= In-Reply-To: <1528300554.15.0.592728768989.issue33785@psf.upfronthosting.co.za> Message-ID: <1528302196.66.0.592728768989.issue33785@psf.upfronthosting.co.za> Zachary Ware added the comment: I suspect this is the old issue of Tcl/Tk's lack of support for Unicode characters outside the BMP. If I'm correct, there's nothing we can do about it. ---------- assignee: -> terry.reedy components: +IDLE nosy: +serhiy.storchaka, terry.reedy, zach.ware _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 12:31:15 2018 From: report at bugs.python.org (Romaji Milton Amulo) Date: Wed, 06 Jun 2018 16:31:15 +0000 Subject: =?utf-8?b?W2lzc3VlMzM3ODVdIENyYXNoIGNhdXNlZCBieSBwYXN0aW5nIPCQjIjwkIyW?= =?utf-8?q?_into_python?= In-Reply-To: <1528300554.15.0.592728768989.issue33785@psf.upfronthosting.co.za> Message-ID: <1528302675.65.0.592728768989.issue33785@psf.upfronthosting.co.za> Romaji Milton Amulo added the comment: Would running it in Powershell avoid the issue? What is the BMP, by the way? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 12:57:26 2018 From: report at bugs.python.org (Matthew Barnett) Date: Wed, 06 Jun 2018 16:57:26 +0000 Subject: =?utf-8?b?W2lzc3VlMzM3ODVdIENyYXNoIGNhdXNlZCBieSBwYXN0aW5nIPCQjIjwkIyW?= =?utf-8?q?_into_python?= In-Reply-To: <1528300554.15.0.592728768989.issue33785@psf.upfronthosting.co.za> Message-ID: <1528304246.46.0.592728768989.issue33785@psf.upfronthosting.co.za> Matthew Barnett added the comment: For clarity, the first is '\U00010308\U00010316' and the second is '\U00010306\U00010300\U0001030B'. The BMP is the Basic Multilingual Plane, which covers the codepoints in the range U+0000 to U+FFFF. Some software has a problem dealing with codepoints outside the BMP. ---------- nosy: +mrabarnett _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 12:58:19 2018 From: report at bugs.python.org (Zachary Ware) Date: Wed, 06 Jun 2018 16:58:19 +0000 Subject: =?utf-8?b?W2lzc3VlMzM3ODVdIENyYXNoIGNhdXNlZCBieSBwYXN0aW5nIPCQjIjwkIyW?= =?utf-8?q?_into_python?= In-Reply-To: <1528300554.15.0.592728768989.issue33785@psf.upfronthosting.co.za> Message-ID: <1528304299.81.0.592728768989.issue33785@psf.upfronthosting.co.za> Zachary Ware added the comment: Depending on PowerShell's support for Unicode (I'm not familiar with it :)), yes; running python from PowerShell would probably be fine in this case. The BMP: https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane ---------- nosy: -mrabarnett _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 13:04:01 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 17:04:01 +0000 Subject: [issue33781] audioop.c: fbound() casts double to int for its return value In-Reply-To: <1528280604.0.0.592728768989.issue33781@psf.upfronthosting.co.za> Message-ID: <1528304641.74.0.592728768989.issue33781@psf.upfronthosting.co.za> STINNER Victor added the comment: Ok, fbound() is now better in all branches. I also fixed all compiler warnings in 2.7. I close the issue. ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 13:05:00 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 17:05:00 +0000 Subject: [issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/ In-Reply-To: <1528198179.8.0.592728768989.issue33773@psf.upfronthosting.co.za> Message-ID: <1528304700.65.0.592728768989.issue33773@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 67b7158d53f33ed644cc11ef394470a859ea8bad by Victor Stinner in branch '2.7': bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421) (GH-7456) https://github.com/python/cpython/commit/67b7158d53f33ed644cc11ef394470a859ea8bad ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 13:05:16 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 17:05:16 +0000 Subject: [issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/ In-Reply-To: <1528198179.8.0.592728768989.issue33773@psf.upfronthosting.co.za> Message-ID: <1528304716.43.0.592728768989.issue33773@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 13:05:20 2018 From: report at bugs.python.org (Romaji Milton Amulo) Date: Wed, 06 Jun 2018 17:05:20 +0000 Subject: =?utf-8?b?W2lzc3VlMzM3ODVdIENyYXNoIGNhdXNlZCBieSBwYXN0aW5nIPCQjIjwkIyW?= =?utf-8?q?_into_python?= In-Reply-To: <1528300554.15.0.592728768989.issue33785@psf.upfronthosting.co.za> Message-ID: <1528304720.98.0.592728768989.issue33785@psf.upfronthosting.co.za> Romaji Milton Amulo added the comment: It doesn't crash in Powershell, only shows up as the ? in a box character The issue must be with IDLE, most likely the BMP lack of support ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 13:05:48 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 17:05:48 +0000 Subject: [issue28240] Enhance the timeit module: display average +- std dev instead of minimum In-Reply-To: <1474466930.94.0.352912034658.issue28240@psf.upfronthosting.co.za> Message-ID: <1528304748.59.0.592728768989.issue28240@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset cebd4b009adca6611e92eb337747f59818e941a6 by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-28240: timeit: Update repeat() doc (GH-7419) (GH-7457) https://github.com/python/cpython/commit/cebd4b009adca6611e92eb337747f59818e941a6 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 13:06:41 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 17:06:41 +0000 Subject: [issue28240] Enhance the timeit module: display average +- std dev instead of minimum In-Reply-To: <1474466930.94.0.352912034658.issue28240@psf.upfronthosting.co.za> Message-ID: <1528304801.38.0.592728768989.issue28240@psf.upfronthosting.co.za> STINNER Victor added the comment: I updated the documentation in 3.7 and master branches. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 13:07:38 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 17:07:38 +0000 Subject: =?utf-8?b?W2lzc3VlMzM3ODVdIENyYXNoIGNhdXNlZCBieSBwYXN0aW5nIPCQjIjwkIyW?= =?utf-8?q?_into_IDLE_on_Windows?= In-Reply-To: <1528300554.15.0.592728768989.issue33785@psf.upfronthosting.co.za> Message-ID: <1528304858.26.0.592728768989.issue33785@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- title: Crash caused by pasting ?? into python -> Crash caused by pasting ?? into IDLE on Windows _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 13:24:35 2018 From: report at bugs.python.org (Valentin Lavrinenko) Date: Wed, 06 Jun 2018 17:24:35 +0000 Subject: [issue33786] @asynccontextmanager doesn't work well with async generators Message-ID: <1528305875.22.0.592728768989.issue33786@psf.upfronthosting.co.za> New submission from Valentin Lavrinenko : ``` @asynccontextmanager async def ctx(): yield async def gen(): async with ctx(): yield 'hello' yield 'world' async def main(): async with ctx(): async for value in gen(): print(value) raise RuntimeError() ``` Running main() leads to `RuntimeError: generator didn't stop after throw()`. This happens because async gernerator's `.athrow()` method doesn't re-throw `GeneratorExit` exception; probably, this is wrong. ---------- components: asyncio messages: 318853 nosy: Valentin Lavrinenko, asvetlov, yselivanov priority: normal severity: normal status: open title: @asynccontextmanager doesn't work well with async generators versions: Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 13:27:13 2018 From: report at bugs.python.org (Valentin Lavrinenko) Date: Wed, 06 Jun 2018 17:27:13 +0000 Subject: [issue33786] @asynccontextmanager doesn't work well with async generators In-Reply-To: <1528305875.22.0.592728768989.issue33786@psf.upfronthosting.co.za> Message-ID: <1528306033.2.0.592728768989.issue33786@psf.upfronthosting.co.za> Valentin Lavrinenko added the comment: Sorry, `async with ctx()` in main() is not needed. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 13:33:02 2018 From: report at bugs.python.org (Aaron Meurer) Date: Wed, 06 Jun 2018 17:33:02 +0000 Subject: [issue24622] tokenize.py: missing EXACT_TOKEN_TYPES In-Reply-To: <1436729377.89.0.451182448624.issue24622@psf.upfronthosting.co.za> Message-ID: <1528306382.03.0.592728768989.issue24622@psf.upfronthosting.co.za> Aaron Meurer added the comment: I would suggest adding this to the what's new document https://docs.python.org/3.7/whatsnew/3.7.html. The change affects user-facing code (the exact_type attribute of TokenInfo is OP for ... and -> tokens prior to this patch). I would also point out that this directly contradicts the documentation (from https://docs.python.org/3/library/tokenize.html, "To simplify token stream handling, all operator and delimiter tokens and Ellipsis are returned using the generic OP token type. The exact type can be determined by checking the exact_type property on the named tuple returned from tokenize.tokenize()."), so I don't see why it can't be backported. ---------- nosy: +Aaron.Meurer _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 14:16:25 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 06 Jun 2018 18:16:25 +0000 Subject: [issue33786] @asynccontextmanager doesn't work well with async generators In-Reply-To: <1528305875.22.0.592728768989.issue33786@psf.upfronthosting.co.za> Message-ID: <1528308985.98.0.592728768989.issue33786@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- nosy: +ncoghlan _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 14:18:30 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 06 Jun 2018 18:18:30 +0000 Subject: [issue33783] Use proper class markup for random.Random docs In-Reply-To: <1528294962.84.0.592728768989.issue33783@psf.upfronthosting.co.za> Message-ID: <1528309110.42.0.592728768989.issue33783@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- assignee: -> rhettinger nosy: +mark.dickinson, rhettinger _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 14:23:39 2018 From: report at bugs.python.org (Stefan Krah) Date: Wed, 06 Jun 2018 18:23:39 +0000 Subject: [issue24622] tokenize.py: missing EXACT_TOKEN_TYPES In-Reply-To: <1436729377.89.0.451182448624.issue24622@psf.upfronthosting.co.za> Message-ID: <1528309419.38.0.592728768989.issue24622@psf.upfronthosting.co.za> Stefan Krah added the comment: I would not mind backporting this. Let's think about it for a while. ---------- assignee: skrah -> resolution: fixed -> stage: resolved -> backport needed status: closed -> open versions: +Python 3.6 -Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 14:23:53 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 06 Jun 2018 18:23:53 +0000 Subject: [issue33780] [subprocess] Better Unicode support for shell=True on Windows In-Reply-To: <1528279313.05.0.592728768989.issue33780@psf.upfronthosting.co.za> Message-ID: <1528309433.95.0.592728768989.issue33780@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- components: +Windows nosy: +giampaolo.rodola, paul.moore, steve.dower, tim.golden, vstinner, zach.ware _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 15:04:03 2018 From: report at bugs.python.org (Brett Cannon) Date: Wed, 06 Jun 2018 19:04:03 +0000 Subject: [issue33777] dummy_threading: .is_alive method returns True after execution has completed In-Reply-To: <1528250405.09.0.592728768989.issue33777@psf.upfronthosting.co.za> Message-ID: <1528311843.05.0.592728768989.issue33777@psf.upfronthosting.co.za> Change by Brett Cannon : ---------- components: +Library (Lib) -Interpreter Core _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 15:49:08 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Wed, 06 Jun 2018 19:49:08 +0000 Subject: [issue33787] Argument clinic and Windows line endings Message-ID: <1528314548.88.0.592728768989.issue33787@psf.upfronthosting.co.za> New submission from Giampaolo Rodola' : If I use "Tools\clinic\clinic.py Modules\somemodule.c" on Windows argument clinic will modify the whole file and use Windows line endings ( "\r\n"). It would be good to use "\n" instead. ---------- assignee: larry components: Argument Clinic messages: 318857 nosy: giampaolo.rodola, larry priority: normal severity: normal status: open title: Argument clinic and Windows line endings versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 15:58:48 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Wed, 06 Jun 2018 19:58:48 +0000 Subject: [issue33788] Argument clinic: use path_t in _winapi.c Message-ID: <1528315127.95.0.592728768989.issue33788@psf.upfronthosting.co.za> New submission from Giampaolo Rodola' : There currently are different functions in Modules/_winapi.c that deals with paths: CreateFile, CreateJunction, CreateNamedPipe and I'm currently working on a patch which will add 3 more. For those functions it would be convenient to be able to use path_t which is currently defined in Modules/posixmodule.c. I started playing with argument clinic only recently so I'm not sure if there's a way to avoid path_t definition. ---------- components: Argument Clinic messages: 318858 nosy: giampaolo.rodola, larry priority: normal severity: normal status: open title: Argument clinic: use path_t in _winapi.c versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 17:18:11 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 21:18:11 +0000 Subject: [issue31731] [2.7] test_io hangs on x86 Gentoo Refleaks 2.7 In-Reply-To: <1507533205.95.0.213398074469.issue31731@psf.upfronthosting.co.za> Message-ID: <1528319891.33.0.592728768989.issue31731@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- keywords: +patch pull_requests: +7081 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 17:33:38 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 21:33:38 +0000 Subject: [issue31731] [2.7] test_io hangs on x86 Gentoo Refleaks 2.7 In-Reply-To: <1507533205.95.0.213398074469.issue31731@psf.upfronthosting.co.za> Message-ID: <1528320818.36.0.592728768989.issue31731@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 02b4d67a38b0c17d87749eeefc51e91baef10857 by Victor Stinner in branch '2.7': bpo-31731: test_io hangs with --huntrleaks: exclude it (GH-7459) https://github.com/python/cpython/commit/02b4d67a38b0c17d87749eeefc51e91baef10857 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 17:35:32 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 21:35:32 +0000 Subject: [issue31731] [2.7] test_io hangs on x86 Gentoo Refleaks 2.7 In-Reply-To: <1507533205.95.0.213398074469.issue31731@psf.upfronthosting.co.za> Message-ID: <1528320932.95.0.592728768989.issue31731@psf.upfronthosting.co.za> STINNER Victor added the comment: test_io hangs often on Gentoo Refleaks 2.7 buildbot: Zachary Ware, who owns the builder, has to interrupt the test regularly. So I disabled test_io in regrtest when --huntrleaks is used, since at least one bug has been identified in test_io in test_interrupted*(). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 17:38:34 2018 From: report at bugs.python.org (Michael Felt) Date: Wed, 06 Jun 2018 21:38:34 +0000 Subject: [issue32493] UUID Module - FreeBSD build failure In-Reply-To: <1515092270.67.0.467229070634.issue32493@psf.upfronthosting.co.za> Message-ID: <1528321114.05.0.592728768989.issue32493@psf.upfronthosting.co.za> Change by Michael Felt : ---------- pull_requests: +7082 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 17:38:44 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Wed, 06 Jun 2018 21:38:44 +0000 Subject: =?utf-8?b?W2lzc3VlMzM3ODVdIENyYXNoIGNhdXNlZCBieSBwYXN0aW5nIPCQjIjwkIyW?= =?utf-8?q?_into_IDLE_on_Windows?= In-Reply-To: <1528300554.15.0.592728768989.issue33785@psf.upfronthosting.co.za> Message-ID: <1528321124.06.0.592728768989.issue33785@psf.upfronthosting.co.za> Terry J. Reedy added the comment: This is a duplicate of the remaining part of #13153. The error message displayed in a console used to start IDLE is the same, ending with "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 0: invalid continuation byte" In the previous issue, Ezio explained the message and Serhiy submitted patches at yet untested. So I am closing this. ---------- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> IDLE crashes when pasting non-BMP unicode char on Py3 versions: +Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 18:14:40 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Wed, 06 Jun 2018 22:14:40 +0000 Subject: [issue13153] IDLE 3.x on Windows crashes when pasting non-BMP unicode In-Reply-To: <1318363292.9.0.682519731008.issue13153@psf.upfronthosting.co.za> Message-ID: <1528323280.83.0.592728768989.issue13153@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- Removed message: https://bugs.python.org/msg318863 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 18:16:12 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Wed, 06 Jun 2018 22:16:12 +0000 Subject: [issue13153] IDLE 3.x on Windows crashes when pasting non-BMP unicode In-Reply-To: <1318363292.9.0.682519731008.issue13153@psf.upfronthosting.co.za> Message-ID: <1528323372.69.0.592728768989.issue13153@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- nosy: -JBernardo, Ramchandra Apte, Rosuav, THRlWiTi, William.Schwartz, asvetlov, loewis, python-dev, roger.serwy _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 18:44:08 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 22:44:08 +0000 Subject: [issue33789] test_asyncio emits ResourceWarning warnings Message-ID: <1528325048.7.0.592728768989.issue33789@psf.upfronthosting.co.za> New submission from STINNER Victor : vstinner at apu$ ./python -X dev -u -m test test_asyncio -v 2>&1 (...) test_create_connection_ssl_failed_certificate (test.test_asyncio.test_sslproto.SelectorStartTLSTests) ... Exception in thread test-server: Traceback (most recent call last): File "/home/vstinner/prog/python/master/Lib/test/test_asyncio/functional.py", line 263, in _run self._handle_client(conn) File "/home/vstinner/prog/python/master/Lib/test/test_asyncio/functional.py", line 272, in _handle_client self._prog(TestSocketWrapper(sock)) File "/home/vstinner/prog/python/master/Lib/test/test_asyncio/test_sslproto.py", line 604, in server server_side=True) File "/home/vstinner/prog/python/master/Lib/test/test_asyncio/functional.py", line 153, in start_tls ssl_sock.do_handshake() File "/home/vstinner/prog/python/master/Lib/ssl.py", line 1108, in do_handshake self._sslobj.do_handshake() OSError: [Errno 0] Error During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/vstinner/prog/python/master/Lib/threading.py", line 917, in _bootstrap_inner self.run() File "/home/vstinner/prog/python/master/Lib/test/test_asyncio/functional.py", line 232, in run self._run() File "/home/vstinner/prog/python/master/Lib/test/test_asyncio/functional.py", line 269, in _run self._test._abort_socket_test(ex) File "/home/vstinner/prog/python/master/Lib/test/test_asyncio/functional.py", line 122, in _abort_socket_test self.fail(ex) File "/home/vstinner/prog/python/master/Lib/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: [Errno 0] Error /home/vstinner/prog/python/master/Lib/threading.py:951: ResourceWarning: unclosed del exc_type, exc_value, exc_tb ok (...) test_start_tls_client_corrupted_ssl (test.test_asyncio.test_sslproto.SelectorStartTLSTests) ... /home/vstinner/prog/python/master/Lib/test/test_asyncio/functional.py:272: ResourceWarning: unclosed self._prog(TestSocketWrapper(sock)) /home/vstinner/prog/python/master/Lib/asyncio/sslproto.py:322: ResourceWarning: unclosed transport source=self) ok (...) I'm working on a fix. ---------- components: asyncio messages: 318864 nosy: asvetlov, vstinner, yselivanov priority: normal severity: normal status: open title: test_asyncio emits ResourceWarning warnings versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 18:58:05 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 22:58:05 +0000 Subject: [issue33789] test_asyncio emits ResourceWarning warnings In-Reply-To: <1528325048.7.0.592728768989.issue33789@psf.upfronthosting.co.za> Message-ID: <1528325885.42.0.592728768989.issue33789@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- keywords: +patch pull_requests: +7083 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 19:03:42 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 23:03:42 +0000 Subject: [issue33789] test_asyncio emits ResourceWarning warnings In-Reply-To: <1528325048.7.0.592728768989.issue33789@psf.upfronthosting.co.za> Message-ID: <1528326222.85.0.592728768989.issue33789@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7084 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 19:11:31 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 23:11:31 +0000 Subject: [issue32676] test_asyncio emits many warnings when run in debug mode In-Reply-To: <1516964849.79.0.467229070634.issue32676@psf.upfronthosting.co.za> Message-ID: <1528326691.73.0.592728768989.issue32676@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- keywords: +patch pull_requests: +7085 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 19:12:41 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 23:12:41 +0000 Subject: [issue33789] test_asyncio emits ResourceWarning warnings In-Reply-To: <1528325048.7.0.592728768989.issue33789@psf.upfronthosting.co.za> Message-ID: <1528326761.4.0.592728768989.issue33789@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 0eba7c39132614a5730cda6b340e18dfb2d30d14 by Victor Stinner in branch 'master': bpo-33789: test_asyncio: Fix ResourceWarning (GH-7460) https://github.com/python/cpython/commit/0eba7c39132614a5730cda6b340e18dfb2d30d14 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 19:13:50 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 23:13:50 +0000 Subject: [issue33789] test_asyncio emits ResourceWarning warnings In-Reply-To: <1528325048.7.0.592728768989.issue33789@psf.upfronthosting.co.za> Message-ID: <1528326830.65.0.592728768989.issue33789@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 7ed61e9431ee2c191aeeeb26f86a71bb90ab99fd by Victor Stinner in branch 'master': bpo-33789, test_asyncio: Hide PendingDeprecationWarning (GH-7461) https://github.com/python/cpython/commit/7ed61e9431ee2c191aeeeb26f86a71bb90ab99fd ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 19:30:41 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 06 Jun 2018 23:30:41 +0000 Subject: [issue32676] test_asyncio emits many warnings when run in debug mode In-Reply-To: <1516964849.79.0.467229070634.issue32676@psf.upfronthosting.co.za> Message-ID: <1528327841.88.0.592728768989.issue32676@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 9f04f0df6fdb27190690bda949d213893d14e807 by Victor Stinner in branch 'master': bpo-32676, test_asyncio: Fix warning in test_error_in_call_soon() (GH-7462) https://github.com/python/cpython/commit/9f04f0df6fdb27190690bda949d213893d14e807 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 20:51:50 2018 From: report at bugs.python.org (Eryk Sun) Date: Thu, 07 Jun 2018 00:51:50 +0000 Subject: [issue33780] [subprocess] Better Unicode support for shell=True on Windows In-Reply-To: <1528279313.05.0.592728768989.issue33780@psf.upfronthosting.co.za> Message-ID: <1528332710.39.0.592728768989.issue33780@psf.upfronthosting.co.za> Eryk Sun added the comment: > To get the correct output, cmd has a "/u" switch (this switch has > probably existed forever - at least since Windows NT 4.0, by my > internet search). The output can then be decoded using > encoding='utf-16-le', like any native Windows string. However, the /u switch doesn't affect how CMD reads from stdin when it's a disk file or pipe. For example, `set /p` will stop at the first NUL byte. In general this is mismatched with subprocess, which provides a single `encoding` value for all 3 standard I/O streams. For example: >>> r = subprocess.run('cmd /d /v /u /c "set /p spam= & echo !spam!"', ... capture_output=True, input='spam', encoding='oem') >>> r.stdout 's\x00p\x00a\x00m\x00\n\x00\n\x00' With UTF-16 input, CMD only reads up to "s" instead of reading the entire "s\x00p\x00a\x00m\x00" string that was written to stdin: >>> r = subprocess.run('cmd /d /v /u /c "set /p spam= & echo !spam!"', ... capture_output=True, input='spam', encoding='utf-16le') >>> r.stdout 's\n' > 1. A new argument to Popen This may lead to confusion and false bug reports by people who expect the setting to also affect external programs run via the shell (e.g. tasklist.exe). It's also not consistent with how CMD reads from stdin, as shown above. I can see the use of adding a cross-platform get_shell_path() function that returns the fully-qualified path to the shell that's used by shell=True. This way programs don't have to figure it out on their own if they need custom shell options. Common CMD shell options in Windows include /d (skip AutoRun commands), /v (enable delayed expansion of environment variables via "!"), /e (enable command extensions), /k (remain running after the command), and /u. I'd prefer subprocess to use /d by default. It's strange that the CRT's system() command doesn't use it. Currently the shell path can be "/bin/sh" or "/system/bin/sh" in POSIX and os.environ.get("COMSPEC", "cmd.exe") in Windows. I'd prefer that Windows instead used: shell_path = os.path.abspath(os.environ.get('ComSpec', os.path.join(_winapi.GetSystemDirectory(), 'cmd.exe'))) i.e. never use an unqualified, relative path such as "cmd.exe". Instead of the single-use GetSystemDirectory function, it could instead use _winapi.SHGetKnownFolderPath(_winapi.FOLDERID_System), or _winapi.SHGetKnownFolderPath('{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}') if the GUID constants aren't added. ---------- nosy: +eryksun _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 20:58:25 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 00:58:25 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528333105.09.0.592728768989.issue33694@psf.upfronthosting.co.za> STINNER Victor added the comment: The bug can be reproduced on Linux using this patch: diff --git a/Lib/test/test_asyncio/test_sslproto.py b/Lib/test/test_asyncio/test_sslproto.py index 78ab1eb822..735313152c 100644 --- a/Lib/test/test_asyncio/test_sslproto.py +++ b/Lib/test/test_asyncio/test_sslproto.py @@ -471,6 +471,8 @@ class BaseStartTLS(func_tests.FunctionalTestCaseMixin): self.assertEqual(proto.data, b'') + await asyncio.sleep(1) + new_tr = await self.loop.start_tls( tr, proto, server_context, server_side=True, ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 20:58:29 2018 From: report at bugs.python.org (Eryk Sun) Date: Thu, 07 Jun 2018 00:58:29 +0000 Subject: [issue33780] [subprocess] Better Unicode support for shell=True on Windows In-Reply-To: <1528279313.05.0.592728768989.issue33780@psf.upfronthosting.co.za> Message-ID: <1528333109.8.0.592728768989.issue33780@psf.upfronthosting.co.za> Eryk Sun added the comment: > By default, the output of cmd is encoded with the "active" > codepage. In Python 3.6, you can decode this using > encoding='oem'. FYI, the actual encoding is not necessarily "oem". The console codepage may have been changed from the initial value by a SetConsoleCP call in the current process or another process (e.g. chcp.com, mode.com). For example, a batch script can switch to codepage 65001 to allow CMD to read a UTF-8 encoded batch file; or read UTF-8 from an external command in a `for /f` loop; or write UTF-8 to a disk file or pipe. (Only switch to codepage 65001 temporarily. Using UTF-8 for legacy console I/O is buggy. CMD, PowerShell, and Python 3.6+ aren't affected since they use the wide-character API for console I/O. But a legacy console application that uses the codepage implicitly with ReadFile and WriteFile for byte-based I/O may get invalid results such as reading a non-ASCII character as NUL, or the entire read failing, or writing garbage to the console after output that contains non-ASCII characters.) To accommodate applications that use the current console codepage for standard I/O, Python could add two encodings that correspond to the current value of GetConsoleCP and GetConsoleOutputCP (e.g. named "conin" and "conout"). Additionally, we can't assume the console codepage is initially OEM. It depends on settings in the registry or the shell shortcut for the application that allocated the console. In particular, if a new console window is allocated by a process (either explicitly via AllocConsole or implicitly for a console app that either hasn't inherited a console or was created with the CREATE_NEW_CONSOLE or CREATE_NO_WINDOW creation flag), then the console loads custom settings from either the registry key "HKCU\Console\" or the shell shortcut (LNK file) that started the application. If the console uses the window-title registry key, it looks for a "CodePage" DWORD value. The key name is the normalized window title, which comes from the WindowTitle field of the process parameters. This can be set explicitly using the STARTUPINFO lpTitle field that's passed to CreateProcess. Otherwise the system uses the executable path as the default window title. The console normalizes the title string to create a valid key name by replacing backslash with underscore, and it also substitutes "%SystemRoot%" for the Windows directory, e.g. the default configuration key for CMD is "HKCU\Console\%SystemRoot%_system32_cmd.exe". The codepage can also be set in a shell shortcut (LNK file) [1]. When an application is started from a shell shortcut, the shell sets the STARTUPINFO flag STARTF_TITLEISLINKNAME and the lpTitle string to the fully-qualified path of the LNK file. In this case, the console reads the LNK file to load its settings, rather than using the window-title subkey in the registry. But the "HKCU\Console" root key is still used for the default settings. Finally, if CMD is run without a console (i.e. using the DETACHED_PROCESS creation flag), the default codepage is ANSI, not OEM. This isn't hard-coded in CMD. It happens that GetConsoleCP returns 0 (i.e. CP_ACP) in this case. [1]: https://msdn.microsoft.com/en-us/library/dd891330.aspx ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 21:00:27 2018 From: report at bugs.python.org (Raymond Hettinger) Date: Thu, 07 Jun 2018 01:00:27 +0000 Subject: [issue33783] Use proper class markup for random.Random docs In-Reply-To: <1528294962.84.0.592728768989.issue33783@psf.upfronthosting.co.za> Message-ID: <1528333227.42.0.592728768989.issue33783@psf.upfronthosting.co.za> Raymond Hettinger added the comment: Thanks, I'll add a separate entry for the random.Random() class. ---------- components: +Documentation priority: normal -> low _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 21:08:32 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 01:08:32 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528333712.28.0.592728768989.issue33694@psf.upfronthosting.co.za> STINNER Victor added the comment: Call stack when the asyncio client connects to the server when the bug occurs: SSLProtocol.connection_made() -> SSLProtocol._start_handshake() -> SSLProtocol._process_write_backlog() -> SSLPipe.do_handshake() -> SSLPipe.feed_ssldata(b'', only_handshake=True) -> SSLObject.do_handshake() -> C SSL_do_handshake() returns immediately because the socket is non-blocking It seems like SSLObject.do_handshake() is only attempted once and... then nothing. The client is supposed to send data, retry the handshake, or something, but it does *nothing*. So the handshake never completes and the test hangs to later fail with a timeout. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 21:26:08 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 01:26:08 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528334768.32.0.592728768989.issue33694@psf.upfronthosting.co.za> STINNER Victor added the comment: The issue occurs when the server calls start_tls() because the client calls start_tls(). In that case, ServerProto.data_received() is called with the server TLS handshake and so the client SSLProtocol never this this handshake from server... ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 21:44:49 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 01:44:49 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528335889.29.0.592728768989.issue33694@psf.upfronthosting.co.za> STINNER Victor added the comment: Sorry, the patch to reproduce the issue on Linux is wrong: it introduces a bug in the test. Ignore this comment. -- It seems like I found the root cause: pause_reading() / resume_reading() on the transport is not safe. Sometimes, we loose data. See the "TODO" below... class _ProactorReadPipeTransport(_ProactorBasePipeTransport, transports.ReadTransport): """Transport for read pipes.""" (...) def pause_reading(self): if self._closing or self._paused: return self._paused = True if self._read_fut is not None and not self._read_fut.done(): # TODO: This is an ugly hack to cancel the current read future # *and* avoid potential race conditions, as read cancellation # goes through `future.cancel()` and `loop.call_soon()`. # We then use this special attribute in the reader callback to # exit *immediately* without doing any cleanup/rescheduling. self._read_fut.__asyncio_cancelled_on_pause__ = True self._read_fut.cancel() self._read_fut = None self._reschedule_on_resume = True if self._loop.get_debug(): logger.debug("%r pauses reading", self) If you remove the "ugly hack", the test no longer hangs... ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 22:26:38 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 02:26:38 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528338398.02.0.592728768989.issue33694@psf.upfronthosting.co.za> STINNER Victor added the comment: _ProactorReadPipeTransport.set_transport(): if self.is_reading(): # reset reading callback / buffers / self._read_fut self.pause_reading() self.resume_reading() This method cancelled the pending overlapped WSARecv(), and then create a new overlapped WSARecv(). Even after CancelIoEx(old overlapped), the IOCP loop still gets an event for the completion of the recv. Problem: since the Python future is cancelled, the even is ignored and so 176 bytes are lost. I'm surprised that an overlapped WSARecv() cancelled by CancelIoEx() still returns data when IOCP polls for events. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 22:41:15 2018 From: report at bugs.python.org (Ari Krupnik) Date: Thu, 07 Jun 2018 02:41:15 +0000 Subject: [issue33274] minidom removeAttributeNode returns None In-Reply-To: <1523644603.75.0.682650639539.issue33274@psf.upfronthosting.co.za> Message-ID: <1528339275.59.0.592728768989.issue33274@psf.upfronthosting.co.za> Change by Ari Krupnik : ---------- keywords: +patch pull_requests: +7086 stage: test needed -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 22:52:02 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 02:52:02 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528339922.49.0.592728768989.issue33694@psf.upfronthosting.co.za> STINNER Victor added the comment: Something else. The bug occurs when CancelIoEx() (on the current overlapped WSARecv()) fails internally with ERROR_NOT_FOUND. According to overlapped.c, it means: /* CancelIoEx returns ERROR_NOT_FOUND if the I/O completed in-between */ HasOverlappedIoCompleted() returns 0 in that case. The problem is that currently, Overlapped.cancel() also returns None in that case, and later the asyncio IOCP loop ignores the completion event and so drops incoming received data. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 23:00:44 2018 From: report at bugs.python.org (Siddhartha Bose) Date: Thu, 07 Jun 2018 03:00:44 +0000 Subject: [issue33779] Error while installing python 3.6.5 on windows 10 In-Reply-To: <1528277897.55.0.592728768989.issue33779@psf.upfronthosting.co.za> Message-ID: <1528340444.1.0.592728768989.issue33779@psf.upfronthosting.co.za> Siddhartha Bose added the comment: @steve, I tried to install which gave me access denied error and when i checked it was there in program and features. Let's check on that when I successfully uninstall the two instances already there (3.7.0b5 and 3.6.5) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 23:04:47 2018 From: report at bugs.python.org (Ari Krupnik) Date: Thu, 07 Jun 2018 03:04:47 +0000 Subject: [issue33274] minidom removeAttributeNode returns None In-Reply-To: <1523644603.75.0.682650639539.issue33274@psf.upfronthosting.co.za> Message-ID: <1528340687.87.0.592728768989.issue33274@psf.upfronthosting.co.za> Change by Ari Krupnik : ---------- pull_requests: +7087 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 23:14:30 2018 From: report at bugs.python.org (Benjamin Peterson) Date: Thu, 07 Jun 2018 03:14:30 +0000 Subject: [issue33778] update Unicode database to 11.0 In-Reply-To: <1528254629.86.0.592728768989.issue33778@psf.upfronthosting.co.za> Message-ID: <1528341270.63.0.592728768989.issue33778@psf.upfronthosting.co.za> Benjamin Peterson added the comment: New changeset 7c69c1c0fba8c1c8ff3969bce4c1135736a4cc58 by Benjamin Peterson in branch 'master': update to Unicode 11.0.0 (closes bpo-33778) (GH-7439) https://github.com/python/cpython/commit/7c69c1c0fba8c1c8ff3969bce4c1135736a4cc58 ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 23:14:47 2018 From: report at bugs.python.org (Benjamin Peterson) Date: Thu, 07 Jun 2018 03:14:47 +0000 Subject: [issue33778] update Unicode database to 11.0 In-Reply-To: <1528274774.17.0.592728768989.issue33778@psf.upfronthosting.co.za> Message-ID: <1528341283.2372341.1399246944.16AE0B54@webmail.messagingengine.com> Benjamin Peterson added the comment: Sure, where do you think such documentation belongs? On Wed, Jun 6, 2018, at 01:46, STINNER Victor wrote: > > STINNER Victor added the comment: > > Benjamin: would you mind to explain how to update Unicode in Python? I > would like to document it, if you are not available for example, or > don't want to do it anymore. > > I'm asking for my general idea of having at least two maintainers per > "CPython maintenance task": > http://vstinner.readthedocs.io/cpython_tasks.html > > ---------- > > _______________________________________ > Python tracker > > _______________________________________ ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 23:15:26 2018 From: report at bugs.python.org (Ari Krupnik) Date: Thu, 07 Jun 2018 03:15:26 +0000 Subject: [issue33274] minidom removeAttributeNode returns None In-Reply-To: <1523644603.75.0.682650639539.issue33274@psf.upfronthosting.co.za> Message-ID: <1528341326.06.0.592728768989.issue33274@psf.upfronthosting.co.za> Ari Krupnik added the comment: I added a test case and a News entry per serhiy.storchaka's request. https://github.com/python/cpython/pull/7465 I agree with fdrake's concerns about DOM's usefulness. DOM is not very Pythonic. I note that as long as Python has a DOM implementation, it follows the spec fairly closely. Element.removeAttributeNode() is the exception. All other minidom mutators (unpythonically) return the values that the standard requires, including the sister mutator setAttributeNode: Node.insertBefore() Node.appendChild() Node.replaceChild() Node.removeChild() NamedNodeMap.removeNamedItem() NamedNodeMap.removeNamedItemNS() NamedNodeMap.setNamedItem() Element.setAttributeNode() Document.removeChild() Document.renameNode() ---------- versions: +Python 2.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 23:19:53 2018 From: report at bugs.python.org (Ari Krupnik) Date: Thu, 07 Jun 2018 03:19:53 +0000 Subject: [issue33274] minidom removeAttributeNode returns None In-Reply-To: <1523644603.75.0.682650639539.issue33274@psf.upfronthosting.co.za> Message-ID: <1528341593.46.0.592728768989.issue33274@psf.upfronthosting.co.za> Change by Ari Krupnik : ---------- pull_requests: -7086 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 23:20:27 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Thu, 07 Jun 2018 03:20:27 +0000 Subject: [issue33274] minidom removeAttributeNode returns None In-Reply-To: <1523644603.75.0.682650639539.issue33274@psf.upfronthosting.co.za> Message-ID: <1528341627.65.0.592728768989.issue33274@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- pull_requests: -6157 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 23:23:32 2018 From: report at bugs.python.org (Ari Krupnik) Date: Thu, 07 Jun 2018 03:23:32 +0000 Subject: [issue33274] minidom removeAttributeNode returns None In-Reply-To: <1523644603.75.0.682650639539.issue33274@psf.upfronthosting.co.za> Message-ID: <1528341812.91.0.592728768989.issue33274@psf.upfronthosting.co.za> Change by Ari Krupnik : ---------- pull_requests: +7088 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 23:24:35 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Thu, 07 Jun 2018 03:24:35 +0000 Subject: [issue33274] minidom removeAttributeNode returns None In-Reply-To: <1523644603.75.0.682650639539.issue33274@psf.upfronthosting.co.za> Message-ID: <1528341875.04.0.592728768989.issue33274@psf.upfronthosting.co.za> Terry J. Reedy added the comment: I unlinked bad PR 6462 (against 3.6). PR 7465 is properly formed and should be reviewed. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 23:26:17 2018 From: report at bugs.python.org (Yury Selivanov) Date: Thu, 07 Jun 2018 03:26:17 +0000 Subject: [issue33786] @asynccontextmanager doesn't work well with async generators In-Reply-To: <1528305875.22.0.592728768989.issue33786@psf.upfronthosting.co.za> Message-ID: <1528341977.66.0.592728768989.issue33786@psf.upfronthosting.co.za> Change by Yury Selivanov : ---------- keywords: +patch pull_requests: +7089 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 23:26:56 2018 From: report at bugs.python.org (Yury Selivanov) Date: Thu, 07 Jun 2018 03:26:56 +0000 Subject: [issue33786] @asynccontextmanager doesn't work well with async generators In-Reply-To: <1528305875.22.0.592728768989.issue33786@psf.upfronthosting.co.za> Message-ID: <1528342016.81.0.592728768989.issue33786@psf.upfronthosting.co.za> Yury Selivanov added the comment: Would be nice to fix this in 3.7.0 ---------- components: +Interpreter Core -asyncio nosy: +ned.deily priority: normal -> release blocker type: -> behavior versions: +Python 3.6, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 23:27:15 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Thu, 07 Jun 2018 03:27:15 +0000 Subject: [issue33274] minidom removeAttributeNode returns None In-Reply-To: <1523644603.75.0.682650639539.issue33274@psf.upfronthosting.co.za> Message-ID: <1528342035.92.0.592728768989.issue33274@psf.upfronthosting.co.za> Terry J. Reedy added the comment: 2.7 does not get enhancements. When a core dev removes a version, don't re-add without discussion. ---------- versions: -Python 2.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 23:32:18 2018 From: report at bugs.python.org (Ari Krupnik) Date: Thu, 07 Jun 2018 03:32:18 +0000 Subject: [issue33274] minidom removeAttributeNode returns None In-Reply-To: <1523644603.75.0.682650639539.issue33274@psf.upfronthosting.co.za> Message-ID: <1528342338.29.0.592728768989.issue33274@psf.upfronthosting.co.za> Ari Krupnik added the comment: My bad. This issue looks like a simple omission to me--albeit one that's been in the code a long time. My patch simply brings the code into compliance with what the documentation (including in 2.7) already says it does. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 23:50:26 2018 From: report at bugs.python.org (Ned Deily) Date: Thu, 07 Jun 2018 03:50:26 +0000 Subject: [issue31202] Windows pathlib.Path.glob(pattern) fixed part of the pattern changed to lowercase whereas it should be unchanged. In-Reply-To: <1502719052.2.0.11123711046.issue31202@psf.upfronthosting.co.za> Message-ID: <1528343426.81.0.592728768989.issue31202@psf.upfronthosting.co.za> Change by Ned Deily : ---------- versions: +Python 3.8 -Python 3.4, Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 23:53:49 2018 From: report at bugs.python.org (Fred L. Drake, Jr.) Date: Thu, 07 Jun 2018 03:53:49 +0000 Subject: [issue33274] minidom removeAttributeNode returns None In-Reply-To: <1523644603.75.0.682650639539.issue33274@psf.upfronthosting.co.za> Message-ID: <1528343629.98.0.592728768989.issue33274@psf.upfronthosting.co.za> Fred L. Drake, Jr. added the comment: Python 2.7 is in security-fix-only mode, and this doesn't fit that. While I wouldn't object to a note in the documentation, see my comments in my patch review (there's just no place for it to go). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 6 23:57:53 2018 From: report at bugs.python.org (Ned Deily) Date: Thu, 07 Jun 2018 03:57:53 +0000 Subject: [issue33274] minidom removeAttributeNode returns None In-Reply-To: <1523644603.75.0.682650639539.issue33274@psf.upfronthosting.co.za> Message-ID: <1528343873.7.0.592728768989.issue33274@psf.upfronthosting.co.za> Ned Deily added the comment: Fred: > Python 2.7 is in security-fix-only mode That's not quite the case yet. We are still accepting bug-fixes for 2.7 although its end-of-life *is* approaching! https://devguide.python.org/#status-of-python-branches ---------- nosy: +ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 00:02:38 2018 From: report at bugs.python.org (Fred L. Drake, Jr.) Date: Thu, 07 Jun 2018 04:02:38 +0000 Subject: [issue33274] minidom removeAttributeNode returns None In-Reply-To: <1523644603.75.0.682650639539.issue33274@psf.upfronthosting.co.za> Message-ID: <1528344158.25.0.592728768989.issue33274@psf.upfronthosting.co.za> Fred L. Drake, Jr. added the comment: I should stop relying on wetware memory; it's not working out. Sorry for the mis-information. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 00:42:45 2018 From: report at bugs.python.org (Fred L. Drake, Jr.) Date: Thu, 07 Jun 2018 04:42:45 +0000 Subject: [issue33274] minidom removeAttributeNode returns None In-Reply-To: <1523644603.75.0.682650639539.issue33274@psf.upfronthosting.co.za> Message-ID: <1528346565.85.0.592728768989.issue33274@psf.upfronthosting.co.za> Fred L. Drake, Jr. added the comment: New changeset 5bfa058e65897567889354d7eb34af2b93a20f18 by Fred Drake (arikrupnik) in branch 'master': bpo-33274: Compliance with DOM L1: return removed attribute (#7465) https://github.com/python/cpython/commit/5bfa058e65897567889354d7eb34af2b93a20f18 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 00:55:45 2018 From: report at bugs.python.org (Ethan Smith) Date: Thu, 07 Jun 2018 04:55:45 +0000 Subject: [issue33351] Support compiling with clang-cl on Windows In-Reply-To: <1524631004.17.0.682650639539.issue33351@psf.upfronthosting.co.za> Message-ID: <1528347345.73.0.592728768989.issue33351@psf.upfronthosting.co.za> Ethan Smith added the comment: I sent my patches to clang-cl upstream [1]. It seems they want to implement Hardware Lock Elision (which is used by some MSVC compiler intrinsics in pyatomic.h) before implementing the needed intrinsics. I have found temporary replacements that do not elide locks, but have effectively the same functional purpose as those intrinsics, so I should have a full PR for CPython ready soon. [1] https://reviews.llvm.org/D47672 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 01:02:30 2018 From: report at bugs.python.org (Yury Selivanov) Date: Thu, 07 Jun 2018 05:02:30 +0000 Subject: [issue30773] async generator receives wrong value when shared between coroutines In-Reply-To: <1498503333.78.0.356156621032.issue30773@psf.upfronthosting.co.za> Message-ID: <1528347750.55.0.592728768989.issue30773@psf.upfronthosting.co.za> Change by Yury Selivanov : ---------- keywords: +patch pull_requests: +7091 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 01:04:06 2018 From: report at bugs.python.org (Ned Deily) Date: Thu, 07 Jun 2018 05:04:06 +0000 Subject: [issue21196] Name mangling example in Python tutorial In-Reply-To: <1397133080.37.0.870141660622.issue21196@psf.upfronthosting.co.za> Message-ID: <1528347846.79.0.592728768989.issue21196@psf.upfronthosting.co.za> Ned Deily added the comment: What should we do with this issue? Raymond, it sounds like you think the proposed PR should not be merged, is that right? If so, should the issue and PR be closed? Other opinions? I would like to resolve this so we can either merge or close PR 5667. Thanks! ---------- nosy: +ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 01:12:25 2018 From: report at bugs.python.org (Salomon) Date: Thu, 07 Jun 2018 05:12:25 +0000 Subject: [issue33790] Decorated (inner/wrapped) function kwarg defaults dont pass through decorator. Message-ID: <1528348345.08.0.592728768989.issue33790@psf.upfronthosting.co.za> New submission from Salomon : I am seeing an issue when attempting to use default kwargs in decorated functions. I would post reproduction steps, but instead I have written a snippet which should showcase the issue. Snippet: ```python def decorator(): def inner(f): def wrapper(*args, **kwargs): # Zoinks, Scoob! print('Decorator: {}'.format(''.join(kwargs.values()))) print(f(*args, **kwargs)) return wrapper return inner @decorator() def func(foo='wont print in the decorator'): return 'Func: {}'.format(foo)``` The following calls to 'func' should show you what Im talking about clearly: ``` func() -> Decorator: -> Func: wont print in the decorator func(foo='will print in the decorator') -> Decorator: will print in the decorator -> Func: will print in the decorator ``` I would expect, though correct me if I am wrong, that both of these calls should print in the decorator and the function call. For convenience, some REPL.it links: 3.6.1 -> https://repl.it/@SalomonSmeke/Python3-Decorator-Bug 2.7.10 -> https://repl.it/@SalomonSmeke/Python-Decorator-Bug Using @wrap from functools: 2.7.10 -> https://repl.it/@SalomonSmeke/Python-Decorator-Bug-using-FuncTools Thank you for your time. P.S. This is my first issue submitted to Python, please let me know if there is detail lacking. Im happy to provide what I can. ---------- messages: 318892 nosy: ssmeke priority: normal severity: normal status: open title: Decorated (inner/wrapped) function kwarg defaults dont pass through decorator. type: behavior versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 01:17:27 2018 From: report at bugs.python.org (Tim Peters) Date: Thu, 07 Jun 2018 05:17:27 +0000 Subject: [issue21196] Name mangling example in Python tutorial In-Reply-To: <1397133080.37.0.870141660622.issue21196@psf.upfronthosting.co.za> Message-ID: <1528348647.82.0.592728768989.issue21196@psf.upfronthosting.co.za> Tim Peters added the comment: Berker Peksag's change (PR 5667) is very simple and, I think, helpful. ---------- nosy: +tim.peters _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 01:40:25 2018 From: report at bugs.python.org (Ned Deily) Date: Thu, 07 Jun 2018 05:40:25 +0000 Subject: [issue33023] Unable to copy ssl.SSLContext In-Reply-To: <1520489361.61.0.467229070634.issue33023@psf.upfronthosting.co.za> Message-ID: <1528350025.55.0.592728768989.issue33023@psf.upfronthosting.co.za> Ned Deily added the comment: We have a languishing PR here. What should be done with it? If I understand correctly, Serhiy is proposing a more general cleanup in Issue33138 PR 6239. If that is merged, can PR 6099 here be simplified? What branches should it apply to? (retargeting for 3.8 pending comments) ---------- nosy: +ned.deily versions: +Python 3.8 -Python 2.7, Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 02:02:35 2018 From: report at bugs.python.org (Ned Deily) Date: Thu, 07 Jun 2018 06:02:35 +0000 Subject: [issue30436] importlib.find_spec raises AttributeError when parent is not a package/module In-Reply-To: <1495500424.56.0.88806724527.issue30436@psf.upfronthosting.co.za> Message-ID: <1528351355.24.0.592728768989.issue30436@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset fffeb6f3d66f1c844a9327ffe6e2ad8eae8aeb14 by Ned Deily (Zackery Spytz) in branch 'master': bpo-30436: Add missing space in importlib.util.find_spec() error message (GH-7385) https://github.com/python/cpython/commit/fffeb6f3d66f1c844a9327ffe6e2ad8eae8aeb14 ---------- nosy: +ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 02:02:40 2018 From: report at bugs.python.org (miss-islington) Date: Thu, 07 Jun 2018 06:02:40 +0000 Subject: [issue30436] importlib.find_spec raises AttributeError when parent is not a package/module In-Reply-To: <1495500424.56.0.88806724527.issue30436@psf.upfronthosting.co.za> Message-ID: <1528351360.28.0.592728768989.issue30436@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7092 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 02:15:34 2018 From: report at bugs.python.org (Steven D'Aprano) Date: Thu, 07 Jun 2018 06:15:34 +0000 Subject: [issue33790] Decorated (inner/wrapped) function kwarg defaults dont pass through decorator. In-Reply-To: <1528348345.08.0.592728768989.issue33790@psf.upfronthosting.co.za> Message-ID: <1528352134.16.0.592728768989.issue33790@psf.upfronthosting.co.za> Steven D'Aprano added the comment: I think you have misunderstood where and when default arguments are assigned. When you call func() with no arguments, kwargs is empty, and it is correct that the output will be -> Decorator: In the following line, you call the original function, f(), again with no arguments. Then, and ONLY then, is the default argument for foo applied. Only the innermost function "func" knows that there is a parameter called foo with the given default. Hence the next output is -> Func: wont print in the decorator as that is applying the default. So I think the behaviour is correct. It is certainly the behaviour I would expect, so unless I'm misunderstanding your bug report, I think this is working as designed. I'm going to close this report now, but if you think I've misunderstood anything and want to reopen it with more details, please do so. ---------- nosy: +steven.daprano resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 02:17:25 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Thu, 07 Jun 2018 06:17:25 +0000 Subject: [issue33274] minidom removeAttributeNode returns None In-Reply-To: <1523644603.75.0.682650639539.issue33274@psf.upfronthosting.co.za> Message-ID: <1528352245.63.0.592728768989.issue33274@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Ari, I know that you viewed this as a behavior (bugfix) issue from the start (message 1). I changed to enhancement (feature request) in message 2 because, as you acknowledged in message 3, it is an edge case. The problem is classification can be fuzzy, while the action of merge or not is binary. I prefer enhancement as the initial classification for edge cases because (except for 2.7-only issues) we first need to decide whether a change belongs in master branch before deciding to backport. Edge cases sometimes make for messy disposition. If this is viewed as a bugfix, it can (but not 'must') be backported, first to 3.7, second to 3.6, and only third to 2.7. 2.7 is *mainly* but not exclusively still being maintained for security and build issues, with bugfixes at the discretion and judgment of the merge committer. I personally would only backport to 3.7.0, maybe but likely not to 3.6.6, and definitely not to 2.7, as I would see it as not helping 2.7 users and likely not 3.6 users. If this is viewed as an enhancement, then it should at least have, as Serhiy noted, a version-changed notice in the doc. Since Fred merged this without such a notice, but did not backport, he effectively treated this as a master-branch only bugfix. We sometime do this, such as with some exception messages. It would be fine with me to close it as such. Or we could backport this to 3.7.0rc1 (but not 3.7.1) and call this a x.y.0-only bugfix. Either way, I see the reason as being the same as for not backporting exception message changes to maintenance releases: the bugfix is not worth introducing dependence on a particular maintenance release. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 02:21:45 2018 From: report at bugs.python.org (miss-islington) Date: Thu, 07 Jun 2018 06:21:45 +0000 Subject: [issue30436] importlib.find_spec raises AttributeError when parent is not a package/module In-Reply-To: <1495500424.56.0.88806724527.issue30436@psf.upfronthosting.co.za> Message-ID: <1528352505.49.0.592728768989.issue30436@psf.upfronthosting.co.za> miss-islington added the comment: New changeset d2a2af0df4562f4adb0337a80b27d69167a60c32 by Miss Islington (bot) in branch '3.7': bpo-30436: Add missing space in importlib.util.find_spec() error message (GH-7385) https://github.com/python/cpython/commit/d2a2af0df4562f4adb0337a80b27d69167a60c32 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 02:44:46 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Thu, 07 Jun 2018 06:44:46 +0000 Subject: [issue33023] Unable to copy ssl.SSLContext In-Reply-To: <1520489361.61.0.467229070634.issue33023@psf.upfronthosting.co.za> Message-ID: <1528353886.66.0.592728768989.issue33023@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: The change to the dup() method looks as a bug fix to me. It needs to be backported to all maintained versions. New tests can be backported to all versions except perhaps 2.7 (not tested). Changes to __getstate__() will be not needed if merge issue33138 PR 6239 (they just change the error message). But it may be needed to apply them to 2.7 only. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 02:58:36 2018 From: report at bugs.python.org (Ned Deily) Date: Thu, 07 Jun 2018 06:58:36 +0000 Subject: [issue33743] test_asyncio raises a deprecation warning In-Reply-To: <1528011716.86.0.592728768989.issue33743@psf.upfronthosting.co.za> Message-ID: <1528354716.71.0.592728768989.issue33743@psf.upfronthosting.co.za> Ned Deily added the comment: Any chance we can get this fixed for 3.7.0rc1? FWIW, as of current 3.7 head (cebd4b009adca6611e92eb337747f59818e941a6), I am also seeing the following warnings (on macOS 10.13): ./bin/python3.7 -m test -w -uall,-largefile -j3 test_asyncio Run tests in parallel using 3 child processes running: test_asyncio (30 sec) 0:00:47 load avg: 1.74 [1/1] test_asyncio passed (47 sec) .../python3.7/test/test_asyncio/test_sslproto.py:602: ResourceWarning: unclosed pass .../python3.7/test/test_asyncio/functional.py:272: ResourceWarning: unclosed self._prog(TestSocketWrapper(sock)) .../python3.7/asyncio/sslproto.py:322: ResourceWarning: unclosed transport source=self) .../python3.7/test/test_asyncio/test_tasks.py:2612: PendingDeprecationWarning: Task.all_tasks() is deprecated, use asyncio.all_tasks() instead self.assertEqual(asyncio.Task.all_tasks(loop), {task}) .../python3.7/test/test_asyncio/test_tasks.py:2612: PendingDeprecationWarning: Task.all_tasks() is deprecated, use asyncio.all_tasks() instead self.assertEqual(asyncio.Task.all_tasks(loop), {task}) == Tests result: SUCCESS == 1 test OK. ---------- nosy: +ned.deily priority: normal -> high _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 02:58:40 2018 From: report at bugs.python.org (Mark Dickinson) Date: Thu, 07 Jun 2018 06:58:40 +0000 Subject: [issue33784] hash collision in instances of ipaddress.ip_network In-Reply-To: <1528298968.12.0.592728768989.issue33784@psf.upfronthosting.co.za> Message-ID: <1528354720.83.0.592728768989.issue33784@psf.upfronthosting.co.za> Mark Dickinson added the comment: This shouldn't be a problem: there's no rule that says that different objects should have different hashes. Indeed, with a countable infinity of possible different hashable inputs, a deterministic hashing algorithm, and only finitely many outputs, such a rule would be a mathematical impossibility. For example: >>> hash(-1) == hash(-2) True Are these hash collisions causing real issues in your code? While a single hash collision like this shouldn't be an issue, if there are many collisions within a single (non-artificial) dataset, that _can_ lead to performance issues. Looking at the code, we could probably do a better job of making the hash collisions less predictable. The current code looks like: def __hash__(self): return hash(int(self.network_address) ^ int(self.netmask)) I'd propose hashing a tuple instead of using the xor. For example: def __hash__(self): return hash((int(self.network_address), int(self.netmask))) Hash collisions would almost certainly still occur with this scheme, but they'd be a tiny bit less obvious and harder to find. ---------- nosy: +mark.dickinson _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 03:04:46 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Thu, 07 Jun 2018 07:04:46 +0000 Subject: [issue33138] Improve standard error for uncopyable types In-Reply-To: <1521994898.68.0.467229070634.issue33138@psf.upfronthosting.co.za> Message-ID: <1528355086.97.0.592728768989.issue33138@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Current error messages for different classes: "can't pickle XXX objects" (default) "Cannot serialize XXX object" (socket, BZ2Compressor, BZ2Decompressor) "can not serialize a 'XXX' object" (buffered files in _pyio) "cannot serialize 'XXX' object" (FileIO, TextWrapperIO, WinConsoleIO, buffered files in _io, LZMACompressor, LZMADecompressor) Yest one error message is proposed by PR 6099 in issue33023 for SSLContext: "cannot serialize {} object" PR 6239 replaces them with unified "cannot serialize 'XXX' object" which already is used in some extension classes. This is the most popular error message except the default error message. I'm not sure this is the best error message. "can't"/"Cannot"/"cannot"/"can not", using an article and quotes -- what is better? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 03:06:18 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Thu, 07 Jun 2018 07:06:18 +0000 Subject: [issue33023] Unable to copy ssl.SSLContext In-Reply-To: <1520489361.61.0.467229070634.issue33023@psf.upfronthosting.co.za> Message-ID: <1528355178.95.0.592728768989.issue33023@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: If changes to __getstate__() be merged in 2.7, I suggest to unify them with issue33138. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 03:07:43 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Thu, 07 Jun 2018 07:07:43 +0000 Subject: [issue33784] hash collision in instances of ipaddress.ip_network In-Reply-To: <1528298968.12.0.592728768989.issue33784@psf.upfronthosting.co.za> Message-ID: <1528355263.33.0.592728768989.issue33784@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Concur with Mark. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 03:09:34 2018 From: report at bugs.python.org (Mark Dickinson) Date: Thu, 07 Jun 2018 07:09:34 +0000 Subject: [issue33784] hash collision in instances of ipaddress.ip_network In-Reply-To: <1528298968.12.0.592728768989.issue33784@psf.upfronthosting.co.za> Message-ID: <1528355374.67.0.592728768989.issue33784@psf.upfronthosting.co.za> Mark Dickinson added the comment: > I'd propose hashing a tuple instead of using the xor. To be clear; I'd propose this _only_ if there's evidence that the current hashing scheme is unsatisfactory for real-world use-cases. Otherwise, on an "if it's not broken, don't fix it" basis, I don't think there's any change to be made here. ---------- nosy: -serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 03:10:44 2018 From: report at bugs.python.org (Mark Dickinson) Date: Thu, 07 Jun 2018 07:10:44 +0000 Subject: [issue33784] hash collision in instances of ipaddress.ip_network In-Reply-To: <1528298968.12.0.592728768989.issue33784@psf.upfronthosting.co.za> Message-ID: <1528355444.56.0.592728768989.issue33784@psf.upfronthosting.co.za> Change by Mark Dickinson : ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 03:11:24 2018 From: report at bugs.python.org (miss-islington) Date: Thu, 07 Jun 2018 07:11:24 +0000 Subject: [issue33778] update Unicode database to 11.0 In-Reply-To: <1528254629.86.0.592728768989.issue33778@psf.upfronthosting.co.za> Message-ID: <1528355484.2.0.592728768989.issue33778@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7093 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 03:20:14 2018 From: report at bugs.python.org (Mark Dickinson) Date: Thu, 07 Jun 2018 07:20:14 +0000 Subject: [issue33784] hash collision in instances of ipaddress.ip_network In-Reply-To: <1528298968.12.0.592728768989.issue33784@psf.upfronthosting.co.za> Message-ID: <1528356014.72.0.592728768989.issue33784@psf.upfronthosting.co.za> Change by Mark Dickinson : ---------- resolution: -> not a bug status: open -> pending _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 03:36:24 2018 From: report at bugs.python.org (Ned Deily) Date: Thu, 07 Jun 2018 07:36:24 +0000 Subject: [issue33778] update Unicode database to 11.0 In-Reply-To: <1528254629.86.0.592728768989.issue33778@psf.upfronthosting.co.za> Message-ID: <1528356984.8.0.592728768989.issue33778@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 4705ea38c900f068fd262aca02943896d1123544 by Ned Deily (Miss Islington (bot)) in branch '3.7': update to Unicode 11.0.0 (closes bpo-33778) (GH-7439) (GH-7470) https://github.com/python/cpython/commit/4705ea38c900f068fd262aca02943896d1123544 ---------- nosy: +ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 03:36:50 2018 From: report at bugs.python.org (Ned Deily) Date: Thu, 07 Jun 2018 07:36:50 +0000 Subject: [issue33778] update Unicode database to 11.0 In-Reply-To: <1528254629.86.0.592728768989.issue33778@psf.upfronthosting.co.za> Message-ID: <1528357010.97.0.592728768989.issue33778@psf.upfronthosting.co.za> Ned Deily added the comment: Merged for 3.7.0rc1 ---------- versions: +Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 03:43:20 2018 From: report at bugs.python.org (Ned Deily) Date: Thu, 07 Jun 2018 07:43:20 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528357400.07.0.592728768989.issue33738@psf.upfronthosting.co.za> Ned Deily added the comment: Christian, any progress on this? 3.7.0rc1 is planned to be tagged in 4 days, on Monday 2018-06-11. Do you think you will be able to provide a PR before then? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 04:02:28 2018 From: report at bugs.python.org (Christian Tismer) Date: Thu, 07 Jun 2018 08:02:28 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1528357400.07.0.592728768989.issue33738@psf.upfronthosting.co.za> Message-ID: <2f854c63-8f54-62e6-eac8-e2ec0fa03bab@stackless.com> Christian Tismer added the comment: Hi Ned, we had a delivery date yesterday for PySide. The PR is almost ready and will go out today. Ciao - Chris On 07.06.18 09:43, Ned Deily wrote: > > Ned Deily added the comment: > > Christian, any progress on this? 3.7.0rc1 is planned to be tagged in 4 days, on Monday 2018-06-11. Do you think you will be able to provide a PR before then? > > ---------- > > _______________________________________ > Python tracker > > _______________________________________ > ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 04:03:40 2018 From: report at bugs.python.org (Ned Deily) Date: Thu, 07 Jun 2018 08:03:40 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528358620.4.0.592728768989.issue33738@psf.upfronthosting.co.za> Ned Deily added the comment: Thanks, Christian! ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 04:05:22 2018 From: report at bugs.python.org (Vinay Sajip) Date: Thu, 07 Jun 2018 08:05:22 +0000 Subject: [issue22454] Adding the opposite function of shlex.split() In-Reply-To: <1411328149.26.0.00522128245951.issue22454@psf.upfronthosting.co.za> Message-ID: <1528358722.59.0.592728768989.issue22454@psf.upfronthosting.co.za> Vinay Sajip added the comment: I'm +0 on the idea. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 04:12:27 2018 From: report at bugs.python.org (Austin Garner) Date: Thu, 07 Jun 2018 08:12:27 +0000 Subject: [issue33791] Error Installing on Mac Message-ID: <1528359147.48.0.592728768989.issue33791@psf.upfronthosting.co.za> New submission from Austin Garner : Python 3.8 would not install on MacOS due to missing SSL ---------- components: macOS messages: 318912 nosy: atg7000, ned.deily, ronaldoussoren priority: normal severity: normal status: open title: Error Installing on Mac type: compile error versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 04:14:46 2018 From: report at bugs.python.org (Matthijs Kooijman) Date: Thu, 07 Jun 2018 08:14:46 +0000 Subject: [issue22454] Adding the opposite function of shlex.split() In-Reply-To: <1411328149.26.0.00522128245951.issue22454@psf.upfronthosting.co.za> Message-ID: <1528359286.01.0.592728768989.issue22454@psf.upfronthosting.co.za> Matthijs Kooijman added the comment: One usecase that such a function would be well-suited for is for *displaying* commands being executed. Then, the commands will be executed as a command+args array, but can be displayed unambiguously in log output. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 04:17:24 2018 From: report at bugs.python.org (Austin Garner) Date: Thu, 07 Jun 2018 08:17:24 +0000 Subject: [issue33791] Error Installing on Mac In-Reply-To: <1528359147.48.0.592728768989.issue33791@psf.upfronthosting.co.za> Message-ID: <1528359444.18.0.592728768989.issue33791@psf.upfronthosting.co.za> Change by Austin Garner : ---------- keywords: +patch pull_requests: +7094 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 04:31:38 2018 From: report at bugs.python.org (Ned Deily) Date: Thu, 07 Jun 2018 08:31:38 +0000 Subject: [issue33791] Update README.rst to mention third-party OpenSSL needed for macOS builds In-Reply-To: <1528359147.48.0.592728768989.issue33791@psf.upfronthosting.co.za> Message-ID: <1528360298.01.0.592728768989.issue33791@psf.upfronthosting.co.za> Ned Deily added the comment: Technically speaking, you can build Python 3.8 or any other current version on current versions of macOS and it will install just fine, but, because Apple has deprecated the use of a system-supplied OpenSSL and no longer supplies the header files to build against their OpenSSL, there won't be a working ssl module nor a lzma module, for that matter, since Apple does not provide a libzma. There are other, less important modules that do not build out of the box as well. This is not unique to macOS; each platform that Python supports has its quirks. But updating the README.rst file to mention OpenSSL on macOS is a good suggestion. Thanks for the PR. ---------- title: Error Installing on Mac -> Update README.rst to mention third-party OpenSSL needed for macOS builds versions: +Python 2.7, Python 3.6, Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 04:37:15 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 08:37:15 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528360635.83.0.592728768989.issue33694@psf.upfronthosting.co.za> STINNER Victor added the comment: Yury, Andrew, Ned: I set the priority to release blocker because I'm scared by what I saw. The START TLS has a race condition in its ProactorEventLoop implementation. But the bug doesn't see to be specific to START TLS, but rather to transport.set_transport(), and even more generally to transport.pause_reading() / transport.resume_reading(). The bug is quite severe: we loose data and it's really hard to know why (I spent a few hours to add many many print and try to reproduce on a very tiny reliable unit test). As an asyncio user, I expect that transports are 100% reliable, and I would first look into my look (like looking into start_tls() implementation in my case). If the bug was very specific to start_tls(), I would suggest to "just" "disable" start_tls() on ProactorEventLoop (sorry, Windows!). But since the data loss seems to concern basically any application using ProactorEventLoop, I don't see any simple workaround. My hope is that a fix can be written shortly to not block the 3.7.0 final release for too long :-( Yury, Andrew: Can you please just confirm that it's a regression and that a release blocker is justified? ---------- nosy: +ned.deily priority: normal -> release blocker _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 05:03:26 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 09:03:26 +0000 Subject: [issue33778] update Unicode database to 11.0 In-Reply-To: <1528254629.86.0.592728768989.issue33778@psf.upfronthosting.co.za> Message-ID: <1528362206.05.0.592728768989.issue33778@psf.upfronthosting.co.za> STINNER Victor added the comment: > Sure, where do you think such documentation belongs? You can start by writing it here. I don't expect that it's a long process, no? Maybe the devguide is the good place? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 05:15:04 2018 From: report at bugs.python.org (pfreixes) Date: Thu, 07 Jun 2018 09:15:04 +0000 Subject: [issue30861] StreamReader does not return reamaing and ready data buffer before raise the Exeption In-Reply-To: <1499288108.18.0.207232280352.issue30861@psf.upfronthosting.co.za> Message-ID: <1528362904.42.0.592728768989.issue30861@psf.upfronthosting.co.za> Change by pfreixes : ---------- keywords: +patch pull_requests: +7095 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 05:18:20 2018 From: report at bugs.python.org (Christian Tismer) Date: Thu, 07 Jun 2018 09:18:20 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528363100.29.0.592728768989.issue33738@psf.upfronthosting.co.za> Change by Christian Tismer : ---------- pull_requests: +7096 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 05:46:45 2018 From: report at bugs.python.org (INADA Naoki) Date: Thu, 07 Jun 2018 09:46:45 +0000 Subject: [issue29235] Allow profile/cProfile to be used as context managers In-Reply-To: <1484097220.43.0.363931456874.issue29235@psf.upfronthosting.co.za> Message-ID: <1528364805.88.0.592728768989.issue29235@psf.upfronthosting.co.za> INADA Naoki added the comment: New changeset cebe80b59b7386db3cce904d280dab61d1037e7a by INADA Naoki (Scott Sanderson) in branch 'master': bpo-29235: Update document for Profiler's context manager (GH-7331) https://github.com/python/cpython/commit/cebe80b59b7386db3cce904d280dab61d1037e7a ---------- nosy: +inada.naoki _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 05:58:17 2018 From: report at bugs.python.org (INADA Naoki) Date: Thu, 07 Jun 2018 09:58:17 +0000 Subject: [issue17909] Autodetecting JSON encoding In-Reply-To: <1367759430.76.0.988181674037.issue17909@psf.upfronthosting.co.za> Message-ID: <1528365497.54.0.592728768989.issue17909@psf.upfronthosting.co.za> INADA Naoki added the comment: New changeset bb6366bd7570ff3b74bc66095540bea78f31504e by INADA Naoki (Anthony Sottile) in branch 'master': bpo-17909: Document that json.load can accept a binary IO (GH-7366) https://github.com/python/cpython/commit/bb6366bd7570ff3b74bc66095540bea78f31504e ---------- nosy: +inada.naoki _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 05:58:24 2018 From: report at bugs.python.org (miss-islington) Date: Thu, 07 Jun 2018 09:58:24 +0000 Subject: [issue17909] Autodetecting JSON encoding In-Reply-To: <1367759430.76.0.988181674037.issue17909@psf.upfronthosting.co.za> Message-ID: <1528365504.17.0.592728768989.issue17909@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7097 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 05:59:23 2018 From: report at bugs.python.org (miss-islington) Date: Thu, 07 Jun 2018 09:59:23 +0000 Subject: [issue17909] Autodetecting JSON encoding In-Reply-To: <1367759430.76.0.988181674037.issue17909@psf.upfronthosting.co.za> Message-ID: <1528365563.47.0.592728768989.issue17909@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7098 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 06:02:04 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 10:02:04 +0000 Subject: [issue33792] asyncio: how to set a "Proactor event loop" policy? Issue with asyncio.run() Message-ID: <1528365724.38.0.592728768989.issue33792@psf.upfronthosting.co.za> New submission from STINNER Victor : asyncio documentation suggets to use: --- import asyncio, sys if sys.platform == 'win32': loop = asyncio.ProactorEventLoop() asyncio.set_event_loop(loop) --- https://docs.python.org/dev/library/asyncio-eventloops.html But this code doesn't work with asyncio.run() which creates a new event loop with the current policy, and the default policy on Windows is to use SelectorEventLoop. I cannot find a "Proactor event loop policy" in asyncio, nor how to change the default policy to use Proactor event loop. The workaround is to not use asyncio.run() which has been added in Python 3.7. ---------- components: asyncio messages: 318919 nosy: asvetlov, vstinner, yselivanov priority: normal severity: normal status: open title: asyncio: how to set a "Proactor event loop" policy? Issue with asyncio.run() versions: Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 06:13:19 2018 From: report at bugs.python.org (Jeroen Demeyer) Date: Thu, 07 Jun 2018 10:13:19 +0000 Subject: [issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++" In-Reply-To: <1239729771.84.0.97828652099.issue5755@psf.upfronthosting.co.za> Message-ID: <1528366399.17.0.592728768989.issue5755@psf.upfronthosting.co.za> Change by Jeroen Demeyer : ---------- pull_requests: +7099 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 06:17:20 2018 From: report at bugs.python.org (miss-islington) Date: Thu, 07 Jun 2018 10:17:20 +0000 Subject: [issue17909] Autodetecting JSON encoding In-Reply-To: <1367759430.76.0.988181674037.issue17909@psf.upfronthosting.co.za> Message-ID: <1528366640.57.0.592728768989.issue17909@psf.upfronthosting.co.za> miss-islington added the comment: New changeset f38ace61a39e64f5fde6f8f402e258177bdf7ff4 by Miss Islington (bot) in branch '3.7': bpo-17909: Document that json.load can accept a binary IO (GH-7366) https://github.com/python/cpython/commit/f38ace61a39e64f5fde6f8f402e258177bdf7ff4 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 06:21:06 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 10:21:06 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528366866.19.0.592728768989.issue33694@psf.upfronthosting.co.za> STINNER Victor added the comment: race.py: simple echo client and server sending packets in both directions. Pause/resume reading the client transport every 100 ms to trigger the bug. Using ProactorEventLoop and 2000 packets of 16 KiB, I easily reproduce the bug. So again, it's nothing related to start_tls(), start_tls() was just one way to spot the bug. The bug is in Proactor transport: the cancellation of overlapped WSARecv() sometime drops packets. The bug occurs when CancelIoEx() fails with ERROR_NOT_FOUND which means that the I/O (WSARecv()) completed. One solution would be to not cancel WSARecv() on pause_reading(): wait until the current WSARecv() completes, store data something but don't pass it to protocol.data_received()!, and no schedule a new WSARecv(). Once reading is resumed: call protocol.data_received() and schedule a new WSARecv(). That would be a workaround. I don't know how to really fix WSARecv() cancellation without loosing data. A good start would be to modify Overlapped.cancel() to return a boolean to notice if the overlapped I/O completed even if we just cancelled it. Currently, the corner case (CancelIoEx() fails with ERROR_NOT_FOUND) is silently ignored, and then the IOCP loop silently ignores the event of completed I/O... ---------- Added file: https://bugs.python.org/file47632/race.py _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 06:21:22 2018 From: report at bugs.python.org (miss-islington) Date: Thu, 07 Jun 2018 10:21:22 +0000 Subject: [issue17909] Autodetecting JSON encoding In-Reply-To: <1367759430.76.0.988181674037.issue17909@psf.upfronthosting.co.za> Message-ID: <1528366882.65.0.592728768989.issue17909@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 21f2553482c3d6ec8beb8bfa0f1fb5d23c6a4c2f by Miss Islington (bot) in branch '3.6': bpo-17909: Document that json.load can accept a binary IO (GH-7366) https://github.com/python/cpython/commit/21f2553482c3d6ec8beb8bfa0f1fb5d23c6a4c2f ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 06:27:27 2018 From: report at bugs.python.org (Christian Tismer) Date: Thu, 07 Jun 2018 10:27:27 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528367247.92.0.592728768989.issue33738@psf.upfronthosting.co.za> Change by Christian Tismer : ---------- pull_requests: +7100 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 06:44:35 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 10:44:35 +0000 Subject: [issue33793] asyncio: _ProactorReadPipeTransport reads by chunk of 32 KiB: chunk size should be configurable Message-ID: <1528368275.57.0.592728768989.issue33793@psf.upfronthosting.co.za> New submission from STINNER Victor : _SelectorTransport has the class attribute: max_size = 256 * 1024 # Buffer size passed to recv(). But _ProactorReadPipeTransport uses an hardcoded chunk size of 32 KiB. It would be nice to allow to configure this size. By the way, _SelectorTransport.max_size has no public API to change the default value for the whole process. The attribute can only be set per socket, since _SelectorTransport is private. By the way, is the attribute documented? ---------- components: asyncio messages: 318923 nosy: asvetlov, vstinner, yselivanov priority: normal severity: normal status: open title: asyncio: _ProactorReadPipeTransport reads by chunk of 32 KiB: chunk size should be configurable type: performance versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 06:45:20 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 10:45:20 +0000 Subject: [issue33792] asyncio: how to set a "Proactor event loop" policy? Issue with asyncio.run() In-Reply-To: <1528365724.38.0.592728768989.issue33792@psf.upfronthosting.co.za> Message-ID: <1528368320.3.0.592728768989.issue33792@psf.upfronthosting.co.za> STINNER Victor added the comment: Ugly workaround: policy = asyncio.get_event_loop_policy() policy._loop_factory = asyncio.ProactorEventLoop It uses a private attribute :-( ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 06:50:15 2018 From: report at bugs.python.org (Christian Tismer) Date: Thu, 07 Jun 2018 10:50:15 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528368615.82.0.592728768989.issue33738@psf.upfronthosting.co.za> Christian Tismer added the comment: I did not understand the Misc/NEWS.d thing. What should go where, or where would a "skip news" label go? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 06:50:56 2018 From: report at bugs.python.org (Christian Tismer) Date: Thu, 07 Jun 2018 10:50:56 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528368656.81.0.592728768989.issue33738@psf.upfronthosting.co.za> Change by Christian Tismer : ---------- pull_requests: -6956 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 06:51:08 2018 From: report at bugs.python.org (Christian Tismer) Date: Thu, 07 Jun 2018 10:51:08 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528368668.96.0.592728768989.issue33738@psf.upfronthosting.co.za> Change by Christian Tismer : ---------- pull_requests: -7096 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 08:18:36 2018 From: report at bugs.python.org (hhas) Date: Thu, 07 Jun 2018 12:18:36 +0000 Subject: [issue33794] Python.framework build is missing 'Current' symlink Message-ID: <1528373916.56.0.592728768989.issue33794@psf.upfronthosting.co.za> New submission from hhas : The Python.framework installed at '/Library/Frameworks/Python.framework' should have a subdirectory structure similar to this: Python.framework | |-Headers [symlink to 'Versions/Current/Headers'] | |-Python [symlink to 'Versions/Current/Python'] | |-Resources [symlink to 'Versions/Current/Resources'] | |-Versions | | | |-2.7 [directory created by 2.7 installer] | | | |-3.5 [directory created by 3.5 installer] | | | |-3.6 [directory created by 3.6 installer] | | | ... | | | |- Current [symlink to last installed version, e.g. '3.6'] Current Python.framework installers create a 2.x/3.x directory and Headers+Python+Resources symlinks, but fail to create a 'Current' symlink. This breaks the top-level symlinks and causes importing the framework via NSBundle to fail. Please fix the framework build and/or install script to create the missing symlink. ---------- components: macOS messages: 318926 nosy: hhas, ned.deily, ronaldoussoren priority: normal severity: normal status: open title: Python.framework build is missing 'Current' symlink versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 08:27:37 2018 From: report at bugs.python.org (Tim Boddy) Date: Thu, 07 Jun 2018 12:27:37 +0000 Subject: [issue33795] Memory leak in X509StoreContext class. Message-ID: <1528374457.54.0.592728768989.issue33795@psf.upfronthosting.co.za> New submission from Tim Boddy : I noticed a memory leak /usr/lib/python3.5/site-packages/OpenSSL/crypto.py in the definition of the class X509StoreContext. The problem is that the __init__ function calls self._init() then later the function verify_certificate calls _init() again. In spite of the disclaimer int __init__ about "no adverse effect", the adverse effect here is that if one does two calls to X509_STORE_CTX_init on the same X509_STORE_CTX without any intervening calls to X509_STORE_CTX_cleanup on that same X509_STORE_CTX it will leak one X509_VERIFY_PARAM and one X509_VERIFY_PARAM_ID. Here is most of the relevant class: class X509StoreContext(object): """ An X.509 store context. An X.509 store context is used to carry out the actual verification process of a certificate in a described context. For describing such a context, see :class:`X509Store`. :ivar _store_ctx: The underlying X509_STORE_CTX structure used by this instance. It is dynamically allocated and automatically garbage collected. :ivar _store: See the ``store`` ``__init__`` parameter. :ivar _cert: See the ``certificate`` ``__init__`` parameter. :param X509Store store: The certificates which will be trusted for the purposes of any verifications. :param X509 certificate: The certificate to be verified. """ def __init__(self, store, certificate): store_ctx = _lib.X509_STORE_CTX_new() self._store_ctx = _ffi.gc(store_ctx, _lib.X509_STORE_CTX_free) self._store = store self._cert = certificate # Make the store context available for use after instantiating this # class by initializing it now. Per testing, subsequent calls to # :meth:`_init` have no adverse affect. self._init() def _init(self): """ Set up the store context for a subsequent verification operation. """ Set up the store context for a subsequent verification operation. """ ret = _lib.X509_STORE_CTX_init( self._store_ctx, self._store._store, self._cert._x509, _ffi.NULL ) if ret <= 0: _raise_current_error() def _cleanup(self): """ Internally cleans up the store context. The store context can then be reused with a new call to :meth:`_init`. """ _lib.X509_STORE_CTX_cleanup(self._store_ctx) def _exception_from_context(self): """ Convert an OpenSSL native context error failure into a Python exception. When a call to native OpenSSL X509_verify_cert fails, additional information about the failure can be obtained from the store context. """ errors = [ _lib.X509_STORE_CTX_get_error(self._store_ctx), _lib.X509_STORE_CTX_get_error_depth(self._store_ctx), _native(_ffi.string(_lib.X509_verify_cert_error_string( _lib.X509_STORE_CTX_get_error(self._store_ctx)))), ] # A context error should always be associated with a certificate, so we # expect this call to never return :class:`None`. _x509 = _lib.X509_STORE_CTX_get_current_cert(self._store_ctx) _cert = _lib.X509_dup(_x509) pycert = X509.__new__(X509) pycert._x509 = _ffi.gc(_cert, _lib.X509_free) return X509StoreContextError(errors, pycert) def set_store(self, store): """ Set the context's X.509 store. .. versionadded:: 0.15 :param X509Store store: The store description which will be used for the purposes of any *future* verifications. """ self._store = store def verify_certificate(self): """ Verify a certificate in a context. .. versionadded:: 0.15 :raises X509StoreContextError: If an error occurred when validating a certificate in the context. Sets ``certificate`` attribute to indicate which certificate caused the error. """ # Always re-initialize the store context in case # :meth:`verify_certificate` is called multiple times. self._init() ret = _lib.X509_verify_cert(self._store_ctx) self._cleanup() if ret <= 0: raise self._exception_from_context() ---------- messages: 318927 nosy: timboddy priority: normal severity: normal status: open title: Memory leak in X509StoreContext class. type: resource usage versions: Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 08:48:25 2018 From: report at bugs.python.org (Berker Peksag) Date: Thu, 07 Jun 2018 12:48:25 +0000 Subject: [issue33795] Memory leak in X509StoreContext class. In-Reply-To: <1528374457.54.0.592728768989.issue33795@psf.upfronthosting.co.za> Message-ID: <1528375705.13.0.592728768989.issue33795@psf.upfronthosting.co.za> Berker Peksag added the comment: Thank you for your report, but OpenSSL/crypto.py is not part of the standard library. I think the correct place to report this is https://github.com/pyca/pyopenssl There is a X509StoreContext class at https://github.com/pyca/pyopenssl/blob/179eb1d0917ddc1067d056127e08e952206e0e91/src/OpenSSL/crypto.py#L1696 ---------- nosy: +berker.peksag resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 09:43:06 2018 From: report at bugs.python.org (Andrew Svetlov) Date: Thu, 07 Jun 2018 13:43:06 +0000 Subject: [issue33792] asyncio: how to set a "Proactor event loop" policy? Issue with asyncio.run() In-Reply-To: <1528365724.38.0.592728768989.issue33792@psf.upfronthosting.co.za> Message-ID: <1528378986.6.0.592728768989.issue33792@psf.upfronthosting.co.za> Andrew Svetlov added the comment: Looks like we need a proactor policy class. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 09:43:36 2018 From: report at bugs.python.org (Siddhartha Bose) Date: Thu, 07 Jun 2018 13:43:36 +0000 Subject: [issue33779] Error while installing python 3.6.5 on windows 10 In-Reply-To: <1528277897.55.0.592728768989.issue33779@psf.upfronthosting.co.za> Message-ID: <1528379016.45.0.592728768989.issue33779@psf.upfronthosting.co.za> Siddhartha Bose added the comment: @Steve, I did find the registry under local user, {9d1b786e-0fd4-4386-abc1-4b920ab32da9}, but it lot of registries in it. what and how do i rename it to? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 09:44:56 2018 From: report at bugs.python.org (Andrew Svetlov) Date: Thu, 07 Jun 2018 13:44:56 +0000 Subject: [issue33743] test_asyncio raises a deprecation warning In-Reply-To: <1528011716.86.0.592728768989.issue33743@psf.upfronthosting.co.za> Message-ID: <1528379096.77.0.592728768989.issue33743@psf.upfronthosting.co.za> Andrew Svetlov added the comment: Working on it ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 09:49:26 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 13:49:26 +0000 Subject: [issue33743] test_asyncio raises a deprecation warning In-Reply-To: <1528011716.86.0.592728768989.issue33743@psf.upfronthosting.co.za> Message-ID: <1528379366.34.0.592728768989.issue33743@psf.upfronthosting.co.za> STINNER Victor added the comment: That's a duplicate of bpo-33789: I fixed it yesterday in the master branch. ---------- nosy: +vstinner resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> test_asyncio emits ResourceWarning warnings _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:03:56 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 14:03:56 +0000 Subject: [issue33789] test_asyncio emits ResourceWarning warnings In-Reply-To: <1528325048.7.0.592728768989.issue33789@psf.upfronthosting.co.za> Message-ID: <1528380236.59.0.592728768989.issue33789@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7101 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:03:56 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 14:03:56 +0000 Subject: [issue32676] test_asyncio emits many warnings when run in debug mode In-Reply-To: <1516964849.79.0.467229070634.issue32676@psf.upfronthosting.co.za> Message-ID: <1528380236.69.0.786479179495.issue32676@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7102 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:12:27 2018 From: report at bugs.python.org (Tim Boddy) Date: Thu, 07 Jun 2018 14:12:27 +0000 Subject: [issue33795] Memory leak in X509StoreContext class. In-Reply-To: <1528374457.54.0.592728768989.issue33795@psf.upfronthosting.co.za> Message-ID: <1528380747.01.0.592728768989.issue33795@psf.upfronthosting.co.za> Tim Boddy added the comment: Thank you for helping me figure out the correct place to file this. Is there a quick way for me to evaluate in the future wither a particular file belongs to the standard library? ---------- resolution: not a bug -> status: closed -> open _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:13:10 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 14:13:10 +0000 Subject: [issue33743] test_asyncio raises a deprecation warning In-Reply-To: <1528011716.86.0.592728768989.issue33743@psf.upfronthosting.co.za> Message-ID: <1528380790.74.0.592728768989.issue33743@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7103 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:15:47 2018 From: report at bugs.python.org (Benjamin Peterson) Date: Thu, 07 Jun 2018 14:15:47 +0000 Subject: [issue33778] update Unicode database to 11.0 In-Reply-To: <1528254629.86.0.592728768989.issue33778@psf.upfronthosting.co.za> Message-ID: <1528380947.49.0.592728768989.issue33778@psf.upfronthosting.co.za> Change by Benjamin Peterson : ---------- pull_requests: +7104 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:16:08 2018 From: report at bugs.python.org (Andrew Svetlov) Date: Thu, 07 Jun 2018 14:16:08 +0000 Subject: [issue33743] test_asyncio raises a deprecation warning In-Reply-To: <1528011716.86.0.592728768989.issue33743@psf.upfronthosting.co.za> Message-ID: <1528380968.26.0.592728768989.issue33743@psf.upfronthosting.co.za> Change by Andrew Svetlov : ---------- pull_requests: +7105 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:17:00 2018 From: report at bugs.python.org (Steve Dower) Date: Thu, 07 Jun 2018 14:17:00 +0000 Subject: [issue33779] Error while installing python 3.6.5 on windows 10 In-Reply-To: <1528277897.55.0.592728768989.issue33779@psf.upfronthosting.co.za> Message-ID: <1528381020.81.0.592728768989.issue33779@psf.upfronthosting.co.za> Steve Dower added the comment: Just anything. I often put "deleteme" in as a reminder. Once you've got it all working you can delete it, but for now you just want the installer to be able to make a key with that name. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:17:23 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 14:17:23 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528381043.4.0.592728768989.issue33694@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- keywords: +patch pull_requests: +7106 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:17:32 2018 From: report at bugs.python.org (Benjamin Peterson) Date: Thu, 07 Jun 2018 14:17:32 +0000 Subject: [issue33778] update Unicode database to 11.0 In-Reply-To: <1528362206.05.0.592728768989.issue33778@psf.upfronthosting.co.za> Message-ID: <1528381049.3602173.1399808080.160D86A2@webmail.messagingengine.com> Benjamin Peterson added the comment: On Thu, Jun 7, 2018, at 02:03, STINNER Victor wrote: > > STINNER Victor added the comment: > > > Sure, where do you think such documentation belongs? > > You can start by writing it here. Basically, I update the version in the script (Tools/unicode/makeunicodedata.py), run it, and fix what fails. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:17:57 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 14:17:57 +0000 Subject: [issue33743] test_asyncio raises a deprecation warning In-Reply-To: <1528011716.86.0.592728768989.issue33743@psf.upfronthosting.co.za> Message-ID: <1528381077.58.0.592728768989.issue33743@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: -7103 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:18:15 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Thu, 07 Jun 2018 14:18:15 +0000 Subject: [issue33743] test_asyncio raises a deprecation warning In-Reply-To: <1528011716.86.0.592728768989.issue33743@psf.upfronthosting.co.za> Message-ID: <1528381095.56.0.592728768989.issue33743@psf.upfronthosting.co.za> Change by Giampaolo Rodola' : ---------- nosy: -giampaolo.rodola _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:19:03 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 14:19:03 +0000 Subject: [issue33789] test_asyncio emits ResourceWarning warnings In-Reply-To: <1528325048.7.0.592728768989.issue33789@psf.upfronthosting.co.za> Message-ID: <1528381143.41.0.592728768989.issue33789@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 3c417610ad318afecf471d59c53e5ae592740791 by Victor Stinner in branch '3.7': [3.7] bpo-33789: Backport test_asyncio fixes from master (GH-7478) https://github.com/python/cpython/commit/3c417610ad318afecf471d59c53e5ae592740791 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:19:03 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 14:19:03 +0000 Subject: [issue32676] test_asyncio emits many warnings when run in debug mode In-Reply-To: <1516964849.79.0.467229070634.issue32676@psf.upfronthosting.co.za> Message-ID: <1528381143.57.0.584625200856.issue32676@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 3c417610ad318afecf471d59c53e5ae592740791 by Victor Stinner in branch '3.7': [3.7] bpo-33789: Backport test_asyncio fixes from master (GH-7478) https://github.com/python/cpython/commit/3c417610ad318afecf471d59c53e5ae592740791 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:20:33 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 14:20:33 +0000 Subject: [issue32676] test_asyncio emits many warnings when run in debug mode In-Reply-To: <1516964849.79.0.467229070634.issue32676@psf.upfronthosting.co.za> Message-ID: <1528381233.33.0.592728768989.issue32676@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:20:46 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 14:20:46 +0000 Subject: [issue33789] test_asyncio emits ResourceWarning warnings In-Reply-To: <1528325048.7.0.592728768989.issue33789@psf.upfronthosting.co.za> Message-ID: <1528381246.4.0.592728768989.issue33789@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:21:22 2018 From: report at bugs.python.org (Andrew Svetlov) Date: Thu, 07 Jun 2018 14:21:22 +0000 Subject: [issue33743] test_asyncio raises a deprecation warning In-Reply-To: <1528011716.86.0.592728768989.issue33743@psf.upfronthosting.co.za> Message-ID: <1528381282.15.0.592728768989.issue33743@psf.upfronthosting.co.za> Andrew Svetlov added the comment: Master already has the fix, added by 7ed61e9431e ---------- versions: -Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:21:31 2018 From: report at bugs.python.org (Benjamin Peterson) Date: Thu, 07 Jun 2018 14:21:31 +0000 Subject: [issue33778] update Unicode database to 11.0 In-Reply-To: <1528254629.86.0.592728768989.issue33778@psf.upfronthosting.co.za> Message-ID: <1528381291.48.0.592728768989.issue33778@psf.upfronthosting.co.za> Benjamin Peterson added the comment: New changeset 34b734699b19d826f861b604dd77e82beed95f17 by Benjamin Peterson in branch 'master': update 3.7 whatsnew entry about Unicode version (GH-7480) https://github.com/python/cpython/commit/34b734699b19d826f861b604dd77e82beed95f17 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:22:11 2018 From: report at bugs.python.org (Benjamin Peterson) Date: Thu, 07 Jun 2018 14:22:11 +0000 Subject: [issue33795] Memory leak in X509StoreContext class. In-Reply-To: <1528374457.54.0.592728768989.issue33795@psf.upfronthosting.co.za> Message-ID: <1528381331.91.0.592728768989.issue33795@psf.upfronthosting.co.za> Change by Benjamin Peterson : ---------- resolution: -> third party status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:22:29 2018 From: report at bugs.python.org (Andrew Svetlov) Date: Thu, 07 Jun 2018 14:22:29 +0000 Subject: [issue33743] test_asyncio raises a deprecation warning In-Reply-To: <1528011716.86.0.592728768989.issue33743@psf.upfronthosting.co.za> Message-ID: <1528381349.47.0.592728768989.issue33743@psf.upfronthosting.co.za> Andrew Svetlov added the comment: Aha, I see. Thanks ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:22:40 2018 From: report at bugs.python.org (miss-islington) Date: Thu, 07 Jun 2018 14:22:40 +0000 Subject: [issue33778] update Unicode database to 11.0 In-Reply-To: <1528254629.86.0.592728768989.issue33778@psf.upfronthosting.co.za> Message-ID: <1528381360.73.0.592728768989.issue33778@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7107 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:23:55 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 14:23:55 +0000 Subject: [issue33743] test_asyncio raises a deprecation warning In-Reply-To: <1528011716.86.0.592728768989.issue33743@psf.upfronthosting.co.za> Message-ID: <1528381435.93.0.592728768989.issue33743@psf.upfronthosting.co.za> STINNER Victor added the comment: Andrew Svetlov: "Aha, I see. Thanks" You're welcome. Ned Deily: "Any chance we can get this fixed for 3.7.0rc1?" I just backported my changes to the 3.7 branch. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:24:26 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 14:24:26 +0000 Subject: [issue32676] test_asyncio emits many warnings when run in debug mode In-Reply-To: <1516964849.79.0.467229070634.issue32676@psf.upfronthosting.co.za> Message-ID: <1528381466.03.0.592728768989.issue32676@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7108 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:34:49 2018 From: report at bugs.python.org (=?utf-8?q?Sigurd_Lj=C3=B8dal?=) Date: Thu, 07 Jun 2018 14:34:49 +0000 Subject: [issue33796] dataclasses.replace broken with class variables Message-ID: <1528382089.85.0.592728768989.issue33796@psf.upfronthosting.co.za> New submission from Sigurd Lj?dal : The dataclasses.replace function does not work for classes that have class variables. See the console output below for an example. $ python Python 3.7.0b5+ (heads/3.7:3c417610ad, Jun 7 2018, 16:21:29) [Clang 9.1.0 (clang-902.0.39.2)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import typing >>> import dataclasses >>> @dataclasses.dataclass(frozen=True) ... class Test: ... a: int ... class_var: typing.ClassVar[str] = 'foo' ... >>> obj = Test(a=1) >>> dataclasses.replace(obj, a=2) Traceback (most recent call last): File "", line 1, in File "/Users/sigurdljodal/.pyenv/versions/3.7-dev/lib/python3.7/dataclasses.py", line 1179, in replace return obj.__class__(**changes) TypeError: __init__() got an unexpected keyword argument 'class_var' ---------- messages: 318942 nosy: sigurd priority: normal severity: normal status: open title: dataclasses.replace broken with class variables versions: Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:38:32 2018 From: report at bugs.python.org (Ari Krupnik) Date: Thu, 07 Jun 2018 14:38:32 +0000 Subject: [issue33274] minidom removeAttributeNode returns None In-Reply-To: <1523644603.75.0.682650639539.issue33274@psf.upfronthosting.co.za> Message-ID: <1528382312.07.0.592728768989.issue33274@psf.upfronthosting.co.za> Ari Krupnik added the comment: I feel a little bit like I wandered into a card game whose rules I didn't understand. I'm just a lay, mortal user. I've been writing Python for 15 years, first time I saw an opportunity to contribute back. I saw what looked to me like a bug that's been in the code for 18 years, and I saw that it was a simple fix. You want a News entry? I'm happy to write a news entry. You want a full stop at the end? I'm happy to make that commit. You want me to write something in the doc? I'm happy to do that. What you do with my contribution is your call. I don't make the rules, like I said, I don't even understand them so well. When I first found this bug, I saw it as a very low-risk fix in terms of API change. It seems less likely that someone somewhere has code that depends on this function that always returning None. Python makes a very hard distinction between statements and expressions, and like you're saying, the Pythonic assumption is that a mutator is a statement whose return value one doesn't check. If this function returned a value, but the value were different from the spec, it would be a higher-risk change. As a side note, I'm a 2.7 user, so would benefit from backporting this fix. All this said, you're the maintainer, I'm the user, you don't have to justify your decisions to me. If you decide against backporting, I encourage you to update the documentation in earlier versions to state explicitly that this one mutator in the module diverges from the standard which the module otherwise implements faithfully. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:39:45 2018 From: report at bugs.python.org (Tim Boddy) Date: Thu, 07 Jun 2018 14:39:45 +0000 Subject: [issue33795] Memory leak in X509StoreContext class. In-Reply-To: <1528374457.54.0.592728768989.issue33795@psf.upfronthosting.co.za> Message-ID: <1528382385.36.0.592728768989.issue33795@psf.upfronthosting.co.za> Tim Boddy added the comment: It looks as if the issue has been fixed here: https://github.com/pyca/pyopenssl/blob/179eb1d0917ddc1067d056127e08e952206e0e91/src/OpenSSL/crypto.py#L1790 Thanks again for pointing me to the correct place! I'm sorry that I accidentally change the status from closed when I added a comment. ---------- resolution: third party -> not a bug _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:42:09 2018 From: report at bugs.python.org (Berker Peksag) Date: Thu, 07 Jun 2018 14:42:09 +0000 Subject: [issue33795] Memory leak in X509StoreContext class. In-Reply-To: <1528374457.54.0.592728768989.issue33795@psf.upfronthosting.co.za> Message-ID: <1528382529.39.0.592728768989.issue33795@psf.upfronthosting.co.za> Berker Peksag added the comment: > Is there a quick way for me to evaluate in the future wither a > particular file belongs to the standard library? If a Python file or package is located in the site-packages/ directory, it's not part of the standard library. ---------- resolution: not a bug -> third party _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:50:38 2018 From: report at bugs.python.org (miss-islington) Date: Thu, 07 Jun 2018 14:50:38 +0000 Subject: [issue33778] update Unicode database to 11.0 In-Reply-To: <1528254629.86.0.592728768989.issue33778@psf.upfronthosting.co.za> Message-ID: <1528383038.99.0.592728768989.issue33778@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 942b7ff11add8e701e91e4d24abfb35b480161a3 by Miss Islington (bot) in branch '3.7': update 3.7 whatsnew entry about Unicode version (GH-7480) https://github.com/python/cpython/commit/942b7ff11add8e701e91e4d24abfb35b480161a3 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 10:55:09 2018 From: report at bugs.python.org (Eric V. Smith) Date: Thu, 07 Jun 2018 14:55:09 +0000 Subject: [issue33796] dataclasses.replace broken with class variables In-Reply-To: <1528382089.85.0.592728768989.issue33796@psf.upfronthosting.co.za> Message-ID: <1528383309.26.0.592728768989.issue33796@psf.upfronthosting.co.za> Change by Eric V. Smith : ---------- assignee: -> eric.smith nosy: +eric.smith _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 11:06:53 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 15:06:53 +0000 Subject: [issue32676] test_asyncio emits many warnings when run in debug mode In-Reply-To: <1516964849.79.0.467229070634.issue32676@psf.upfronthosting.co.za> Message-ID: <1528384013.33.0.592728768989.issue32676@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 2c8d665ba843fe875a4b8f0ae7c7e9099a06f0dc by Victor Stinner in branch '3.6': [3.6] bpo-32676, test_asyncio: Fix warning in test_error_in_call_soon() (GH-7462) (GH-7483) https://github.com/python/cpython/commit/2c8d665ba843fe875a4b8f0ae7c7e9099a06f0dc ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 11:15:29 2018 From: report at bugs.python.org (Eric V. Smith) Date: Thu, 07 Jun 2018 15:15:29 +0000 Subject: [issue33796] dataclasses.replace broken with class variables In-Reply-To: <1528382089.85.0.592728768989.issue33796@psf.upfronthosting.co.za> Message-ID: <1528384529.6.0.592728768989.issue33796@psf.upfronthosting.co.za> Eric V. Smith added the comment: Thanks for the report. This is the same error you get when using any non-field: >>> @dataclass ... class C: ... i: int ... >>> c = C(4) >>> replace(c, i=3) C(i=3) >>> replace(c, j=3) Traceback (most recent call last): File "", line 1, in File "C:\home\eric\local\python\cpython\lib\dataclasses.py", line 1179, in replace return obj.__class__(**changes) TypeError: __init__() got an unexpected keyword argument 'j' I think the TypeError is correct in both cases. The error message might not be the best. Are you suggesting that this shouldn't raise a TypeError? Since a ClassVar is not an instance variable, I don't think it makes any sense to replace() it. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 11:34:51 2018 From: report at bugs.python.org (Dong-hee Na) Date: Thu, 07 Jun 2018 15:34:51 +0000 Subject: [issue33476] String index out of range in get_group(), email/_header_value_parser.py In-Reply-To: <1526172602.81.0.682650639539.issue33476@psf.upfronthosting.co.za> Message-ID: <1528385691.88.0.592728768989.issue33476@psf.upfronthosting.co.za> Change by Dong-hee Na : ---------- keywords: +patch pull_requests: +7109 stage: test needed -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 11:40:26 2018 From: report at bugs.python.org (=?utf-8?q?Sigurd_Lj=C3=B8dal?=) Date: Thu, 07 Jun 2018 15:40:26 +0000 Subject: [issue33796] dataclasses.replace broken with class variables In-Reply-To: <1528382089.85.0.592728768989.issue33796@psf.upfronthosting.co.za> Message-ID: <1528386026.34.0.592728768989.issue33796@psf.upfronthosting.co.za> Sigurd Lj?dal added the comment: I think you misunderstood the issue here. I'm not trying to replace the class variable itself, I'm changing another field on a class that has a class variable. The problem is that the replace method includes the class variable in the change dict when copying fields that are not included in the function call. My call is: dataclasses.replace(obj, a=2) where I try to replace a, but it fails because class_var is included in the attributes to __init__ by the replace function. The problem is on this line: https://github.com/python/cpython/blob/master/Lib/dataclasses.py#L1162 The _FIELDS attribute includes the class variable as a field, and it is therefore added to the changes dict. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 11:48:24 2018 From: report at bugs.python.org (Eric V. Smith) Date: Thu, 07 Jun 2018 15:48:24 +0000 Subject: [issue33796] dataclasses.replace broken with class variables In-Reply-To: <1528382089.85.0.592728768989.issue33796@psf.upfronthosting.co.za> Message-ID: <1528386504.24.0.592728768989.issue33796@psf.upfronthosting.co.za> Eric V. Smith added the comment: Ah, you're right. I did misunderstand. Thanks for correcting me. PR soon. ---------- nosy: +ned.deily priority: normal -> release blocker _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 11:57:06 2018 From: report at bugs.python.org (Eric V. Smith) Date: Thu, 07 Jun 2018 15:57:06 +0000 Subject: [issue33796] dataclasses.replace broken if a class has any ClassVars In-Reply-To: <1528382089.85.0.592728768989.issue33796@psf.upfronthosting.co.za> Message-ID: <1528387026.66.0.592728768989.issue33796@psf.upfronthosting.co.za> Change by Eric V. Smith : ---------- title: dataclasses.replace broken with class variables -> dataclasses.replace broken if a class has any ClassVars versions: +Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 11:59:52 2018 From: report at bugs.python.org (Eric Snow) Date: Thu, 07 Jun 2018 15:59:52 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528387192.86.0.592728768989.issue33738@psf.upfronthosting.co.za> Eric Snow added the comment: @Christian, you can use the "blurb" tool to create the NEWS entry. You can use pip to install it. See: https://devguide.python.org/committing/?highlight=blurb#what-s-new-and-news-entries ---------- nosy: +eric.snow _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 12:09:03 2018 From: report at bugs.python.org (Christian Tismer) Date: Thu, 07 Jun 2018 16:09:03 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1528387192.86.0.592728768989.issue33738@psf.upfronthosting.co.za> Message-ID: Christian Tismer added the comment: On 07.06.18 17:59, Eric Snow wrote: > > Eric Snow added the comment: > > @Christian, you can use the "blurb" tool to create the NEWS entry. You can use pip to install it. See: > > https://devguide.python.org/committing/?highlight=blurb#what-s-new-and-news-entries > > ---------- > nosy: +eric.snow > > _______________________________________ > Python tracker > > _______________________________________ > Thank you, Eric! Will do so. I had something to change, anyway :-) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 12:14:20 2018 From: report at bugs.python.org (Fred L. Drake, Jr.) Date: Thu, 07 Jun 2018 16:14:20 +0000 Subject: [issue33274] minidom removeAttributeNode returns None In-Reply-To: <1523644603.75.0.682650639539.issue33274@psf.upfronthosting.co.za> Message-ID: <1528388060.8.0.592728768989.issue33274@psf.upfronthosting.co.za> Fred L. Drake, Jr. added the comment: > I saw what looked to me like a bug that's been in the code for 18 years, > and I saw that it was a simple fix. And you're right: It is a bug, the fix is simple, and the risk is low. Ten years ago, I'd have probably just landed the fix on all applicable branches and moved on. But the longer something stays the same (like you said, for 18 years now), the more surprising a fix can be when something (however foolishly and unlikely it seems) relied on the old, broken behavior falls apart because of the change. Please don't think we don't appreciate your contribution; we do. I hope you'll continue to be observant and catch bugs (even little ones!), and provide fixes. Feel free to reach out if you'd like to discuss this further. ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 12:14:52 2018 From: report at bugs.python.org (Neil Schemenauer) Date: Thu, 07 Jun 2018 16:14:52 +0000 Subject: [issue33609] Document that dicts preserve insertion order In-Reply-To: <1527023250.35.0.682650639539.issue33609@psf.upfronthosting.co.za> Message-ID: <1528388092.03.0.592728768989.issue33609@psf.upfronthosting.co.za> Change by Neil Schemenauer : ---------- pull_requests: +7110 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 12:27:28 2018 From: report at bugs.python.org (Yury Selivanov) Date: Thu, 07 Jun 2018 16:27:28 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528388848.03.0.592728768989.issue33694@psf.upfronthosting.co.za> Change by Yury Selivanov : ---------- pull_requests: +7111 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 12:32:41 2018 From: report at bugs.python.org (Brad Bishop) Date: Thu, 07 Jun 2018 16:32:41 +0000 Subject: [issue33797] json int encoding incorrect for dbus.Byte Message-ID: <1528389161.29.0.592728768989.issue33797@psf.upfronthosting.co.za> New submission from Brad Bishop : JSON does not correctly encode dbus.Byte from dbus-python on 2.7: dbus.Byte is a subclass of int with its own __str__ implementation. >>> import json >>> import dbus >>> json.dumps(dbus.Byte(0)) '\x00' On 3.x: >>> import json >>> import dbus >>> json.dumps(dbus.Byte(0)) '0' This seems to have been fixed in 3.x here: https://bugs.python.org/issue18264 and subsequently: https://bugs.python.org/issue26719 I'm interested in backporting these but they are marked as enhancements. However a backport for a similar issue: https://bugs.python.org/issue27934 was accepted. Would the maintainers be amenable to a backport of 18264 & 26719? ---------- components: Library (Lib) messages: 318954 nosy: radsquirrel priority: normal severity: normal status: open title: json int encoding incorrect for dbus.Byte type: behavior versions: Python 2.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 12:39:11 2018 From: report at bugs.python.org (Yury Selivanov) Date: Thu, 07 Jun 2018 16:39:11 +0000 Subject: [issue33792] asyncio: how to set a "Proactor event loop" policy? Issue with asyncio.run() In-Reply-To: <1528365724.38.0.592728768989.issue33792@psf.upfronthosting.co.za> Message-ID: <1528389551.5.0.592728768989.issue33792@psf.upfronthosting.co.za> Change by Yury Selivanov : ---------- keywords: +patch pull_requests: +7112 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 12:39:20 2018 From: report at bugs.python.org (Eric V. Smith) Date: Thu, 07 Jun 2018 16:39:20 +0000 Subject: [issue33796] dataclasses.replace broken if a class has any ClassVars In-Reply-To: <1528382089.85.0.592728768989.issue33796@psf.upfronthosting.co.za> Message-ID: <1528389560.89.0.592728768989.issue33796@psf.upfronthosting.co.za> Eric V. Smith added the comment: Ned: How do you feel about backporting this to 3.7? It's an unfortunate bug, but it's your call for 3.7.0 vs. 3.7.1. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 12:43:56 2018 From: report at bugs.python.org (Siddhartha Bose) Date: Thu, 07 Jun 2018 16:43:56 +0000 Subject: [issue33779] Error while installing python 3.6.5 on windows 10 In-Reply-To: <1528277897.55.0.592728768989.issue33779@psf.upfronthosting.co.za> Message-ID: <1528389836.45.0.592728768989.issue33779@psf.upfronthosting.co.za> Siddhartha Bose added the comment: @steve, it didn't work, see the snapshot attached for reference log details [24130:24B34][2018-06-07T22:08:43]i000: Did not find C:\Users\SI20016244\Downloads\unattend.xml [24130:24B34][2018-06-07T22:08:43]i000: Setting string variable 'ActionLikeInstalling' to value 'Installing' [24130:24B34][2018-06-07T22:08:43]i000: Setting string variable 'ActionLikeInstallation' to value 'Setup' [24130:24B34][2018-06-07T22:08:43]i000: Setting version variable 'WixBundleFileVersion' to value '3.6.5150.0' [24130:24B34][2018-06-07T22:08:43]i000: Target OS is Windows 7 SP1 or later [24130:24AD8][2018-06-07T22:08:43]i100: Detect begin, 58 packages [24130:24AD8][2018-06-07T22:08:43]i102: Detected related bundle: deleteme, type: Upgrade, scope: PerUser, version: 3.6.5150.0, operation: None [24130:24AD8][2018-06-07T22:08:43]e000: Related bundle deleteme is preventing install ---------- Added file: https://bugs.python.org/file47633/snapshot.PNG _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 13:58:23 2018 From: report at bugs.python.org (Eric V. Smith) Date: Thu, 07 Jun 2018 17:58:23 +0000 Subject: [issue33796] dataclasses.replace broken if a class has any ClassVars In-Reply-To: <1528382089.85.0.592728768989.issue33796@psf.upfronthosting.co.za> Message-ID: <1528394303.18.0.592728768989.issue33796@psf.upfronthosting.co.za> Change by Eric V. Smith : ---------- keywords: +patch pull_requests: +7113 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 14:06:58 2018 From: report at bugs.python.org (Steve Dower) Date: Thu, 07 Jun 2018 18:06:58 +0000 Subject: [issue33779] Error while installing python 3.6.5 on windows 10 In-Reply-To: <1528277897.55.0.592728768989.issue33779@psf.upfronthosting.co.za> Message-ID: <1528394818.05.0.592728768989.issue33779@psf.upfronthosting.co.za> Steve Dower added the comment: Hmm... okay, we might just need to delete it completely then. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 14:22:00 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Thu, 07 Jun 2018 18:22:00 +0000 Subject: [issue33787] Argument clinic and Windows line endings In-Reply-To: <1528314548.88.0.592728768989.issue33787@psf.upfronthosting.co.za> Message-ID: <1528395720.83.0.592728768989.issue33787@psf.upfronthosting.co.za> Giampaolo Rodola' added the comment: Patch in attachment does the trick. ---------- keywords: +patch Added file: https://bugs.python.org/file47634/clinic.diff _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 14:44:09 2018 From: report at bugs.python.org (Eric V. Smith) Date: Thu, 07 Jun 2018 18:44:09 +0000 Subject: [issue33796] dataclasses.replace broken if a class has any ClassVars In-Reply-To: <1528382089.85.0.592728768989.issue33796@psf.upfronthosting.co.za> Message-ID: <1528397049.34.0.592728768989.issue33796@psf.upfronthosting.co.za> Eric V. Smith added the comment: New changeset e7adf2ba41832404100313f9ac9d9f7fabedc1fd by Eric V. Smith in branch 'master': bpo-33796: Ignore ClassVar for dataclasses.replace(). (GH-7488) https://github.com/python/cpython/commit/e7adf2ba41832404100313f9ac9d9f7fabedc1fd ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 14:46:16 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Thu, 07 Jun 2018 18:46:16 +0000 Subject: [issue33274] minidom removeAttributeNode returns None In-Reply-To: <1523644603.75.0.682650639539.issue33274@psf.upfronthosting.co.za> Message-ID: <1528397176.73.0.592728768989.issue33274@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Let me clarify part of what I wrote. If we make this change in 2.7.16, then any code that uses the return value will not run on anything previous. This may not matter for you, but would be bad for public code. This cost is present in all bug fixes, but usually there is the benefit that existing code will run better without being changed, or that it becomes possible to get certain results that were not possible before. This code does not have those benefits. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 15:01:05 2018 From: report at bugs.python.org (Berker Peksag) Date: Thu, 07 Jun 2018 19:01:05 +0000 Subject: [issue32392] subprocess.run documentation does not have **kwargs In-Reply-To: <1513802831.78.0.213398074469.issue32392@psf.upfronthosting.co.za> Message-ID: <1528398065.14.0.592728768989.issue32392@psf.upfronthosting.co.za> Change by Berker Peksag : ---------- pull_requests: +7114 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 15:12:49 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 07 Jun 2018 19:12:49 +0000 Subject: [issue33798] Fix csv module comment regarding dict insertion order Message-ID: <1528398769.16.0.592728768989.issue33798@psf.upfronthosting.co.za> New submission from Andr?s Delfino : The csv module says "Python?s dict objects are not ordered". PR fixes this , leaving a comment on the rationale. ---------- assignee: docs at python components: Documentation messages: 318961 nosy: adelfino, docs at python priority: normal severity: normal status: open title: Fix csv module comment regarding dict insertion order type: enhancement versions: Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 15:13:10 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 07 Jun 2018 19:13:10 +0000 Subject: [issue33798] Fix csv module comment regarding dict insertion order In-Reply-To: <1528398769.16.0.592728768989.issue33798@psf.upfronthosting.co.za> Message-ID: <1528398790.51.0.592728768989.issue33798@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- keywords: +patch pull_requests: +7115 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 15:13:50 2018 From: report at bugs.python.org (Jay Crotts) Date: Thu, 07 Jun 2018 19:13:50 +0000 Subject: [issue33722] Document builtins in mock_open In-Reply-To: <1527791734.24.0.682650639539.issue33722@psf.upfronthosting.co.za> Message-ID: <1528398830.86.0.592728768989.issue33722@psf.upfronthosting.co.za> Change by Jay Crotts : ---------- keywords: +patch pull_requests: +7116 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 15:22:37 2018 From: report at bugs.python.org (Berker Peksag) Date: Thu, 07 Jun 2018 19:22:37 +0000 Subject: [issue32392] subprocess.run documentation does not have **kwargs In-Reply-To: <1513802831.78.0.213398074469.issue32392@psf.upfronthosting.co.za> Message-ID: <1528399357.34.0.592728768989.issue32392@psf.upfronthosting.co.za> Berker Peksag added the comment: New changeset 279564431e8e2fa4c20e8850420caea484a5d20b by Berker Peksag in branch '3.6': [3.6] bpo-32392: Document env keyword argument of subprocess.run() (GH-7289) https://github.com/python/cpython/commit/279564431e8e2fa4c20e8850420caea484a5d20b ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 15:23:19 2018 From: report at bugs.python.org (Berker Peksag) Date: Thu, 07 Jun 2018 19:23:19 +0000 Subject: [issue32392] subprocess.run documentation does not have **kwargs In-Reply-To: <1513802831.78.0.213398074469.issue32392@psf.upfronthosting.co.za> Message-ID: <1528399399.83.0.592728768989.issue32392@psf.upfronthosting.co.za> Berker Peksag added the comment: Thanks! ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 15:28:00 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 07 Jun 2018 19:28:00 +0000 Subject: [issue33799] Remove non-ordered dicts comments from FAQ Message-ID: <1528399680.16.0.592728768989.issue33799@psf.upfronthosting.co.za> New submission from Andr?s Delfino : Both Design and Programming sections have comments related to the non-ordered dict implementation. PR removes those comments. ---------- assignee: docs at python components: Documentation messages: 318964 nosy: adelfino, docs at python priority: normal severity: normal status: open title: Remove non-ordered dicts comments from FAQ versions: Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 15:28:16 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 07 Jun 2018 19:28:16 +0000 Subject: [issue33799] Remove non-ordered dicts comments from FAQ In-Reply-To: <1528399680.16.0.592728768989.issue33799@psf.upfronthosting.co.za> Message-ID: <1528399696.94.0.592728768989.issue33799@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- keywords: +patch pull_requests: +7117 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 15:31:17 2018 From: report at bugs.python.org (Ari Krupnik) Date: Thu, 07 Jun 2018 19:31:17 +0000 Subject: [issue33274] minidom removeAttributeNode returns None In-Reply-To: <1523644603.75.0.682650639539.issue33274@psf.upfronthosting.co.za> Message-ID: <1528399877.77.0.592728768989.issue33274@psf.upfronthosting.co.za> Ari Krupnik added the comment: In retrospect, I wish I had submitted this as a documentation change, simply acknowledging this function's behavior. "In most computer projects there comes a day when it is discovered that the machine and the manual don't agree. When the confrontation follows, the manual usually loses, for it can be changed far more quickly and cheaply than the machine." -- Fred Brooks, MMM, 1974 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 15:32:04 2018 From: report at bugs.python.org (Ned Deily) Date: Thu, 07 Jun 2018 19:32:04 +0000 Subject: [issue33796] dataclasses.replace broken if a class has any ClassVars In-Reply-To: <1528382089.85.0.592728768989.issue33796@psf.upfronthosting.co.za> Message-ID: <1528399924.56.0.592728768989.issue33796@psf.upfronthosting.co.za> Ned Deily added the comment: Let's fix it now. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 15:42:33 2018 From: report at bugs.python.org (Ned Deily) Date: Thu, 07 Jun 2018 19:42:33 +0000 Subject: [issue33786] @asynccontextmanager doesn't work well with async generators In-Reply-To: <1528305875.22.0.592728768989.issue33786@psf.upfronthosting.co.za> Message-ID: <1528400553.85.0.592728768989.issue33786@psf.upfronthosting.co.za> Ned Deily added the comment: > Would be nice to fix this in 3.7.0 Please do! ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 15:57:48 2018 From: report at bugs.python.org (miss-islington) Date: Thu, 07 Jun 2018 19:57:48 +0000 Subject: [issue33796] dataclasses.replace broken if a class has any ClassVars In-Reply-To: <1528382089.85.0.592728768989.issue33796@psf.upfronthosting.co.za> Message-ID: <1528401468.23.0.592728768989.issue33796@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7118 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 16:01:29 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 07 Jun 2018 20:01:29 +0000 Subject: [issue33800] Fix default argument for parameter dict_type of ConfigParser/RawConfigParser Message-ID: <1528401689.57.0.592728768989.issue33800@psf.upfronthosting.co.za> New submission from Andr?s Delfino : Default argument of parameter dict_type of ConfigParser/RawConfigParser is shown as "collections.OrderedDict", while it recently migrated to "dict". PR fixes this, documents the change to dict, and fixes a versionchanged changed directive in "items" with wrong indentation. ---------- assignee: docs at python components: Documentation messages: 318968 nosy: adelfino, docs at python priority: normal severity: normal status: open title: Fix default argument for parameter dict_type of ConfigParser/RawConfigParser type: enhancement versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 16:01:46 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 07 Jun 2018 20:01:46 +0000 Subject: [issue33800] Fix default argument for parameter dict_type of ConfigParser/RawConfigParser In-Reply-To: <1528401689.57.0.592728768989.issue33800@psf.upfronthosting.co.za> Message-ID: <1528401706.06.0.592728768989.issue33800@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- keywords: +patch pull_requests: +7119 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 16:12:56 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 07 Jun 2018 20:12:56 +0000 Subject: [issue33801] Remove non-ordered dict comment from plistlib Message-ID: <1528402376.25.0.592728768989.issue33801@psf.upfronthosting.co.za> New submission from Andr?s Delfino : plistlib documentation says: "The exact structure of the plist can be recovered by using collections.OrderedDict (although the order of keys shouldn't be important in plist files)" This is no longer necessary, since dict objects preserve insertion order. PR changes this. ---------- assignee: docs at python components: Documentation messages: 318969 nosy: adelfino, docs at python priority: normal severity: normal status: open title: Remove non-ordered dict comment from plistlib type: enhancement versions: Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 16:13:50 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 07 Jun 2018 20:13:50 +0000 Subject: [issue33801] Remove non-ordered dict comment from plistlib In-Reply-To: <1528402376.25.0.592728768989.issue33801@psf.upfronthosting.co.za> Message-ID: <1528402430.75.0.592728768989.issue33801@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- keywords: +patch pull_requests: +7120 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 16:15:31 2018 From: report at bugs.python.org (miss-islington) Date: Thu, 07 Jun 2018 20:15:31 +0000 Subject: [issue33796] dataclasses.replace broken if a class has any ClassVars In-Reply-To: <1528382089.85.0.592728768989.issue33796@psf.upfronthosting.co.za> Message-ID: <1528402531.22.0.592728768989.issue33796@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 0aee3bea197af51de3a30e4665eaa2971a681fbb by Miss Islington (bot) in branch '3.7': bpo-33796: Ignore ClassVar for dataclasses.replace(). (GH-7488) https://github.com/python/cpython/commit/0aee3bea197af51de3a30e4665eaa2971a681fbb ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 16:30:17 2018 From: report at bugs.python.org (Eric V. Smith) Date: Thu, 07 Jun 2018 20:30:17 +0000 Subject: [issue33796] dataclasses.replace broken if a class has any ClassVars In-Reply-To: <1528382089.85.0.592728768989.issue33796@psf.upfronthosting.co.za> Message-ID: <1528403417.87.0.592728768989.issue33796@psf.upfronthosting.co.za> Eric V. Smith added the comment: Thanks, Ned. I've backported it. ---------- components: +Library (Lib) priority: release blocker -> normal resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 16:57:21 2018 From: report at bugs.python.org (David Szotten) Date: Thu, 07 Jun 2018 20:57:21 +0000 Subject: [issue28557] error message for bad raw readinto In-Reply-To: <1477760845.01.0.230790209004.issue28557@psf.upfronthosting.co.za> Message-ID: <1528405041.6.0.592728768989.issue28557@psf.upfronthosting.co.za> Change by David Szotten : ---------- pull_requests: +7121 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 17:15:51 2018 From: report at bugs.python.org (Tim Boddy) Date: Thu, 07 Jun 2018 21:15:51 +0000 Subject: [issue33795] Memory leak in X509StoreContext class. In-Reply-To: <1528374457.54.0.592728768989.issue33795@psf.upfronthosting.co.za> Message-ID: <1528406151.74.0.592728768989.issue33795@psf.upfronthosting.co.za> Tim Boddy added the comment: Would a leak associated with this stack trace fall within the domain of bugs.python.org? I do see site-packages on ths stack in frames 1 and 2 but frame 3 is in /lib/libpython3.5m.so.1.0: 555555904900 #0 __GI___libc_malloc (bytes=8) at malloc.c:2910 #1 0x00007ffff4b1a6a9 in ?? () from /usr/lib/python3.5/site-packages/_cffi_backend.cpython-35m-x86_64-linux-gnu.so #2 0x00007ffff4b1ab4d in ?? () from /usr/lib/python3.5/site-packages/_cffi_backend.cpython-35m-x86_64-linux-gnu.so #3 0x00007ffff7a28019 in ?? () from /lib/libpython3.5m.so.1.0 #4 0x00007ffff79bb229 in PyCFunction_Call () from /lib/libpython3.5m.so.1.0 #5 0x00007ffff7a3474c in PyEval_EvalFrameEx () from /lib/libpython3.5m.so.1.0 #6 0x00007ffff7a33d5c in PyEval_EvalFrameEx () from /lib/libpython3.5m.so.1.0 #7 0x00007ffff7a33d5c in PyEval_EvalFrameEx () from /lib/libpython3.5m.so.1.0 Either way is fine. I have a bit more debugging to do anyway to understand where the cause of the leak actually is but please let me know your thoughts on whether this bug might be relevant to this site. ---------- resolution: third party -> not a bug _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 17:46:14 2018 From: report at bugs.python.org (Neil Schemenauer) Date: Thu, 07 Jun 2018 21:46:14 +0000 Subject: [issue33609] Document that dicts preserve insertion order In-Reply-To: <1527023250.35.0.682650639539.issue33609@psf.upfronthosting.co.za> Message-ID: <1528407974.22.0.592728768989.issue33609@psf.upfronthosting.co.za> Neil Schemenauer added the comment: New changeset d3ed67d14ed401dfe2b5d07b6941adc3ecacb268 by Neil Schemenauer in branch 'master': bpo-33609: small wording fixes to dict ordering docs https://github.com/python/cpython/commit/d3ed67d14ed401dfe2b5d07b6941adc3ecacb268 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 17:47:23 2018 From: report at bugs.python.org (miss-islington) Date: Thu, 07 Jun 2018 21:47:23 +0000 Subject: [issue33609] Document that dicts preserve insertion order In-Reply-To: <1527023250.35.0.682650639539.issue33609@psf.upfronthosting.co.za> Message-ID: <1528408043.07.0.592728768989.issue33609@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7122 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 17:51:29 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 21:51:29 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528408289.12.0.592728768989.issue33694@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7123 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 18:04:44 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Thu, 07 Jun 2018 22:04:44 +0000 Subject: [issue33642] IDLE: Use variable number of lines in CodeContext In-Reply-To: <1527208905.36.0.682650639539.issue33642@psf.upfronthosting.co.za> Message-ID: <1528409084.54.0.592728768989.issue33642@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Summary for users: Previously, Code Context displayed a fixed number of lines. Often, many were blank. Hence the default *numlines* to display was small, 3, to avoid having too many blank lines. However, 3 is often too small to display the complete context. Now, Code Context initially displays a single blank line for 'no context', to show that the feature is active. When the top visible line is part of an indented body, the context used as many non-blank lines as needed, up to a maximum of *maxlines*, which has a default of 15. Because a new configuration option is used, there should be no interference between user settings for old releases and future releases. Initially, context lines are added to an expanded editor window. When the height of the window has been maximized, perhaps with the zoomheight feature, and when the height of the window has been reset with the mouse, context lines replace normal code text. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 18:05:35 2018 From: report at bugs.python.org (Tim Boddy) Date: Thu, 07 Jun 2018 22:05:35 +0000 Subject: [issue33795] Memory leak in X509StoreContext class. In-Reply-To: <1528374457.54.0.592728768989.issue33795@psf.upfronthosting.co.za> Message-ID: <1528409135.78.0.592728768989.issue33795@psf.upfronthosting.co.za> Tim Boddy added the comment: I'm sorry that I changed the resolution by accident. ---------- resolution: not a bug -> third party _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 18:17:51 2018 From: report at bugs.python.org (Francois Schneider) Date: Thu, 07 Jun 2018 22:17:51 +0000 Subject: [issue33784] hash collision in instances of ipaddress.ip_network In-Reply-To: <1528298968.12.0.592728768989.issue33784@psf.upfronthosting.co.za> Message-ID: <1528409871.95.0.592728768989.issue33784@psf.upfronthosting.co.za> Francois Schneider added the comment: Thanks for the analysis, I agree completely. Actually the problem was coming from my code where one of the __eq__ method was implemented like this: >>> def __eq__(self, other): >>> return hash(self) == hash(other) so 2 instances with only a slight difference in their ip_network attribute (ip_network(u'20.0.2.3/32') and ip_network(u'20.0.2.0/30')) were having the same hash and being equal -> they could not be inserted both in the same collection. I will just rewrite my __eq__ method properly. ---------- status: pending -> open _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 18:25:54 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 22:25:54 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528410354.79.0.592728768989.issue33694@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 79790bc35fe722a49977b52647f9b5fe1deda2b7 by Victor Stinner in branch 'master': bpo-33694: Fix race condition in asyncio proactor (GH-7498) https://github.com/python/cpython/commit/79790bc35fe722a49977b52647f9b5fe1deda2b7 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 18:27:23 2018 From: report at bugs.python.org (miss-islington) Date: Thu, 07 Jun 2018 22:27:23 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528410443.98.0.592728768989.issue33694@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7124 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 18:30:13 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Thu, 07 Jun 2018 22:30:13 +0000 Subject: [issue33679] IDLE: Re-enable color configuration for code context In-Reply-To: <1527592431.06.0.682650639539.issue33679@psf.upfronthosting.co.za> Message-ID: <1528410613.77.0.592728768989.issue33679@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Summary for users: Previously, there was one code context foreground and background font color setting, default or custom, on the extensions tab, that applied to all themes. Now, each theme has it own setting, as with other color settings. For builting themes, the foreground is the same as normal text; the background is a contrasting gray. Context colors for custom themes are set on the Hightlights tab along with others. When one starts IDLE from a console and loads a custom theme without definitions for 'context', one will see a warning message on the console. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 18:49:37 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 22:49:37 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528411777.01.0.592728768989.issue33694@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 8fa398d5cecec80990c5642b081f52cbbc6a05eb by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-33694: Fix race condition in asyncio proactor (GH-7498) (GH-7499) https://github.com/python/cpython/commit/8fa398d5cecec80990c5642b081f52cbbc6a05eb ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 18:50:13 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Thu, 07 Jun 2018 22:50:13 +0000 Subject: [issue33679] IDLE: Enable theme-specific color configuration for code context In-Reply-To: <1527592431.06.0.682650639539.issue33679@psf.upfronthosting.co.za> Message-ID: <1528411813.63.0.592728768989.issue33679@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- title: IDLE: Re-enable color configuration for code context -> IDLE: Enable theme-specific color configuration for code context _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 18:51:50 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Thu, 07 Jun 2018 22:51:50 +0000 Subject: [issue33642] IDLE: Display up to maxlines non-blank lines for Code Context In-Reply-To: <1527208905.36.0.682650639539.issue33642@psf.upfronthosting.co.za> Message-ID: <1528411910.98.0.592728768989.issue33642@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- title: IDLE: Use variable number of lines in CodeContext -> IDLE: Display up to maxlines non-blank lines for Code Context _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 18:55:31 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Thu, 07 Jun 2018 22:55:31 +0000 Subject: [issue33642] IDLE: Display up to maxlines non-blank lines for Code Context In-Reply-To: <1527208905.36.0.682650639539.issue33642@psf.upfronthosting.co.za> Message-ID: <1528412131.38.0.592728768989.issue33642@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- pull_requests: +7125 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 18:55:31 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Thu, 07 Jun 2018 22:55:31 +0000 Subject: [issue33679] IDLE: Enable theme-specific color configuration for code context In-Reply-To: <1527592431.06.0.682650639539.issue33679@psf.upfronthosting.co.za> Message-ID: <1528412131.47.0.786479179495.issue33679@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- pull_requests: +7126 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 19:00:35 2018 From: report at bugs.python.org (Barry A. Warsaw) Date: Thu, 07 Jun 2018 23:00:35 +0000 Subject: [issue33802] Regression in logging configuration Message-ID: <1528412435.4.0.592728768989.issue33802@psf.upfronthosting.co.za> New submission from Barry A. Warsaw : This looks like a serious regression in 3.7. @ned.deily - I'm marking this as a release blocker, but feel free of course to downgrade it. Run the following as $ python3.6 badconfig.py Hey, it works! $ python3.7 badconfig.py Traceback (most recent call last): File "../badconfig.py", line 77, in fileConfig(inifile.name, defaults=GUNICORN_DEFAULTS) File "/Users/barry/projects/python/cpython/Lib/logging/config.py", line 65, in fileConfig cp = configparser.ConfigParser(defaults) File "/Users/barry/projects/python/cpython/Lib/configparser.py", line 639, in __init__ self._read_defaults(defaults) File "/Users/barry/projects/python/cpython/Lib/configparser.py", line 1212, in _read_defaults self.read_dict({self.default_section: defaults}) File "/Users/barry/projects/python/cpython/Lib/configparser.py", line 754, in read_dict self.set(section, key, value) File "/Users/barry/projects/python/cpython/Lib/configparser.py", line 1200, in set super().set(section, option, value) File "/Users/barry/projects/python/cpython/Lib/configparser.py", line 895, in set value) File "/Users/barry/projects/python/cpython/Lib/configparser.py", line 403, in before_set "position %d" % (value, tmp_value.find('%'))) ValueError: invalid interpolation syntax in "{'generic': {'format': '%(asctime)s [%(process)d] [%(levelname)s] %(message)s', 'datefmt': '[%Y-%m-%d %H:%M:%S %z]', 'class': 'logging.Formatter'}}" at position 26 I'm still investigating, but wanted to get the bug filed asap. ---------- assignee: barry files: badconfig.py keywords: 3.7regression messages: 318980 nosy: barry, ned.deily priority: release blocker severity: normal stage: needs patch status: open title: Regression in logging configuration type: behavior versions: Python 3.7, Python 3.8 Added file: https://bugs.python.org/file47635/badconfig.py _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 19:11:44 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Thu, 07 Jun 2018 23:11:44 +0000 Subject: [issue33679] IDLE: Enable theme-specific color configuration for code context In-Reply-To: <1527592431.06.0.682650639539.issue33679@psf.upfronthosting.co.za> Message-ID: <1528413104.17.0.592728768989.issue33679@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset bed523ba03c4525c9c79a6df700284b6c43024b3 by Terry Jan Reedy in branch 'master': bpo-33642 and bpo-33679: Revise and condense blurbs (GH-7500) https://github.com/python/cpython/commit/bed523ba03c4525c9c79a6df700284b6c43024b3 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 19:11:44 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Thu, 07 Jun 2018 23:11:44 +0000 Subject: [issue33642] IDLE: Display up to maxlines non-blank lines for Code Context In-Reply-To: <1527208905.36.0.682650639539.issue33642@psf.upfronthosting.co.za> Message-ID: <1528413104.32.0.584625200856.issue33642@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset bed523ba03c4525c9c79a6df700284b6c43024b3 by Terry Jan Reedy in branch 'master': bpo-33642 and bpo-33679: Revise and condense blurbs (GH-7500) https://github.com/python/cpython/commit/bed523ba03c4525c9c79a6df700284b6c43024b3 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 19:12:55 2018 From: report at bugs.python.org (miss-islington) Date: Thu, 07 Jun 2018 23:12:55 +0000 Subject: [issue33642] IDLE: Display up to maxlines non-blank lines for Code Context In-Reply-To: <1527208905.36.0.682650639539.issue33642@psf.upfronthosting.co.za> Message-ID: <1528413175.39.0.592728768989.issue33642@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7127 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 19:12:55 2018 From: report at bugs.python.org (miss-islington) Date: Thu, 07 Jun 2018 23:12:55 +0000 Subject: [issue33679] IDLE: Enable theme-specific color configuration for code context In-Reply-To: <1527592431.06.0.682650639539.issue33679@psf.upfronthosting.co.za> Message-ID: <1528413175.49.0.786479179495.issue33679@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7128 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 19:13:52 2018 From: report at bugs.python.org (miss-islington) Date: Thu, 07 Jun 2018 23:13:52 +0000 Subject: [issue33642] IDLE: Display up to maxlines non-blank lines for Code Context In-Reply-To: <1527208905.36.0.682650639539.issue33642@psf.upfronthosting.co.za> Message-ID: <1528413232.5.0.592728768989.issue33642@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7129 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 19:13:52 2018 From: report at bugs.python.org (miss-islington) Date: Thu, 07 Jun 2018 23:13:52 +0000 Subject: [issue33679] IDLE: Enable theme-specific color configuration for code context In-Reply-To: <1527592431.06.0.682650639539.issue33679@psf.upfronthosting.co.za> Message-ID: <1528413232.59.0.786479179495.issue33679@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7130 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 19:21:36 2018 From: report at bugs.python.org (Barry A. Warsaw) Date: Thu, 07 Jun 2018 23:21:36 +0000 Subject: [issue23835] configparser does not convert defaults to strings In-Reply-To: <1427862188.44.0.00358189102447.issue23835@psf.upfronthosting.co.za> Message-ID: <1528413696.12.0.592728768989.issue23835@psf.upfronthosting.co.za> Barry A. Warsaw added the comment: I think this introduced a regression in 3.7. See bpo-33802 https://bugs.python.org/issue33802 ---------- keywords: +3.7regression -patch nosy: +barry priority: normal -> deferred blocker resolution: fixed -> stage: resolved -> status: closed -> open _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 19:22:14 2018 From: report at bugs.python.org (Barry A. Warsaw) Date: Thu, 07 Jun 2018 23:22:14 +0000 Subject: [issue33802] Regression in logging configuration In-Reply-To: <1528412435.4.0.592728768989.issue33802@psf.upfronthosting.co.za> Message-ID: <1528413734.69.0.592728768989.issue33802@psf.upfronthosting.co.za> Barry A. Warsaw added the comment: I think the regression is caused by the fix for bpo-23835 https://bugs.python.org/issue23835 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 19:30:27 2018 From: report at bugs.python.org (miss-islington) Date: Thu, 07 Jun 2018 23:30:27 +0000 Subject: [issue33679] IDLE: Enable theme-specific color configuration for code context In-Reply-To: <1527592431.06.0.682650639539.issue33679@psf.upfronthosting.co.za> Message-ID: <1528414227.12.0.592728768989.issue33679@psf.upfronthosting.co.za> miss-islington added the comment: New changeset ab5da50d82766acb49ba162dd61b0f8f19424e29 by Miss Islington (bot) in branch '3.7': bpo-33642 and bpo-33679: Revise and condense blurbs (GH-7500) https://github.com/python/cpython/commit/ab5da50d82766acb49ba162dd61b0f8f19424e29 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 19:30:27 2018 From: report at bugs.python.org (miss-islington) Date: Thu, 07 Jun 2018 23:30:27 +0000 Subject: [issue33642] IDLE: Display up to maxlines non-blank lines for Code Context In-Reply-To: <1527208905.36.0.682650639539.issue33642@psf.upfronthosting.co.za> Message-ID: <1528414227.22.0.584625200856.issue33642@psf.upfronthosting.co.za> miss-islington added the comment: New changeset ab5da50d82766acb49ba162dd61b0f8f19424e29 by Miss Islington (bot) in branch '3.7': bpo-33642 and bpo-33679: Revise and condense blurbs (GH-7500) https://github.com/python/cpython/commit/ab5da50d82766acb49ba162dd61b0f8f19424e29 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 19:33:18 2018 From: report at bugs.python.org (Christopher Thorne) Date: Thu, 07 Jun 2018 23:33:18 +0000 Subject: [issue33578] cjkcodecs missing getstate and setstate implementations In-Reply-To: <1526713206.06.0.682650639539.issue33578@psf.upfronthosting.co.za> Message-ID: <1528414398.43.0.592728768989.issue33578@psf.upfronthosting.co.za> Christopher Thorne added the comment: Thanks Naoki, that simplifies things a lot. I've updated the PR with a new test case for ISO-2022-JP and a corresponding implementation for the encoder state methods. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 19:34:16 2018 From: report at bugs.python.org (miss-islington) Date: Thu, 07 Jun 2018 23:34:16 +0000 Subject: [issue33679] IDLE: Enable theme-specific color configuration for code context In-Reply-To: <1527592431.06.0.682650639539.issue33679@psf.upfronthosting.co.za> Message-ID: <1528414456.01.0.592728768989.issue33679@psf.upfronthosting.co.za> miss-islington added the comment: New changeset d071ab12c85636cd15c8ef33647dad9db8441afb by Miss Islington (bot) in branch '3.6': bpo-33642 and bpo-33679: Revise and condense blurbs (GH-7500) https://github.com/python/cpython/commit/d071ab12c85636cd15c8ef33647dad9db8441afb ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 19:34:16 2018 From: report at bugs.python.org (miss-islington) Date: Thu, 07 Jun 2018 23:34:16 +0000 Subject: [issue33642] IDLE: Display up to maxlines non-blank lines for Code Context In-Reply-To: <1527208905.36.0.682650639539.issue33642@psf.upfronthosting.co.za> Message-ID: <1528414456.24.0.584625200856.issue33642@psf.upfronthosting.co.za> miss-islington added the comment: New changeset d071ab12c85636cd15c8ef33647dad9db8441afb by Miss Islington (bot) in branch '3.6': bpo-33642 and bpo-33679: Revise and condense blurbs (GH-7500) https://github.com/python/cpython/commit/d071ab12c85636cd15c8ef33647dad9db8441afb ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 19:44:54 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 07 Jun 2018 23:44:54 +0000 Subject: [issue33803] contextvars: hamt_alloc() must initialize h_root and h_count fields Message-ID: <1528415094.5.0.592728768989.issue33803@psf.upfronthosting.co.za> New submission from STINNER Victor : test_asyncio started to crash in https://github.com/python/cpython/pull/7487 I debugged the crash with Yury: _PyHAMT_New() triggers indirectly a GC collection at "o->h_root = hamt_node_bitmap_new(0);". Problem: the object that is being created is already tracked by the GC, whereas its h_root field is not set. Then the GC does crash because the field is a random pointer. hamt_alloc() must initialize h_root and h_count before tracking the object in the GC. Thinking about the GC when writing an object constructor is hard :-( Maybe we should add a debug option to trigger the GC more often to make such random bug more likely. contextvars has been implemented a few months ago, and we only spotted the bug a few days before Python 3.7.0 final release... ---------- components: Interpreter Core messages: 318990 nosy: ned.deily, vstinner, yselivanov priority: release blocker severity: normal status: open type: crash versions: Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 20:06:52 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 08 Jun 2018 00:06:52 +0000 Subject: [issue33803] contextvars: hamt_alloc() must initialize h_root and h_count fields In-Reply-To: <1528415094.5.0.592728768989.issue33803@psf.upfronthosting.co.za> Message-ID: <1528416412.66.0.592728768989.issue33803@psf.upfronthosting.co.za> STINNER Victor added the comment: One solution to trigger so crash more frequently is to reduce the threshold of the generation 0 of the garbage collector. Here is a patch to do that when using -X dev: change the default threshold from 700 to 5 for the generation 0. With this patch, "PYTHONDEVMODE=1 python -m test test_context" does also crash as expected. diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 958219b744..81218fb964 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -622,6 +622,10 @@ _Py_InitializeCore(const _PyCoreConfig *core_config) return _Py_INIT_ERR("runtime core already initialized"); } + if (core_config->dev_mode) { + _PyRuntime.gc.generations[0].threshold = 5; + } + /* Py_Finalize leaves _Py_Finalizing set in order to help daemon * threads behave a little more gracefully at interpreter shutdown. * We clobber it here so the new interpreter can start with a clean ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 20:11:22 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 08 Jun 2018 00:11:22 +0000 Subject: [issue33803] contextvars: hamt_alloc() must initialize h_root and h_count fields In-Reply-To: <1528415094.5.0.592728768989.issue33803@psf.upfronthosting.co.za> Message-ID: <1528416682.17.0.592728768989.issue33803@psf.upfronthosting.co.za> STINNER Victor added the comment: Don't forget to merge https://github.com/python/cpython/pull/7487 once this bug is fixed. I would like to see https://bugs.python.org/issue33792 in Python 3.7 *if possible* (the feature now seems "required" for the new asyncio.loop() function). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 20:13:26 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 08 Jun 2018 00:13:26 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528416806.01.0.592728768989.issue33694@psf.upfronthosting.co.za> STINNER Victor added the comment: I fixed the root issue, a race condition in ProactorEventLoop. But I prefer to keep the issue open a few days to see if the bug is really gone from all CIs. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 20:18:10 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 08 Jun 2018 00:18:10 +0000 Subject: [issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x In-Reply-To: <1527078316.31.0.682650639539.issue33615@psf.upfronthosting.co.za> Message-ID: <1528417090.53.0.592728768989.issue33615@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7131 stage: needs patch -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 20:19:45 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 00:19:45 +0000 Subject: [issue33803] contextvars: hamt_alloc() must initialize h_root and h_count fields In-Reply-To: <1528415094.5.0.592728768989.issue33803@psf.upfronthosting.co.za> Message-ID: <1528417185.4.0.592728768989.issue33803@psf.upfronthosting.co.za> Change by Yury Selivanov : ---------- keywords: +patch pull_requests: +7132 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 20:21:11 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 00:21:11 +0000 Subject: [issue33803] contextvars: hamt_alloc() must initialize h_root and h_count fields In-Reply-To: <1528415094.5.0.592728768989.issue33803@psf.upfronthosting.co.za> Message-ID: <1528417271.1.0.592728768989.issue33803@psf.upfronthosting.co.za> Yury Selivanov added the comment: Thanks Victor for debugging this. I made a PR (which is now trivial) and double checked all other calls to GCTrack in context.c & hamt.c. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 20:28:31 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 08 Jun 2018 00:28:31 +0000 Subject: [issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x In-Reply-To: <1527078316.31.0.682650639539.issue33615@psf.upfronthosting.co.za> Message-ID: <1528417711.33.0.592728768989.issue33615@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset c4f3cb772bc2d93d91ee1750eed817262f3ed57d by Victor Stinner in branch 'master': bpo-33615: Skip test__xxsubinterpreters (GH-7503) https://github.com/python/cpython/commit/c4f3cb772bc2d93d91ee1750eed817262f3ed57d ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 20:28:48 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 08 Jun 2018 00:28:48 +0000 Subject: [issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x In-Reply-To: <1527078316.31.0.682650639539.issue33615@psf.upfronthosting.co.za> Message-ID: <1528417728.86.0.592728768989.issue33615@psf.upfronthosting.co.za> STINNER Victor added the comment: test__xxsubinterpreters prevents to get results from Gentoo Refleaks 3.x and Windows Refleaks 3.x, it also broke multiple CIs and it introduced random failures. For all these reasons, I skipped the test. See the general policy for CIs: https://mail.python.org/pipermail/python-dev/2018-May/153753.html Eric: if you need CIs to check if a change fix test__xxsubinterpreters, they are ways to trigger custom builds, but I don't recall how to do that :-D You should be able to do that on buildbots at least, the devguide explains how to do it, or ask maybe Zachary Ware. Until the crash is fixed, I would prefer to leave the test skipped. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 20:29:58 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 00:29:58 +0000 Subject: [issue33803] contextvars: hamt_alloc() must initialize h_root and h_count fields In-Reply-To: <1528415094.5.0.592728768989.issue33803@psf.upfronthosting.co.za> Message-ID: <1528417798.08.0.592728768989.issue33803@psf.upfronthosting.co.za> Yury Selivanov added the comment: New changeset 378c53cc3187dba57c7560ccc2557f516c8a7bc8 by Yury Selivanov in branch 'master': bpo-33803: Fix a crash in hamt.c (#7504) https://github.com/python/cpython/commit/378c53cc3187dba57c7560ccc2557f516c8a7bc8 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 20:30:12 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 00:30:12 +0000 Subject: [issue33803] contextvars: hamt_alloc() must initialize h_root and h_count fields In-Reply-To: <1528415094.5.0.592728768989.issue33803@psf.upfronthosting.co.za> Message-ID: <1528417812.62.0.592728768989.issue33803@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7133 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 20:31:29 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 00:31:29 +0000 Subject: [issue33786] @asynccontextmanager doesn't work well with async generators In-Reply-To: <1528305875.22.0.592728768989.issue33786@psf.upfronthosting.co.za> Message-ID: <1528417889.01.0.592728768989.issue33786@psf.upfronthosting.co.za> Yury Selivanov added the comment: New changeset 52698c7ad9eae9feb35839fde17a7d1da8036a9b by Yury Selivanov in branch 'master': bpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow() (GH-7467) https://github.com/python/cpython/commit/52698c7ad9eae9feb35839fde17a7d1da8036a9b ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 20:31:35 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 00:31:35 +0000 Subject: [issue33786] @asynccontextmanager doesn't work well with async generators In-Reply-To: <1528305875.22.0.592728768989.issue33786@psf.upfronthosting.co.za> Message-ID: <1528417895.45.0.592728768989.issue33786@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7134 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 20:36:26 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 00:36:26 +0000 Subject: [issue33786] @asynccontextmanager doesn't work well with async generators In-Reply-To: <1528305875.22.0.592728768989.issue33786@psf.upfronthosting.co.za> Message-ID: <1528418186.71.0.592728768989.issue33786@psf.upfronthosting.co.za> Change by Yury Selivanov : ---------- pull_requests: +7135 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 20:38:12 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 08 Jun 2018 00:38:12 +0000 Subject: [issue23835] configparser does not convert defaults to strings In-Reply-To: <1427862188.44.0.00358189102447.issue23835@psf.upfronthosting.co.za> Message-ID: <1528418292.76.0.592728768989.issue23835@psf.upfronthosting.co.za> STINNER Victor added the comment: It seems like this issue introduced a regression according to Barry: bpo-33802. ---------- nosy: +vstinner _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 20:38:25 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 00:38:25 +0000 Subject: [issue33609] Document that dicts preserve insertion order In-Reply-To: <1527023250.35.0.682650639539.issue33609@psf.upfronthosting.co.za> Message-ID: <1528418305.29.0.592728768989.issue33609@psf.upfronthosting.co.za> Yury Selivanov added the comment: New changeset 9b0d4d04a15a97a1055f1b729f14e9257f149fd3 by Yury Selivanov (Miss Islington (bot)) in branch '3.7': bpo-33609: small wording fixes to dict ordering docs (#7497) https://github.com/python/cpython/commit/9b0d4d04a15a97a1055f1b729f14e9257f149fd3 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 20:44:12 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 00:44:12 +0000 Subject: [issue33803] contextvars: hamt_alloc() must initialize h_root and h_count fields In-Reply-To: <1528415094.5.0.592728768989.issue33803@psf.upfronthosting.co.za> Message-ID: <1528418652.16.0.592728768989.issue33803@psf.upfronthosting.co.za> Yury Selivanov added the comment: New changeset a971a6fdb111bb62911ccf45aa9fe734e2e7a590 by Yury Selivanov (Miss Islington (bot)) in branch '3.7': bpo-33803: Fix a crash in hamt.c (GH-7504) (GH-7505) https://github.com/python/cpython/commit/a971a6fdb111bb62911ccf45aa9fe734e2e7a590 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 20:44:59 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 00:44:59 +0000 Subject: [issue33792] asyncio: how to set a "Proactor event loop" policy? Issue with asyncio.run() In-Reply-To: <1528365724.38.0.592728768989.issue33792@psf.upfronthosting.co.za> Message-ID: <1528418699.85.0.592728768989.issue33792@psf.upfronthosting.co.za> Yury Selivanov added the comment: New changeset 8f4042964d5b0ddf5cdf87862db962ba64e3f64a by Yury Selivanov in branch 'master': bpo-33792: Add selector and proactor windows policies (GH-7487) https://github.com/python/cpython/commit/8f4042964d5b0ddf5cdf87862db962ba64e3f64a ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 20:45:10 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 00:45:10 +0000 Subject: [issue33792] asyncio: how to set a "Proactor event loop" policy? Issue with asyncio.run() In-Reply-To: <1528365724.38.0.592728768989.issue33792@psf.upfronthosting.co.za> Message-ID: <1528418710.43.0.592728768989.issue33792@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7136 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 20:45:25 2018 From: report at bugs.python.org (Barry A. Warsaw) Date: Fri, 08 Jun 2018 00:45:25 +0000 Subject: [issue33802] Regression in logging configuration In-Reply-To: <1528412435.4.0.592728768989.issue33802@psf.upfronthosting.co.za> Message-ID: <1528418725.15.0.592728768989.issue33802@psf.upfronthosting.co.za> Change by Barry A. Warsaw : ---------- keywords: +patch pull_requests: +7137 stage: needs patch -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 20:51:37 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Fri, 08 Jun 2018 00:51:37 +0000 Subject: [issue33804] Document the default value of the size parameter of io.TextIOBase.read Message-ID: <1528419097.71.0.592728768989.issue33804@psf.upfronthosting.co.za> New submission from Andr?s Delfino : Documentation of io.TextIOBase.read makes it look like the size parameter is required. Attached PR fixes this. ---------- assignee: docs at python components: Documentation messages: 319003 nosy: adelfino, docs at python priority: normal severity: normal status: open title: Document the default value of the size parameter of io.TextIOBase.read type: enhancement versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 20:51:59 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Fri, 08 Jun 2018 00:51:59 +0000 Subject: [issue33804] Document the default value of the size parameter of io.TextIOBase.read In-Reply-To: <1528419097.71.0.592728768989.issue33804@psf.upfronthosting.co.za> Message-ID: <1528419119.43.0.592728768989.issue33804@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- keywords: +patch pull_requests: +7138 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 21:31:53 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 01:31:53 +0000 Subject: [issue33792] asyncio: how to set a "Proactor event loop" policy? Issue with asyncio.run() In-Reply-To: <1528365724.38.0.592728768989.issue33792@psf.upfronthosting.co.za> Message-ID: <1528421513.0.0.592728768989.issue33792@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 0738443a5b071a6bd2c18957a06cfe571a7314f2 by Miss Islington (bot) in branch '3.7': bpo-33792: Add selector and proactor windows policies (GH-7487) https://github.com/python/cpython/commit/0738443a5b071a6bd2c18957a06cfe571a7314f2 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 21:32:46 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 01:32:46 +0000 Subject: [issue33786] @asynccontextmanager doesn't work well with async generators In-Reply-To: <1528305875.22.0.592728768989.issue33786@psf.upfronthosting.co.za> Message-ID: <1528421566.47.0.592728768989.issue33786@psf.upfronthosting.co.za> Yury Selivanov added the comment: New changeset 8de73d5a6914cfe55c23b0ad829cd2ba8954bc2e by Yury Selivanov in branch '3.6': bpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow() (GH-7467) (GH-7507) https://github.com/python/cpython/commit/8de73d5a6914cfe55c23b0ad829cd2ba8954bc2e ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 21:35:32 2018 From: report at bugs.python.org (Michael Felt) Date: Fri, 08 Jun 2018 01:35:32 +0000 Subject: [issue32493] UUID Module - FreeBSD build failure In-Reply-To: <1515092270.67.0.467229070634.issue32493@psf.upfronthosting.co.za> Message-ID: <1528421732.44.0.592728768989.issue32493@psf.upfronthosting.co.za> Change by Michael Felt : ---------- pull_requests: +7139 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 22:13:46 2018 From: report at bugs.python.org (Dong-hee Na) Date: Fri, 08 Jun 2018 02:13:46 +0000 Subject: [issue33197] Confusing error message when constructing invalid inspect.Parameters In-Reply-To: <1522566872.11.0.467229070634.issue33197@psf.upfronthosting.co.za> Message-ID: <1528424026.13.0.592728768989.issue33197@psf.upfronthosting.co.za> Dong-hee Na added the comment: @yselivanov Please take a look PR 7206 :) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 22:14:47 2018 From: report at bugs.python.org (Dong-hee Na) Date: Fri, 08 Jun 2018 02:14:47 +0000 Subject: [issue33476] String index out of range in get_group(), email/_header_value_parser.py In-Reply-To: <1526172602.81.0.682650639539.issue33476@psf.upfronthosting.co.za> Message-ID: <1528424087.69.0.592728768989.issue33476@psf.upfronthosting.co.za> Dong-hee Na added the comment: @r.david.murray Please take a look PR 7484 :) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 22:36:09 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 02:36:09 +0000 Subject: [issue33786] @asynccontextmanager doesn't work well with async generators In-Reply-To: <1528305875.22.0.592728768989.issue33786@psf.upfronthosting.co.za> Message-ID: <1528425369.81.0.592728768989.issue33786@psf.upfronthosting.co.za> Change by Yury Selivanov : ---------- pull_requests: +7140 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 22:52:49 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 02:52:49 +0000 Subject: [issue33791] Update README.rst to mention third-party OpenSSL needed for macOS builds In-Reply-To: <1528359147.48.0.592728768989.issue33791@psf.upfronthosting.co.za> Message-ID: <1528426369.92.0.592728768989.issue33791@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7141 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 22:52:52 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 02:52:52 +0000 Subject: [issue33791] Update README.rst to mention third-party OpenSSL needed for macOS builds In-Reply-To: <1528359147.48.0.592728768989.issue33791@psf.upfronthosting.co.za> Message-ID: <1528426372.17.0.592728768989.issue33791@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 94b5fabe81fc1ee7a49a06db117ca2f2d1c80526 by Miss Islington (bot) in branch '3.6': bpo-33791: Update README for macOS users (GH-7471) https://github.com/python/cpython/commit/94b5fabe81fc1ee7a49a06db117ca2f2d1c80526 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 23:16:46 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 08 Jun 2018 03:16:46 +0000 Subject: [issue33791] Update README.rst to mention third-party OpenSSL needed for macOS builds In-Reply-To: <1528359147.48.0.592728768989.issue33791@psf.upfronthosting.co.za> Message-ID: <1528427806.22.0.592728768989.issue33791@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset ee994d7443a7e2809a5d49bd3679fc9c451a411b by Ned Deily (atg7000) in branch 'master': bpo-33791: Update README for macOS users (GH-7471) https://github.com/python/cpython/commit/ee994d7443a7e2809a5d49bd3679fc9c451a411b ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 23:16:56 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 03:16:56 +0000 Subject: [issue33791] Update README.rst to mention third-party OpenSSL needed for macOS builds In-Reply-To: <1528359147.48.0.592728768989.issue33791@psf.upfronthosting.co.za> Message-ID: <1528427816.17.0.592728768989.issue33791@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7142 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 23:29:53 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 08 Jun 2018 03:29:53 +0000 Subject: [issue33791] Update README.rst to mention third-party OpenSSL needed for macOS builds In-Reply-To: <1528359147.48.0.592728768989.issue33791@psf.upfronthosting.co.za> Message-ID: <1528428593.25.0.592728768989.issue33791@psf.upfronthosting.co.za> Ned Deily added the comment: Due to some bot issues, the 3.7 commit message went AWOL: the changeset id is ee994d7443a7e2809a5d49bd3679fc9c451a411b. Thanks for the PR! ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 23:31:43 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 08 Jun 2018 03:31:43 +0000 Subject: [issue33791] Update README.rst to mention third-party OpenSSL needed for macOS builds In-Reply-To: <1528359147.48.0.592728768989.issue33791@psf.upfronthosting.co.za> Message-ID: <1528428703.69.0.592728768989.issue33791@psf.upfronthosting.co.za> Ned Deily added the comment: (Er, the 3.7 commit is 43202e05c24907576ffd2b10762b18225be7f278) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 23:39:17 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 08 Jun 2018 03:39:17 +0000 Subject: [issue33802] Regression in logging configuration In-Reply-To: <1528412435.4.0.592728768989.issue33802@psf.upfronthosting.co.za> Message-ID: <1528429157.59.0.592728768989.issue33802@psf.upfronthosting.co.za> Change by Ned Deily : ---------- nosy: +lukasz.langa _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 23:42:23 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 03:42:23 +0000 Subject: [issue33786] @asynccontextmanager doesn't work well with async generators In-Reply-To: <1528305875.22.0.592728768989.issue33786@psf.upfronthosting.co.za> Message-ID: <1528429343.65.0.592728768989.issue33786@psf.upfronthosting.co.za> Yury Selivanov added the comment: New changeset b0bb9a81f60ed248a44b4c8008c0549c3e9e741d by Yury Selivanov in branch '3.6': bpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow() (GH-7467) (#7514) https://github.com/python/cpython/commit/b0bb9a81f60ed248a44b4c8008c0549c3e9e741d ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 23:42:50 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 03:42:50 +0000 Subject: [issue33786] @asynccontextmanager doesn't work well with async generators In-Reply-To: <1528305875.22.0.592728768989.issue33786@psf.upfronthosting.co.za> Message-ID: <1528429370.37.0.592728768989.issue33786@psf.upfronthosting.co.za> Change by Yury Selivanov : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 23:43:15 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 03:43:15 +0000 Subject: [issue33792] asyncio: how to set a "Proactor event loop" policy? Issue with asyncio.run() In-Reply-To: <1528365724.38.0.592728768989.issue33792@psf.upfronthosting.co.za> Message-ID: <1528429395.1.0.592728768989.issue33792@psf.upfronthosting.co.za> Change by Yury Selivanov : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 23:44:03 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 03:44:03 +0000 Subject: [issue33803] contextvars: hamt_alloc() must initialize h_root and h_count fields In-Reply-To: <1528415094.5.0.592728768989.issue33803@psf.upfronthosting.co.za> Message-ID: <1528429443.81.0.592728768989.issue33803@psf.upfronthosting.co.za> Yury Selivanov added the comment: > + if (core_config->dev_mode) { > + _PyRuntime.gc.generations[0].threshold = 5; > + } I'd love to have a flag to turn this on, or maybe we should enable it for -X dev. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 23:44:16 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 03:44:16 +0000 Subject: [issue33803] contextvars: hamt_alloc() must initialize h_root and h_count fields In-Reply-To: <1528415094.5.0.592728768989.issue33803@psf.upfronthosting.co.za> Message-ID: <1528429456.21.0.592728768989.issue33803@psf.upfronthosting.co.za> Change by Yury Selivanov : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 23:46:34 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 03:46:34 +0000 Subject: [issue33197] Confusing error message when constructing invalid inspect.Parameters In-Reply-To: <1522566872.11.0.467229070634.issue33197@psf.upfronthosting.co.za> Message-ID: <1528429594.09.0.592728768989.issue33197@psf.upfronthosting.co.za> Yury Selivanov added the comment: New changeset 4aa3006619392438b0775a2f488bbe9e7a22c468 by Yury Selivanov (Dong-hee Na) in branch 'master': bpo-33197: Add description property for _ParameterKind. (GH-7206) https://github.com/python/cpython/commit/4aa3006619392438b0775a2f488bbe9e7a22c468 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 7 23:46:53 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 03:46:53 +0000 Subject: [issue33197] Confusing error message when constructing invalid inspect.Parameters In-Reply-To: <1522566872.11.0.467229070634.issue33197@psf.upfronthosting.co.za> Message-ID: <1528429613.95.0.592728768989.issue33197@psf.upfronthosting.co.za> Yury Selivanov added the comment: Thanks! ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 00:05:57 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 08 Jun 2018 04:05:57 +0000 Subject: [issue33794] Python.framework build is missing 'Current' symlink In-Reply-To: <1528373916.56.0.592728768989.issue33794@psf.upfronthosting.co.za> Message-ID: <1528430757.77.0.592728768989.issue33794@psf.upfronthosting.co.za> Ned Deily added the comment: This is by design for Python 3 installs; Current *is* created for Python 2 installs for historical reasons. See the discussion in Issue18117 why trying to use -framework Python is not a good idea unfortunately. ---------- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Missing symlink:Current after Mac OS X 3.3.2 package installation _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 00:37:53 2018 From: report at bugs.python.org (Siddhartha Bose) Date: Fri, 08 Jun 2018 04:37:53 +0000 Subject: [issue33779] Error while installing python 3.6.5 on windows 10 In-Reply-To: <1528277897.55.0.592728768989.issue33779@psf.upfronthosting.co.za> Message-ID: <1528432673.2.0.592728768989.issue33779@psf.upfronthosting.co.za> Siddhartha Bose added the comment: @steve, deleting it did work and it was out of the system but installation failed again, see the logs attached ---------- Added file: https://bugs.python.org/file47636/Python 3.6.5 (64-bit)_20180608095000.log _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 01:18:01 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Fri, 08 Jun 2018 05:18:01 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528435081.9.0.592728768989.issue33738@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Excluding names from limited API can break existing code that use them with defined Py_LIMITED_API. I wondering if corresponding functions should be added for PySequence_ITEM, PyObject_IS_GC, PyType_SUPPORTS_WEAKREFS, PyObject_GET_WEAKREFS_LISTPTR. Perhaps this should be discussed on Python-Dev. Since PyList_GET_SIZE and PyList_GET_ITEM are defined only for non-limited API, it is better to wrap definitions of macros that use them (like PySequence_Fast_GET_SIZE and PySequence_Fast_GET_ITEM) in "#ifndef Py_LIMITED_API" ... "#endif". ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 01:21:23 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 08 Jun 2018 05:21:23 +0000 Subject: [issue33768] IDLE: click on context line should jump to line, at top of window In-Reply-To: <1528091671.87.0.592728768989.issue33768@psf.upfronthosting.co.za> Message-ID: <1528435283.14.0.592728768989.issue33768@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset 041272b657867f5bec925b19aabf23944125d49b by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-33768: IDLE: Clicking on code context line moves it to top of editor (GH-7411) https://github.com/python/cpython/commit/041272b657867f5bec925b19aabf23944125d49b ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 01:22:33 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 05:22:33 +0000 Subject: [issue33768] IDLE: click on context line should jump to line, at top of window In-Reply-To: <1528091671.87.0.592728768989.issue33768@psf.upfronthosting.co.za> Message-ID: <1528435353.32.0.592728768989.issue33768@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7143 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 01:23:25 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 05:23:25 +0000 Subject: [issue33768] IDLE: click on context line should jump to line, at top of window In-Reply-To: <1528091671.87.0.592728768989.issue33768@psf.upfronthosting.co.za> Message-ID: <1528435405.64.0.592728768989.issue33768@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7144 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 01:45:32 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Fri, 08 Jun 2018 05:45:32 +0000 Subject: [issue33745] 3.7.0b5 changes the line number of empty functions with docstrings In-Reply-To: <1528024309.59.0.592728768989.issue33745@psf.upfronthosting.co.za> Message-ID: <1528436732.93.0.592728768989.issue33745@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: This change looks not intentional, but not incorrect. I'm not sure that it is worth to document it. Any behavior (in 3.6 and in 3.7) is CPython implementation detail. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 01:50:39 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 05:50:39 +0000 Subject: [issue33768] IDLE: click on context line should jump to line, at top of window In-Reply-To: <1528091671.87.0.592728768989.issue33768@psf.upfronthosting.co.za> Message-ID: <1528437039.7.0.592728768989.issue33768@psf.upfronthosting.co.za> miss-islington added the comment: New changeset a4868473e7a0487bd882531490ff8856b952f9b3 by Miss Islington (bot) in branch '3.7': bpo-33768: IDLE: Clicking on code context line moves it to top of editor (GH-7411) https://github.com/python/cpython/commit/a4868473e7a0487bd882531490ff8856b952f9b3 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 01:51:01 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 05:51:01 +0000 Subject: [issue33768] IDLE: click on context line should jump to line, at top of window In-Reply-To: <1528091671.87.0.592728768989.issue33768@psf.upfronthosting.co.za> Message-ID: <1528437061.26.0.592728768989.issue33768@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 1038669769208fc05c9a565fbf575f5fa8e9ef61 by Miss Islington (bot) in branch '3.6': bpo-33768: IDLE: Clicking on code context line moves it to top of editor (GH-7411) https://github.com/python/cpython/commit/1038669769208fc05c9a565fbf575f5fa8e9ef61 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 01:51:45 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 08 Jun 2018 05:51:45 +0000 Subject: [issue33768] IDLE: click on context line should jump to line, at top of window In-Reply-To: <1528091671.87.0.592728768989.issue33768@psf.upfronthosting.co.za> Message-ID: <1528437105.82.0.592728768989.issue33768@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 02:10:45 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 08 Jun 2018 06:10:45 +0000 Subject: [issue30928] Copy modified blurbs to idlelib/NEWS.txt for 3.7.0 In-Reply-To: <1500004288.4.0.547702885246.issue30928@psf.upfronthosting.co.za> Message-ID: <1528438245.9.0.592728768989.issue30928@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- pull_requests: +7145 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 02:32:19 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 06:32:19 +0000 Subject: [issue30928] Copy modified blurbs to idlelib/NEWS.txt for 3.7.0 In-Reply-To: <1500004288.4.0.547702885246.issue30928@psf.upfronthosting.co.za> Message-ID: <1528439539.09.0.592728768989.issue30928@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7146 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 02:32:32 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 06:32:32 +0000 Subject: [issue30928] Copy modified blurbs to idlelib/NEWS.txt for 3.7.0 In-Reply-To: <1500004288.4.0.547702885246.issue30928@psf.upfronthosting.co.za> Message-ID: <1528439552.37.0.592728768989.issue30928@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7147 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 02:38:09 2018 From: report at bugs.python.org (INADA Naoki) Date: Fri, 08 Jun 2018 06:38:09 +0000 Subject: [issue33799] Remove non-ordered dicts comments from FAQ In-Reply-To: <1528399680.16.0.592728768989.issue33799@psf.upfronthosting.co.za> Message-ID: <1528439889.89.0.592728768989.issue33799@psf.upfronthosting.co.za> INADA Naoki added the comment: New changeset 396ecb9c3e7fb150eace7bfc733d5b9d0263d697 by INADA Naoki (Andr?s Delfino) in branch 'master': bpo-33799: Remove non-ordered dicts comments from FAQ https://github.com/python/cpython/commit/396ecb9c3e7fb150eace7bfc733d5b9d0263d697 ---------- nosy: +inada.naoki _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 02:39:16 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 06:39:16 +0000 Subject: [issue33799] Remove non-ordered dicts comments from FAQ In-Reply-To: <1528399680.16.0.592728768989.issue33799@psf.upfronthosting.co.za> Message-ID: <1528439956.2.0.592728768989.issue33799@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7148 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 02:45:12 2018 From: report at bugs.python.org (Michael Felt) Date: Fri, 08 Jun 2018 06:45:12 +0000 Subject: [issue32493] UUID Module - FreeBSD build failure In-Reply-To: <1515092270.67.0.467229070634.issue32493@psf.upfronthosting.co.za> Message-ID: <1528440312.96.0.592728768989.issue32493@psf.upfronthosting.co.za> Michael Felt added the comment: @vstinner - I know this is "closed", however, I submit a minor PR to fix an error in PR7104. The logic of configure.ac always defines HAVE_UUID_ENC_BE. I cannot proceed with PR5183 (aka issue28009) until this is repaired. Thx! ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 02:48:20 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 08 Jun 2018 06:48:20 +0000 Subject: [issue32493] UUID Module - FreeBSD build failure In-Reply-To: <1515092270.67.0.467229070634.issue32493@psf.upfronthosting.co.za> Message-ID: <1528440500.28.0.592728768989.issue32493@psf.upfronthosting.co.za> STINNER Victor added the comment: > @vstinner - I know this is "closed", however, I submit a minor PR to fix an error in PR7104. The logic of configure.ac always defines HAVE_UUID_ENC_BE. I cannot proceed with PR5183 (aka issue28009) until this is repaired. The title of this issue makes it very specific to FreeBSD, so it would be better to create a new one for AIX. What your write for the commit description is not appropriate for a commit, but it's fine for the description of a bug. Please open a new issue to track uuid changes for AIX. I know that you have a second one for Python <= 3.6. ---------- resolution: fixed -> status: closed -> open _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 02:51:36 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 08 Jun 2018 06:51:36 +0000 Subject: [issue33803] contextvars: hamt_alloc() must initialize h_root and h_count fields In-Reply-To: <1528415094.5.0.592728768989.issue33803@psf.upfronthosting.co.za> Message-ID: <1528440696.51.0.592728768989.issue33803@psf.upfronthosting.co.za> STINNER Victor added the comment: > I'd love to have a flag to turn this on, or maybe we should enable it for -X dev. Well, there is already a public API to do it manually: gc.set_threshold(5). I'm not sure about a threshold of 5 for -X dev: that's very very low and so kill performances. -X dev can be slower, not but 10x slower for example. I didn't measure performance. Such bug is rare, so I'm not sure about putting gc.set_threshold(5) in -X dev. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 02:54:58 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 08 Jun 2018 06:54:58 +0000 Subject: [issue33531] test_asyncio: test_subprocess test_stdin_broken_pipe() failure on Travis CI In-Reply-To: <1526452192.92.0.682650639539.issue33531@psf.upfronthosting.co.za> Message-ID: <1528440898.72.0.592728768989.issue33531@psf.upfronthosting.co.za> STINNER Victor added the comment: Yury made 3 changes in the master branch for this change: * Workaround: await asyncio.sleep(0.5, loop=self.loop) * Use stdout to synchrone parent and child process * Revert the second change (stdout sync) commit bb9474f1fb2fc7c7ed9f826b78262d6a12b5f9e8 Author: Yury Selivanov Date: Tue May 29 22:00:31 2018 -0400 Revert "A better fix for asyncio test_stdin_broken_pipe (GH-7221)" (GH-7235) This reverts commit ad74d50517c069359578014bb32e660828d68332. Turns out it's not a good fix -- Travis has just crashed on this test. commit ad74d50517c069359578014bb32e660828d68332 Author: Yury Selivanov Date: Tue May 29 20:57:50 2018 -0400 A better fix for asyncio test_stdin_broken_pipe (#7221) commit 4fadf0c639476fa50a40ec6f119f98c01e56ad95 Author: Yury Selivanov Date: Tue May 29 13:40:47 2018 -0400 Attempt to fix test_stdin_broken_pipe on Travis (#7210) ---------- versions: +Python 3.6, Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 02:57:39 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 08 Jun 2018 06:57:39 +0000 Subject: [issue33531] test_asyncio: test_subprocess test_stdin_broken_pipe() failure on Travis CI In-Reply-To: <1526452192.92.0.682650639539.issue33531@psf.upfronthosting.co.za> Message-ID: <1528441059.59.0.592728768989.issue33531@psf.upfronthosting.co.za> STINNER Victor added the comment: Python 3.6 got the first change: commit 6aacc160a880de3b82c51193a4594b87fb7ace5f Author: Yury Selivanov Date: Tue May 29 14:57:38 2018 -0400 Fix ci for 3.6 / asyncio / test_stdin_broken_pipe (#7212) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 02:59:54 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 08 Jun 2018 06:59:54 +0000 Subject: [issue33531] test_asyncio: test_subprocess test_stdin_broken_pipe() failure on Travis CI In-Reply-To: <1526452192.92.0.682650639539.issue33531@psf.upfronthosting.co.za> Message-ID: <1528441194.66.0.592728768989.issue33531@psf.upfronthosting.co.za> STINNER Victor added the comment: As expected, the workaround adding a delay of 500 ms is not perfect, the test still fails on the very slow x86 Windows7 3.6 buildbot when tests are run in parallel: http://buildbot.python.org/all/#/builders/90/builds/383 ====================================================================== FAIL: test_stdin_broken_pipe (test.test_asyncio.test_subprocess.SubprocessProactorTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\test\test_asyncio\test_subprocess.py", line 221, in test_stdin_broken_pipe self.loop.run_until_complete, coro) AssertionError: (, ) not raised by run_until_complete But hopefully, test_asyncio passed when re-run sequentially. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 03:24:44 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 08 Jun 2018 07:24:44 +0000 Subject: [issue33718] Enhance regrtest: meta-ticket for multiple changes In-Reply-To: <1527775539.21.0.682650639539.issue33718@psf.upfronthosting.co.za> Message-ID: <1528442684.11.0.592728768989.issue33718@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7149 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 03:49:35 2018 From: report at bugs.python.org (Mark Dickinson) Date: Fri, 08 Jun 2018 07:49:35 +0000 Subject: [issue33784] hash collision in instances of ipaddress.ip_network In-Reply-To: <1528298968.12.0.592728768989.issue33784@psf.upfronthosting.co.za> Message-ID: <1528444175.2.0.592728768989.issue33784@psf.upfronthosting.co.za> Mark Dickinson added the comment: Thanks, Francois. Indeed, comparing hashes isn't a good way to implement equality. :-) Closing here. ---------- stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 03:54:01 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 08 Jun 2018 07:54:01 +0000 Subject: [issue33718] Enhance regrtest: meta-ticket for multiple changes In-Reply-To: <1527775539.21.0.682650639539.issue33718@psf.upfronthosting.co.za> Message-ID: <1528444441.31.0.592728768989.issue33718@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset c45fc7673e23f911639d10d3771ffef7be870c7a by Victor Stinner in branch 'master': bpo-33718: regrtest: use "xxx then yyy" result if re-run (GH-7521) https://github.com/python/cpython/commit/c45fc7673e23f911639d10d3771ffef7be870c7a ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 03:59:33 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 08 Jun 2018 07:59:33 +0000 Subject: [issue33803] contextvars: hamt_alloc() must initialize h_root and h_count fields In-Reply-To: <1528415094.5.0.592728768989.issue33803@psf.upfronthosting.co.za> Message-ID: <1528444773.09.0.592728768989.issue33803@psf.upfronthosting.co.za> STINNER Victor added the comment: FYI the bug was also seen 8 hours ago on a different asyncio PR: https://github.com/python/cpython/pull/423#issuecomment-395681351 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 04:01:01 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 08 Jun 2018 08:01:01 +0000 Subject: [issue33803] contextvars: hamt_alloc() must initialize h_root and h_count fields In-Reply-To: <1528415094.5.0.592728768989.issue33803@psf.upfronthosting.co.za> Message-ID: <1528444861.15.0.592728768989.issue33803@psf.upfronthosting.co.za> STINNER Victor added the comment: > FYI the bug was also seen 8 hours ago on a different asyncio PR: Oops, my message is misleading: the crash is not a regression. I just wanted to notice that a different PR also triggered the crash before the crash has been fixed. I'm just surprised that the bug decided to wake up 4 months after contextvars has been merged. Why yesterday and not previously? ---------- priority: release blocker -> _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 04:09:05 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 08 Jun 2018 08:09:05 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528445345.51.0.592728768989.issue33694@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7150 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 04:32:13 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 08 Jun 2018 08:32:13 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528446733.53.0.592728768989.issue33694@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset ff6c07729211fb98431a2793e074d07a21e0650a by Victor Stinner in branch 'master': bpo-33694: Fix typo in helper function name (GH-7522) https://github.com/python/cpython/commit/ff6c07729211fb98431a2793e074d07a21e0650a ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 04:33:18 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 08:33:18 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528446798.95.0.592728768989.issue33694@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7151 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 04:48:55 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 08:48:55 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528447735.47.0.592728768989.issue33694@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 17beebcc8b22a66b7973cbe5b1577567ab391c0a by Miss Islington (bot) in branch '3.7': bpo-33694: Fix typo in helper function name (GH-7522) https://github.com/python/cpython/commit/17beebcc8b22a66b7973cbe5b1577567ab391c0a ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 04:51:39 2018 From: report at bugs.python.org (Eric V. Smith) Date: Fri, 08 Jun 2018 08:51:39 +0000 Subject: [issue33805] dataclasses: replace() give poor error message if using InitVar Message-ID: <1528447899.5.0.592728768989.issue33805@psf.upfronthosting.co.za> New submission from Eric V. Smith : If a dataclass contains an InitVar without a default value, that InitVar must be specified in the call to replace(). This is because replace() works by first creating a new object, and InitVars without defaults, by definition, must be specified when creating the object. There is no other source for the value of the InitVar to use. However, the exception you get is confusing: >>> from dataclasses import * >>> @dataclass ... class C: ... i: int ... j: InitVar[int] ... >>> c = C(1, 2) >>> replace(c, i=3) Traceback (most recent call last): File "", line 1, in File "C:\home\eric\local\python\cpython\lib\dataclasses.py", line 1176, in replace changes[f.name] = getattr(obj, f.name) AttributeError: 'C' object has no attribute 'j' >>> This message really should say something like "InitVar 'j' must be specified". ---------- assignee: eric.smith components: Library (Lib) messages: 319036 nosy: eric.smith priority: normal severity: normal status: open title: dataclasses: replace() give poor error message if using InitVar type: behavior versions: Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 05:19:48 2018 From: report at bugs.python.org (=?utf-8?q?=C5=81ukasz_Langa?=) Date: Fri, 08 Jun 2018 09:19:48 +0000 Subject: [issue33802] Regression in logging configuration In-Reply-To: <1528412435.4.0.592728768989.issue33802@psf.upfronthosting.co.za> Message-ID: <1528449588.17.0.592728768989.issue33802@psf.upfronthosting.co.za> Change by ?ukasz Langa : ---------- pull_requests: +7152 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 05:19:48 2018 From: report at bugs.python.org (=?utf-8?q?=C5=81ukasz_Langa?=) Date: Fri, 08 Jun 2018 09:19:48 +0000 Subject: [issue23835] configparser does not convert defaults to strings In-Reply-To: <1427862188.44.0.00358189102447.issue23835@psf.upfronthosting.co.za> Message-ID: <1528449588.31.0.786479179495.issue23835@psf.upfronthosting.co.za> Change by ?ukasz Langa : ---------- keywords: +patch pull_requests: +7153 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 05:22:13 2018 From: report at bugs.python.org (=?utf-8?q?=C5=81ukasz_Langa?=) Date: Fri, 08 Jun 2018 09:22:13 +0000 Subject: [issue33802] Regression in logging configuration In-Reply-To: <1528412435.4.0.592728768989.issue33802@psf.upfronthosting.co.za> Message-ID: <1528449733.17.0.592728768989.issue33802@psf.upfronthosting.co.za> ?ukasz Langa added the comment: I'm very sorry for the trouble! And impressed at Barry's quick diagnosis. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 06:02:12 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 10:02:12 +0000 Subject: [issue31215] Add version changed notes for OpenSSL 1.1.0 compatibility In-Reply-To: <1502860659.7.0.930691554308.issue31215@psf.upfronthosting.co.za> Message-ID: <1528452132.52.0.592728768989.issue31215@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7154 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 06:03:09 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 10:03:09 +0000 Subject: [issue31215] Add version changed notes for OpenSSL 1.1.0 compatibility In-Reply-To: <1502860659.7.0.930691554308.issue31215@psf.upfronthosting.co.za> Message-ID: <1528452189.18.0.592728768989.issue31215@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7155 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 06:04:35 2018 From: report at bugs.python.org (Vinay Sajip) Date: Fri, 08 Jun 2018 10:04:35 +0000 Subject: [issue33802] Regression in logging configuration In-Reply-To: <1528412435.4.0.592728768989.issue33802@psf.upfronthosting.co.za> Message-ID: <1528452275.33.0.592728768989.issue33802@psf.upfronthosting.co.za> Change by Vinay Sajip : ---------- nosy: +vinay.sajip _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 06:11:54 2018 From: report at bugs.python.org (Vinay Sajip) Date: Fri, 08 Jun 2018 10:11:54 +0000 Subject: [issue33423] [logging] Improve consistency of logger mechanism. In-Reply-To: <1525402053.16.0.682650639539.issue33423@psf.upfronthosting.co.za> Message-ID: <1528452714.03.0.592728768989.issue33423@psf.upfronthosting.co.za> Vinay Sajip added the comment: You can't make the proposed change (removing call to basicConfig() from logging.debug() etc.) without breaking backwards compatibility. The inconsistency is just a consequence of how you choose to mix and match calls to the module-level convenience functions and calls to individual loggers. I've marked the resolution for this as "not a bug" rather than "wontfix" even though the issue is of type "enhancement". That's because I don't think the proposed change will be an actual enhancement over the status quo. ---------- nosy: +vinay.sajip resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 06:12:52 2018 From: report at bugs.python.org (Nick Coghlan) Date: Fri, 08 Jun 2018 10:12:52 +0000 Subject: [issue24089] argparse crashes with AssertionError In-Reply-To: <1430455558.24.0.369924072386.issue24089@psf.upfronthosting.co.za> Message-ID: <1528452772.09.0.592728768989.issue24089@psf.upfronthosting.co.za> Nick Coghlan added the comment: New changeset 66f02aa32f1e4adb9f24cf186f8c495399d5ce9b by Nick Coghlan (wim glenn) in branch 'master': bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) https://github.com/python/cpython/commit/66f02aa32f1e4adb9f24cf186f8c495399d5ce9b ---------- nosy: +ncoghlan _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 06:12:52 2018 From: report at bugs.python.org (Nick Coghlan) Date: Fri, 08 Jun 2018 10:12:52 +0000 Subject: [issue14046] argparse: assertion failure if optional argument has square/round brackets in metavar In-Reply-To: <1329542509.5.0.84021889574.issue14046@psf.upfronthosting.co.za> Message-ID: <1528452772.4.0.584625200856.issue14046@psf.upfronthosting.co.za> Nick Coghlan added the comment: New changeset 66f02aa32f1e4adb9f24cf186f8c495399d5ce9b by Nick Coghlan (wim glenn) in branch 'master': bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) https://github.com/python/cpython/commit/66f02aa32f1e4adb9f24cf186f8c495399d5ce9b ---------- nosy: +ncoghlan _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 06:12:52 2018 From: report at bugs.python.org (Nick Coghlan) Date: Fri, 08 Jun 2018 10:12:52 +0000 Subject: [issue11874] argparse assertion failure with brackets in metavars In-Reply-To: <1303201252.58.0.236363581255.issue11874@psf.upfronthosting.co.za> Message-ID: <1528452772.6.0.786479179495.issue11874@psf.upfronthosting.co.za> Nick Coghlan added the comment: New changeset 66f02aa32f1e4adb9f24cf186f8c495399d5ce9b by Nick Coghlan (wim glenn) in branch 'master': bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) https://github.com/python/cpython/commit/66f02aa32f1e4adb9f24cf186f8c495399d5ce9b ---------- nosy: +ncoghlan _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 06:12:52 2018 From: report at bugs.python.org (Nick Coghlan) Date: Fri, 08 Jun 2018 10:12:52 +0000 Subject: [issue25058] Right square bracket argparse metavar In-Reply-To: <1441902603.18.0.552996969637.issue25058@psf.upfronthosting.co.za> Message-ID: <1528452772.96.0.747649996384.issue25058@psf.upfronthosting.co.za> Nick Coghlan added the comment: New changeset 66f02aa32f1e4adb9f24cf186f8c495399d5ce9b by Nick Coghlan (wim glenn) in branch 'master': bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) https://github.com/python/cpython/commit/66f02aa32f1e4adb9f24cf186f8c495399d5ce9b ---------- nosy: +ncoghlan _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 06:14:00 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 10:14:00 +0000 Subject: [issue11874] argparse assertion failure with brackets in metavars In-Reply-To: <1303201252.58.0.236363581255.issue11874@psf.upfronthosting.co.za> Message-ID: <1528452840.25.0.592728768989.issue11874@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7156 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 06:14:00 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 10:14:00 +0000 Subject: [issue24089] argparse crashes with AssertionError In-Reply-To: <1430455558.24.0.369924072386.issue24089@psf.upfronthosting.co.za> Message-ID: <1528452840.57.0.786479179495.issue24089@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7157 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 06:14:00 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 10:14:00 +0000 Subject: [issue14046] argparse: assertion failure if optional argument has square/round brackets in metavar In-Reply-To: <1329542509.5.0.84021889574.issue14046@psf.upfronthosting.co.za> Message-ID: <1528452840.67.0.632584041548.issue14046@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7158 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 06:14:00 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 10:14:00 +0000 Subject: [issue25058] Right square bracket argparse metavar In-Reply-To: <1441902603.18.0.552996969637.issue25058@psf.upfronthosting.co.za> Message-ID: <1528452840.74.0.719492154407.issue25058@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7159 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 06:14:59 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 10:14:59 +0000 Subject: [issue11874] argparse assertion failure with brackets in metavars In-Reply-To: <1303201252.58.0.236363581255.issue11874@psf.upfronthosting.co.za> Message-ID: <1528452899.29.0.592728768989.issue11874@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7160 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 06:14:59 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 10:14:59 +0000 Subject: [issue24089] argparse crashes with AssertionError In-Reply-To: <1430455558.24.0.369924072386.issue24089@psf.upfronthosting.co.za> Message-ID: <1528452899.53.0.786479179495.issue24089@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7161 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 06:14:59 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 10:14:59 +0000 Subject: [issue14046] argparse: assertion failure if optional argument has square/round brackets in metavar In-Reply-To: <1329542509.5.0.84021889574.issue14046@psf.upfronthosting.co.za> Message-ID: <1528452899.61.0.632584041548.issue14046@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7162 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 06:14:59 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 10:14:59 +0000 Subject: [issue25058] Right square bracket argparse metavar In-Reply-To: <1441902603.18.0.552996969637.issue25058@psf.upfronthosting.co.za> Message-ID: <1528452899.71.0.719492154407.issue25058@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7163 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 06:17:20 2018 From: report at bugs.python.org (Vinay Sajip) Date: Fri, 08 Jun 2018 10:17:20 +0000 Subject: [issue16778] Logger.findCaller needs to be smarter In-Reply-To: <1356452428.01.0.563947098769.issue16778@psf.upfronthosting.co.za> Message-ID: <1528453040.31.0.592728768989.issue16778@psf.upfronthosting.co.za> Vinay Sajip added the comment: This should be addressed by the fix for bpo-33165 - addition of a stacklevel parameter to the logging APIs. ---------- resolution: -> fixed stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 06:22:41 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 10:22:41 +0000 Subject: [issue31215] Add version changed notes for OpenSSL 1.1.0 compatibility In-Reply-To: <1502860659.7.0.930691554308.issue31215@psf.upfronthosting.co.za> Message-ID: <1528453361.32.0.592728768989.issue31215@psf.upfronthosting.co.za> miss-islington added the comment: New changeset a0accc0f8e747145a3ee36b91338777bc94b3348 by Miss Islington (bot) in branch '3.6': bpo-31215: Add version changed notes for OpenSSL 1.1.0 compatibility (GH-7346) https://github.com/python/cpython/commit/a0accc0f8e747145a3ee36b91338777bc94b3348 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 06:22:42 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 10:22:42 +0000 Subject: [issue31215] Add version changed notes for OpenSSL 1.1.0 compatibility In-Reply-To: <1502860659.7.0.930691554308.issue31215@psf.upfronthosting.co.za> Message-ID: <1528453362.95.0.592728768989.issue31215@psf.upfronthosting.co.za> miss-islington added the comment: New changeset d16d72f555447fbedacdc01bb14f380afca705ae by Miss Islington (bot) in branch '3.7': bpo-31215: Add version changed notes for OpenSSL 1.1.0 compatibility (GH-7346) https://github.com/python/cpython/commit/d16d72f555447fbedacdc01bb14f380afca705ae ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 07:02:52 2018 From: report at bugs.python.org (=?utf-8?q?=C5=81ukasz_Langa?=) Date: Fri, 08 Jun 2018 11:02:52 +0000 Subject: [issue33802] Regression in logging configuration In-Reply-To: <1528412435.4.0.592728768989.issue33802@psf.upfronthosting.co.za> Message-ID: <1528455772.29.0.592728768989.issue33802@psf.upfronthosting.co.za> ?ukasz Langa added the comment: New changeset 214f18e49feb6a9d6c05aa09a4bb304905e81334 by ?ukasz Langa in branch 'master': bpo-33802: Do not interpolate in ConfigParser while reading defaults (GH-7524) https://github.com/python/cpython/commit/214f18e49feb6a9d6c05aa09a4bb304905e81334 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 07:02:52 2018 From: report at bugs.python.org (=?utf-8?q?=C5=81ukasz_Langa?=) Date: Fri, 08 Jun 2018 11:02:52 +0000 Subject: [issue23835] configparser does not convert defaults to strings In-Reply-To: <1427862188.44.0.00358189102447.issue23835@psf.upfronthosting.co.za> Message-ID: <1528455772.41.0.584625200856.issue23835@psf.upfronthosting.co.za> ?ukasz Langa added the comment: New changeset 214f18e49feb6a9d6c05aa09a4bb304905e81334 by ?ukasz Langa in branch 'master': bpo-33802: Do not interpolate in ConfigParser while reading defaults (GH-7524) https://github.com/python/cpython/commit/214f18e49feb6a9d6c05aa09a4bb304905e81334 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 07:04:00 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 11:04:00 +0000 Subject: [issue33802] Regression in logging configuration In-Reply-To: <1528412435.4.0.592728768989.issue33802@psf.upfronthosting.co.za> Message-ID: <1528455840.43.0.592728768989.issue33802@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7164 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 07:04:00 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 11:04:00 +0000 Subject: [issue23835] configparser does not convert defaults to strings In-Reply-To: <1427862188.44.0.00358189102447.issue23835@psf.upfronthosting.co.za> Message-ID: <1528455840.51.0.786479179495.issue23835@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7165 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 07:06:01 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 11:06:01 +0000 Subject: [issue24089] argparse crashes with AssertionError In-Reply-To: <1430455558.24.0.369924072386.issue24089@psf.upfronthosting.co.za> Message-ID: <1528455961.17.0.592728768989.issue24089@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 376c272d68cca0975ff0be3d12abf5f67da342d7 by Miss Islington (bot) in branch '3.6': bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) https://github.com/python/cpython/commit/376c272d68cca0975ff0be3d12abf5f67da342d7 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 07:06:01 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 11:06:01 +0000 Subject: [issue14046] argparse: assertion failure if optional argument has square/round brackets in metavar In-Reply-To: <1329542509.5.0.84021889574.issue14046@psf.upfronthosting.co.za> Message-ID: <1528455961.32.0.584625200856.issue14046@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 376c272d68cca0975ff0be3d12abf5f67da342d7 by Miss Islington (bot) in branch '3.6': bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) https://github.com/python/cpython/commit/376c272d68cca0975ff0be3d12abf5f67da342d7 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 07:06:01 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 11:06:01 +0000 Subject: [issue11874] argparse assertion failure with brackets in metavars In-Reply-To: <1303201252.58.0.236363581255.issue11874@psf.upfronthosting.co.za> Message-ID: <1528455961.45.0.786479179495.issue11874@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 376c272d68cca0975ff0be3d12abf5f67da342d7 by Miss Islington (bot) in branch '3.6': bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) https://github.com/python/cpython/commit/376c272d68cca0975ff0be3d12abf5f67da342d7 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 07:06:01 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 11:06:01 +0000 Subject: [issue25058] Right square bracket argparse metavar In-Reply-To: <1441902603.18.0.552996969637.issue25058@psf.upfronthosting.co.za> Message-ID: <1528455961.71.0.747649996384.issue25058@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 376c272d68cca0975ff0be3d12abf5f67da342d7 by Miss Islington (bot) in branch '3.6': bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) https://github.com/python/cpython/commit/376c272d68cca0975ff0be3d12abf5f67da342d7 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 07:11:23 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 11:11:23 +0000 Subject: [issue11874] argparse assertion failure with brackets in metavars In-Reply-To: <1303201252.58.0.236363581255.issue11874@psf.upfronthosting.co.za> Message-ID: <1528456283.35.0.592728768989.issue11874@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7166 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 07:11:23 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 11:11:23 +0000 Subject: [issue24089] argparse crashes with AssertionError In-Reply-To: <1430455558.24.0.369924072386.issue24089@psf.upfronthosting.co.za> Message-ID: <1528456283.59.0.786479179495.issue24089@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7167 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 07:11:23 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 11:11:23 +0000 Subject: [issue14046] argparse: assertion failure if optional argument has square/round brackets in metavar In-Reply-To: <1329542509.5.0.84021889574.issue14046@psf.upfronthosting.co.za> Message-ID: <1528456283.72.0.632584041548.issue14046@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7168 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 07:11:23 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 11:11:23 +0000 Subject: [issue25058] Right square bracket argparse metavar In-Reply-To: <1441902603.18.0.552996969637.issue25058@psf.upfronthosting.co.za> Message-ID: <1528456283.84.0.719492154407.issue25058@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7169 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 07:33:53 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 11:33:53 +0000 Subject: [issue24089] argparse crashes with AssertionError In-Reply-To: <1430455558.24.0.369924072386.issue24089@psf.upfronthosting.co.za> Message-ID: <1528457633.49.0.592728768989.issue24089@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 842985f6c70484ed7b8fc30d0bc05aec73236a98 by Miss Islington (bot) in branch '3.7': bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) https://github.com/python/cpython/commit/842985f6c70484ed7b8fc30d0bc05aec73236a98 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 07:33:53 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 11:33:53 +0000 Subject: [issue14046] argparse: assertion failure if optional argument has square/round brackets in metavar In-Reply-To: <1329542509.5.0.84021889574.issue14046@psf.upfronthosting.co.za> Message-ID: <1528457633.63.0.584625200856.issue14046@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 842985f6c70484ed7b8fc30d0bc05aec73236a98 by Miss Islington (bot) in branch '3.7': bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) https://github.com/python/cpython/commit/842985f6c70484ed7b8fc30d0bc05aec73236a98 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 07:33:53 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 11:33:53 +0000 Subject: [issue11874] argparse assertion failure with brackets in metavars In-Reply-To: <1303201252.58.0.236363581255.issue11874@psf.upfronthosting.co.za> Message-ID: <1528457633.75.0.786479179495.issue11874@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 842985f6c70484ed7b8fc30d0bc05aec73236a98 by Miss Islington (bot) in branch '3.7': bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) https://github.com/python/cpython/commit/842985f6c70484ed7b8fc30d0bc05aec73236a98 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 07:33:53 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 11:33:53 +0000 Subject: [issue25058] Right square bracket argparse metavar In-Reply-To: <1441902603.18.0.552996969637.issue25058@psf.upfronthosting.co.za> Message-ID: <1528457633.98.0.747649996384.issue25058@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 842985f6c70484ed7b8fc30d0bc05aec73236a98 by Miss Islington (bot) in branch '3.7': bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) https://github.com/python/cpython/commit/842985f6c70484ed7b8fc30d0bc05aec73236a98 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 08:16:04 2018 From: report at bugs.python.org (Chandrakanth Reddy) Date: Fri, 08 Jun 2018 12:16:04 +0000 Subject: [issue33806] Cannot re-open an existing telnet session Message-ID: <1528460164.81.0.592728768989.issue33806@psf.upfronthosting.co.za> New submission from Chandrakanth Reddy : i see from the below link it says "cannot re-open an already existing telnet instance" using Telnetlib. Can this be fixed in the later versions of python or is there any work around for this. I'm surprised that this is something which PERL supports and not python . When I try to open a new session which is already opened the telnet server asks whether to open in a.read only or b.read/write mode and when i try to write 'a' it doesn't take and program fails. my code: tn = telnetlib.Telnet(HOST,PORT) print("established connection") print(tn.read_until(">> ".encode('ascii'))) tn.write(("a".encode('ascii'))) output: established connection b'\r\n a. Connect to Port read/write\r\n b. Connect to Port read only\r\n c. Do not connect, drop this connection request\r\n d. Look at port log file\r\n>> ' ---------- messages: 319056 nosy: ckreddy priority: normal severity: normal status: open title: Cannot re-open an existing telnet session type: enhancement versions: Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 08:50:54 2018 From: report at bugs.python.org (Suriyaa Sundararuban) Date: Fri, 08 Jun 2018 12:50:54 +0000 Subject: [issue33807] CONTRIBUTING.rst: 'Stable buildbots' links with 404 errors Message-ID: <1528462254.16.0.592728768989.issue33807@psf.upfronthosting.co.za> Change by Suriyaa Sundararuban : ---------- assignee: docs at python components: Documentation nosy: docs at python, suriyaa priority: normal severity: normal status: open title: CONTRIBUTING.rst: 'Stable buildbots' links with 404 errors type: behavior _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 08:51:15 2018 From: report at bugs.python.org (INADA Naoki) Date: Fri, 08 Jun 2018 12:51:15 +0000 Subject: [issue33798] Fix csv module comment regarding dict insertion order In-Reply-To: <1528398769.16.0.592728768989.issue33798@psf.upfronthosting.co.za> Message-ID: <1528462275.81.0.592728768989.issue33798@psf.upfronthosting.co.za> INADA Naoki added the comment: New changeset 6860629d87d0f6728ff7430453d4900b695adf7b by INADA Naoki (Andr?s Delfino) in branch 'master': bpo-33798: Update csv document about dict order (GH-7490) https://github.com/python/cpython/commit/6860629d87d0f6728ff7430453d4900b695adf7b ---------- nosy: +inada.naoki _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 08:52:23 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 12:52:23 +0000 Subject: [issue33798] Fix csv module comment regarding dict insertion order In-Reply-To: <1528398769.16.0.592728768989.issue33798@psf.upfronthosting.co.za> Message-ID: <1528462343.26.0.592728768989.issue33798@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7170 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 08:52:39 2018 From: report at bugs.python.org (Suriyaa Sundararuban) Date: Fri, 08 Jun 2018 12:52:39 +0000 Subject: [issue33807] CONTRIBUTING.rst: 'Stable buildbots' links with 404 errors Message-ID: <1528462359.08.0.592728768989.issue33807@psf.upfronthosting.co.za> New submission from Suriyaa Sundararuban : I'm working on this issue. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 08:59:14 2018 From: report at bugs.python.org (Dev Sanghani) Date: Fri, 08 Jun 2018 12:59:14 +0000 Subject: [issue33808] ssl.get_server_certificate fails with openssl 1.1.0 but works with 1.0.2g for self-signed certificate Message-ID: <1528462754.61.0.592728768989.issue33808@psf.upfronthosting.co.za> New submission from Dev Sanghani : Output from Python3.5 with OpenSSL 1.0.2g: >>> ssl.get_server_certificate(('mail.mani.pt', 993), ssl.PROTOCOL_TLSv1) '-----BEGIN CERTIFICATE-----\nMIIDdDCCAlygAwIBAgIILeR0neMYiyUwDQYJKoZIhvcNAQEFBQAwSzELMAkGA1UE\nBhMCUFQxJTAjBgNVBAoTHE1BTkkgSU5kdXN0cmlhcyBQbGFzdGljYXMgU0ExFTAT\nBgNVBAMTDG1haWwubWFuaS5wdDAeFw0xODAxMjIxNDA3MDVaFw0yMjAxMjMxNDA3\nMDVaMEsxCzAJBgNVBAYTAlBUMSUwIwYDVQQKExxNQU5JIElOZHVzdHJpYXMgUGxh\nc3RpY2FzIFNBMRUwEwYDVQQDEwxtYWlsLm1hbmkucHQwggEiMA0GCSqGSIb3DQEB\nAQUAA4IBDwAwggEKAoIBAQDdSCNqjELZGKgjPf0NAwHmmR6ZUzDpt2HOwA+97DOP\nWwJ5NOYGeJzhM/yw+P/yAWKB8HzJO6CKCfwe4ilEVxcikK7Gj/rVqfzRb+hWTWC9\nr8lPzWCa3siNdf/rieONz2LR0d/Qf8Uml5NFJ3UkJAo5TZbWizjcLO4/mPrVysau\n5S4yE9pW8dkhENs/IVLce5cjn0WwMQvFntX1x303tAlyC362JEInHePxPmGmDDMo\n3sgBYziv90LlsOviJIbpju5/A1P9r0uXzDQmudZZPqlFHjqNXcdprfVyTgg/C4xQ\nE1UbSL8uIW0CVj9TxXp4njaIC/sr97ptJU/86isFveKBAgMBAAGjXDBaMB0GA1Ud\nDgQWBBSt1Z9m+CaYG+nf39Ty0TqabcaE4TALBgNVHQ8EBAMCArwwEwYDVR0lBAww\nCgYIKwYBBQUHAwEwFwYDVR0RBBAwDoIMbWFpbC5tYW5pLnB0MA0GCSqGSIb3DQEB\nBQUAA4IBAQBk7DQ/+1pYE+0yoHNChFVztjjJASQSas6DaPx9FOFYrPhh9lU5NmBy\nHIzMUHTlkgw/OE713+mPRlxegZWceA7akirhaWocQcOCXzeIQKNouMZ/4ktXIoqY\nmdcYVOS2Et+FBBT1+rAA6OMTDftCRPH/19stA7IcwWo+6GVLWIqCk/2lBNNYrZ0V\nMvwxQeeHcCz5HdU2o0ypROvkhG8Er5qGVeHAv+JCj+Q4EERMoDwocwS8eedwqqPe\nLVCWwSqS8SEizDRNZZfOoXT4AJ/L10RLrnz8wtSffoxS2pZMbhHEBr3WhA72v94L\nCDU+vO9t1YN3WpXeRZfKWLw/qEE8b65H\n-----END CERTIFICATE-----\n' Output from Python3.6 with OpenSSL 1.1.0: >>> ssl.get_server_certificate(('mail.mani.pt', 993), ssl.PROTOCOL_TLSv1) Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.6/ssl.py", line 1223, in get_server_certificate with context.wrap_socket(sock) as sslsock: File "/usr/lib/python3.6/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/usr/lib/python3.6/ssl.py", line 814, in __init__ self.do_handshake() File "/usr/lib/python3.6/ssl.py", line 1068, in do_handshake self._sslobj.do_handshake() File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() OSError: [Errno 0] Error ---------- assignee: christian.heimes components: SSL messages: 319059 nosy: christian.heimes, dsanghan priority: normal severity: normal status: open title: ssl.get_server_certificate fails with openssl 1.1.0 but works with 1.0.2g for self-signed certificate type: crash versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 09:04:46 2018 From: report at bugs.python.org (Suriyaa Sundararuban) Date: Fri, 08 Jun 2018 13:04:46 +0000 Subject: [issue33807] CONTRIBUTING.rst: 'Stable buildbots' links with 404 errors In-Reply-To: <1528462359.08.0.592728768989.issue33807@psf.upfronthosting.co.za> Message-ID: <1528463086.29.0.592728768989.issue33807@psf.upfronthosting.co.za> Change by Suriyaa Sundararuban : ---------- keywords: +patch pull_requests: +7171 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 09:24:01 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 13:24:01 +0000 Subject: [issue33197] Confusing error message when constructing invalid inspect.Parameters In-Reply-To: <1522566872.11.0.467229070634.issue33197@psf.upfronthosting.co.za> Message-ID: <1528464241.61.0.592728768989.issue33197@psf.upfronthosting.co.za> Yury Selivanov added the comment: We forgot to add "versionadded: 3.8" tag to the documentation of ParameterKind.description. Dong-hee Na, could you please make a PR to add it? ---------- status: closed -> open _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 09:33:42 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 13:33:42 +0000 Subject: [issue33798] Fix csv module comment regarding dict insertion order In-Reply-To: <1528398769.16.0.592728768989.issue33798@psf.upfronthosting.co.za> Message-ID: <1528464822.74.0.592728768989.issue33798@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 9f56a93e8986e06ac61a7356082fe8be285f26a4 by Miss Islington (bot) in branch '3.7': bpo-33798: Update csv document about dict order (GH-7490) https://github.com/python/cpython/commit/9f56a93e8986e06ac61a7356082fe8be285f26a4 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 09:34:19 2018 From: report at bugs.python.org (sds) Date: Fri, 08 Jun 2018 13:34:19 +0000 Subject: [issue33106] Deleting a key in a read-only gdbm results in KeyError, not gdbm.error In-Reply-To: <1521495851.1.0.467229070634.issue33106@psf.upfronthosting.co.za> Message-ID: <1528464859.67.0.592728768989.issue33106@psf.upfronthosting.co.za> sds added the comment: I think consistency would be nice -- so, yes, `dbm.dumb.error` instead of `ValueError` (or at least a subtype of `dbm.dumb.error`). Thanks! ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 09:38:04 2018 From: report at bugs.python.org (INADA Naoki) Date: Fri, 08 Jun 2018 13:38:04 +0000 Subject: [issue33798] Fix csv module comment regarding dict insertion order In-Reply-To: <1528398769.16.0.592728768989.issue33798@psf.upfronthosting.co.za> Message-ID: <1528465084.33.0.592728768989.issue33798@psf.upfronthosting.co.za> Change by INADA Naoki : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 09:49:42 2018 From: report at bugs.python.org (Eric V. Smith) Date: Fri, 08 Jun 2018 13:49:42 +0000 Subject: [issue33806] Cannot re-open an existing telnet session In-Reply-To: <1528460164.81.0.592728768989.issue33806@psf.upfronthosting.co.za> Message-ID: <1528465782.02.0.592728768989.issue33806@psf.upfronthosting.co.za> Eric V. Smith added the comment: Which link are you referring to? I don't see any code you've provided where you're reopening a connection. It looks like you're opening a new connection, reading, writing, and nothing else. It also looks like the output you show is coming from the remote server, not anything on the client side in Python. And, as the example code in the documentation shows, you should probably be using a "with" statement. ---------- nosy: +eric.smith _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 09:49:46 2018 From: report at bugs.python.org (Nick Coghlan) Date: Fri, 08 Jun 2018 13:49:46 +0000 Subject: [issue33409] Clarify the interaction between locale coercion & UTF-8 mode In-Reply-To: <1525260822.94.0.682650639539.issue33409@psf.upfronthosting.co.za> Message-ID: <1528465786.79.0.592728768989.issue33409@psf.upfronthosting.co.za> Change by Nick Coghlan : ---------- keywords: +patch pull_requests: +7172 stage: needs patch -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 10:00:56 2018 From: report at bugs.python.org (Nick Coghlan) Date: Fri, 08 Jun 2018 14:00:56 +0000 Subject: [issue33745] 3.7.0b5 changes the line number of empty functions with docstrings In-Reply-To: <1528024309.59.0.592728768989.issue33745@psf.upfronthosting.co.za> Message-ID: <1528466456.6.0.592728768989.issue33745@psf.upfronthosting.co.za> Nick Coghlan added the comment: The rationale for documenting it in the porting section is that even though this isn't a guaranteed stable interface, the output *does* potentially affect development tools like Ned's coverage.py, as well as other implementations attempting to adhere closely to CPython's behaviour for any given version. (Although it doesn't usually help *Ned* much, since he's often the one letting us know that we inadvertently changed some details of the code generator's output...) ---------- assignee: -> docs at python components: +Documentation nosy: +docs at python _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 10:01:58 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 14:01:58 +0000 Subject: [issue33802] Regression in logging configuration In-Reply-To: <1528412435.4.0.592728768989.issue33802@psf.upfronthosting.co.za> Message-ID: <1528466518.7.0.592728768989.issue33802@psf.upfronthosting.co.za> miss-islington added the comment: New changeset f44203d782e397941c17d96e6a1f9dc1df08b3e6 by Miss Islington (bot) in branch '3.7': bpo-33802: Do not interpolate in ConfigParser while reading defaults (GH-7524) https://github.com/python/cpython/commit/f44203d782e397941c17d96e6a1f9dc1df08b3e6 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 10:01:58 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 14:01:58 +0000 Subject: [issue23835] configparser does not convert defaults to strings In-Reply-To: <1427862188.44.0.00358189102447.issue23835@psf.upfronthosting.co.za> Message-ID: <1528466518.81.0.584625200856.issue23835@psf.upfronthosting.co.za> miss-islington added the comment: New changeset f44203d782e397941c17d96e6a1f9dc1df08b3e6 by Miss Islington (bot) in branch '3.7': bpo-33802: Do not interpolate in ConfigParser while reading defaults (GH-7524) https://github.com/python/cpython/commit/f44203d782e397941c17d96e6a1f9dc1df08b3e6 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 10:21:36 2018 From: report at bugs.python.org (Eric Snow) Date: Fri, 08 Jun 2018 14:21:36 +0000 Subject: [issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x In-Reply-To: <1527078316.31.0.682650639539.issue33615@psf.upfronthosting.co.za> Message-ID: <1528467696.4.0.592728768989.issue33615@psf.upfronthosting.co.za> Eric Snow added the comment: Yeah, I did a custom build the other day. Sorry about the delay in disabling the test again and thanks for getting it done. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 10:22:19 2018 From: report at bugs.python.org (Xiang Zhang) Date: Fri, 08 Jun 2018 14:22:19 +0000 Subject: [issue33669] str.format should raise exception when placeholder number doesn't match argument number In-Reply-To: <1527519449.91.0.682650639539.issue33669@psf.upfronthosting.co.za> Message-ID: <1528467739.87.0.592728768989.issue33669@psf.upfronthosting.co.za> Xiang Zhang added the comment: After reading PEP3101 and the archived mails, I think it's by design. Even if not, it might be too late to change. I don't prefer either way, emitting warnings by compiler or linter. They can't give hints for runtime retrieved patterns, and not everyone turns on warning and uses linters. I prefer using a customized string.Formatter, implementing my own `check_unused_args`, raising appropriate exceptions, and used it across my project instead of the default `str.format`. But there seems some problems with string.Formatter. ---------- resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 10:26:04 2018 From: report at bugs.python.org (Xiang Zhang) Date: Fri, 08 Jun 2018 14:26:04 +0000 Subject: [issue32479] inconsistent ImportError message executing same import statement In-Reply-To: <1514882888.25.0.467229070634.issue32479@psf.upfronthosting.co.za> Message-ID: <1528467964.42.0.592728768989.issue32479@psf.upfronthosting.co.za> Change by Xiang Zhang : ---------- resolution: -> wont fix stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 10:29:26 2018 From: report at bugs.python.org (Dong-hee Na) Date: Fri, 08 Jun 2018 14:29:26 +0000 Subject: [issue33197] Confusing error message when constructing invalid inspect.Parameters In-Reply-To: <1522566872.11.0.467229070634.issue33197@psf.upfronthosting.co.za> Message-ID: <1528468166.25.0.592728768989.issue33197@psf.upfronthosting.co.za> Dong-hee Na added the comment: Sure, I will send a PR soon. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 10:39:06 2018 From: report at bugs.python.org (Dong-hee Na) Date: Fri, 08 Jun 2018 14:39:06 +0000 Subject: [issue33197] Confusing error message when constructing invalid inspect.Parameters In-Reply-To: <1522566872.11.0.467229070634.issue33197@psf.upfronthosting.co.za> Message-ID: <1528468746.68.0.592728768989.issue33197@psf.upfronthosting.co.za> Change by Dong-hee Na : ---------- pull_requests: +7173 stage: resolved -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 10:45:35 2018 From: report at bugs.python.org (Chandrakanth Reddy) Date: Fri, 08 Jun 2018 14:45:35 +0000 Subject: [issue33806] Cannot re-open an existing telnet session In-Reply-To: <1528460164.81.0.592728768989.issue33806@psf.upfronthosting.co.za> Message-ID: <1528469135.61.0.592728768989.issue33806@psf.upfronthosting.co.za> Chandrakanth Reddy added the comment: Hi Eric, Apologize for not providing the link. Below is the link which i was referring to: https://docs.python.org/3.1/library/telnetlib.html I have an already opened telnet session(established by some other user). Now if I again try to open a telnet session to the same serve, my server will populate me with some options like below: a. Connect to Port read/write b. Connect to Port read only c. Do not connect, drop this connection request d. Look at port log file >> So python telnetlib module doesn't handle these options even though i use below code. #establishing connectino to the remote host tn = telnetlib.Telnet(HOST,PORT) # remote server will populate the above given options and stop at '>>', so i'm using the below line to read '>>' and write 'a' print(tn.read_until(">> ".encode('ascii'))) tn.write(("a".encode('ascii'))) i have created this issue after trying all possible ways and searching the web for a whole day. Let me know if there is any way to handle this. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 10:47:53 2018 From: report at bugs.python.org (Eric V. Smith) Date: Fri, 08 Jun 2018 14:47:53 +0000 Subject: [issue33806] Cannot re-open an existing telnet session In-Reply-To: <1528460164.81.0.592728768989.issue33806@psf.upfronthosting.co.za> Message-ID: <1528469273.28.0.592728768989.issue33806@psf.upfronthosting.co.za> Eric V. Smith added the comment: This sounds like an application-level issue, not a telnetlib problem. As far as I can tell, you're opening a new connection, not reusing an existing connection. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 10:55:05 2018 From: report at bugs.python.org (Michael Felt) Date: Fri, 08 Jun 2018 14:55:05 +0000 Subject: [issue32493] UUID Module - FreeBSD build failure In-Reply-To: <1528440500.28.0.592728768989.issue32493@psf.upfronthosting.co.za> Message-ID: <08ad3f30-aabb-ffe5-580f-20d4ec75f9fa@felt.demon.nl> Michael Felt added the comment: OK. I know I do not understand this well - when it goes in A, or B. So, if I understand correctly, like this issue was created after uuid_create() was added for AIX and created issues for FreeBSD )that I did not know had uuid_create(), I need to create a new issue where I say this issue created an issue for AIX? Seems like a lot of work. I only put it here because it is a very simple change directly related to the last PR. Just verify that is what you want and I'll get to it as I can. In any case, I'll pull the PR - as it is specific to AIX. On 6/8/2018 12:48 AM, STINNER Victor wrote: > STINNER Victor added the comment: > >> @vstinner - I know this is "closed", however, I submit a minor PR to fix an error in PR7104. The logic of configure.ac always defines HAVE_UUID_ENC_BE. I cannot proceed with PR5183 (aka issue28009) until this is repaired. > The title of this issue makes it very specific to FreeBSD, so it would be better to create a new one for AIX. What your write for the commit description is not appropriate for a commit, but it's fine for the description of a bug. > > Please open a new issue to track uuid changes for AIX. I know that you have a second one for Python <= 3.6. > > ---------- > resolution: fixed -> > status: closed -> open > > _______________________________________ > Python tracker > > _______________________________________ > ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 10:58:15 2018 From: report at bugs.python.org (Christian Tismer) Date: Fri, 08 Jun 2018 14:58:15 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528469895.92.0.592728768989.issue33738@psf.upfronthosting.co.za> Christian Tismer added the comment: """Excluding names from limited API can break existing code that use them with defined Py_LIMITED_API.""" How is that different? Right now, the code would break at compile time, because the macros are accessing opaque type fields. Excluding them has the same effect but is much cleaner. My current first approach is conservative, because it only makes things work that didn't work before. Core that is clearly meant as macro is obviously not meant for the limited API. And if it should be better included, I'm all open for it. Right now I want to remove quickly the breakage that was a showstopper. Maybe I misunderstood you and did exactly what you proposed? Please let us start a discussion on python-dev. I think there is more to do to make the limited API really usable in large projects. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 11:05:12 2018 From: report at bugs.python.org (R. David Murray) Date: Fri, 08 Jun 2018 15:05:12 +0000 Subject: [issue33806] Cannot re-open an existing telnet session In-Reply-To: <1528460164.81.0.592728768989.issue33806@psf.upfronthosting.co.za> Message-ID: <1528470312.32.0.592728768989.issue33806@psf.upfronthosting.co.za> R. David Murray added the comment: telnetlib provides a low level interface to the telnet protocol. The dialog you mention appears to be transmitted on the telnet connection, so it is unlikely there is any bug or missing feature in telnetlib that would affect your problem. The sentence in the docs you appear to be referring to ("Do not reopen an already connected instance.") is just telling you that once you have used to telnetlib to open a connection, don't call open again. It has nothing to say about a telnet connection made by some other program. So, you have an application level problem and should seek help on the python-list mailing list or some other general help forum. Unless you can identify something *specific* in telnetlib (bug or missing feature) that prevents you from solving your problem, I don't think there's anything more to be done here. (As an aside, have you tried sending /r/n after the a?) ---------- nosy: +r.david.murray _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 11:06:27 2018 From: report at bugs.python.org (R. David Murray) Date: Fri, 08 Jun 2018 15:06:27 +0000 Subject: [issue33806] Cannot re-open an existing telnet session In-Reply-To: <1528460164.81.0.592728768989.issue33806@psf.upfronthosting.co.za> Message-ID: <1528470387.74.0.592728768989.issue33806@psf.upfronthosting.co.za> Change by R. David Murray : ---------- resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 11:09:14 2018 From: report at bugs.python.org (R. David Murray) Date: Fri, 08 Jun 2018 15:09:14 +0000 Subject: [issue33806] Cannot re-open an existing telnet session In-Reply-To: <1528460164.81.0.592728768989.issue33806@psf.upfronthosting.co.za> Message-ID: <1528470554.09.0.592728768989.issue33806@psf.upfronthosting.co.za> R. David Murray added the comment: To clarify: don't call open again *on that telnetlib.Telnet object*. You can certainly have more than one open connection using different telnetlib.Telnet instances, though it might be a bit challenging to manage them :) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 11:36:04 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 15:36:04 +0000 Subject: [issue33736] Improve the documentation of asyncio stream API Message-ID: <1528472164.69.0.592728768989.issue33736@psf.upfronthosting.co.za> New submission from Yury Selivanov : New changeset c0d062f523b16331444ff910e4596ee5608c8170 by Yury Selivanov (Elvis Pranskevichus) in branch 'master': bpo-33736: Improve the documentation of asyncio stream APIs (GH-7326) https://github.com/python/cpython/commit/c0d062f523b16331444ff910e4596ee5608c8170 ---------- nosy: +yselivanov _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 11:37:15 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 15:37:15 +0000 Subject: [issue33736] Improve the documentation of asyncio stream API In-Reply-To: <1528472164.69.0.592728768989.issue33736@psf.upfronthosting.co.za> Message-ID: <1528472235.09.0.592728768989.issue33736@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7174 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 11:41:02 2018 From: report at bugs.python.org (Zachary Ware) Date: Fri, 08 Jun 2018 15:41:02 +0000 Subject: [issue33807] CONTRIBUTING.rst: 'Stable buildbots' links with 404 errors In-Reply-To: <1528462359.08.0.592728768989.issue33807@psf.upfronthosting.co.za> Message-ID: <1528472462.06.0.592728768989.issue33807@psf.upfronthosting.co.za> Zachary Ware added the comment: New changeset 9e6685ea7b749ee34466e71b22d99e5112d71a95 by Zachary Ware (Suriyaa ???) in branch 'master': bpo-33807: Add Python 3.7 buildbot link to '.github/CONTRIBUTING.rst' (GH-7532) https://github.com/python/cpython/commit/9e6685ea7b749ee34466e71b22d99e5112d71a95 ---------- nosy: +zach.ware _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 11:42:06 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 15:42:06 +0000 Subject: [issue33807] CONTRIBUTING.rst: 'Stable buildbots' links with 404 errors In-Reply-To: <1528462359.08.0.592728768989.issue33807@psf.upfronthosting.co.za> Message-ID: <1528472526.04.0.592728768989.issue33807@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7175 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 11:42:43 2018 From: report at bugs.python.org (Zachary Ware) Date: Fri, 08 Jun 2018 15:42:43 +0000 Subject: [issue33807] CONTRIBUTING.rst: 'Stable buildbots' links with 404 errors In-Reply-To: <1528462359.08.0.592728768989.issue33807@psf.upfronthosting.co.za> Message-ID: <1528472563.63.0.592728768989.issue33807@psf.upfronthosting.co.za> Zachary Ware added the comment: I fixed the issue by reenabling redirects in the buildbot.python.org Apache config, and Suriyaa fixed the lack of a 3.7 link with PR7532. Thanks for the report and PR! ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 11:52:20 2018 From: report at bugs.python.org (Ulrich Petri) Date: Fri, 08 Jun 2018 15:52:20 +0000 Subject: [issue33809] Expose `capture_locals` parameter in `traceback` convenience functions Message-ID: <1528473140.44.0.592728768989.issue33809@psf.upfronthosting.co.za> New submission from Ulrich Petri : Since 3.5 the internal machinery of the `traceback` module has gained the very useful ability to capture locals. It would be useful to also expose that ability through the various convenience functions. ---------- components: Library (Lib) messages: 319079 nosy: ulope priority: normal severity: normal status: open title: Expose `capture_locals` parameter in `traceback` convenience functions versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 11:54:34 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 15:54:34 +0000 Subject: [issue33736] Improve the documentation of asyncio stream API In-Reply-To: <1528472164.69.0.592728768989.issue33736@psf.upfronthosting.co.za> Message-ID: <1528473274.33.0.592728768989.issue33736@psf.upfronthosting.co.za> miss-islington added the comment: New changeset f4dcf49159e404273f426bccf8d0d71a4c3274e6 by Miss Islington (bot) in branch '3.7': bpo-33736: Improve the documentation of asyncio stream APIs (GH-7326) https://github.com/python/cpython/commit/f4dcf49159e404273f426bccf8d0d71a4c3274e6 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 12:04:55 2018 From: report at bugs.python.org (Dong-hee Na) Date: Fri, 08 Jun 2018 16:04:55 +0000 Subject: [issue33197] Confusing error message when constructing invalid inspect.Parameters In-Reply-To: <1522566872.11.0.467229070634.issue33197@psf.upfronthosting.co.za> Message-ID: <1528473895.49.0.592728768989.issue33197@psf.upfronthosting.co.za> Dong-hee Na added the comment: @yselivanov Please take a look PR 7536 :) Thanks! ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 12:05:08 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 16:05:08 +0000 Subject: [issue33807] CONTRIBUTING.rst: 'Stable buildbots' links with 404 errors In-Reply-To: <1528462359.08.0.592728768989.issue33807@psf.upfronthosting.co.za> Message-ID: <1528473908.99.0.592728768989.issue33807@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 552c1bc94887a5e897c398725776ac1ef3d21c6a by Miss Islington (bot) in branch '3.7': bpo-33807: Add Python 3.7 buildbot link to '.github/CONTRIBUTING.rst' (GH-7532) https://github.com/python/cpython/commit/552c1bc94887a5e897c398725776ac1ef3d21c6a ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 12:07:29 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 16:07:29 +0000 Subject: [issue33197] Confusing error message when constructing invalid inspect.Parameters In-Reply-To: <1522566872.11.0.467229070634.issue33197@psf.upfronthosting.co.za> Message-ID: <1528474049.8.0.592728768989.issue33197@psf.upfronthosting.co.za> Yury Selivanov added the comment: > @yselivanov > Please take a look PR 7536 :) Thanks! Please stop posting comments like this frequently. They are highly distractive. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 12:07:54 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 16:07:54 +0000 Subject: [issue33197] Confusing error message when constructing invalid inspect.Parameters In-Reply-To: <1522566872.11.0.467229070634.issue33197@psf.upfronthosting.co.za> Message-ID: <1528474074.85.0.592728768989.issue33197@psf.upfronthosting.co.za> Yury Selivanov added the comment: New changeset 4f54867e29af93779922ff23df542f2d5df4c4ee by Yury Selivanov (Dong-hee Na) in branch 'master': bpo-33197: Add versionadded tag to the documentation of ParameterKind (GH-7536) https://github.com/python/cpython/commit/4f54867e29af93779922ff23df542f2d5df4c4ee ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 12:08:08 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 16:08:08 +0000 Subject: [issue33197] Confusing error message when constructing invalid inspect.Parameters In-Reply-To: <1522566872.11.0.467229070634.issue33197@psf.upfronthosting.co.za> Message-ID: <1528474088.04.0.592728768989.issue33197@psf.upfronthosting.co.za> Change by Yury Selivanov : ---------- stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 12:55:04 2018 From: report at bugs.python.org (Steve Dower) Date: Fri, 08 Jun 2018 16:55:04 +0000 Subject: [issue33779] Error while installing python 3.6.5 on windows 10 In-Reply-To: <1528277897.55.0.592728768989.issue33779@psf.upfronthosting.co.za> Message-ID: <1528476904.91.0.592728768989.issue33779@psf.upfronthosting.co.za> Steve Dower added the comment: Okay, I guess there's some configuration (or corruption) on your machine that's interfering here. I've seen similar things before on IT-managed workstations. Can you try deselecting the "Install launcher for all users" option and seeing if that helps? It should be fully per-user then, which avoids most of these problems. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 12:55:14 2018 From: report at bugs.python.org (Barry A. Warsaw) Date: Fri, 08 Jun 2018 16:55:14 +0000 Subject: [issue33802] Regression in logging configuration In-Reply-To: <1528412435.4.0.592728768989.issue33802@psf.upfronthosting.co.za> Message-ID: <1528476914.32.0.592728768989.issue33802@psf.upfronthosting.co.za> Change by Barry A. Warsaw : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 13:10:28 2018 From: report at bugs.python.org (Barry A. Warsaw) Date: Fri, 08 Jun 2018 17:10:28 +0000 Subject: [issue23835] configparser does not convert defaults to strings In-Reply-To: <1427862188.44.0.00358189102447.issue23835@psf.upfronthosting.co.za> Message-ID: <1528477828.59.0.592728768989.issue23835@psf.upfronthosting.co.za> Change by Barry A. Warsaw : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 13:24:26 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Fri, 08 Jun 2018 17:24:26 +0000 Subject: [issue33751] Failed separate testTruncateOnWindows in test_file In-Reply-To: <1528030047.94.0.592728768989.issue33751@psf.upfronthosting.co.za> Message-ID: <1528478666.09.0.592728768989.issue33751@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: New changeset 23999158f962e31e955f3cd232b3745d523720cb by Serhiy Storchaka in branch '2.7': [2.7] bpo-33751: Fix test_file. (GH-7378) (GH-7445) https://github.com/python/cpython/commit/23999158f962e31e955f3cd232b3745d523720cb ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 13:24:40 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Fri, 08 Jun 2018 17:24:40 +0000 Subject: [issue33751] Failed separate testTruncateOnWindows in test_file In-Reply-To: <1528030047.94.0.592728768989.issue33751@psf.upfronthosting.co.za> Message-ID: <1528478680.94.0.592728768989.issue33751@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 13:35:53 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 08 Jun 2018 17:35:53 +0000 Subject: [issue24622] tokenize.py: missing EXACT_TOKEN_TYPES In-Reply-To: <1436729377.89.0.451182448624.issue24622@psf.upfronthosting.co.za> Message-ID: <1528479353.47.0.592728768989.issue24622@psf.upfronthosting.co.za> Terry J. Reedy added the comment: The 3.6.6rc is next Monday. 3.6.8 will be the last 3.6 maintenance release. ---------- nosy: +terry.reedy _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 13:54:33 2018 From: report at bugs.python.org (Michael Selik) Date: Fri, 08 Jun 2018 17:54:33 +0000 Subject: [issue33462] reversible dict In-Reply-To: <1526009418.33.0.682650639539.issue33462@psf.upfronthosting.co.za> Message-ID: <1528480473.4.0.592728768989.issue33462@psf.upfronthosting.co.za> Michael Selik added the comment: It looks like there's general agreement on python-dev that this is appropriate for v3.8 (not v3.7). Guido van Rossum and Ramsey D'silva gave a +1. Raymond Hettinger noted some use cases. INADA Naoki raised a point about waiting for other implementations, which Guido agreed with, but after some research came around to OK'ing this for v3.8. Responding to Serhiy Storchaka's worry about adding new code possibly upsetting the compiler optimizations: The implementation seems straightforward and unlikely to confuse the compiler. Is there evidence that similar code has previously made CPython slower? If the compiler's black magic is too difficult to understand, it may be equally plausible that this code causes an improvement to the optimization of unrelated code. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 13:56:16 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 08 Jun 2018 17:56:16 +0000 Subject: [issue26175] Fully implement IOBase abstract on SpooledTemporaryFile In-Reply-To: <1453413274.25.0.536987988375.issue26175@psf.upfronthosting.co.za> Message-ID: <1528480576.71.0.592728768989.issue26175@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Martin, the PR has one 'approved' review, not from you. You appear to be requesting changes here, but it is not clear to me which are 'maybe' and which are 'must'. It is not obvious to me whether this should be treated as enhancement or behavior issue, but backporting is moot until something is merged into master. ---------- nosy: +terry.reedy versions: +Python 3.8 -Python 2.7, Python 3.5, Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 13:57:20 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 08 Jun 2018 17:57:20 +0000 Subject: [issue33762] temp file isn't IOBase In-Reply-To: <1528059185.23.0.592728768989.issue33762@psf.upfronthosting.co.za> Message-ID: <1528480640.27.0.592728768989.issue33762@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Martin, I added you because this Tempfile issue is related to #26175. ---------- nosy: +martin.panter, terry.reedy _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 14:27:56 2018 From: report at bugs.python.org (R. David Murray) Date: Fri, 08 Jun 2018 18:27:56 +0000 Subject: [issue28557] error message for bad raw readinto In-Reply-To: <1477760845.01.0.230790209004.issue28557@psf.upfronthosting.co.za> Message-ID: <1528482476.05.0.592728768989.issue28557@psf.upfronthosting.co.za> Change by R. David Murray : ---------- nosy: +benjamin.peterson, stutzbach _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 14:30:44 2018 From: report at bugs.python.org (Mayank Singhal) Date: Fri, 08 Jun 2018 18:30:44 +0000 Subject: [issue31215] Add version changed notes for OpenSSL 1.1.0 compatibility In-Reply-To: <1502860659.7.0.930691554308.issue31215@psf.upfronthosting.co.za> Message-ID: <1528482644.95.0.592728768989.issue31215@psf.upfronthosting.co.za> Change by Mayank Singhal <17mayanksinghal at gmail.com>: ---------- pull_requests: +7176 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 14:39:33 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 08 Jun 2018 18:39:33 +0000 Subject: [issue33766] Grammar Incongruence In-Reply-To: <1528085120.11.0.592728768989.issue33766@psf.upfronthosting.co.za> Message-ID: <1528483173.94.0.592728768989.issue33766@psf.upfronthosting.co.za> Terry J. Reedy added the comment: A few years ago, there was a particular case in which compile failed without a trailing newline. We fixed it so that it would work anyway. Unless we are willing for a conforming Python interpreter to fail >>> exec('print("hello")') hello The Reference Manual should be clear that EOF and EOS (end-of-string) is treated as NEWLINE. ---------- nosy: +terry.reedy _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 14:43:24 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 08 Jun 2018 18:43:24 +0000 Subject: [issue33799] Remove non-ordered dicts comments from FAQ In-Reply-To: <1528399680.16.0.592728768989.issue33799@psf.upfronthosting.co.za> Message-ID: <1528483404.55.0.592728768989.issue33799@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 5c7f22c2a339f23f8a236540d0ebed955637095b by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33799: Remove non-ordered dicts comments from FAQ (GH-7520) https://github.com/python/cpython/commit/5c7f22c2a339f23f8a236540d0ebed955637095b ---------- nosy: +ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 14:52:08 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 08 Jun 2018 18:52:08 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528483928.9.0.592728768989.issue33770@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Is the new message a clarification, in which case we would typically not backport, or a correction, which we usually would? ---------- nosy: +terry.reedy _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 14:58:37 2018 From: report at bugs.python.org (Tal Einat) Date: Fri, 08 Jun 2018 18:58:37 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528484317.09.0.592728768989.issue33770@psf.upfronthosting.co.za> Tal Einat added the comment: It is more a correction than a clarification. After looking through the module some more, I'm considering using binascii.Incomplete for this case, since it seems appropriate enough that it's worth using it rather than adding another, separate exception. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 14:59:43 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 08 Jun 2018 18:59:43 +0000 Subject: [issue33771] Module: timeit. According to documentation default_repeat should have the value 3. Has 5. In-Reply-To: <1528202242.78.0.592728768989.issue33771@psf.upfronthosting.co.za> Message-ID: <1528484383.59.0.592728768989.issue33771@psf.upfronthosting.co.za> Terry J. Reedy added the comment: This is a duplicate in that the 3 => 5 change was incorporated into PR 7419 for #28240. ---------- nosy: +terry.reedy resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> Enhance the timeit module: display average +- std dev instead of minimum _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 15:19:23 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 08 Jun 2018 19:19:23 +0000 Subject: [issue33800] Fix default argument for parameter dict_type of ConfigParser/RawConfigParser In-Reply-To: <1528401689.57.0.592728768989.issue33800@psf.upfronthosting.co.za> Message-ID: <1528485563.96.0.592728768989.issue33800@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 3b0b90c8c3b8161f0ae9005b83b9b6449d4a8476 by Ned Deily (Andr?s Delfino) in branch 'master': bpo-33800: Fix default argument for parameter dict_type of ConfigParser/RawConfigParser (GH-7494) https://github.com/python/cpython/commit/3b0b90c8c3b8161f0ae9005b83b9b6449d4a8476 ---------- nosy: +ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 15:20:46 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 19:20:46 +0000 Subject: [issue33800] Fix default argument for parameter dict_type of ConfigParser/RawConfigParser In-Reply-To: <1528401689.57.0.592728768989.issue33800@psf.upfronthosting.co.za> Message-ID: <1528485646.24.0.592728768989.issue33800@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7177 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 15:26:09 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 08 Jun 2018 19:26:09 +0000 Subject: [issue33800] Fix default argument for parameter dict_type of ConfigParser/RawConfigParser In-Reply-To: <1528401689.57.0.592728768989.issue33800@psf.upfronthosting.co.za> Message-ID: <1528485969.93.0.592728768989.issue33800@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset dc20d9d1026282a2879992f4cef517a270c8a467 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33800: Fix default argument for parameter dict_type of ConfigParser/RawConfigParser (GH-7494) (GH-7542) https://github.com/python/cpython/commit/dc20d9d1026282a2879992f4cef517a270c8a467 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 15:26:43 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 08 Jun 2018 19:26:43 +0000 Subject: [issue33800] Fix default argument for parameter dict_type of ConfigParser/RawConfigParser In-Reply-To: <1528401689.57.0.592728768989.issue33800@psf.upfronthosting.co.za> Message-ID: <1528486003.13.0.592728768989.issue33800@psf.upfronthosting.co.za> Ned Deily added the comment: Thanks, Andr?s! ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 15:28:39 2018 From: report at bugs.python.org (Brett Cannon) Date: Fri, 08 Jun 2018 19:28:39 +0000 Subject: [issue33375] warnings: get filename from frame.f_code.co_filename In-Reply-To: <1524847135.79.0.682650639539.issue33375@psf.upfronthosting.co.za> Message-ID: <1528486119.92.0.592728768989.issue33375@psf.upfronthosting.co.za> Brett Cannon added the comment: New changeset 11a896652ee98aa44e59ed25237f9efb56635dcf by Brett Cannon (Thomas Kluyver) in branch 'master': bpo-33375: Get filename for warnings from frame.f_code.co_filename (GH-6622) https://github.com/python/cpython/commit/11a896652ee98aa44e59ed25237f9efb56635dcf ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 15:47:47 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 08 Jun 2018 19:47:47 +0000 Subject: [issue33082] multiprocessing docs bury very important 'callback=' args In-Reply-To: <1521139850.07.0.467229070634.issue33082@psf.upfronthosting.co.za> Message-ID: <1528487267.51.0.592728768989.issue33082@psf.upfronthosting.co.za> Ned Deily added the comment: These doc changes have been languishing. We have a difference of opinion about adding a callback example. I don't have a strong feeling one way or the other. Davin or anyone else, what say you? ---------- nosy: +ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 15:50:54 2018 From: report at bugs.python.org (R. David Murray) Date: Fri, 08 Jun 2018 19:50:54 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528487454.49.0.592728768989.issue33770@psf.upfronthosting.co.za> R. David Murray added the comment: I think that would move it even more into the realm of a bugfix, then, since code that cared about specific binascii exceptions could be looking for that one already. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 15:55:57 2018 From: report at bugs.python.org (Tal Einat) Date: Fri, 08 Jun 2018 19:55:57 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528487757.94.0.592728768989.issue33770@psf.upfronthosting.co.za> Tal Einat added the comment: Code using only a2b_base64() would likely not be expecting this exception. We have at least one such example in the stdlib: decode_b() in Lib/email/_encoded_words.py (which needs to be fixed regardless; see #27397). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 16:08:07 2018 From: report at bugs.python.org (Stefan Krah) Date: Fri, 08 Jun 2018 20:08:07 +0000 Subject: [issue24622] tokenize.py: missing EXACT_TOKEN_TYPES In-Reply-To: <1436729377.89.0.451182448624.issue24622@psf.upfronthosting.co.za> Message-ID: <1528488487.37.0.592728768989.issue24622@psf.upfronthosting.co.za> Stefan Krah added the comment: Yikes, I wasn't aware that we are that late in the 3.6 release cycle. Perhaps it would be unusual to change it now, even though it is a bug fix. What do others think? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 16:09:47 2018 From: report at bugs.python.org (Tal Einat) Date: Fri, 08 Jun 2018 20:09:47 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528488587.15.0.592728768989.issue33770@psf.upfronthosting.co.za> Tal Einat added the comment: PR is ready with an improved exception message and raising binascii.Incomplete rather than binascii.Error. A final review would be welcome! ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 16:32:14 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 08 Jun 2018 20:32:14 +0000 Subject: [issue30805] asyncio: race condition with debug and subprocess In-Reply-To: <1498758025.07.0.201255065023.issue30805@psf.upfronthosting.co.za> Message-ID: <1528489934.74.0.592728768989.issue30805@psf.upfronthosting.co.za> Ned Deily added the comment: @yselivanov, @asvetlov: ping on the languishing PR ---------- nosy: +asvetlov, ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 16:50:05 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 08 Jun 2018 20:50:05 +0000 Subject: [issue24622] tokenize.py: missing EXACT_TOKEN_TYPES In-Reply-To: <1436729377.89.0.451182448624.issue24622@psf.upfronthosting.co.za> Message-ID: <1528491005.04.0.592728768989.issue24622@psf.upfronthosting.co.za> Ned Deily added the comment: > What do others think? +1 for adding a mention in the 3.7 What's New doc (anyone willing to produce a PR for (master Doc/whatsnew/3.7.rst ?) -1 for backporting to 3.6. Since 3.6 has been out there so long and is nearing the end of its maintenance life, it seems to me to not be a good idea to make a change like this that is more likely to break existing code than to fix something that a small number of 3.6 users may have been waiting for. ---------- nosy: +ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 16:55:26 2018 From: report at bugs.python.org (Stefan Krah) Date: Fri, 08 Jun 2018 20:55:26 +0000 Subject: [issue24622] tokenize.py: missing EXACT_TOKEN_TYPES In-Reply-To: <1436729377.89.0.451182448624.issue24622@psf.upfronthosting.co.za> Message-ID: <1528491326.35.0.592728768989.issue24622@psf.upfronthosting.co.za> Stefan Krah added the comment: I agree, it would be strange to backport now. ---------- stage: backport needed -> versions: +Python 3.7 -Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 16:55:37 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Fri, 08 Jun 2018 20:55:37 +0000 Subject: [issue33799] Remove non-ordered dicts comments from FAQ In-Reply-To: <1528399680.16.0.592728768989.issue33799@psf.upfronthosting.co.za> Message-ID: <1528491337.96.0.592728768989.issue33799@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 17:15:44 2018 From: report at bugs.python.org (Brett Cannon) Date: Fri, 08 Jun 2018 21:15:44 +0000 Subject: [issue32718] Install PowerShell activation scripts for venv for all platforms In-Reply-To: <1517273696.22.0.467229070634.issue32718@psf.upfronthosting.co.za> Message-ID: <1528492544.81.0.592728768989.issue32718@psf.upfronthosting.co.za> Brett Cannon added the comment: Looks like there is some PowerShell Core compatibility issues to work through first. Primarily the prompt seems the venv prompt additions show up twice but then disappear if you arrow up. There is also an issue of path separators needing to be updated appropriately according to the OS. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 17:35:58 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 21:35:58 +0000 Subject: [issue30805] asyncio: race condition with debug and subprocess In-Reply-To: <1498758025.07.0.201255065023.issue30805@psf.upfronthosting.co.za> Message-ID: <1528493758.54.0.592728768989.issue30805@psf.upfronthosting.co.za> Change by Yury Selivanov : ---------- keywords: +patch pull_requests: +7178 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 17:51:28 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 08 Jun 2018 21:51:28 +0000 Subject: [issue33801] Remove non-ordered dict comment from plistlib In-Reply-To: <1528402376.25.0.592728768989.issue33801@psf.upfronthosting.co.za> Message-ID: <1528494688.31.0.592728768989.issue33801@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 1cbdb2208aa309cf288ee0b53f0ecd85279bb934 by Ned Deily (Andr?s Delfino) in branch 'master': bpo-33801: Remove non-ordered dict comment from plistlib doc (GH-7495) https://github.com/python/cpython/commit/1cbdb2208aa309cf288ee0b53f0ecd85279bb934 ---------- nosy: +ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 17:52:38 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 21:52:38 +0000 Subject: [issue33801] Remove non-ordered dict comment from plistlib In-Reply-To: <1528402376.25.0.592728768989.issue33801@psf.upfronthosting.co.za> Message-ID: <1528494758.89.0.592728768989.issue33801@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7179 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 17:53:38 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Fri, 08 Jun 2018 21:53:38 +0000 Subject: [issue33810] Remove unused code in datetime module Message-ID: <1528494818.43.0.592728768989.issue33810@psf.upfronthosting.co.za> New submission from Alexander Belopolsky : Since implementation of issue 25283, the objects returned by time.localtime always have tm_zone and tm_gmtoff attributes, but the datetime module still has code that anticipates these attributes to be missing. [1] [1]: https://github.com/python/cpython/blob/1cbdb2208aa309cf288ee0b53f0ecd85279bb934/Lib/datetime.py#L1763 ---------- assignee: belopolsky components: Extension Modules, Library (Lib) messages: 319110 nosy: belopolsky priority: normal severity: normal stage: needs patch status: open title: Remove unused code in datetime module type: resource usage versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 17:55:04 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 08 Jun 2018 21:55:04 +0000 Subject: [issue33642] IDLE: Display up to maxlines non-blank lines for Code Context In-Reply-To: <1527208905.36.0.682650639539.issue33642@psf.upfronthosting.co.za> Message-ID: <1528494904.37.0.592728768989.issue33642@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 17:57:51 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 08 Jun 2018 21:57:51 +0000 Subject: [issue33801] Remove non-ordered dict comment from plistlib In-Reply-To: <1528402376.25.0.592728768989.issue33801@psf.upfronthosting.co.za> Message-ID: <1528495071.12.0.592728768989.issue33801@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 416fbe41b783d5686b9cb7ff7f8af94b41dc16b8 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33801: Remove non-ordered dict comment from plistlib doc (GH-7495) (GH-7546) https://github.com/python/cpython/commit/416fbe41b783d5686b9cb7ff7f8af94b41dc16b8 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 17:58:42 2018 From: report at bugs.python.org (Ned Deily) Date: Fri, 08 Jun 2018 21:58:42 +0000 Subject: [issue33801] Remove non-ordered dict comment from plistlib In-Reply-To: <1528402376.25.0.592728768989.issue33801@psf.upfronthosting.co.za> Message-ID: <1528495122.01.0.592728768989.issue33801@psf.upfronthosting.co.za> Ned Deily added the comment: Thanks for the PR! ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: enhancement -> _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 17:58:44 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Fri, 08 Jun 2018 21:58:44 +0000 Subject: [issue33810] Remove unused code in datetime module In-Reply-To: <1528494818.43.0.592728768989.issue33810@psf.upfronthosting.co.za> Message-ID: <1528495124.8.0.592728768989.issue33810@psf.upfronthosting.co.za> Change by Alexander Belopolsky : ---------- components: -Extension Modules _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 18:24:40 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 22:24:40 +0000 Subject: [issue30805] asyncio: race condition with debug and subprocess In-Reply-To: <1498758025.07.0.201255065023.issue30805@psf.upfronthosting.co.za> Message-ID: <1528496680.27.0.592728768989.issue30805@psf.upfronthosting.co.za> Yury Selivanov added the comment: New changeset 12f482e0ae33021c04264294f33fa6baa9617cec by Yury Selivanov in branch 'master': bpo-30805: Avoid race condition with debug logging (GH-7545) https://github.com/python/cpython/commit/12f482e0ae33021c04264294f33fa6baa9617cec ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 18:25:56 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 22:25:56 +0000 Subject: [issue30805] asyncio: race condition with debug and subprocess In-Reply-To: <1498758025.07.0.201255065023.issue30805@psf.upfronthosting.co.za> Message-ID: <1528496756.69.0.592728768989.issue30805@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7180 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 18:26:48 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 22:26:48 +0000 Subject: [issue30805] asyncio: race condition with debug and subprocess In-Reply-To: <1498758025.07.0.201255065023.issue30805@psf.upfronthosting.co.za> Message-ID: <1528496808.4.0.592728768989.issue30805@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7181 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 18:42:09 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 22:42:09 +0000 Subject: [issue30805] asyncio: race condition with debug and subprocess In-Reply-To: <1498758025.07.0.201255065023.issue30805@psf.upfronthosting.co.za> Message-ID: <1528497729.32.0.592728768989.issue30805@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 21f4c780a1de99bdb37abf57445f0c942449b45b by Miss Islington (bot) in branch '3.7': bpo-30805: Avoid race condition with debug logging (GH-7545) https://github.com/python/cpython/commit/21f4c780a1de99bdb37abf57445f0c942449b45b ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 18:45:29 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Fri, 08 Jun 2018 22:45:29 +0000 Subject: [issue33810] Remove unused code in datetime module In-Reply-To: <1528494818.43.0.592728768989.issue33810@psf.upfronthosting.co.za> Message-ID: <1528497929.63.0.592728768989.issue33810@psf.upfronthosting.co.za> Change by Alexander Belopolsky : ---------- keywords: +patch pull_requests: +7182 stage: needs patch -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 18:45:29 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Fri, 08 Jun 2018 22:45:29 +0000 Subject: [issue25283] Make tm_gmtoff and tm_zone available on all platforms In-Reply-To: <1443632019.41.0.93426740001.issue25283@psf.upfronthosting.co.za> Message-ID: <1528497929.69.0.786479179495.issue25283@psf.upfronthosting.co.za> Change by Alexander Belopolsky : ---------- pull_requests: +7183 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 18:47:47 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 08 Jun 2018 22:47:47 +0000 Subject: [issue30805] asyncio: race condition with debug and subprocess In-Reply-To: <1498758025.07.0.201255065023.issue30805@psf.upfronthosting.co.za> Message-ID: <1528498067.85.0.592728768989.issue30805@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 234b53f8b5d0615051025be26cf8adecbc346c57 by Miss Islington (bot) in branch '3.6': bpo-30805: Avoid race condition with debug logging (GH-7545) https://github.com/python/cpython/commit/234b53f8b5d0615051025be26cf8adecbc346c57 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 18:53:34 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 22:53:34 +0000 Subject: [issue30805] asyncio: race condition with debug and subprocess In-Reply-To: <1498758025.07.0.201255065023.issue30805@psf.upfronthosting.co.za> Message-ID: <1528498414.9.0.592728768989.issue30805@psf.upfronthosting.co.za> Change by Yury Selivanov : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 18:53:47 2018 From: report at bugs.python.org (Lisa Guo) Date: Fri, 08 Jun 2018 22:53:47 +0000 Subject: [issue33811] asyncio accepting connection limit Message-ID: <1528498427.18.0.592728768989.issue33811@psf.upfronthosting.co.za> New submission from Lisa Guo : https://bugs.python.org/issue27906 describes a situation where accept rate of connection is too slow for use cases where spikes of incoming connection warrants fast accept. The fix for that was to accept socket connection in a tight loop until it reaches "backlog" connections. This doesn't work very well in a web server scenario where we have many processes listening on the same socket. Each process should not accept up to "backlog" connections, for better load balancing among processes. It would be ideal if this is a separate argument for the server configuration so that the application can decide up to how many connections it is willing to accept in the loop, independent of the backlog parameter for listen() system call. Let me know if this makes sense. Lisa ---------- messages: 319116 nosy: lguo priority: normal severity: normal status: open title: asyncio accepting connection limit type: behavior versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 19:22:35 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Fri, 08 Jun 2018 23:22:35 +0000 Subject: [issue33810] Remove unused code in datetime module In-Reply-To: <1528494818.43.0.592728768989.issue33810@psf.upfronthosting.co.za> Message-ID: <1528500155.56.0.592728768989.issue33810@psf.upfronthosting.co.za> Alexander Belopolsky added the comment: New changeset bcb032e4acdebc043a7659a06e6037fe71020860 by Alexander Belopolsky in branch 'master': bpo-33810 Remove unused code from datetime.py. (GH-7549) https://github.com/python/cpython/commit/bcb032e4acdebc043a7659a06e6037fe71020860 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 19:22:35 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Fri, 08 Jun 2018 23:22:35 +0000 Subject: [issue25283] Make tm_gmtoff and tm_zone available on all platforms In-Reply-To: <1443632019.41.0.93426740001.issue25283@psf.upfronthosting.co.za> Message-ID: <1528500155.64.0.584625200856.issue25283@psf.upfronthosting.co.za> Alexander Belopolsky added the comment: New changeset bcb032e4acdebc043a7659a06e6037fe71020860 by Alexander Belopolsky in branch 'master': bpo-33810 Remove unused code from datetime.py. (GH-7549) https://github.com/python/cpython/commit/bcb032e4acdebc043a7659a06e6037fe71020860 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 19:26:57 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Fri, 08 Jun 2018 23:26:57 +0000 Subject: [issue33810] Remove unused code in datetime module In-Reply-To: <1528494818.43.0.592728768989.issue33810@psf.upfronthosting.co.za> Message-ID: <1528500417.24.0.592728768989.issue33810@psf.upfronthosting.co.za> Change by Alexander Belopolsky : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 19:57:20 2018 From: report at bugs.python.org (Yury Selivanov) Date: Fri, 08 Jun 2018 23:57:20 +0000 Subject: [issue33811] asyncio accepting connection limit In-Reply-To: <1528498427.18.0.592728768989.issue33811@psf.upfronthosting.co.za> Message-ID: <1528502240.78.0.592728768989.issue33811@psf.upfronthosting.co.za> Yury Selivanov added the comment: In principle this sounds good, but I'm not sure how the API and implementation would look like. Maybe you can share a bit more details? ---------- components: +asyncio nosy: +asvetlov, yselivanov _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 19:57:23 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 08 Jun 2018 23:57:23 +0000 Subject: [issue26698] Tk DPI awareness In-Reply-To: <1459911228.34.0.00983454800259.issue26698@psf.upfronthosting.co.za> Message-ID: <1528502243.04.0.592728768989.issue26698@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Westly, #31500 changed font scaling for IDLE on high DPI screens. It also removed some hard-coding of frame sizes in terms of pixels. Does anything look better for you with current IDLE (3.6.5, 3.7.0)? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 20:02:27 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Sat, 09 Jun 2018 00:02:27 +0000 Subject: [issue33812] Different behavior betwee Message-ID: <1528502546.8.0.592728768989.issue33812@psf.upfronthosting.co.za> Change by Alexander Belopolsky : ---------- nosy: belopolsky priority: normal severity: normal status: open title: Different behavior betwee _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 20:08:08 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Sat, 09 Jun 2018 00:08:08 +0000 Subject: [issue33812] Different behavior between datetime.py and its C accelerator Message-ID: <1528502888.29.0.592728768989.issue33812@psf.upfronthosting.co.za> New submission from Alexander Belopolsky : Consider the following code: $ cat bug.py import sys if len(sys.argv) > 1: sys.modules['_datetime'] = None from datetime import tzinfo, datetime, timezone class TZ(tzinfo): def utcoffset(self, t): pass print(datetime(2000,1,1,tzinfo=TZ()).astimezone(timezone.utc)) When running with no arguments (with C acceleration), I get $ ./python.exe bug.py 2000-01-01 00:00:00+00:00 but the pure python code produces an error $ ./python.exe bug.py pure Traceback (most recent call last): File "bug.py", line 10, in print(datetime(2000,1,1,tzinfo=TZ()).astimezone(timezone.utc)) File ".../Lib/datetime.py", line 1783, in astimezone raise ValueError("astimezone() requires an aware datetime") ValueError: astimezone() requires an aware datetime Note that some kind of error is expected because TZ.utcoffset() returns None instead of a timedelta, but the error message produced by pure python code is confusing. ---------- title: Different behavior betwee -> Different behavior between datetime.py and its C accelerator _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 20:17:42 2018 From: report at bugs.python.org (Tim Peters) Date: Sat, 09 Jun 2018 00:17:42 +0000 Subject: [issue33812] Different behavior between datetime.py and its C accelerator In-Reply-To: <1528502888.29.0.592728768989.issue33812@psf.upfronthosting.co.za> Message-ID: <1528503462.17.0.592728768989.issue33812@psf.upfronthosting.co.za> Tim Peters added the comment: The message isn't confusing - the definition of "aware" is confusing ;-) """ A datetime object d is aware if d.tzinfo is not None and d.tzinfo.utcoffset(d) does not return None. If d.tzinfo is None, or if d.tzinfo is not None but d.tzinfo.utcoffset(d) returns None, d is naive. """ ---------- nosy: +tim.peters _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 20:24:05 2018 From: report at bugs.python.org (Eric Snow) Date: Sat, 09 Jun 2018 00:24:05 +0000 Subject: [issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x In-Reply-To: <1527078316.31.0.682650639539.issue33615@psf.upfronthosting.co.za> Message-ID: <1528503845.18.0.592728768989.issue33615@psf.upfronthosting.co.za> Change by Eric Snow : ---------- pull_requests: +7184 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 21:19:24 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 09 Jun 2018 01:19:24 +0000 Subject: [issue11874] argparse assertion failure with brackets in metavars In-Reply-To: <1303201252.58.0.236363581255.issue11874@psf.upfronthosting.co.za> Message-ID: <1528507164.98.0.592728768989.issue11874@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7185 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 21:19:25 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 09 Jun 2018 01:19:25 +0000 Subject: [issue24089] argparse crashes with AssertionError In-Reply-To: <1430455558.24.0.369924072386.issue24089@psf.upfronthosting.co.za> Message-ID: <1528507165.23.0.786479179495.issue24089@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7186 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 21:19:25 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 09 Jun 2018 01:19:25 +0000 Subject: [issue14046] argparse: assertion failure if optional argument has square/round brackets in metavar In-Reply-To: <1329542509.5.0.84021889574.issue14046@psf.upfronthosting.co.za> Message-ID: <1528507165.97.0.632584041548.issue14046@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7187 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 21:19:26 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 09 Jun 2018 01:19:26 +0000 Subject: [issue25058] Right square bracket argparse metavar In-Reply-To: <1441902603.18.0.552996969637.issue25058@psf.upfronthosting.co.za> Message-ID: <1528507166.12.0.719492154407.issue25058@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7188 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 21:19:45 2018 From: report at bugs.python.org (Eric Fahlgren) Date: Sat, 09 Jun 2018 01:19:45 +0000 Subject: [issue26698] Tk DPI awareness In-Reply-To: <1459911228.34.0.00983454800259.issue26698@psf.upfronthosting.co.za> Message-ID: <1528507185.22.0.592728768989.issue26698@psf.upfronthosting.co.za> Eric Fahlgren added the comment: Still blurry with 3.6.5 on Win 10 with a 2560x1600 monitor at 125% scaling (I compared it to 2.7.15, they looked identical). If I go to the Windows properties for pythonw.exe and turn on "Override high DPI scaling behavior" it's nice and sharp. ---------- nosy: +eric.fahlgren _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 21:23:22 2018 From: report at bugs.python.org (Nick Coghlan) Date: Sat, 09 Jun 2018 01:23:22 +0000 Subject: [issue11874] argparse assertion failure with brackets in metavars In-Reply-To: <1303201252.58.0.236363581255.issue11874@psf.upfronthosting.co.za> Message-ID: <1528507402.52.0.592728768989.issue11874@psf.upfronthosting.co.za> Nick Coghlan added the comment: Thanks for the PR, and your patience! The change has now been merged for all active 3.x versions. It turns out the 2.7 argparse code is still close enough to the 3.x code for the automated backport to work, so the CI for that is currently running. ---------- assignee: -> ncoghlan resolution: -> fixed stage: patch review -> backport needed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 21:28:05 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 09 Jun 2018 01:28:05 +0000 Subject: [issue24089] argparse crashes with AssertionError In-Reply-To: <1430455558.24.0.369924072386.issue24089@psf.upfronthosting.co.za> Message-ID: <1528507685.4.0.592728768989.issue24089@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 4e6bd247aa955056626bf0cf8dc1c65a587b871f by Miss Islington (bot) in branch '2.7': bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) https://github.com/python/cpython/commit/4e6bd247aa955056626bf0cf8dc1c65a587b871f ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 21:28:05 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 09 Jun 2018 01:28:05 +0000 Subject: [issue14046] argparse: assertion failure if optional argument has square/round brackets in metavar In-Reply-To: <1329542509.5.0.84021889574.issue14046@psf.upfronthosting.co.za> Message-ID: <1528507685.57.0.584625200856.issue14046@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 4e6bd247aa955056626bf0cf8dc1c65a587b871f by Miss Islington (bot) in branch '2.7': bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) https://github.com/python/cpython/commit/4e6bd247aa955056626bf0cf8dc1c65a587b871f ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 21:28:05 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 09 Jun 2018 01:28:05 +0000 Subject: [issue11874] argparse assertion failure with brackets in metavars In-Reply-To: <1303201252.58.0.236363581255.issue11874@psf.upfronthosting.co.za> Message-ID: <1528507685.69.0.786479179495.issue11874@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 4e6bd247aa955056626bf0cf8dc1c65a587b871f by Miss Islington (bot) in branch '2.7': bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) https://github.com/python/cpython/commit/4e6bd247aa955056626bf0cf8dc1c65a587b871f ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 21:28:05 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 09 Jun 2018 01:28:05 +0000 Subject: [issue25058] Right square bracket argparse metavar In-Reply-To: <1441902603.18.0.552996969637.issue25058@psf.upfronthosting.co.za> Message-ID: <1528507685.88.0.747649996384.issue25058@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 4e6bd247aa955056626bf0cf8dc1c65a587b871f by Miss Islington (bot) in branch '2.7': bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) https://github.com/python/cpython/commit/4e6bd247aa955056626bf0cf8dc1c65a587b871f ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 21:29:20 2018 From: report at bugs.python.org (Nick Coghlan) Date: Sat, 09 Jun 2018 01:29:20 +0000 Subject: [issue31215] Add version changed notes for OpenSSL 1.1.0 compatibility In-Reply-To: <1502860659.7.0.930691554308.issue31215@psf.upfronthosting.co.za> Message-ID: <1528507760.44.0.592728768989.issue31215@psf.upfronthosting.co.za> Nick Coghlan added the comment: Merged for 2.7 in https://github.com/python/cpython/commit/458ed1b237150f5c59b6ab3e1a5241a672ac8cbd Thank you for the PRs, Mayank! ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 22:19:29 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 09 Jun 2018 02:19:29 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528510769.01.0.592728768989.issue33656@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Elisha wrote and I quoted: '[the call] sets DPI awareness'. After reading https://msdn.microsoft.com/en-us/library/windows/desktop/dn280512(v=vs.85).aspx PROCESS_DPI_AWARENESS, what the call sets is the system's idea of what DPI awareness the app/process has. As I understand, 0 means 'App assumes DPI = 96, so if it is not, system must adjust.' 1 means 'App reads DPI at startup (somehow) and adjust to that value, but does not adapt to monitor change, so system must.' 2 means 'App reads DPI at startup and again after monitor change (somehow), so system should leave it alone.' The correct value to pass is the one that best describes what the app does. I believe that 0 is wrong and 1 more likely than 2. My own experience and Elisha's report that IDLE looks better (at any resolution setting) matches others. For instance, https://stackoverflow.com/questions/41315873/attempting-to-resolve-blurred-tkinter-text-scaling-on-windows-10-high-dpi-disp Three people describe fuzzy tk text as a well-known problem, fixed by SetProcessDpiAwareness(1). https://wiki.tcl.tk/8484 tk has a scaling function that gets and sets a scaling factor, dpi/72 = pixels per printer point. "The initial value for the scaling factor is set when the application starts, based on properties of the installed monitor." This also suggests to me also that default 0 for awareness is wrong value. Users (apps) can changes this, but I see no suggestion that monitor changes are tracked. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 23:00:52 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Sat, 09 Jun 2018 03:00:52 +0000 Subject: [issue33812] Different behavior between datetime.py and its C accelerator In-Reply-To: <1528502888.29.0.592728768989.issue33812@psf.upfronthosting.co.za> Message-ID: <1528513252.62.0.592728768989.issue33812@psf.upfronthosting.co.za> Alexander Belopolsky added the comment: So you are suggesting that my datetime(2000,1,1,tzinfo=TZ()) should behave as a naive instance, right? Well, this would be a third behavior different from both current C and Python implementations: >>> print(datetime(2000,1,1).astimezone(timezone.utc)) 2000-01-01 05:00:00+00:00 (I am in US/Eastern timezone.) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 23:02:00 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Sat, 09 Jun 2018 03:02:00 +0000 Subject: [issue33812] Different behavior between datetime.py and its C accelerator In-Reply-To: <1528502888.29.0.592728768989.issue33812@psf.upfronthosting.co.za> Message-ID: <1528513320.64.0.592728768989.issue33812@psf.upfronthosting.co.za> Change by Alexander Belopolsky : ---------- assignee: -> belopolsky components: +Extension Modules, Library (Lib) stage: -> needs patch type: -> behavior versions: +Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 23:07:22 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 09 Jun 2018 03:07:22 +0000 Subject: [issue26698] Tk DPI awareness In-Reply-To: <1459911228.34.0.00983454800259.issue26698@psf.upfronthosting.co.za> Message-ID: <1528513642.7.0.592728768989.issue26698@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Do any of the Windows experts know what "Override high DPI scaling behavior" on properties does? Does it call SetProcessDpiAwareness? It seems so. The answer would have implications for #33656 (which is about fixing this issue in IDLE, as Westly originally requested here). This setting is on the popup when one clicks [Change high DPI settings] on the Compatibility tab. Eric, there is a dropdown with 3 possible overrides. Application (default), System, System [Enhanced]. Which one did you use? In my experiments, 'Application has the same effect as SetProcessDpiAwareness(1), while 'System' is the same as SetProcessDpiAwareness(0). I expected this from what I posted on #33656. Since the properties settings may or not be correct for all graphics packages, but will likely be correct for all tk and tkinter apps, I think tkinter should perhaps be modified. The question is whether SetProcessDpiAwareness(1) is correct (for tk and tkinter) for all monitors. I suspect so but don't know for sure. ---------- components: +Windows nosy: +eryksun, paul.moore, steve.dower, tim.golden, zach.ware _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 23:28:35 2018 From: report at bugs.python.org (Eric Fahlgren) Date: Sat, 09 Jun 2018 03:28:35 +0000 Subject: [issue26698] Tk DPI awareness In-Reply-To: <1459911228.34.0.00983454800259.issue26698@psf.upfronthosting.co.za> Message-ID: <1528514915.28.0.592728768989.issue26698@psf.upfronthosting.co.za> Eric Fahlgren added the comment: I used the default Application setting. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 8 23:31:22 2018 From: report at bugs.python.org (Tim Peters) Date: Sat, 09 Jun 2018 03:31:22 +0000 Subject: [issue33812] Different behavior between datetime.py and its C accelerator In-Reply-To: <1528502888.29.0.592728768989.issue33812@psf.upfronthosting.co.za> Message-ID: <1528515082.1.0.592728768989.issue33812@psf.upfronthosting.co.za> Tim Peters added the comment: I copy/pasted the definitions of "aware" and "naive" from the docs. Your TZ's .utcoffset() returns None, so, yes, any datetime using an instance of that for its tzinfo is naive. In print(datetime(2000,1,1).astimezone(timezone.utc)) the docs for astimezone say, in part, """ If self is naive (self.tzinfo is None), it is presumed to represent time in the system timezone. """ So it converted your naive time (viewed as being in your system - EDT - time zone) to UTC. That appears to be using a different definition of "naive" (looking only at whether self.tzinfo is None). The original datetime.py certainly didn't do that ... """ def astimezone(self, tz): if not isinstance(tz, tzinfo): raise TypeError("tz argument must be an instance of tzinfo") mytz = self.tzinfo if mytz is None: raise ValueError("astimezone() requires an aware datetime") if tz is mytz: return self # Convert self to UTC, and attach the new time zone object. myoffset = self.utcoffset() if myoffset is None: raise ValueError("astimezone() requires an aware datetime") """ So it originally used the definition I quoted first. The "sometimes pretend it's local time anyway" twist appeared to get added here: https://github.com/python/cpython/commit/fdc860f3106b59ec908e0b605e51a1607ea2ff4b ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 00:20:56 2018 From: report at bugs.python.org (Nick Coghlan) Date: Sat, 09 Jun 2018 04:20:56 +0000 Subject: [issue33331] Clean modules in the reversed order In-Reply-To: <1524393498.13.0.682650639539.issue33331@psf.upfronthosting.co.za> Message-ID: <1528518056.72.0.592728768989.issue33331@psf.upfronthosting.co.za> Nick Coghlan added the comment: I think the key concern here is that we *don't* consistently add modules to sys.modules in the order their bodies are executed: we add them in a kind of sawtooth order based on the imports from __main__, and the order of import statements in the imported modules. For example, given the following import chains: __main__ imports A then X A imports B which imports C which imports D X imports Y which imports B X then imports Z which imports C Then the order in which modules get added to sys.modules will be: __main__, A, B, C, D, X, Y, Z and they'll get cleaned up from left to right (We're making the assumption here that, for whatever reason, GC hasn't cleaned up A, X, and their dependencies after sys.modules got cleared) This means that in the status quo, unloading X, Y, and Z can have problems, since B, C, and D will already be gone. Reversing the order doesn't fix that, and if anything will make things worse, as it means that in the "A -> B -> C -> D" dependency chain, A now gets cleared *last*, instead of getting cleared first as it does today. So instead of just reversing the order, I wondering if what we may want to consider doing is to: 1. Make sure that we're dropping all the interpreter's internal references to __main__ before clearing sys.modules 2. When running through the module weakref list, force another cyclic GC run after each not-yet-cleared module gets cleaned up ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 00:38:42 2018 From: report at bugs.python.org (Nick Coghlan) Date: Sat, 09 Jun 2018 04:38:42 +0000 Subject: [issue33331] Clean modules in the reversed order In-Reply-To: <1524393498.13.0.682650639539.issue33331@psf.upfronthosting.co.za> Message-ID: <1528519122.74.0.592728768989.issue33331@psf.upfronthosting.co.za> Nick Coghlan added the comment: It also occurred to me to ask whether or not moving modules to the end of sys.modules each time they're successfully imported would help solve the problem (albeit at the expense of making import cache hits more expensive). I don't think it does, though, since in my example above, the least-recently-imported ordering would end up looking like: __main__, A, D, X, Y, B, Z, C Since D was only imported by C, and hence never gets moved to the end later, even when C gets moved by the import from Z. Instead, if we truly wanted to solve the problem comprehensively, we'd need to: 1. Use a context variable to track a stack of "currently running imports" 2. Track (as a process global) a directed (potentially cyclic!) graph of which modules imported other modules (i.e. the import of the target module started while the importing module was the currently active import on the stack). Lazy imports would typically show up as being initiated by __main__. 3. During shutdown, linearise the shutdown order for any modules which weren't already cleaned up by the cyclic GC. Taking better advantage of the existing cyclic GC seems like it should be simpler, though, and would hopefully be enough to handle all but the most complex edge cases. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 02:54:11 2018 From: report at bugs.python.org (Nick Coghlan) Date: Sat, 09 Jun 2018 06:54:11 +0000 Subject: [issue33409] Clarify the interaction between locale coercion & UTF-8 mode In-Reply-To: <1525260822.94.0.682650639539.issue33409@psf.upfronthosting.co.za> Message-ID: <1528527251.49.0.592728768989.issue33409@psf.upfronthosting.co.za> Nick Coghlan added the comment: New changeset 1bcb8a636857e3383d65aaf196f93edb949f2e79 by Nick Coghlan in branch 'master': bpo-33409: Clarify PEP 538/540 relationship (GH-7534) https://github.com/python/cpython/commit/1bcb8a636857e3383d65aaf196f93edb949f2e79 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 02:57:11 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 09 Jun 2018 06:57:11 +0000 Subject: [issue33409] Clarify the interaction between locale coercion & UTF-8 mode In-Reply-To: <1525260822.94.0.682650639539.issue33409@psf.upfronthosting.co.za> Message-ID: <1528527431.95.0.592728768989.issue33409@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7189 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 03:06:33 2018 From: report at bugs.python.org (Zackery Spytz) Date: Sat, 09 Jun 2018 07:06:33 +0000 Subject: [issue33375] warnings: get filename from frame.f_code.co_filename In-Reply-To: <1524847135.79.0.682650639539.issue33375@psf.upfronthosting.co.za> Message-ID: <1528527993.1.0.592728768989.issue33375@psf.upfronthosting.co.za> Change by Zackery Spytz : ---------- pull_requests: +7190 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 03:13:55 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 09 Jun 2018 07:13:55 +0000 Subject: [issue33409] Clarify the interaction between locale coercion & UTF-8 mode In-Reply-To: <1525260822.94.0.682650639539.issue33409@psf.upfronthosting.co.za> Message-ID: <1528528435.8.0.592728768989.issue33409@psf.upfronthosting.co.za> miss-islington added the comment: New changeset dd613cf335d7556e20ef3dd01c3abc081b958449 by Miss Islington (bot) in branch '3.7': bpo-33409: Clarify PEP 538/540 relationship (GH-7534) https://github.com/python/cpython/commit/dd613cf335d7556e20ef3dd01c3abc081b958449 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 06:52:56 2018 From: report at bugs.python.org (Nick Coghlan) Date: Sat, 09 Jun 2018 10:52:56 +0000 Subject: [issue33409] Clarify the interaction between locale coercion & UTF-8 mode In-Reply-To: <1525260822.94.0.682650639539.issue33409@psf.upfronthosting.co.za> Message-ID: <1528541576.25.0.592728768989.issue33409@psf.upfronthosting.co.za> Change by Nick Coghlan : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 06:53:29 2018 From: report at bugs.python.org (Nick Coghlan) Date: Sat, 09 Jun 2018 10:53:29 +0000 Subject: [issue11874] argparse assertion failure with brackets in metavars In-Reply-To: <1303201252.58.0.236363581255.issue11874@psf.upfronthosting.co.za> Message-ID: <1528541609.29.0.592728768989.issue11874@psf.upfronthosting.co.za> Change by Nick Coghlan : ---------- stage: backport needed -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 07:03:02 2018 From: report at bugs.python.org (Nick Coghlan) Date: Sat, 09 Jun 2018 11:03:02 +0000 Subject: [issue22555] Tracking issue for adjustments to binary/text boundary handling In-Reply-To: <1412481703.35.0.528069461639.issue22555@psf.upfronthosting.co.za> Message-ID: <1528542182.56.0.592728768989.issue22555@psf.upfronthosting.co.za> Nick Coghlan added the comment: With PEPs 538 and 540 merged for Python 3.7 (so we'll almost always use UTF-8 instead of ASCII when the platform nominates the C or POSIX locale as the currently active one), and Windows previously switching to assuming UTF-8 instead of mbcs for binary interfaces in Python 3.6, I think this tracking issue has served its purpose. Of the issues previously mentioned here, the following are still open: * Improved Unicode handling in the Windows console: issue 17620 * Utilities for clearing out surrogates from strings: issue 18814 * Treating "wsgistr" as a serialisation format: issue 22264 * Defining a formatting mini-language for hex output: issue 22385 I don't think any of those share enough characteristics to be worth continuing to track as a group, so I'm closing this meta-issue as out of date :) ---------- dependencies: -Add utilities to "clean" surrogate code points from strings, Add wsgiref.util.dump_wsgistr & load_wsgistr, Define a binary output formatting mini-language for *.hex(), Python interactive console doesn't use sys.stdin for input resolution: -> out of date stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 07:06:24 2018 From: report at bugs.python.org (Nick Coghlan) Date: Sat, 09 Jun 2018 11:06:24 +0000 Subject: [issue22264] Add wsgiref.util.dump_wsgistr & load_wsgistr In-Reply-To: <1408884341.89.0.273491669506.issue22264@psf.upfronthosting.co.za> Message-ID: <1528542384.13.0.592728768989.issue22264@psf.upfronthosting.co.za> Nick Coghlan added the comment: We don't have anyone clamouring for this, and the third party module https://ftfy.readthedocs.io/en/latest/ has a lot more utilities for working with messy binary inputs and incorrectly decoded text than we'd ever add to the standard library, so I'm going to reject this as only being theoretically useful, and not actually solving a practical problem for users. ---------- resolution: -> rejected stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 07:18:50 2018 From: report at bugs.python.org (Nick Coghlan) Date: Sat, 09 Jun 2018 11:18:50 +0000 Subject: [issue22555] Tracking issue for adjustments to binary/text boundary handling In-Reply-To: <1412481703.35.0.528069461639.issue22555@psf.upfronthosting.co.za> Message-ID: <1528543130.96.0.592728768989.issue22555@psf.upfronthosting.co.za> Nick Coghlan added the comment: Correction: I just rejected my proposed wsgiref in issue 22264 as failing to make a sufficient case for their practical utility, so that one is closed as well :) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 07:26:20 2018 From: report at bugs.python.org (Nick Coghlan) Date: Sat, 09 Jun 2018 11:26:20 +0000 Subject: [issue22555] Tracking issue for adjustments to binary/text boundary handling In-Reply-To: <1412481703.35.0.528069461639.issue22555@psf.upfronthosting.co.za> Message-ID: <1528543580.33.0.592728768989.issue22555@psf.upfronthosting.co.za> Nick Coghlan added the comment: Adding a link to the first post in a series of articles from Victor Stinner regarding the evolution over time of the text encoding assumptions in Python 3's operating system interfaces: https://vstinner.github.io/python30-listdir-undecodable-filenames.html That way if anyone does stumble across this meta-issue, they'll have an easier time discovering that more readable version of the history involved :) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 08:06:29 2018 From: report at bugs.python.org (Xavier de Gaye) Date: Sat, 09 Jun 2018 12:06:29 +0000 Subject: [issue33757] Failed separate test_pdb_next_command_in_generator_for_loop in test_pdb In-Reply-To: <1528040605.03.0.592728768989.issue33757@psf.upfronthosting.co.za> Message-ID: <1528545989.06.0.592728768989.issue33757@psf.upfronthosting.co.za> Xavier de Gaye added the comment: This is fixed with: diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index 4f9d28afd3..7b3624fb99 100644 --- a/Lib/test/test_pdb.py +++ b/Lib/test/test_pdb.py @@ -1045,7 +1045,7 @@ def test_pdb_next_command_in_generator_for_loop(): ... print('value', i) ... x = 123 - >>> with PdbTestInput(['break test_gen', + >>> with PdbTestInput(['break test_gen', # doctest: +ELLIPSIS ... 'continue', ... 'next', ... 'next', @@ -1055,7 +1055,7 @@ def test_pdb_next_command_in_generator_for_loop(): > (3)test_function() -> for i in test_gen(): (Pdb) break test_gen - Breakpoint 6 at :1 + Breakpoint ... at :1 (Pdb) continue > (2)test_gen() -> yield 0 I will submit a PR shortly. ---------- nosy: +xdegaye _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 08:25:56 2018 From: report at bugs.python.org (Martin Panter) Date: Sat, 09 Jun 2018 12:25:56 +0000 Subject: [issue26175] Fully implement IOBase abstract on SpooledTemporaryFile In-Reply-To: <1453413274.25.0.536987988375.issue26175@psf.upfronthosting.co.za> Message-ID: <1528547156.25.0.592728768989.issue26175@psf.upfronthosting.co.za> Martin Panter added the comment: I was making suggestions, not demanding anything. Except for the quirk with __del__, Gary?s changes (revision fb28362) look okay to add on their own as a bug fix. I wouldn?t claim that IOBase is ?fully implemented? however, until the return values for ?seek? and ?truncate? are fixed. The underlying problem is the original SpooledTemporaryFile imitated Python 2?s file class/type, and wasn?t completely adapted for Python 3?s file classes. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 08:32:57 2018 From: report at bugs.python.org (INADA Naoki) Date: Sat, 09 Jun 2018 12:32:57 +0000 Subject: [issue33462] reversible dict In-Reply-To: <1528480473.4.0.592728768989.issue33462@psf.upfronthosting.co.za> Message-ID: INADA Naoki added the comment: Would you try python_startup and python_startup_nosite benchmark with: * master branch * All reverse iteraters * All reverse iteraters + register them in _collections_abc module -- INADA Naoki ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 09:58:32 2018 From: report at bugs.python.org (=?utf-8?b?SmVzw7pzIENlYSBBdmnDs24=?=) Date: Sat, 09 Jun 2018 13:58:32 +0000 Subject: [issue30579] Allow traceback objects to be instantiated/mutated/annotated In-Reply-To: <1496720513.53.0.619437315354.issue30579@psf.upfronthosting.co.za> Message-ID: <1528552712.12.0.592728768989.issue30579@psf.upfronthosting.co.za> Change by Jes?s Cea Avi?n : ---------- nosy: +jcea _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 10:03:22 2018 From: report at bugs.python.org (Roundup Robot) Date: Sat, 09 Jun 2018 14:03:22 +0000 Subject: [issue31711] ssl.SSLSocket.send(b"") fails In-Reply-To: <1507282980.19.0.213398074469.issue31711@psf.upfronthosting.co.za> Message-ID: <1528553002.49.0.592728768989.issue31711@psf.upfronthosting.co.za> Change by Roundup Robot : ---------- keywords: +patch pull_requests: +7191 stage: needs patch -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 11:13:39 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 09 Jun 2018 15:13:39 +0000 Subject: [issue26698] Tk DPI awareness In-Reply-To: <1459911228.34.0.00983454800259.issue26698@psf.upfronthosting.co.za> Message-ID: <1528557219.41.0.592728768989.issue26698@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Elisha Paine, who prompted #33656 by posting the SetProcessDpiAwareness(1) fix to the idledev list, wrote to me that pyglet and probably pygame have similar issues. I wonder if Python should be installed with the 'application' setting, or if DPI adjustment should be discussed in the Windows section of the Using manual. https://docs.python.org/3/using/windows.html ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 12:04:02 2018 From: report at bugs.python.org (Eric Fahlgren) Date: Sat, 09 Jun 2018 16:04:02 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528560242.81.0.592728768989.issue33656@psf.upfronthosting.co.za> Eric Fahlgren added the comment: https://msdn.microsoft.com/en-us/library/windows/desktop/mt748620(v=vs.85).aspx gives the syntax for adding dpiAwareness to the Windows manifest. ---------- nosy: +eric.fahlgren _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 12:09:48 2018 From: report at bugs.python.org (STINNER Victor) Date: Sat, 09 Jun 2018 16:09:48 +0000 Subject: [issue22555] Tracking issue for adjustments to binary/text boundary handling In-Reply-To: <1412481703.35.0.528069461639.issue22555@psf.upfronthosting.co.za> Message-ID: <1528560588.21.0.592728768989.issue22555@psf.upfronthosting.co.za> STINNER Victor added the comment: > https://vstinner.github.io/python30-listdir-undecodable-filenames.html Oh, thanks for mentioning my series of articles. It's also nice to see that we are now able to close this 4 years old issue! ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 12:15:10 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 09 Jun 2018 16:15:10 +0000 Subject: [issue33718] Enhance regrtest: meta-ticket for multiple changes In-Reply-To: <1527775539.21.0.682650639539.issue33718@psf.upfronthosting.co.za> Message-ID: <1528560910.58.0.592728768989.issue33718@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7192 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 12:16:02 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 09 Jun 2018 16:16:02 +0000 Subject: [issue33718] Enhance regrtest: meta-ticket for multiple changes In-Reply-To: <1527775539.21.0.682650639539.issue33718@psf.upfronthosting.co.za> Message-ID: <1528560962.57.0.592728768989.issue33718@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7193 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 12:16:10 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 09 Jun 2018 16:16:10 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528560970.24.0.592728768989.issue33656@psf.upfronthosting.co.za> Terry J. Reedy added the comment: As reported on #26698, which was originally opened as an IDLE issue, but which I turned into a tkinter issue, one can also sharpen text buy opening python(w).exe properties, Compatibility tab, clicking [Change high DPI settings], and then checking [] Override high DPI scaling behavior while leaving the default 'Application'. The effect is the same as 'SetProcessDpiAwareness (1)' -- or (2) if monitor is not changed. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 12:19:15 2018 From: report at bugs.python.org (STINNER Victor) Date: Sat, 09 Jun 2018 16:19:15 +0000 Subject: [issue33718] Enhance regrtest: meta-ticket for multiple changes In-Reply-To: <1527775539.21.0.682650639539.issue33718@psf.upfronthosting.co.za> Message-ID: <1528561155.12.0.592728768989.issue33718@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7194 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 12:25:13 2018 From: report at bugs.python.org (STINNER Victor) Date: Sat, 09 Jun 2018 16:25:13 +0000 Subject: [issue31007] ERROR: test_pipe_handle (test.test_asyncio.test_windows_utils.PipeTests) expected ERROR_INVALID_HANDLE on x86 Windows7 3.x In-Reply-To: <1500887344.87.0.0437843877994.issue31007@psf.upfronthosting.co.za> Message-ID: <1528561513.33.0.592728768989.issue31007@psf.upfronthosting.co.za> STINNER Victor added the comment: Test just failed on x86 Windows7 3.6 when test_asyncio was re-run (sequentially): http://buildbot.python.org/all/#/builders/90/builds/387 ====================================================================== ERROR: test_pipe_handle (test.test_asyncio.test_windows_utils.PipeTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\test\test_asyncio\test_windows_utils.py", line 128, in test_pipe_handle raise RuntimeError('expected ERROR_INVALID_HANDLE') RuntimeError: expected ERROR_INVALID_HANDLE ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 12:25:31 2018 From: report at bugs.python.org (Xavier de Gaye) Date: Sat, 09 Jun 2018 16:25:31 +0000 Subject: [issue33757] Failed separate test_pdb_next_command_in_generator_for_loop in test_pdb In-Reply-To: <1528040605.03.0.592728768989.issue33757@psf.upfronthosting.co.za> Message-ID: <1528561531.35.0.592728768989.issue33757@psf.upfronthosting.co.za> Change by Xavier de Gaye : ---------- keywords: +patch pull_requests: +7195 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 12:27:03 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 09 Jun 2018 16:27:03 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528561623.66.0.592728768989.issue33656@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Eric, thanks for the additional reference. From Window's viewpoint, Python, not IDLE, is the application. IDLE is just input data. I should not touch Python's manifest, and changing it would have to consider other possible gui module input data. This page says it applies only to Win10 desktop. The page for SetProcessDpiAwareness says it applies to 8.1+. That still excludes Vista and Win7, but is better than just Win10. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 12:33:27 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 09 Jun 2018 16:33:27 +0000 Subject: [issue33718] Enhance regrtest: meta-ticket for multiple changes In-Reply-To: <1527775539.21.0.682650639539.issue33718@psf.upfronthosting.co.za> Message-ID: <1528562007.21.0.592728768989.issue33718@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 463d1890bb29b66aed431734bb76e366301a0fa5 by Miss Islington (bot) in branch '3.7': bpo-33718: regrtest: use "xxx then yyy" result if re-run (GH-7521) https://github.com/python/cpython/commit/463d1890bb29b66aed431734bb76e366301a0fa5 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 12:35:39 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 09 Jun 2018 16:35:39 +0000 Subject: [issue33718] Enhance regrtest: meta-ticket for multiple changes In-Reply-To: <1527775539.21.0.682650639539.issue33718@psf.upfronthosting.co.za> Message-ID: <1528562139.76.0.592728768989.issue33718@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 07aea160ca2dd8814a28afe73e6a72c2b3cbf38a by Miss Islington (bot) in branch '3.6': bpo-33718: regrtest: use "xxx then yyy" result if re-run (GH-7521) https://github.com/python/cpython/commit/07aea160ca2dd8814a28afe73e6a72c2b3cbf38a ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 12:44:39 2018 From: report at bugs.python.org (STINNER Victor) Date: Sat, 09 Jun 2018 16:44:39 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528562679.23.0.592728768989.issue33694@psf.upfronthosting.co.za> STINNER Victor added the comment: I ran attached race.py on the 3.6 branch: * 2000 packets of 16 KiB: ok * 50 packets of 16 MiB: ok It seems like Python 3.6 (at least the 3.6 development branch) doesn't have this bug. It didn't see the bug recently, so I close the issue. Python 3.6 has a different issue: pause_reading() cannot be called twice, same issue with resume_reading(). But I'm not sure that it can be called a bug. Python 3.7 allows to call these methods twice and to call these methods while closing: they just do nothing in that case. I close the issue. ---------- priority: release blocker -> resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 12:46:24 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 09 Jun 2018 16:46:24 +0000 Subject: [issue33813] Update overdue 'Deprecated ... removed in 3.x' messages Message-ID: <1528562784.89.0.592728768989.issue33813@psf.upfronthosting.co.za> New submission from Terry J. Reedy : Reported on python-list by Vincent Vande Vivre. """ In Python-3.7.0b5 we can find at the end of html/parser.py: def unescape(self, s): warnings.warn('The unescape method is deprecated and will be removed ' 'in 3.5, use html.unescape() instead.', DeprecationWarning, stacklevel=2) return unescape(s) """ At minimum, /3.5/3.8 or after/ Since we often do not remove when we say we will, perhaps 'or after' should be routine. ---------- messages: 319156 nosy: ezio.melotti, terry.reedy priority: normal severity: normal status: open title: Update overdue 'Deprecated ... removed in 3.x' messages _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 12:50:20 2018 From: report at bugs.python.org (Dan Snider) Date: Sat, 09 Jun 2018 16:50:20 +0000 Subject: [issue33814] exec() maybe has a memory leak Message-ID: <1528563020.57.0.592728768989.issue33814@psf.upfronthosting.co.za> New submission from Dan Snider : Sort of because I'm really not sure if it's working as intended or not. When I found this out today, I noticed that the documentation of `exec` has been updated since the last time I saw it, which is good, but it still leaves much to be desired. Specifically, I don't feel it does enough to explain the supposed justification for `exec`'s ability to very easily trigger a catastrophic memory leak someone unfamiliar with the code they're working on may never have the patience (if not time) to track down.. An illustration: import itertools import sys import weakref def noleak(): def outer(): from itertools import repeat as reeeee def f(): return reeeee(1, 1) return f f = outer() c = sys.getrefcount(f) return c, weakref.ref(f), sys.getrefcount(itertools.repeat) def leaks(): ns = {} co = ('from itertools import repeat as reeeee\n' 'def f(): return reeeee(1, 1)') pre = sys.getrefcount(ns) exec(co, ns) pos = sys.getrefcount(ns) return (pre, pos), weakref.ref(ns['f']), sys.getrefcount(itertools.repeat) for i in range(10): leaks() for i in range(10): noleak() Perhaps I'm wrong in thinking that this is behaving as intended and it actually is a bug. Starting from builtin_exec_impl I got as far as _PyFrame_New_NoTrack before I threw up my hands and decided this is something for someone else. If `exec` with only a `globals` argument is indeed working as intended, I still think it's ridiculous that every item added to that dict has an "extra", non-obvious reference count that is impossible to vanquish of from within Python. I intuited leaving `locals` blank will do what usually happens when functions take optional arguments, and *usually* that is *not* the triggering of a "hidden" memory leak. Perhaps the only solution here is to deprecate `exec` accepting `globals` and `locals` as optional arguments. ---------- assignee: docs at python components: Documentation, Interpreter Core messages: 319157 nosy: bup, docs at python priority: normal severity: normal status: open title: exec() maybe has a memory leak versions: Python 3.6, Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 12:54:24 2018 From: report at bugs.python.org (STINNER Victor) Date: Sat, 09 Jun 2018 16:54:24 +0000 Subject: [issue31731] [2.7] test_io hangs on x86 Gentoo Refleaks 2.7 In-Reply-To: <1507533205.95.0.213398074469.issue31731@psf.upfronthosting.co.za> Message-ID: <1528563264.67.0.592728768989.issue31731@psf.upfronthosting.co.za> STINNER Victor added the comment: AMD64 FreeBSD 10.x Shared 3.7 issue: http://buildbot.python.org/all/#/builders/124/builds/380 0:15:14 load avg: 0.18 [415/415/1] test_io crashed (Exit code 1) Timeout (0:15:00)! Thread 0x0000000806943c00 (most recent call first): File "/usr/home/buildbot/python/3.7.koobs-freebsd10/build/Lib/test/test_io.py", line 4090 in _read File "/usr/home/buildbot/python/3.7.koobs-freebsd10/build/Lib/threading.py", line 865 in run File "/usr/home/buildbot/python/3.7.koobs-freebsd10/build/Lib/threading.py", line 917 in _bootstrap_inner File "/usr/home/buildbot/python/3.7.koobs-freebsd10/build/Lib/threading.py", line 885 in _bootstrap Thread 0x0000000802006400 (most recent call first): File "/usr/home/buildbot/python/3.7.koobs-freebsd10/build/Lib/threading.py", line 1048 in _wait_for_tstate_lock File "/usr/home/buildbot/python/3.7.koobs-freebsd10/build/Lib/threading.py", line 1032 in join File "/usr/home/buildbot/python/3.7.koobs-freebsd10/build/Lib/test/test_io.py", line 4111 in check_interrupted_write File "/usr/home/buildbot/python/3.7.koobs-freebsd10/build/Lib/test/test_io.py", line 4135 in test_interrupted_write_text ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 12:57:02 2018 From: report at bugs.python.org (Eric Fahlgren) Date: Sat, 09 Jun 2018 16:57:02 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528563422.4.0.592728768989.issue33656@psf.upfronthosting.co.za> Eric Fahlgren added the comment: So maybe add the dpiAware and dpiAwareness settings to the manifest for just Windows' pythonw.exe and leave the python.exe console interpreter alone? I'm going to guess that the pythonw.exe manifest already has some settings related to its unique status that align with this. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 12:59:21 2018 From: report at bugs.python.org (STINNER Victor) Date: Sat, 09 Jun 2018 16:59:21 +0000 Subject: [issue33718] Enhance regrtest: meta-ticket for multiple changes In-Reply-To: <1527775539.21.0.682650639539.issue33718@psf.upfronthosting.co.za> Message-ID: <1528563561.81.0.592728768989.issue33718@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset b4f8bc56c1f19561b936be7347fa594ccd70d025 by Victor Stinner in branch '2.7': bpo-33718: regrtest: use "xxx then yyy" result if re-run (GH-7521) (GH-7562) https://github.com/python/cpython/commit/b4f8bc56c1f19561b936be7347fa594ccd70d025 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 13:09:48 2018 From: report at bugs.python.org (Brett Cannon) Date: Sat, 09 Jun 2018 17:09:48 +0000 Subject: [issue33375] warnings: get filename from frame.f_code.co_filename In-Reply-To: <1524847135.79.0.682650639539.issue33375@psf.upfronthosting.co.za> Message-ID: <1528564188.12.0.592728768989.issue33375@psf.upfronthosting.co.za> Brett Cannon added the comment: New changeset 3f45f5da8eb052f1b54d37086c67b7094f35b67b by Brett Cannon (Zackery Spytz) in branch 'master': bpo-33375: Fix GCC warning in Python/_warnings.c (GH-7556) https://github.com/python/cpython/commit/3f45f5da8eb052f1b54d37086c67b7094f35b67b ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 13:10:30 2018 From: report at bugs.python.org (Brett Cannon) Date: Sat, 09 Jun 2018 17:10:30 +0000 Subject: [issue33375] warnings: get filename from frame.f_code.co_filename In-Reply-To: <1524847135.79.0.682650639539.issue33375@psf.upfronthosting.co.za> Message-ID: <1528564230.99.0.592728768989.issue33375@psf.upfronthosting.co.za> Brett Cannon added the comment: Thanks everyone for making this happen! ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 13:44:10 2018 From: report at bugs.python.org (Varada) Date: Sat, 09 Jun 2018 17:44:10 +0000 Subject: [issue33815] List a = []*19 doesn't create a list with index length of 19 Message-ID: <1528566250.8.0.592728768989.issue33815@psf.upfronthosting.co.za> New submission from Varada : Hi, As per my understanding, a = [0]*19 -> creates a list of length 19 with all zeros, >>> a = [0]*19 >>> print (len(a)) 19 >>> a [18] = 2 >>> print (a) [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2] >>> In the similar way, >>> a = []*19 --> Must create a blank list with length 19. That is eventhough the contents of the list would be blank or null, I would at least expect the length of the list must 19 and the index must have got memory allocated so I can access it later ? Otherwise, if a = []*19 is going to return length as 0, and it's index cannot be accessed then what difference does it have with a = []. Aren't they the same ? There should be some significance of using a = []*19 compared to a = []. They cant the the same, can they ? >>> a = []*19 >>> a [18] = 2 Traceback (most recent call last): File "", line 1, in IndexError: list assignment index out of range >>> print (len(a)) 0 >>> >>> b = [] >>> print (len(b)) 0 >>> b [18] = 2 Traceback (most recent call last): File "", line 1, in IndexError: list assignment index out of range >>> ----- Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> ---------- components: Windows messages: 319163 nosy: paul.moore, steve.dower, tim.golden, varada86, zach.ware priority: normal severity: normal status: open title: List a = []*19 doesn't create a list with index length of 19 type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 13:44:32 2018 From: report at bugs.python.org (Eric V. Smith) Date: Sat, 09 Jun 2018 17:44:32 +0000 Subject: [issue33814] exec() maybe has a memory leak In-Reply-To: <1528563020.57.0.592728768989.issue33814@psf.upfronthosting.co.za> Message-ID: <1528566272.36.0.592728768989.issue33814@psf.upfronthosting.co.za> Eric V. Smith added the comment: It would be helpful if you could show what output you see, and how it differs from what you expect. I think you're just seeing reference cycles or some other delayed garbage collection. If you put in a gc.collect() in your loops to force a collection, you'll see the reference numbers drop back. There's no way we would deprecate globals and locals params to exec(). ---------- nosy: +eric.smith _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 13:52:30 2018 From: report at bugs.python.org (Zachary Ware) Date: Sat, 09 Jun 2018 17:52:30 +0000 Subject: [issue33815] List a = []*19 doesn't create a list with index length of 19 In-Reply-To: <1528566250.8.0.592728768989.issue33815@psf.upfronthosting.co.za> Message-ID: <1528566750.1.0.592728768989.issue33815@psf.upfronthosting.co.za> Zachary Ware added the comment: Nothing (or 0, or an empty list, string or tuple, etc.) multiplied by any positive whole number is still nothing. ---------- resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 13:52:41 2018 From: report at bugs.python.org (Zachary Ware) Date: Sat, 09 Jun 2018 17:52:41 +0000 Subject: [issue33815] List a = []*19 doesn't create a list with index length of 19 In-Reply-To: <1528566250.8.0.592728768989.issue33815@psf.upfronthosting.co.za> Message-ID: <1528566761.54.0.592728768989.issue33815@psf.upfronthosting.co.za> Change by Zachary Ware : ---------- components: -Windows _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 13:59:20 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Sat, 09 Jun 2018 17:59:20 +0000 Subject: [issue33816] New metaclass example for Data Model topic Message-ID: <1528567160.68.0.592728768989.issue33816@psf.upfronthosting.co.za> New submission from Andr?s Delfino : Since Python 3.6, when PEP 520 was accepted, class attribute definition order is preserved. That alone is sufficient to replace the example, but then 3.7 came with guaranteed dictionary insertion order. The metaclass example uses OrderedDict, what may cause confusing to new programmers, since it is not needed. I'm creating this issue in case someone who actually has used metaclasses can come up with an example, but I'll try to find/think of an example myself. ---------- assignee: docs at python components: Documentation messages: 319166 nosy: adelfino, docs at python priority: normal severity: normal status: open title: New metaclass example for Data Model topic type: enhancement versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 14:00:40 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Sat, 09 Jun 2018 18:00:40 +0000 Subject: [issue33816] New metaclass example for Data Model topic In-Reply-To: <1528567160.68.0.592728768989.issue33816@psf.upfronthosting.co.za> Message-ID: <1528567240.07.0.592728768989.issue33816@psf.upfronthosting.co.za> Andr?s Delfino added the comment: I'm talking about the example in Data Model, 3.3.3.6. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 14:16:21 2018 From: report at bugs.python.org (Eric V. Smith) Date: Sat, 09 Jun 2018 18:16:21 +0000 Subject: [issue33815] List a = []*19 doesn't create a list with index length of 19 In-Reply-To: <1528566250.8.0.592728768989.issue33815@psf.upfronthosting.co.za> Message-ID: <1528568181.1.0.592728768989.issue33815@psf.upfronthosting.co.za> Eric V. Smith added the comment: To elaborate on Zach's comment: Notice that your first example repeats 0 19 times. The second example repeats nothing 19 times. If you first example returned a list with [0] repeated 19 (that is: [[0], [0], [0], ..., [0]]), then you're correct the second example should produce a list of 19 empty lists. But that's not the case here. ---------- nosy: +eric.smith _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 14:32:27 2018 From: report at bugs.python.org (Ned Deily) Date: Sat, 09 Jun 2018 18:32:27 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528569147.91.0.592728768989.issue33738@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset ea62ce7f4fefc66bc0adba16bcd7666d5bbd5b44 by Ned Deily (Christian Tismer) in branch 'master': bpo-33738: Fix macros which contradict PEP 384 (GH-7477) https://github.com/python/cpython/commit/ea62ce7f4fefc66bc0adba16bcd7666d5bbd5b44 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 14:38:28 2018 From: report at bugs.python.org (Zachary Ware) Date: Sat, 09 Jun 2018 18:38:28 +0000 Subject: [issue28222] test_distutils fails In-Reply-To: <1474432052.98.0.601076913744.issue28222@psf.upfronthosting.co.za> Message-ID: <1528569508.64.0.592728768989.issue28222@psf.upfronthosting.co.za> Change by Zachary Ware : ---------- pull_requests: +7196 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 14:43:42 2018 From: report at bugs.python.org (Varada) Date: Sat, 09 Jun 2018 18:43:42 +0000 Subject: [issue33815] List a = []*19 doesn't create a list with index length of 19 In-Reply-To: <1528566250.8.0.592728768989.issue33815@psf.upfronthosting.co.za> Message-ID: <1528569822.85.0.592728768989.issue33815@psf.upfronthosting.co.za> Varada added the comment: Hi, Eric & Zach, Thanks for your kind response. @Eric, from your comments am I to understand that you agree with me or state that my understanding is wrong ? :) I couldn't conclude it. The point where I find difficult to convince myself is why am I not able to access a[18] when I have already kind of declared it like a = []*19. Is that really an expected behavior. I agree with Zak, that nothing * anything = nothing. But, in that case why we even allow that command to work. It leads us think that it will create an empty list 19 times whereas it actually doesn't. It's kind of misleading don't you think. Many Thanks in advance Eric and Zak for your time on this, ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 14:47:47 2018 From: report at bugs.python.org (Zachary Ware) Date: Sat, 09 Jun 2018 18:47:47 +0000 Subject: [issue28222] test_distutils fails In-Reply-To: <1474432052.98.0.601076913744.issue28222@psf.upfronthosting.co.za> Message-ID: <1528570067.45.0.592728768989.issue28222@psf.upfronthosting.co.za> Change by Zachary Ware : ---------- versions: +Python 2.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 14:50:25 2018 From: report at bugs.python.org (Zachary Ware) Date: Sat, 09 Jun 2018 18:50:25 +0000 Subject: [issue28222] test_distutils fails In-Reply-To: <1474432052.98.0.601076913744.issue28222@psf.upfronthosting.co.za> Message-ID: <1528570225.84.0.592728768989.issue28222@psf.upfronthosting.co.za> Zachary Ware added the comment: New changeset f6645ef027762adbb159a3b6d64a15538672eaa2 by Zachary Ware in branch '2.7': bpo-28222: Don't fail if pygments is not available (GH-7564) https://github.com/python/cpython/commit/f6645ef027762adbb159a3b6d64a15538672eaa2 ---------- nosy: +zach.ware _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 15:08:09 2018 From: report at bugs.python.org (Zachary Ware) Date: Sat, 09 Jun 2018 19:08:09 +0000 Subject: [issue31120] [2.7] Python 64 bit _ssl compile fails due missing buildinf_amd64.h In-Reply-To: <1501851770.24.0.114310480088.issue31120@psf.upfronthosting.co.za> Message-ID: <1528571289.37.0.592728768989.issue31120@psf.upfronthosting.co.za> Change by Zachary Ware : ---------- resolution: -> out of date stage: needs patch -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 15:14:56 2018 From: report at bugs.python.org (Stefan Behnel) Date: Sat, 09 Jun 2018 19:14:56 +0000 Subject: [issue33815] List a = []*19 doesn't create a list with index length of 19 In-Reply-To: <1528566250.8.0.592728768989.issue33815@psf.upfronthosting.co.za> Message-ID: <1528571696.1.0.592728768989.issue33815@psf.upfronthosting.co.za> Stefan Behnel added the comment: You misunderstood what the code is doing, and the response that you got indicates that the bug tracker is not the right place to discuss this misunderstanding. If you want to discuss this further, please ask on the Python mailing list (python-list at python.org). ---------- nosy: +scoder _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 15:35:04 2018 From: report at bugs.python.org (Eric V. Smith) Date: Sat, 09 Jun 2018 19:35:04 +0000 Subject: [issue33815] List a = []*19 doesn't create a list with index length of 19 In-Reply-To: <1528566250.8.0.592728768989.issue33815@psf.upfronthosting.co.za> Message-ID: <1528572904.2.0.592728768989.issue33815@psf.upfronthosting.co.za> Eric V. Smith added the comment: Agreed with Stefan about this not being appropriate for the bug tracker. And I'm saying that I don't agree with you. There's no bug here. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 15:36:44 2018 From: report at bugs.python.org (Ned Deily) Date: Sat, 09 Jun 2018 19:36:44 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528573004.61.0.592728768989.issue33738@psf.upfronthosting.co.za> Ned Deily added the comment: As I noted on PR 7477, I decided to merge the change to master so it would get some buildbot exposure before deciding whether to backport for 3.7.0rc1 which is coming up shortly. I notice that the change introduced a compiler warning. Should that be fixed? ..\Objects\exceptions.c(349): warning C4090: 'return': different 'const' qualifiers [D:\buildarea\3.x.ware-win81-release\build\PCbuild\pythoncore.vcxproj] http://buildbot.python.org/all/#/builders/12/builds/960 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 15:51:35 2018 From: report at bugs.python.org (Yury Selivanov) Date: Sat, 09 Jun 2018 19:51:35 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1528562679.23.0.592728768989.issue33694@psf.upfronthosting.co.za> Message-ID: <2AE671A1-4A20-4E51-B855-69061FA7CED4@gmail.com> Yury Selivanov added the comment: pause_reading and resume_reading became idempotent only in 3.7 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 15:54:22 2018 From: report at bugs.python.org (Raymond Hettinger) Date: Sat, 09 Jun 2018 19:54:22 +0000 Subject: [issue33816] New metaclass example for Data Model topic In-Reply-To: <1528567160.68.0.592728768989.issue33816@psf.upfronthosting.co.za> Message-ID: <1528574062.29.0.592728768989.issue33816@psf.upfronthosting.co.za> Raymond Hettinger added the comment: Probably, the entire section with the OrderedClass example should be removed. Once class dicts became ordered by default, the __prepare__ attribute lost its principal motivating use case. ---------- nosy: +rhettinger _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 16:00:54 2018 From: report at bugs.python.org (Raymond Hettinger) Date: Sat, 09 Jun 2018 20:00:54 +0000 Subject: [issue33462] reversible dict In-Reply-To: <1526009418.33.0.682650639539.issue33462@psf.upfronthosting.co.za> Message-ID: <1528574454.08.0.592728768989.issue33462@psf.upfronthosting.co.za> Raymond Hettinger added the comment: > Would you try python_startup and python_startup_nosite benchmark That seems entirely unnecessary. If adding __reversed__ has any effect on the rest of the build, that is pure random noise that can be ignored. It is normal to get small improvements or detriments that vary from compiler to compiler, os to os, etc. Our normal practice is to ignore those and not optimize for random or hard-to-control compiler idiosyncrasies which appear and disappear as we add methods or as compilers get updated. ---------- nosy: +tim.peters _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 16:01:51 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Sat, 09 Jun 2018 20:01:51 +0000 Subject: [issue33816] New metaclass example for Data Model topic In-Reply-To: <1528567160.68.0.592728768989.issue33816@psf.upfronthosting.co.za> Message-ID: <1528574511.66.0.592728768989.issue33816@psf.upfronthosting.co.za> Andr?s Delfino added the comment: To what section are you refering by "the entire section"? On a side note: I'll make a PR to remove the example. IMHO, there should be an example to give some idea of what a metaclass can do, but the current example is no longer useful and it's confusing because of how dicts now work. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 16:06:49 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Sat, 09 Jun 2018 20:06:49 +0000 Subject: [issue33816] New metaclass example for Data Model topic In-Reply-To: <1528567160.68.0.592728768989.issue33816@psf.upfronthosting.co.za> Message-ID: <1528574809.24.0.592728768989.issue33816@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- keywords: +patch pull_requests: +7197 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 16:25:17 2018 From: report at bugs.python.org (Chris Eykamp) Date: Sat, 09 Jun 2018 20:25:17 +0000 Subject: [issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition In-Reply-To: <1471355745.98.0.805545529346.issue27777@psf.upfronthosting.co.za> Message-ID: <1528575917.62.0.592728768989.issue27777@psf.upfronthosting.co.za> Chris Eykamp added the comment: I've been experiencing the same issue, which is triggered in the exception handling of web.py. Bert's proposed fix, adding the zero byte check (if self._binary_file or self.length >= 0:) addresses the issue I'm seeing (tested on 3.5, it's what's available where I can reproduce the error). This issue seems to be languishing. Is there any way we could push this forward, even if it doesn't address every problem with the lib? ---------- nosy: +watusimoto _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 16:36:16 2018 From: report at bugs.python.org (Tey) Date: Sat, 09 Jun 2018 20:36:16 +0000 Subject: [issue33817] PyString_FromFormatV() fails to build empty strings Message-ID: <1528576576.56.0.592728768989.issue33817@psf.upfronthosting.co.za> New submission from Tey : Making PyString_FromFormatV() build an empty string on 2.7 will fail and raise the following error: SystemError: Objects/stringobject.c:3903: bad argument to internal function It does not matter if format is empty or not (e.g., both PyString_FromFormat("") and PyString_FromFormat("%s", "")). The exception is raised from _PyString_Resize() (called at the end of PyString_FromFormatV()), because the string given to that method has a ref count different than 1. This is expected for empty strings, because PyString_FromStringAndSize() returns a reference to when is 0. A possible fix would be to prevent the call to _PyString_Resize() from PyString_FromFormatV() if is equal to , or if there is no need to resize the string. Python 3 versions before 3.6 might be impacted as well through PyBytes_FromFormatV() (cannot check). The following code can be used to trigger the bug: static int dobug(const char *fmt, ...) { va_list args; va_start(args, fmt); PyObject *str = PyString_FromFormatV(fmt, args); va_end(args); if(str == NULL) { fprintf(stderr, "Error: PyString_FromFormatV(%s) returned NULL\n", fmt); return -1; } Py_DECREF(str); return 0; } static PyObject* bug(PyObject *self) { fprintf(stderr, "dobug(\"\") => %d\n", dobug("")); fprintf(stderr, "dobug(\"%%s\", \"\") => %d\n", dobug("%s", "")); if(PyErr_Occurred()) return NULL; Py_RETURN_NONE; } ---------- components: Interpreter Core messages: 319180 nosy: Tey priority: normal severity: normal status: open title: PyString_FromFormatV() fails to build empty strings type: behavior versions: Python 2.7, Python 3.4, Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 17:59:05 2018 From: report at bugs.python.org (Ned Deily) Date: Sat, 09 Jun 2018 21:59:05 +0000 Subject: [issue32493] UUID Module - FreeBSD build failure In-Reply-To: <1515092270.67.0.467229070634.issue32493@psf.upfronthosting.co.za> Message-ID: <1528581545.27.0.592728768989.issue32493@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 20cd5c6e21559f35feded5b3cfa9069a281d4325 by Ned Deily (Michael Felt) in branch '3.7': bpo-32493: Correct test for uuid_enc_be availability in configure.ac. (GH-7511) https://github.com/python/cpython/commit/20cd5c6e21559f35feded5b3cfa9069a281d4325 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 18:04:14 2018 From: report at bugs.python.org (Ned Deily) Date: Sat, 09 Jun 2018 22:04:14 +0000 Subject: [issue32493] UUID Module - FreeBSD build failure In-Reply-To: <1515092270.67.0.467229070634.issue32493@psf.upfronthosting.co.za> Message-ID: <1528581854.91.0.592728768989.issue32493@psf.upfronthosting.co.za> Change by Ned Deily : ---------- pull_requests: +7198 stage: resolved -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 18:20:00 2018 From: report at bugs.python.org (Ned Deily) Date: Sat, 09 Jun 2018 22:20:00 +0000 Subject: [issue32493] UUID Module - FreeBSD build failure In-Reply-To: <1515092270.67.0.467229070634.issue32493@psf.upfronthosting.co.za> Message-ID: <1528582800.0.0.592728768989.issue32493@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset ced0adb2638e4c02945bfa82e15595918eef74f1 by Ned Deily in branch 'master': bpo-32493: Correct test for uuid_enc_be availability in configure.ac. (GH-7511) (GH-7567) https://github.com/python/cpython/commit/ced0adb2638e4c02945bfa82e15595918eef74f1 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 18:46:36 2018 From: report at bugs.python.org (Ned Deily) Date: Sat, 09 Jun 2018 22:46:36 +0000 Subject: [issue32493] UUID Module - FreeBSD build failure In-Reply-To: <1515092270.67.0.467229070634.issue32493@psf.upfronthosting.co.za> Message-ID: <1528584396.17.0.592728768989.issue32493@psf.upfronthosting.co.za> Ned Deily added the comment: As noted on PR 7511 and PR 7567, I have merged Michael's configure.ac fixes for testing for uuid_enc_be availability (independent of platform) that were incorrect in earlier commits for this issue. Merged for 3.7.0rc1 and master (3.8). Thanks, everyone! ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 19:03:38 2018 From: report at bugs.python.org (Steve Dower) Date: Sat, 09 Jun 2018 23:03:38 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528585418.72.0.592728768989.issue33656@psf.upfronthosting.co.za> Steve Dower added the comment: I'm okay to add it to the manifest for both in 3.8, along with a What's New entry. High DPI screens are very common though, and adding it to existing releases won't allow existing apps or frameworks to account for the change. I don't want non-DPI aware apps to suddenly become unreadably small with a minor runtime update. Backporting Python-specific docs is fine. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 19:26:22 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 09 Jun 2018 23:26:22 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528586782.67.0.592728768989.issue33656@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Steve, I would like to add the SetProcessDpiAwareness(1) call to IDLE tomorrow, for 3.7.0 and 3.6.6. Do I need to make it an avoidable option? Can it hurt people on some machines? It seems to me that if tk is doing dpi scaling, then it should always be correct to tell Windows that it is doing so. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 19:49:42 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 09 Jun 2018 23:49:42 +0000 Subject: [issue33766] Grammar Incongruence In-Reply-To: <1528085120.11.0.592728768989.issue33766@psf.upfronthosting.co.za> Message-ID: <1528588182.54.0.592728768989.issue33766@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset 0aa17ee6a76df0946d42e7657a501f1862065a22 by Terry Jan Reedy (Ammar Askar) in branch 'master': bpo-33766: Document that end of file or string is a newline (GH-7383) https://github.com/python/cpython/commit/0aa17ee6a76df0946d42e7657a501f1862065a22 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 19:50:58 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 09 Jun 2018 23:50:58 +0000 Subject: [issue33766] Grammar Incongruence In-Reply-To: <1528085120.11.0.592728768989.issue33766@psf.upfronthosting.co.za> Message-ID: <1528588258.45.0.592728768989.issue33766@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7199 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 19:52:50 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 09 Jun 2018 23:52:50 +0000 Subject: [issue33766] Grammar Incongruence In-Reply-To: <1528085120.11.0.592728768989.issue33766@psf.upfronthosting.co.za> Message-ID: <1528588370.33.0.592728768989.issue33766@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7200 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 19:55:28 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 09 Jun 2018 23:55:28 +0000 Subject: [issue33766] Grammar Incongruence In-Reply-To: <1528085120.11.0.592728768989.issue33766@psf.upfronthosting.co.za> Message-ID: <1528588528.52.0.592728768989.issue33766@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7201 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 19:55:29 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 09 Jun 2018 23:55:29 +0000 Subject: [issue33766] Grammar Incongruence In-Reply-To: <1528085120.11.0.592728768989.issue33766@psf.upfronthosting.co.za> Message-ID: <1528588529.05.0.592728768989.issue33766@psf.upfronthosting.co.za> miss-islington added the comment: New changeset f01b951a0e70f36ca2a3caa043f89a5277bb0bb0 by Miss Islington (bot) in branch '2.7': bpo-33766: Document that end of file or string is a newline (GH-7383) https://github.com/python/cpython/commit/f01b951a0e70f36ca2a3caa043f89a5277bb0bb0 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 20:07:36 2018 From: report at bugs.python.org (Steven D'Aprano) Date: Sun, 10 Jun 2018 00:07:36 +0000 Subject: [issue33814] exec() maybe has a memory leak In-Reply-To: <1528563020.57.0.592728768989.issue33814@psf.upfronthosting.co.za> Message-ID: <1528589256.91.0.592728768989.issue33814@psf.upfronthosting.co.za> Steven D'Aprano added the comment: Perhaps a little less self-righteous anger and a little more detail on this alleged bug would be appropriate. Quote: I still think it's ridiculous that every item added to that dict has an "extra", non-obvious reference count that is impossible to vanquish of from within Python. Have you demonstrated that this is the case? How do you know that is what is happening? Quote: I intuited leaving `locals` blank will do what usually happens when functions take optional arguments, and *usually* that is *not* the triggering of a "hidden" memory leak. Have you demonstrated a memory leak? What is your intuition for what leaving locals blank should do? Did you try running the code without leaving locals blank? Quote: the supposed justification for `exec`'s ability to very easily trigger a catastrophic memory leak I wouldn't call your example code "very easily", nor do I know what "supposed justification" you are referring to. I read the docs for exec here https://docs.python.org/3/library/functions.html#exec and I see nothing justifying memory leaks or even mentioning them. Are you reading some other documentation? Is this the shortest, simplest demonstration of the leak you can come up with? What output do you get and what output did you expect? If it necessary for repeat to be imported under the name "reeeee" over and over again? What do weakrefs have to do with this? You call this a "catastrophic" memory leak, I don't know whether this is mere hyperbole or something that will lock up or crash my computer when I run it. ---------- nosy: +steven.daprano _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 20:11:37 2018 From: report at bugs.python.org (Lisa Guo) Date: Sun, 10 Jun 2018 00:11:37 +0000 Subject: [issue33811] asyncio accepting connection limit In-Reply-To: <1528498427.18.0.592728768989.issue33811@psf.upfronthosting.co.za> Message-ID: <1528589497.32.0.592728768989.issue33811@psf.upfronthosting.co.za> Lisa Guo added the comment: One rough idea would be like this: https://github.com/python/cpython/compare/master...lguo2020:fix-issue-33811?expand=1. Another option is to associate it with the loop: loop.set_max_accept(2) and then later self._loop._start_serving(....., max_accept=self._loop._max_accept) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 20:25:02 2018 From: report at bugs.python.org (Steven D'Aprano) Date: Sun, 10 Jun 2018 00:25:02 +0000 Subject: [issue33814] exec() maybe has a memory leak In-Reply-To: <1528563020.57.0.592728768989.issue33814@psf.upfronthosting.co.za> Message-ID: <1528590302.99.0.592728768989.issue33814@psf.upfronthosting.co.za> Steven D'Aprano added the comment: I decided to risk this "catastrophic" leak, and ran this: py> x = leaks() py> x ((2, 3), , 24) py> import gc py> gc.collect() 22 py> x ((2, 3), , 24) so I think Eric is correct, it is just a garbage collection issue. Possibly a bug, possibly normal behaviour. I don't think it is a documentation bug, if it is a bug at all it might be a garbage collection bug. But I really don't know, because I don't understand what Dan thinks is the memory leak here or why it happens. I *think* Dan might be referring to the fact that each time you call leaks(), there's one extra reference to itertools.repeat. Dan, if you can confirm that's the leak you are referring to, we would have a better chance of deciding whether it is a bug and if so if it is specific to exec. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 20:28:18 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sun, 10 Jun 2018 00:28:18 +0000 Subject: [issue33766] Grammar Incongruence In-Reply-To: <1528085120.11.0.592728768989.issue33766@psf.upfronthosting.co.za> Message-ID: <1528590498.43.0.592728768989.issue33766@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 20:46:08 2018 From: report at bugs.python.org (Tim Peters) Date: Sun, 10 Jun 2018 00:46:08 +0000 Subject: [issue33814] exec() maybe has a memory leak In-Reply-To: <1528563020.57.0.592728768989.issue33814@psf.upfronthosting.co.za> Message-ID: <1528591568.82.0.592728768989.issue33814@psf.upfronthosting.co.za> Tim Peters added the comment: Dan, your bug report is pretty much incoherent ;-) This standard Stack Overflow advice applies here too: https://stackoverflow.com/help/mcve Guessing your complaint is that: sys.getrefcount(itertools.repeat) keeps increasing by 1 across calls to `leaks()`, then as Eric said it will drop back to its original value after a `gc.collect()` call. Steven, best I can tell weakrefs have nothing to do with this. The refcount on itertools.repeat increases if weakref.ref(ns['f']), is deleted. It's a simple reference cycle. That is ns['f'].__globals__ is ns is True, so `ns` can't be collected via reference counting, and so `ns` also holds a reference to the irrelevantly renamed `itertools.repeat` too until cyclic gc can detect the trash cycle. Dan, if that's _not_ what you're complaining about, please follow the advice at the top and add a focused, minimal example of what you are talking about. In the meantime, I'm closing this as not-a-bug. ---------- nosy: +tim.peters resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 21:30:26 2018 From: report at bugs.python.org (Steve Dower) Date: Sun, 10 Jun 2018 01:30:26 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528594226.38.0.592728768989.issue33656@psf.upfronthosting.co.za> Steve Dower added the comment: Yep, that should be fine. If you want to add it to the winapi module rather than use ctypes that's fine too. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 21:43:55 2018 From: report at bugs.python.org (Martin Panter) Date: Sun, 10 Jun 2018 01:43:55 +0000 Subject: [issue33762] temp file isn't IOBase In-Reply-To: <1528059185.23.0.592728768989.issue33762@psf.upfronthosting.co.za> Message-ID: <1528595035.69.0.592728768989.issue33762@psf.upfronthosting.co.za> Martin Panter added the comment: I think it is an implementation detail whether the result subclasses IOBase or just implements its API. Why do you want to check the base class, and why IOBase in particular, rather than BufferedIOBase, RawIOBase, or TextIOBase? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 22:01:31 2018 From: report at bugs.python.org (INADA Naoki) Date: Sun, 10 Jun 2018 02:01:31 +0000 Subject: [issue33462] reversible dict In-Reply-To: <1526009418.33.0.682650639539.issue33462@psf.upfronthosting.co.za> Message-ID: <1528596091.32.0.592728768989.issue33462@psf.upfronthosting.co.za> INADA Naoki added the comment: > If adding __reversed__ has any effect on the rest of the build, that is pure random noise that can be ignored. Although initialization cost of each one type is small, time for _Py_Ready() is not negligible. And ABC.register() too. Import time for _collections_abc is not negligible too. I agree that cost of adding three builtin types and register them to ABC will be negligible or small enough. But I think it's good to know before merge. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 23:17:24 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Sun, 10 Jun 2018 03:17:24 +0000 Subject: [issue33812] Different behavior between datetime.py and its C accelerator In-Reply-To: <1528502888.29.0.592728768989.issue33812@psf.upfronthosting.co.za> Message-ID: <1528600644.74.0.592728768989.issue33812@psf.upfronthosting.co.za> Change by Alexander Belopolsky : ---------- keywords: +patch pull_requests: +7202 stage: needs patch -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 23:45:15 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Sun, 10 Jun 2018 03:45:15 +0000 Subject: [issue33812] Different behavior between datetime.py and its C accelerator In-Reply-To: <1528502888.29.0.592728768989.issue33812@psf.upfronthosting.co.za> Message-ID: <1528602315.93.0.592728768989.issue33812@psf.upfronthosting.co.za> Alexander Belopolsky added the comment: Tim, given that I've updated the documentation, should we treat this as a bug fix or a feature? Note that the type check is definitely a bug-fix (if not a security issue), but I clearly had a wrong definition of "naive" in mind when I was modifying astimezone to support naive instances. In any case, it looks like a news entry is in order. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 9 23:51:20 2018 From: report at bugs.python.org (Tim Peters) Date: Sun, 10 Jun 2018 03:51:20 +0000 Subject: [issue33812] Different behavior between datetime.py and its C accelerator In-Reply-To: <1528502888.29.0.592728768989.issue33812@psf.upfronthosting.co.za> Message-ID: <1528602680.84.0.592728768989.issue33812@psf.upfronthosting.co.za> Tim Peters added the comment: I'd call it a bug fix, but I'm really not anal about what people call things ;-) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 00:55:37 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 10 Jun 2018 04:55:37 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528606537.14.0.592728768989.issue33738@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: You are right Christian. I missed that PyTypeObject is opaque if Py_LIMITED_API is defined. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 01:23:38 2018 From: report at bugs.python.org (Dong-hee Na) Date: Sun, 10 Jun 2018 05:23:38 +0000 Subject: [issue33805] dataclasses: replace() give poor error message if using InitVar In-Reply-To: <1528447899.5.0.592728768989.issue33805@psf.upfronthosting.co.za> Message-ID: <1528608218.75.0.592728768989.issue33805@psf.upfronthosting.co.za> Dong-hee Na added the comment: @eric.smith Can I take a look this issue? ---------- nosy: +corona10 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 02:14:15 2018 From: report at bugs.python.org (INADA Naoki) Date: Sun, 10 Jun 2018 06:14:15 +0000 Subject: [issue33462] reversible dict In-Reply-To: <1526009418.33.0.682650639539.issue33462@psf.upfronthosting.co.za> Message-ID: <1528611255.18.0.592728768989.issue33462@psf.upfronthosting.co.za> INADA Naoki added the comment: I confirmed the cost is negligible. python_startup_no_site ====================== Mean +- std dev: [master] 7.31 ms +- 0.39 ms -> [reverse] 7.41 ms +- 0.44 ms: 1.01x slower (+1%) Mean +- std dev: [master] 7.31 ms +- 0.39 ms -> [register] 7.20 ms +- 0.28 ms: 1.01x faster (-1%) Benchmark hidden because not significant (1): python_startup "register" is "reverse" + following patch: diff --git a/Lib/_collections_abc.py b/Lib/_collections_abc.py index dbe30dff1f..28a7e2586c 100644 --- a/Lib/_collections_abc.py +++ b/Lib/_collections_abc.py @@ -280,6 +280,9 @@ Iterator.register(bytearray_iterator) Iterator.register(dict_keyiterator) Iterator.register(dict_valueiterator) Iterator.register(dict_itemiterator) +Iterator.register(type(iter(reversed({}.keys())))) +Iterator.register(type(iter(reversed({}.values())))) +Iterator.register(type(iter(reversed({}.items())))) Iterator.register(list_iterator) Iterator.register(list_reverseiterator) Iterator.register(range_iterator) @@ -306,6 +309,12 @@ class Reversible(Iterable): return NotImplemented +Reversible.register(dict) +Reversible.register(type({}.keys())) +Reversible.register(type({}.values())) +Reversible.register(type({}.items())) + + class Generator(Iterator): __slots__ = () ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 02:15:29 2018 From: report at bugs.python.org (Dong-hee Na) Date: Sun, 10 Jun 2018 06:15:29 +0000 Subject: [issue33805] dataclasses: replace() give poor error message if using InitVar In-Reply-To: <1528447899.5.0.592728768989.issue33805@psf.upfronthosting.co.za> Message-ID: <1528611329.37.0.592728768989.issue33805@psf.upfronthosting.co.za> Change by Dong-hee Na : ---------- keywords: +patch pull_requests: +7203 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 02:35:52 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 10 Jun 2018 06:35:52 +0000 Subject: [issue33818] Make PyExceptionClass_Name returning a const string Message-ID: <1528612552.69.0.592728768989.issue33818@psf.upfronthosting.co.za> New submission from Serhiy Storchaka : PyExceptionClass_Name() returns just the tp_name field, a pointer to immutable char array. tp_name had type "char *" in old Python versions, but it was changed to "const char *" in revision af68c874a6803b4e90b616077a602c0593719a1d. But PyExceptionClass_Name() still casts tp_name to "char *". I think it would be better to return "const char *". It would be a breaking change, but seems most third-party code uses the result of PyExceptionClass_Name() in context where "const char *" is acceptable [1], and it is easy to add "const" in a variable declaration if the result is assigned to a variable (as in both cases of using PyExceptionClass_Name() in the CPython core). Since several similar breaking changes were made in 3.7 (isee ssue28761 and issue28769), it would be nice to made this change in 3.7 too. But it may be too late for 3.7. [1] https://github.com/search?q=PyExceptionClass_Name&type=Code ---------- components: Interpreter Core messages: 319200 nosy: ned.deily, serhiy.storchaka priority: normal severity: normal status: open title: Make PyExceptionClass_Name returning a const string type: enhancement versions: Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 02:36:24 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 10 Jun 2018 06:36:24 +0000 Subject: [issue33818] Make PyExceptionClass_Name returning a const string In-Reply-To: <1528612552.69.0.592728768989.issue33818@psf.upfronthosting.co.za> Message-ID: <1528612584.63.0.592728768989.issue33818@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: PyExceptionClass_Name() returns just the tp_name field, a pointer to immutable char array. tp_name had type "char *" in old Python versions, but it was changed to "const char *" in revision af68c874a6803b4e90b616077a602c0593719a1d. But PyExceptionClass_Name() still casts tp_name to "char *". I think it would be better to return "const char *". It would be a breaking change, but seems most third-party code uses the result of PyExceptionClass_Name() in context where "const char *" is acceptable [1], and it is easy to add "const" in a variable declaration if the result is assigned to a variable (as in both cases of using PyExceptionClass_Name() in the CPython core). Since several similar breaking changes were made in 3.7 (see issue28761 and issue28769), it would be nice to made this change in 3.7 too. But it may be too late for 3.7. [1] https://github.com/search?q=PyExceptionClass_Name&type=Code ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 02:36:34 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 10 Jun 2018 06:36:34 +0000 Subject: [issue33818] Make PyExceptionClass_Name returning a const string In-Reply-To: <1528612584.63.0.592728768989.issue33818@psf.upfronthosting.co.za> Message-ID: <1528612594.11.0.592728768989.issue33818@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- Removed message: https://bugs.python.org/msg319200 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 02:45:05 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 10 Jun 2018 06:45:05 +0000 Subject: [issue33818] Make PyExceptionClass_Name returning a const string In-Reply-To: <1528612584.63.0.592728768989.issue33818@psf.upfronthosting.co.za> Message-ID: <1528613105.69.0.592728768989.issue33818@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- keywords: +patch pull_requests: +7204 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 02:58:13 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 10 Jun 2018 06:58:13 +0000 Subject: [issue33817] PyString_FromFormatV() fails to build empty strings In-Reply-To: <1528576576.56.0.592728768989.issue33817@psf.upfronthosting.co.za> Message-ID: <1528613893.45.0.592728768989.issue33817@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka versions: -Python 3.4, Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 03:00:27 2018 From: report at bugs.python.org (Tal Einat) Date: Sun, 10 Jun 2018 07:00:27 +0000 Subject: [issue27397] email.message.Message.get_payload(decode=True) raises AssertionError that "should never happen" In-Reply-To: <1467003168.77.0.181135273122.issue27397@psf.upfronthosting.co.za> Message-ID: <1528614027.38.0.592728768989.issue27397@psf.upfronthosting.co.za> Change by Tal Einat : ---------- keywords: +patch pull_requests: +7205 stage: needs patch -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 03:01:53 2018 From: report at bugs.python.org (Tal Einat) Date: Sun, 10 Jun 2018 07:01:53 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528614113.08.0.592728768989.issue33770@psf.upfronthosting.co.za> Tal Einat added the comment: New changeset 1b85c71a2136d3fa6a1da05b27b1fe4e4b8ee45e by Tal Einat in branch 'master': bpo-33770: improve base64 exception message for encoded inputs of invalid length (#7416) https://github.com/python/cpython/commit/1b85c71a2136d3fa6a1da05b27b1fe4e4b8ee45e ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 03:10:31 2018 From: report at bugs.python.org (Tal Einat) Date: Sun, 10 Jun 2018 07:10:31 +0000 Subject: [issue33748] test_discovery_failed_discovery in test_unittest modifies sys.path In-Reply-To: <1528027393.44.0.592728768989.issue33748@psf.upfronthosting.co.za> Message-ID: <1528614631.13.0.592728768989.issue33748@psf.upfronthosting.co.za> Tal Einat added the comment: New changeset 4ab4695388fb9ec03a14d93e90ce50d832a920ec by Tal Einat in branch 'master': bpo-33748: fix tests altering sys.path and sys.modules (GH-7433) https://github.com/python/cpython/commit/4ab4695388fb9ec03a14d93e90ce50d832a920ec ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 04:03:42 2018 From: report at bugs.python.org (Dong-hee Na) Date: Sun, 10 Jun 2018 08:03:42 +0000 Subject: [issue32400] inspect.isdatadescriptor false negative In-Reply-To: <1513882624.99.0.213398074469.issue32400@psf.upfronthosting.co.za> Message-ID: <1528617822.34.0.592728768989.issue32400@psf.upfronthosting.co.za> Dong-hee Na added the comment: @Serhiy Storchaka This issue can be closed due to PR 1959 ---------- keywords: +patch nosy: +corona10, serhiy.storchaka pull_requests: +7206 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 04:03:55 2018 From: report at bugs.python.org (Dong-hee Na) Date: Sun, 10 Jun 2018 08:03:55 +0000 Subject: [issue32400] inspect.isdatadescriptor false negative In-Reply-To: <1513882624.99.0.213398074469.issue32400@psf.upfronthosting.co.za> Message-ID: <1528617835.18.0.592728768989.issue32400@psf.upfronthosting.co.za> Change by Dong-hee Na : ---------- pull_requests: -7206 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 04:29:48 2018 From: report at bugs.python.org (Tal Einat) Date: Sun, 10 Jun 2018 08:29:48 +0000 Subject: [issue33741] UnicodeEncodeError onsmtplib.login(MAIL_USER, MAIL_PASSWORD) In-Reply-To: <1527979236.47.0.592728768989.issue33741@psf.upfronthosting.co.za> Message-ID: <1528619388.26.0.592728768989.issue33741@psf.upfronthosting.co.za> Tal Einat added the comment: Is this a bug? Are passwords containing non-ASCII characters supposed to be supported? If so, which encoding should be assumed for the password? Since it needs to be base64-encoded, it must be encoded into bytes. ---------- nosy: +taleinat _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 07:20:46 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Sun, 10 Jun 2018 11:20:46 +0000 Subject: [issue32561] Add API to io objects for non-blocking reads/writes In-Reply-To: <1516068442.29.0.467229070634.issue32561@psf.upfronthosting.co.za> Message-ID: <1528629646.06.0.592728768989.issue32561@psf.upfronthosting.co.za> Giampaolo Rodola' added the comment: os.preadv() and os.pwritev() are great but to my understanding one essential piece is still missing in order to effectively do non-blocking file IO and avoid using a thread pool: being notified when the file fd is readable/writable. select() and epoll() on Linux are not able to do that (according to them regular fds are always "ready"). As such one would repeatedly get EAGAIN and hog CPU resources. Am I missing something? ---------- nosy: +giampaolo.rodola _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 07:24:32 2018 From: report at bugs.python.org (Berker Peksag) Date: Sun, 10 Jun 2018 11:24:32 +0000 Subject: [issue32400] inspect.isdatadescriptor false negative In-Reply-To: <1513882624.99.0.213398074469.issue32400@psf.upfronthosting.co.za> Message-ID: <1528629872.06.0.592728768989.issue32400@psf.upfronthosting.co.za> Change by Berker Peksag : ---------- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Contradiction in definition of "data descriptor" between (dotted lookup behavior/datamodel documentation) and (inspect lib/descriptor how-to) _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 07:29:59 2018 From: report at bugs.python.org (STINNER Victor) Date: Sun, 10 Jun 2018 11:29:59 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528630199.98.0.592728768989.issue33738@psf.upfronthosting.co.za> STINNER Victor added the comment: It seems like the change broke compilation on Windows, but I'm not sure: http://buildbot.python.org/all/#/builders/12/builds/959 (Link target) -> python3.def : error LNK2001: unresolved external symbol PyExceptionClass_Name [D:\buildarea\3.x.ware-win81-release\build\PCbuild\python3dll.vcxproj] python3.def : error LNK2001: unresolved external symbol PyIndex_Check [D:\buildarea\3.x.ware-win81-release\build\PCbuild\python3dll.vcxproj] python3.def : error LNK2001: unresolved external symbol PyIter_Check [D:\buildarea\3.x.ware-win81-release\build\PCbuild\python3dll.vcxproj] D:\buildarea\3.x.ware-win81-release\build\PCbuild\amd64\python3.lib : fatal error LNK1120: 3 unresolved externals [D:\buildarea\3.x.ware-win81-release\build\PCbuild\python3dll.vcxproj] On the buildbot-status, Ned Deily wrote: Build failure caused by known failure to rebuild files during compile phase. Worked around by clearing out stale files. (I *think* there is still an open issue on this.) Ned: you are thinking at bpo-33614, commit e97ba4c690613d734843db218aeedce2f0e5937f? ---------- nosy: +vstinner _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 07:30:36 2018 From: report at bugs.python.org (Martin Panter) Date: Sun, 10 Jun 2018 11:30:36 +0000 Subject: [issue33687] uu.py calls os.path.chmod which doesn't exist In-Reply-To: <1527631327.84.0.682650639539.issue33687@psf.upfronthosting.co.za> Message-ID: <1528630236.01.0.592728768989.issue33687@psf.upfronthosting.co.za> Martin Panter added the comment: What is your use case, Poul-Henning? It looks like the module has never set the file mode, at least since it was added to Python in 1994. I suggest just remove the dead code and fix the documentation. At least you shouldn?t make this change in bug fix releases. It is just as likely to break people?s code as fix it. If you do want to change the behaviour, I suggest using ?os.open? to set the mode when the file is created. Otherwise you risk errors and messing up the filesystem when using special files e.g. uu.decode(..., "/dev/null"). ---------- nosy: +martin.panter _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 07:51:01 2018 From: report at bugs.python.org (STINNER Victor) Date: Sun, 10 Jun 2018 11:51:01 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528631461.44.0.592728768989.issue33694@psf.upfronthosting.co.za> STINNER Victor added the comment: > pause_reading and resume_reading became idempotent only in 3.7 Do you consider that it's a new feature or a bugfix? Should we backport this change to 3.6? Currently, race.py fails with an error because of the 3.6 behaviour. (I modified asyncio to be able to run race.py on 3.6.) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 07:52:47 2018 From: report at bugs.python.org (STINNER Victor) Date: Sun, 10 Jun 2018 11:52:47 +0000 Subject: [issue32493] UUID Module - FreeBSD build failure In-Reply-To: <1515092270.67.0.467229070634.issue32493@psf.upfronthosting.co.za> Message-ID: <1528631567.38.0.592728768989.issue32493@psf.upfronthosting.co.za> STINNER Victor added the comment: > As noted on PR 7511 and PR 7567, I have merged Michael's configure.ac fixes for testing for uuid_enc_be availability (independent of platform) that were incorrect in earlier commits for this issue. Merged for 3.7.0rc1 and master (3.8). Thanks, everyone! Thanks you Ned and Michael. Sorry for the confusion. I was first confused that the fix for master added a lot of code using ctypes. The final fix is the right fix for 3.7 and master ;-) Michael: if you want to fix uuid on 3.6, I would suggest to open a new issue, because it seems that the fix is much more complex and unrelated to _uuid (module added to Python 3.7). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 07:55:59 2018 From: report at bugs.python.org (STINNER Victor) Date: Sun, 10 Jun 2018 11:55:59 +0000 Subject: [issue33687] uu.py calls os.path.chmod which doesn't exist In-Reply-To: <1527631327.84.0.682650639539.issue33687@psf.upfronthosting.co.za> Message-ID: <1528631759.29.0.592728768989.issue33687@psf.upfronthosting.co.za> STINNER Victor added the comment: > It looks like the module has never set the file mode, at least since it was added to Python in 1994. I suggest just remove the dead code and fix the documentation. You cannot just remove the mode parameter without a deprecation period. Right now, the flag is documented: https://docs.python.org/dev/library/uu.html "mode is used to set the permission bits if the file must be created" I agree with Martin that I am not comfortable to fix the bug in stable branches (2.7, 3.6, 3.7). I'm +0 to fix the uu module in master (future 3.8). If we fix the bug in master, we should document that mode is ignored in 2.7, 3.6 and 3.7 (update their documentation). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 08:04:23 2018 From: report at bugs.python.org (=?utf-8?q?Lars_P=C3=B6tter?=) Date: Sun, 10 Jun 2018 12:04:23 +0000 Subject: [issue33741] UnicodeEncodeError onsmtplib.login(MAIL_USER, MAIL_PASSWORD) In-Reply-To: <1527979236.47.0.592728768989.issue33741@psf.upfronthosting.co.za> Message-ID: <1528632263.04.0.592728768989.issue33741@psf.upfronthosting.co.za> Lars P?tter added the comment: I wanted to login to an existing account so the password works OK in Thunderbird. Here in Germany it is recommended for safe passwords to use the German umlauts(???????). So code page 437 vs 850 or UTF-8 ? If I could pass in the bytes then I could figure out the correct encoding myself.(Try and error) I suppose that in other regions people want to use other encodings. And as long as the encoding is the same when setting the password and transmitting the password then everything is fine, right? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 08:04:56 2018 From: report at bugs.python.org (Tal Einat) Date: Sun, 10 Jun 2018 12:04:56 +0000 Subject: [issue33587] inspect.getsource performs unnecessary filesystem stat call In-Reply-To: <1526834329.07.0.682650639539.issue33587@psf.upfronthosting.co.za> Message-ID: <1528632296.18.0.592728768989.issue33587@psf.upfronthosting.co.za> Tal Einat added the comment: Moving the linecache check up before the two others seems like a simple and safe optimization. On the other hand, I'm not sure calling getmodule() before checking if the file exists would be faster in many cases. Pankaj, could you also include the script you ran to profile this and the command line by which it was invoked? ---------- nosy: +taleinat _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 08:05:10 2018 From: report at bugs.python.org (Nathaniel Smith) Date: Sun, 10 Jun 2018 12:05:10 +0000 Subject: [issue32561] Add API to io objects for non-blocking reads/writes In-Reply-To: <1516068442.29.0.467229070634.issue32561@psf.upfronthosting.co.za> Message-ID: <1528632310.54.0.592728768989.issue32561@psf.upfronthosting.co.za> Nathaniel Smith added the comment: The idea here is *not* to avoid using a thread pool in general. When the data is on disk, using a thread pool is (a) unavoidable, because of how operating system kernels are written, and (b) basically fine anyway, because the overhead added by threads is swamped by the cost of disk access. So for the foreseeable future, we're always going to be using a thread pool for actual disk access. But, if the data *is already in memory*, so the read can succeed without hitting the disk, then using a thread pool is *not* fine. Fetching data out of memory is super super cheap, so if that's all we're doing then using a thread pool adds massive overhead, in relative terms. We'd like to skip using the thread pool *specifically in this case*. So the idea would be: first, attempt a "buffer-only" read. If it succeeds, then great we're done and it was really cheap. Otherwise, if it fails, then we know we're in the data-on-disk case, so we dispatch the operation to the thread pool. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 08:12:30 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Sun, 10 Jun 2018 12:12:30 +0000 Subject: [issue32561] Add API to io objects for non-blocking reads/writes In-Reply-To: <1516068442.29.0.467229070634.issue32561@psf.upfronthosting.co.za> Message-ID: <1528632750.9.0.592728768989.issue32561@psf.upfronthosting.co.za> Giampaolo Rodola' added the comment: Gotcha. Thanks for clarifying. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 08:34:03 2018 From: report at bugs.python.org (Tal Einat) Date: Sun, 10 Jun 2018 12:34:03 +0000 Subject: [issue33741] UnicodeEncodeError onsmtplib.login(MAIL_USER, MAIL_PASSWORD) In-Reply-To: <1527979236.47.0.592728768989.issue33741@psf.upfronthosting.co.za> Message-ID: <1528634043.58.0.592728768989.issue33741@psf.upfronthosting.co.za> Tal Einat added the comment: We definitely need an expert to weigh in on this. ---------- nosy: +giampaolo.rodola _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 08:53:54 2018 From: report at bugs.python.org (Christian Tismer) Date: Sun, 10 Jun 2018 12:53:54 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528635234.91.0.592728768989.issue33738@psf.upfronthosting.co.za> Change by Christian Tismer : ---------- pull_requests: +7207 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 09:10:36 2018 From: report at bugs.python.org (Christian Tismer) Date: Sun, 10 Jun 2018 13:10:36 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528636236.04.0.592728768989.issue33738@psf.upfronthosting.co.za> Christian Tismer added the comment: @Victor I cannot test on Windows because I'm in vacation. But it is very likely similar to bpo-33614 . The three missing symbols which are listed in python3.def do clearly come into existence when the limited API is active. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 09:13:06 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Sun, 10 Jun 2018 13:13:06 +0000 Subject: [issue33819] Mention "ordered mapping" instead of "ordered dictionary" in email module Message-ID: <1528636386.67.0.592728768989.issue33819@psf.upfronthosting.co.za> New submission from Andr?s Delfino : IMHO, we should replace the "ordered dictionary" with "ordered mapping" now that regular dictionaries are ordered. I'm proposing "ordered mapping" instead of "dictionary" because there's no actual dictionary behind; it's just a "conceptual model". PR changes this. ---------- assignee: docs at python components: Documentation messages: 319218 nosy: adelfino, docs at python priority: normal severity: normal status: open title: Mention "ordered mapping" instead of "ordered dictionary" in email module versions: Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 09:14:29 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Sun, 10 Jun 2018 13:14:29 +0000 Subject: [issue33819] Mention "ordered mapping" instead of "ordered dictionary" in email module In-Reply-To: <1528636386.67.0.592728768989.issue33819@psf.upfronthosting.co.za> Message-ID: <1528636469.43.0.592728768989.issue33819@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- keywords: +patch pull_requests: +7208 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 09:15:22 2018 From: report at bugs.python.org (Tal Einat) Date: Sun, 10 Jun 2018 13:15:22 +0000 Subject: [issue33573] statistics.median does not work with ordinal scale, add doc In-Reply-To: <1526671785.76.0.682650639539.issue33573@psf.upfronthosting.co.za> Message-ID: <1528636522.85.0.592728768989.issue33573@psf.upfronthosting.co.za> Change by Tal Einat : ---------- keywords: +patch pull_requests: +7209 stage: needs patch -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 09:17:23 2018 From: report at bugs.python.org (Tal Einat) Date: Sun, 10 Jun 2018 13:17:23 +0000 Subject: [issue33573] statistics.median does not work with ordinal scale, add doc In-Reply-To: <1526671785.76.0.682650639539.issue33573@psf.upfronthosting.co.za> Message-ID: <1528636643.22.0.592728768989.issue33573@psf.upfronthosting.co.za> Tal Einat added the comment: PR ready for review. ---------- nosy: +taleinat _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 09:18:49 2018 From: report at bugs.python.org (Yury Selivanov) Date: Sun, 10 Jun 2018 13:18:49 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1528631461.44.0.592728768989.issue33694@psf.upfronthosting.co.za> Message-ID: <0EEA7964-A368-4282-A5BC-AE2206B54094@gmail.com> Yury Selivanov added the comment: Since it a minor change we can reconsider it as s bug fix. Feel free to make a pr. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 10:14:35 2018 From: report at bugs.python.org (R. David Murray) Date: Sun, 10 Jun 2018 14:14:35 +0000 Subject: [issue33741] UnicodeEncodeError onsmtplib.login(MAIL_USER, MAIL_PASSWORD) In-Reply-To: <1527979236.47.0.592728768989.issue33741@psf.upfronthosting.co.za> Message-ID: <1528640075.7.0.592728768989.issue33741@psf.upfronthosting.co.za> R. David Murray added the comment: Duplicate of #29750. TLDR: smtplib needs to be fixed to handle binary passwords, and probably to use utf-8 as the default encoding for unicode passwords. ---------- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> smtplib doesn't handle unicode passwords _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 10:15:01 2018 From: report at bugs.python.org (R. David Murray) Date: Sun, 10 Jun 2018 14:15:01 +0000 Subject: [issue29750] smtplib doesn't handle unicode passwords In-Reply-To: <1488919224.48.0.0966376973087.issue29750@psf.upfronthosting.co.za> Message-ID: <1528640101.97.0.592728768989.issue29750@psf.upfronthosting.co.za> Change by R. David Murray : ---------- nosy: +JustAnother1, giampaolo.rodola, taleinat _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 10:17:55 2018 From: report at bugs.python.org (R. David Murray) Date: Sun, 10 Jun 2018 14:17:55 +0000 Subject: [issue29750] smtplib doesn't handle unicode passwords In-Reply-To: <1488919224.48.0.0966376973087.issue29750@psf.upfronthosting.co.za> Message-ID: <1528640275.05.0.592728768989.issue29750@psf.upfronthosting.co.za> R. David Murray added the comment: Note: it is definitely the case, regardless of what the RFC says, that binary passwords need to be supported. utf-8 should probably be used as the default encoding for string passwords, rather than ascii. See also #33741. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 10:18:11 2018 From: report at bugs.python.org (R. David Murray) Date: Sun, 10 Jun 2018 14:18:11 +0000 Subject: [issue29750] smtplib doesn't handle unicode passwords In-Reply-To: <1488919224.48.0.0966376973087.issue29750@psf.upfronthosting.co.za> Message-ID: <1528640291.6.0.592728768989.issue29750@psf.upfronthosting.co.za> Change by R. David Murray : ---------- stage: -> needs patch versions: +Python 3.8 -Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 12:33:41 2018 From: report at bugs.python.org (Cheryl Sabella) Date: Sun, 10 Jun 2018 16:33:41 +0000 Subject: [issue32108] configparser bug: section is emptied if you assign a section to itself In-Reply-To: <1511286370.98.0.213398074469.issue32108@psf.upfronthosting.co.za> Message-ID: <1528648421.74.0.592728768989.issue32108@psf.upfronthosting.co.za> Change by Cheryl Sabella : ---------- pull_requests: +7210 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 13:31:50 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sun, 10 Jun 2018 17:31:50 +0000 Subject: [issue33820] IDLE subsection of What's New 3.6 Message-ID: <1528651910.74.0.592728768989.issue33820@psf.upfronthosting.co.za> New submission from Terry J. Reedy : Master issue for future IDLE entries in Doc/whatsnew/3.6.rst. This doc has a section 'Improved Modules' with a subsection 'idlelib and IDLE' with subsubsections 'New in 3.6.z:'. This issue starts with 3.6.6. It will close after the last 3.6 maintenance release. This file also exists in the master (3.8) and 3.7 branches. Changes are applied to master and backported to 3.7 and 3.6. Normally, entries are the same as in What's New 3.8 and 3.7, but those files do not exist in 3.6. Hence each file needs different backport. Hence separate PRs are needed for auto backport to work. ---------- assignee: terry.reedy components: IDLE messages: 319223 nosy: terry.reedy priority: normal severity: normal status: open title: IDLE subsection of What's New 3.6 versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 13:32:06 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sun, 10 Jun 2018 17:32:06 +0000 Subject: [issue33821] IDLE subsection of What's New 3.7 Message-ID: <1528651926.75.0.592728768989.issue33821@psf.upfronthosting.co.za> New submission from Terry J. Reedy : Following #33820, master issue for future IDLE entries in Doc/whatsnew/3.7.rst. This doc has a section 'Improved Modules' with a subsection 'idlelib and IDLE'. The initial unlabeled subsubsection includes important enhancements to IDLE since 3.6.0. This issue starts with the last of these. Because of IDLE's special backport policy, PEP 434, this initial part concludes with "The changes above have been backported to 3.6 maintenance releases." Future subsubsections 'New in 3.7.z:', z >= 1, will follow for backport to 3.7.z. It will close after the last 3.7 maintenance release. This file also exists in the master (currently 3.8) branch. Changes are applied to master and backported to 3.7. Normally, entries will be the same as in What's New , but this will not exist in 3.6. Hence each What's New file needs different backports. Hence separate PRs are needed for auto backport to work. It seems convenient to have separate issues for each. ---------- assignee: terry.reedy components: IDLE messages: 319224 nosy: terry.reedy priority: normal severity: normal status: open title: IDLE subsection of What's New 3.7 versions: Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 13:32:26 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sun, 10 Jun 2018 17:32:26 +0000 Subject: [issue33822] IDLE subsection of What's New 3.8 Message-ID: <1528651946.69.0.592728768989.issue33822@psf.upfronthosting.co.za> New submission from Terry J. Reedy : Following #33821, master issue for IDLE entries in Doc/whatsnew/3.8.rst. This doc has a section 'Improved Modules' with a subsection 'idlelib and IDLE'. The initial unlabeled subsubsection includes important enhancements to IDLE since 3.7.0. Because of IDLE's special backport policy (PEP 434), this initial part concludes with "The changes above have been backported to 3.7 maintenance releases." Future subsubsections 'New in 3.8.z:', z >= 1, will follow for backports to 3.8.z. This issue will close after the last 3.8 maintenance release. This file will always exists in the master branch. Changes are applied to master and backported as needed at the time. Entries will be the same in the What's New x.y for all x.y branches that get the enhancement. However, each file needs different backports. Hence separate PRs are needed for auto backport to work. It seems convenient to have separate issues for each. ---------- assignee: terry.reedy components: IDLE messages: 319225 nosy: terry.reedy priority: normal severity: normal status: open title: IDLE subsection of What's New 3.8 versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 13:43:47 2018 From: report at bugs.python.org (Tey) Date: Sun, 10 Jun 2018 17:43:47 +0000 Subject: [issue33817] PyString_FromFormatV() fails to build empty strings In-Reply-To: <1528576576.56.0.592728768989.issue33817@psf.upfronthosting.co.za> Message-ID: <1528652627.58.0.592728768989.issue33817@psf.upfronthosting.co.za> Tey added the comment: For the record, it does not fail on 3.x because _PyBytes_Resize() checks if the "string" needs to be resized (and returns if not) before checking its ref count. Maybe something similar should be done in _PyString_Resize() for 2.x. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 13:46:05 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sun, 10 Jun 2018 17:46:05 +0000 Subject: [issue33820] IDLE subsection of What's New 3.6 In-Reply-To: <1528651910.74.0.592728768989.issue33820@psf.upfronthosting.co.za> Message-ID: <1528652765.37.0.592728768989.issue33820@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- keywords: +patch pull_requests: +7211 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 13:53:53 2018 From: report at bugs.python.org (Tey) Date: Sun, 10 Jun 2018 17:53:53 +0000 Subject: [issue33817] PyString_FromFormatV() fails to build empty strings In-Reply-To: <1528576576.56.0.592728768989.issue33817@psf.upfronthosting.co.za> Message-ID: <1528653233.75.0.592728768989.issue33817@psf.upfronthosting.co.za> Tey added the comment: BTW, problem does appear in 3.4 as it's only been fixed in 3.5+ as a fix for issue #25270 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 13:55:23 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sun, 10 Jun 2018 17:55:23 +0000 Subject: [issue33821] IDLE subsection of What's New 3.7 In-Reply-To: <1528651926.75.0.592728768989.issue33821@psf.upfronthosting.co.za> Message-ID: <1528653323.08.0.592728768989.issue33821@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- keywords: +patch pull_requests: +7212 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 14:03:42 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sun, 10 Jun 2018 18:03:42 +0000 Subject: [issue33820] IDLE subsection of What's New 3.6 In-Reply-To: <1528651910.74.0.592728768989.issue33820@psf.upfronthosting.co.za> Message-ID: <1528653822.73.0.592728768989.issue33820@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset e226eb71575ad22a6779b02941377665831cfff2 by Terry Jan Reedy in branch 'master': bpo-33820: Update idlelib subsection of What's New 3.6 (GH-7589) https://github.com/python/cpython/commit/e226eb71575ad22a6779b02941377665831cfff2 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 14:04:54 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 10 Jun 2018 18:04:54 +0000 Subject: [issue33820] IDLE subsection of What's New 3.6 In-Reply-To: <1528651910.74.0.592728768989.issue33820@psf.upfronthosting.co.za> Message-ID: <1528653894.43.0.592728768989.issue33820@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7213 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 14:05:17 2018 From: report at bugs.python.org (Python++) Date: Sun, 10 Jun 2018 18:05:17 +0000 Subject: [issue33823] A BUG in concurrent/asyncio Message-ID: <1528653917.32.0.592728768989.issue33823@psf.upfronthosting.co.za> New submission from Python++ : ProcessPoolExecutor cannot specify the number of cores when running the Muti-Sub Event Loops, which results in the resulting statistics of the last code run cannot be promised to be separated. I'm deep hoping some genius can propose a solution and fix these problems. ---------- components: asyncio messages: 319229 nosy: Python++, asvetlov, yselivanov priority: normal severity: normal status: open title: A BUG in concurrent/asyncio type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 14:05:52 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 10 Jun 2018 18:05:52 +0000 Subject: [issue33820] IDLE subsection of What's New 3.6 In-Reply-To: <1528651910.74.0.592728768989.issue33820@psf.upfronthosting.co.za> Message-ID: <1528653952.7.0.592728768989.issue33820@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7214 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 14:11:00 2018 From: report at bugs.python.org (Python++) Date: Sun, 10 Jun 2018 18:11:00 +0000 Subject: [issue33823] A BUG in concurrent/asyncio In-Reply-To: <1528653917.32.0.592728768989.issue33823@psf.upfronthosting.co.za> Message-ID: <1528654260.54.0.592728768989.issue33823@psf.upfronthosting.co.za> Change by Python++ : Added file: https://bugs.python.org/file47637/BUG for concurrent.futures(Found by william).py _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 14:14:12 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Sun, 10 Jun 2018 18:14:12 +0000 Subject: [issue33812] Different behavior between datetime.py and its C accelerator In-Reply-To: <1528502888.29.0.592728768989.issue33812@psf.upfronthosting.co.za> Message-ID: <1528654452.52.0.592728768989.issue33812@psf.upfronthosting.co.za> Change by Alexander Belopolsky : ---------- stage: patch review -> commit review versions: +Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 14:15:06 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sun, 10 Jun 2018 18:15:06 +0000 Subject: [issue33821] IDLE subsection of What's New 3.7 In-Reply-To: <1528651926.75.0.592728768989.issue33821@psf.upfronthosting.co.za> Message-ID: <1528654506.9.0.592728768989.issue33821@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset 222f7f40339238b3d2c803849c75e682725449d7 by Terry Jan Reedy in branch 'master': bpo-33821: Update idlelib subsection of What's New 3.7 (#7590) https://github.com/python/cpython/commit/222f7f40339238b3d2c803849c75e682725449d7 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 14:16:14 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 10 Jun 2018 18:16:14 +0000 Subject: [issue33821] IDLE subsection of What's New 3.7 In-Reply-To: <1528651926.75.0.592728768989.issue33821@psf.upfronthosting.co.za> Message-ID: <1528654574.65.0.592728768989.issue33821@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7215 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 14:18:08 2018 From: report at bugs.python.org (Yury Selivanov) Date: Sun, 10 Jun 2018 18:18:08 +0000 Subject: [issue33823] A BUG in concurrent/asyncio In-Reply-To: <1528653917.32.0.592728768989.issue33823@psf.upfronthosting.co.za> Message-ID: <1528654688.47.0.592728768989.issue33823@psf.upfronthosting.co.za> Yury Selivanov added the comment: > which results in the resulting statistics of the last code run cannot be promised to be separated. I'm sorry but I cannot parse your message and the attached code snippet. Please try to formulate the actual bug/feature request more clearly. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 14:30:31 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 10 Jun 2018 18:30:31 +0000 Subject: [issue33820] IDLE subsection of What's New 3.6 In-Reply-To: <1528651910.74.0.592728768989.issue33820@psf.upfronthosting.co.za> Message-ID: <1528655431.04.0.592728768989.issue33820@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 953d300ffad108b036f483307b04b09872b162d9 by Miss Islington (bot) in branch '3.7': bpo-33820: Update idlelib subsection of What's New 3.6 (GH-7589) https://github.com/python/cpython/commit/953d300ffad108b036f483307b04b09872b162d9 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 14:30:46 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 10 Jun 2018 18:30:46 +0000 Subject: [issue33820] IDLE subsection of What's New 3.6 In-Reply-To: <1528651910.74.0.592728768989.issue33820@psf.upfronthosting.co.za> Message-ID: <1528655446.91.0.592728768989.issue33820@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 8ecd7f6d528703242b3c77aba5c91df13abe863c by Miss Islington (bot) in branch '3.6': bpo-33820: Update idlelib subsection of What's New 3.6 (GH-7589) https://github.com/python/cpython/commit/8ecd7f6d528703242b3c77aba5c91df13abe863c ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 14:35:24 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 10 Jun 2018 18:35:24 +0000 Subject: [issue33821] IDLE subsection of What's New 3.7 In-Reply-To: <1528651926.75.0.592728768989.issue33821@psf.upfronthosting.co.za> Message-ID: <1528655724.47.0.592728768989.issue33821@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 1ed8294924a9a47fb6f98f88cc7340a5512c75c3 by Miss Islington (bot) in branch '3.7': bpo-33821: Update idlelib subsection of What's New 3.7 (GH-7590) https://github.com/python/cpython/commit/1ed8294924a9a47fb6f98f88cc7340a5512c75c3 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 14:53:12 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sun, 10 Jun 2018 18:53:12 +0000 Subject: [issue33820] IDLE subsection of What's New 3.6 In-Reply-To: <1528651910.74.0.592728768989.issue33820@psf.upfronthosting.co.za> Message-ID: <1528656792.36.0.592728768989.issue33820@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- pull_requests: +7216 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 14:57:41 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sun, 10 Jun 2018 18:57:41 +0000 Subject: [issue33820] IDLE subsection of What's New 3.6 In-Reply-To: <1528651910.74.0.592728768989.issue33820@psf.upfronthosting.co.za> Message-ID: <1528657061.02.0.592728768989.issue33820@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset 820c53ac612e9c4b3cb3e831537a15d5e953bbc0 by Terry Jan Reedy in branch 'master': bpo-33820: Fix IDLE What's New typo (#7594) https://github.com/python/cpython/commit/820c53ac612e9c4b3cb3e831537a15d5e953bbc0 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 14:58:57 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 10 Jun 2018 18:58:57 +0000 Subject: [issue33820] IDLE subsection of What's New 3.6 In-Reply-To: <1528651910.74.0.592728768989.issue33820@psf.upfronthosting.co.za> Message-ID: <1528657137.1.0.592728768989.issue33820@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7217 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 14:59:49 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 10 Jun 2018 18:59:49 +0000 Subject: [issue33820] IDLE subsection of What's New 3.6 In-Reply-To: <1528651910.74.0.592728768989.issue33820@psf.upfronthosting.co.za> Message-ID: <1528657189.81.0.592728768989.issue33820@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7218 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 15:07:31 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sun, 10 Jun 2018 19:07:31 +0000 Subject: [issue33610] IDLE: Make multiple improvements to CodeContext In-Reply-To: <1527052692.02.0.682650639539.issue33610@psf.upfronthosting.co.za> Message-ID: <1528657651.74.0.592728768989.issue33610@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- keywords: +patch pull_requests: +7219 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 15:26:46 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 10 Jun 2018 19:26:46 +0000 Subject: [issue33820] IDLE subsection of What's New 3.6 In-Reply-To: <1528651910.74.0.592728768989.issue33820@psf.upfronthosting.co.za> Message-ID: <1528658806.72.0.592728768989.issue33820@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 3da01813c83d23922798b398bc00f465593c80da by Miss Islington (bot) in branch '3.7': bpo-33820: Fix IDLE What's New typo (GH-7594) https://github.com/python/cpython/commit/3da01813c83d23922798b398bc00f465593c80da ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 15:34:11 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 10 Jun 2018 19:34:11 +0000 Subject: [issue33820] IDLE subsection of What's New 3.6 In-Reply-To: <1528651910.74.0.592728768989.issue33820@psf.upfronthosting.co.za> Message-ID: <1528659251.23.0.592728768989.issue33820@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 969759e11ecfbd662642ba4fb23159faf56ee859 by Miss Islington (bot) in branch '3.6': bpo-33820: Fix IDLE What's New typo (GH-7594) https://github.com/python/cpython/commit/969759e11ecfbd662642ba4fb23159faf56ee859 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 15:35:37 2018 From: report at bugs.python.org (=?utf-8?q?Miro_Hron=C4=8Dok?=) Date: Sun, 10 Jun 2018 19:35:37 +0000 Subject: [issue33824] Settign LANG=C modifies the --version behavior Message-ID: <1528659337.7.0.592728768989.issue33824@psf.upfronthosting.co.za> New submission from Miro Hron?ok : On 3.6, setting LANG to C did not affect the --version behavior: $ python3.6 --version Python 3.6.5 $ LANG=C python3.6 --version Python 3.6.5 On 3.7.0b5 it does. $ python3.7 --version Python 3.7.0b5 $ LANG=C python3.7 --version Python 3.7.0b5 (default, Jun 1 2018, 03:54:41) [GCC 8.1.1 20180502 (Red Hat 8.1.1-1)] My locale: LANG=cs_CZ.utf8 LC_CTYPE="cs_CZ.utf8" LC_NUMERIC="cs_CZ.utf8" LC_TIME="cs_CZ.utf8" LC_COLLATE="cs_CZ.utf8" LC_MONETARY="cs_CZ.utf8" LC_MESSAGES="cs_CZ.utf8" LC_PAPER="cs_CZ.utf8" LC_NAME="cs_CZ.utf8" LC_ADDRESS="cs_CZ.utf8" LC_TELEPHONE="cs_CZ.utf8" LC_MEASUREMENT="cs_CZ.utf8" LC_IDENTIFICATION="cs_CZ.utf8" LC_ALL= BTW I'm running Fedora builds of Python, where we have PEP 538 on 3.6 as well https://fedoraproject.org/wiki/Changes/python3_c.utf-8_locale ---------- messages: 319238 nosy: hroncok priority: normal severity: normal status: open title: Settign LANG=C modifies the --version behavior type: behavior versions: Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 15:38:39 2018 From: report at bugs.python.org (Ned Deily) Date: Sun, 10 Jun 2018 19:38:39 +0000 Subject: [issue33824] Settign LANG=C modifies the --version behavior In-Reply-To: <1528659337.7.0.592728768989.issue33824@psf.upfronthosting.co.za> Message-ID: <1528659519.36.0.592728768989.issue33824@psf.upfronthosting.co.za> Ned Deily added the comment: Odd. I see the same behavior with the python.org macOS builds so it's not just Fedora. ---------- nosy: +ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 15:48:44 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sun, 10 Jun 2018 19:48:44 +0000 Subject: [issue33610] IDLE: Make multiple improvements to CodeContext In-Reply-To: <1527052692.02.0.682650639539.issue33610@psf.upfronthosting.co.za> Message-ID: <1528660124.31.0.592728768989.issue33610@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset af4b0130d44bf8a1ff4f7b46195d1dc79add444a by Terry Jan Reedy in branch 'master': bpo-33610: Update IDLE Code Context doc entry (GH-7597) https://github.com/python/cpython/commit/af4b0130d44bf8a1ff4f7b46195d1dc79add444a ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 15:49:56 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 10 Jun 2018 19:49:56 +0000 Subject: [issue33610] IDLE: Make multiple improvements to CodeContext In-Reply-To: <1527052692.02.0.682650639539.issue33610@psf.upfronthosting.co.za> Message-ID: <1528660196.85.0.592728768989.issue33610@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7220 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 15:50:51 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 10 Jun 2018 19:50:51 +0000 Subject: [issue33610] IDLE: Make multiple improvements to CodeContext In-Reply-To: <1527052692.02.0.682650639539.issue33610@psf.upfronthosting.co.za> Message-ID: <1528660251.24.0.592728768989.issue33610@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7221 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 15:54:34 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sun, 10 Jun 2018 19:54:34 +0000 Subject: [issue33610] IDLE: Make multiple improvements to CodeContext In-Reply-To: <1527052692.02.0.682650639539.issue33610@psf.upfronthosting.co.za> Message-ID: <1528660474.48.0.592728768989.issue33610@psf.upfronthosting.co.za> Terry J. Reedy added the comment: General Update: We have done 1, 3, 7, 8, 9, 11, 17, 21. Very nice. A re-organized list of the remainder (with old numbers). Docs: D1: idle.rst subsection on Code Context (19, see #33642). D2: What's New in 3.6.6 and 3.7.0 (20). Menu M1: put Code Context and Zoom Height on same menu (5). M2: Add Show/Hide Code Context (5). M3. Gray out menu entry when not applicable (6). M3: Shortcut for CC? (new), Code Context Display C1. Add vertical scrollbar if lines > maxlines (12). C2. Add horizontal scrollbar if add to text (13). Internal Changes I1. Unspecified code cleanups for codecontext.py (2) I2. Reduce events (4). Font change notification (15). Text active or text changed notification (16). External Changes E1. Mark blocks in editor (10, unlikely). E2. Navigate by blocks in editor (14). E3. Error check maxlines in configdialog (18). D1 is PR 7579 and backports. D2 was done on #33820 and #33821. For M1, I would still like to move Zoom Height to Options with a separate bar after IDLE settings. ---------- keywords: +3.5regression -patch stage: patch review -> _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 16:07:27 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 10 Jun 2018 20:07:27 +0000 Subject: [issue33610] IDLE: Make multiple improvements to CodeContext In-Reply-To: <1527052692.02.0.682650639539.issue33610@psf.upfronthosting.co.za> Message-ID: <1528661247.11.0.592728768989.issue33610@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 2adfeef1853262b207a1993e523f0f3ba708dd9f by Miss Islington (bot) in branch '3.7': bpo-33610: Update IDLE Code Context doc entry (GH-7597) https://github.com/python/cpython/commit/2adfeef1853262b207a1993e523f0f3ba708dd9f ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 16:11:23 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 10 Jun 2018 20:11:23 +0000 Subject: [issue33610] IDLE: Make multiple improvements to CodeContext In-Reply-To: <1527052692.02.0.682650639539.issue33610@psf.upfronthosting.co.za> Message-ID: <1528661483.05.0.592728768989.issue33610@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 08a1b133925f50903691c77fa9c23b618abc89f2 by Miss Islington (bot) in branch '3.6': bpo-33610: Update IDLE Code Context doc entry (GH-7597) https://github.com/python/cpython/commit/08a1b133925f50903691c77fa9c23b618abc89f2 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 16:34:38 2018 From: report at bugs.python.org (Matthias Kievernagel) Date: Sun, 10 Jun 2018 20:34:38 +0000 Subject: [issue23831] tkinter canvas lacks of moveto method. In-Reply-To: <1427832932.11.0.38662420535.issue23831@psf.upfronthosting.co.za> Message-ID: <1528662878.67.0.592728768989.issue23831@psf.upfronthosting.co.za> Change by Matthias Kievernagel : ---------- nosy: +mkiever _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 16:51:50 2018 From: report at bugs.python.org (Michael Felt) Date: Sun, 10 Jun 2018 20:51:50 +0000 Subject: [issue32493] UUID Module - FreeBSD build failure In-Reply-To: <1528631567.38.0.592728768989.issue32493@psf.upfronthosting.co.za> Message-ID: <0852EF90-DD67-4002-8EAD-E9E2AFB19805@felt.demon.nl> Michael Felt added the comment: I was not aware that _uuid was new to python3-3.7. I thought it had been around for a long time. Bpo-28009 goes back two years and i was unaware of uuid_create(). Would it be easier to split it into 3 issues? One for unixdll, one for netstat, and one for test_uuid? Michael Sent from my iPhone > On 10 Jun 2018, at 13:52, STINNER Victor wrote: > > > STINNER Victor added the comment: > >> As noted on PR 7511 and PR 7567, I have merged Michael's configure.ac fixes for testing for uuid_enc_be availability (independent of platform) that were incorrect in earlier commits for this issue. Merged for 3.7.0rc1 and master (3.8). Thanks, everyone! > > Thanks you Ned and Michael. Sorry for the confusion. I was first confused that the fix for master added a lot of code using ctypes. The final fix is the right fix for 3.7 and master ;-) > > Michael: if you want to fix uuid on 3.6, I would suggest to open a new issue, because it seems that the fix is much more complex and unrelated to _uuid (module added to Python 3.7). > > ---------- > > _______________________________________ > Python tracker > > _______________________________________ > ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 17:03:01 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Sun, 10 Jun 2018 21:03:01 +0000 Subject: [issue33812] Different behavior between datetime.py and its C accelerator In-Reply-To: <1528502888.29.0.592728768989.issue33812@psf.upfronthosting.co.za> Message-ID: <1528664581.53.0.592728768989.issue33812@psf.upfronthosting.co.za> Alexander Belopolsky added the comment: New changeset 877b23202b7e7d4f57b58504fd0eb886e8c0b377 by Alexander Belopolsky in branch 'master': bpo-33812: Corrected astimezone for naive datetimes. (GH-7578) https://github.com/python/cpython/commit/877b23202b7e7d4f57b58504fd0eb886e8c0b377 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 17:04:15 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 10 Jun 2018 21:04:15 +0000 Subject: [issue33812] Different behavior between datetime.py and its C accelerator In-Reply-To: <1528502888.29.0.592728768989.issue33812@psf.upfronthosting.co.za> Message-ID: <1528664655.38.0.592728768989.issue33812@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7222 stage: commit review -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 17:04:49 2018 From: report at bugs.python.org (=?utf-8?q?R=C3=A9mi_Lapeyre?=) Date: Sun, 10 Jun 2018 21:04:49 +0000 Subject: [issue33462] reversible dict In-Reply-To: <1526009418.33.0.682650639539.issue33462@psf.upfronthosting.co.za> Message-ID: <1528664689.07.0.592728768989.issue33462@psf.upfronthosting.co.za> R?mi Lapeyre added the comment: Hi INADA thanks for the benchmark, I did both of them too and got the same results (though I had to apply https://github.com/python/performance/pull/41 to get the performance module working). Should I apply your patch in PR 6827? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 17:05:11 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 10 Jun 2018 21:05:11 +0000 Subject: [issue33812] Different behavior between datetime.py and its C accelerator In-Reply-To: <1528502888.29.0.592728768989.issue33812@psf.upfronthosting.co.za> Message-ID: <1528664711.06.0.592728768989.issue33812@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7223 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 17:10:36 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sun, 10 Jun 2018 21:10:36 +0000 Subject: [issue13153] IDLE 3.x on Windows crashes when pasting non-BMP unicode In-Reply-To: <1318363292.9.0.682519731008.issue13153@psf.upfronthosting.co.za> Message-ID: <1528665036.04.0.592728768989.issue13153@psf.upfronthosting.co.za> Terry J. Reedy added the comment: AFAIK, the big new feature of tcl/tk 9.0 is intended to be full unicode support. We can hope that 9.0 appears in time to be included in the 3.8 installers. Until then, I think filenames, user program output, and clipboard content should be checked for the presence of astral characters before being sent to a tk widget. For this issue, that means replacing the built-in <> handler. Replace astral chars with \U000nnnn escapes. If the widget it a Text, tag the escape as 'Astral' and color it with the code context colors to distinguish it from escapes originally in the string. Strings know their kind, but a request to expose that has been rejected. Pyshell currently compares the max codepoint to 'ffff'. But it appears that we can detect kind with an O(1) expression. For 3.6 and 3.7, "sys.getsizeof(s) == 76 + len(s)". For 3.8, "sys.getsizeof(s) == 48 + len(s)". Does anyone know why the difference? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 17:15:46 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 10 Jun 2018 21:15:46 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528665346.11.0.592728768989.issue33770@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7224 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 17:18:16 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 10 Jun 2018 21:18:16 +0000 Subject: [issue33748] test_discovery_failed_discovery in test_unittest modifies sys.path In-Reply-To: <1528027393.44.0.592728768989.issue33748@psf.upfronthosting.co.za> Message-ID: <1528665496.06.0.592728768989.issue33748@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7225 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 17:19:37 2018 From: report at bugs.python.org (miss-islington) Date: Sun, 10 Jun 2018 21:19:37 +0000 Subject: [issue33748] test_discovery_failed_discovery in test_unittest modifies sys.path In-Reply-To: <1528027393.44.0.592728768989.issue33748@psf.upfronthosting.co.za> Message-ID: <1528665577.12.0.592728768989.issue33748@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7226 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 17:37:17 2018 From: report at bugs.python.org (Ned Deily) Date: Sun, 10 Jun 2018 21:37:17 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528666636.99.0.592728768989.issue33770@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 053d6c5ce246e6ba9c046467b02a0b6ba4abb8bf by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33770: improve base64 exception message for encoded inputs of invalid length (GH-7416) (GH-7602) https://github.com/python/cpython/commit/053d6c5ce246e6ba9c046467b02a0b6ba4abb8bf ---------- nosy: +ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 17:43:05 2018 From: report at bugs.python.org (Ned Deily) Date: Sun, 10 Jun 2018 21:43:05 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528666985.97.0.592728768989.issue33770@psf.upfronthosting.co.za> Ned Deily added the comment: I backported Tal's fix for 3.7.0rc1. I am less certain about backporting to 3.6 and 2.7 at this stage of their lives but I don't have a strong feeling about it so I'll leave the issue open for that. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 17:45:21 2018 From: report at bugs.python.org (Ned Deily) Date: Sun, 10 Jun 2018 21:45:21 +0000 Subject: [issue33748] test_discovery_failed_discovery in test_unittest modifies sys.path In-Reply-To: <1528027393.44.0.592728768989.issue33748@psf.upfronthosting.co.za> Message-ID: <1528667121.79.0.592728768989.issue33748@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 298eb07faa66da9c588bd82db14a6eef64167ede by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33748: fix tests altering sys.path and sys.modules (GH-7433) (#7604) https://github.com/python/cpython/commit/298eb07faa66da9c588bd82db14a6eef64167ede ---------- nosy: +ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 17:45:53 2018 From: report at bugs.python.org (Ned Deily) Date: Sun, 10 Jun 2018 21:45:53 +0000 Subject: [issue33748] test_discovery_failed_discovery in test_unittest modifies sys.path In-Reply-To: <1528027393.44.0.592728768989.issue33748@psf.upfronthosting.co.za> Message-ID: <1528667153.72.0.592728768989.issue33748@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 040d4a7b5899b9635c6997c5ecb91f8299f0b352 by Ned Deily (Miss Islington (bot)) in branch '3.6': bpo-33748: fix tests altering sys.path and sys.modules (GH-7433) (GH-7603) https://github.com/python/cpython/commit/040d4a7b5899b9635c6997c5ecb91f8299f0b352 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 17:51:28 2018 From: report at bugs.python.org (Ned Deily) Date: Sun, 10 Jun 2018 21:51:28 +0000 Subject: [issue33748] test_discovery_failed_discovery in test_unittest modifies sys.path In-Reply-To: <1528027393.44.0.592728768989.issue33748@psf.upfronthosting.co.za> Message-ID: <1528667488.77.0.592728768989.issue33748@psf.upfronthosting.co.za> Ned Deily added the comment: Backported for 3.7.0rc1 and 3.6.6rc1. Thanks, all! ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 18:02:26 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Sun, 10 Jun 2018 22:02:26 +0000 Subject: [issue33812] Different behavior between datetime.py and its C accelerator In-Reply-To: <1528502888.29.0.592728768989.issue33812@psf.upfronthosting.co.za> Message-ID: <1528668146.62.0.592728768989.issue33812@psf.upfronthosting.co.za> Alexander Belopolsky added the comment: New changeset 037e9125527d4a55af566f161c96a61b3c3fd998 by Alexander Belopolsky (Miss Islington (bot)) in branch '3.7': bpo-33812: Corrected astimezone for naive datetimes. (GH-7578) (GH-7600) https://github.com/python/cpython/commit/037e9125527d4a55af566f161c96a61b3c3fd998 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 18:03:33 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Sun, 10 Jun 2018 22:03:33 +0000 Subject: [issue33812] Different behavior between datetime.py and its C accelerator In-Reply-To: <1528502888.29.0.592728768989.issue33812@psf.upfronthosting.co.za> Message-ID: <1528668213.97.0.592728768989.issue33812@psf.upfronthosting.co.za> Alexander Belopolsky added the comment: New changeset 1d4089b5d208ae6f0bd256304fd77f04c0b4fd41 by Alexander Belopolsky (Miss Islington (bot)) in branch '3.6': bpo-33812: Corrected astimezone for naive datetimes. (GH-7578) (GH-7601) https://github.com/python/cpython/commit/1d4089b5d208ae6f0bd256304fd77f04c0b4fd41 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 18:06:00 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Sun, 10 Jun 2018 22:06:00 +0000 Subject: [issue33812] Different behavior between datetime.py and its C accelerator In-Reply-To: <1528502888.29.0.592728768989.issue33812@psf.upfronthosting.co.za> Message-ID: <1528668360.27.0.592728768989.issue33812@psf.upfronthosting.co.za> Change by Alexander Belopolsky : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 18:07:58 2018 From: report at bugs.python.org (Ned Deily) Date: Sun, 10 Jun 2018 22:07:58 +0000 Subject: [issue33818] Make PyExceptionClass_Name returning a const string In-Reply-To: <1528612584.63.0.592728768989.issue33818@psf.upfronthosting.co.za> Message-ID: <1528668478.76.0.592728768989.issue33818@psf.upfronthosting.co.za> Ned Deily added the comment: While I think the change makes sense aesthetically, I do not see a compelling reason why such a user interface change should be introduced to 3.7 at literally the last moment. Let's do it for 3.8, please. ---------- versions: -Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 18:29:31 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sun, 10 Jun 2018 22:29:31 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528669771.37.0.592728768989.issue33738@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- pull_requests: +7227 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 18:48:30 2018 From: report at bugs.python.org (Ned Deily) Date: Sun, 10 Jun 2018 22:48:30 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528670910.73.0.592728768989.issue33738@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 8398713cea0eb17b013f25f86bef47c7e5e63139 by Ned Deily (Christian Tismer) in branch 'master': bpo-33738: Address review comments in GH #7477 (GH-7585) https://github.com/python/cpython/commit/8398713cea0eb17b013f25f86bef47c7e5e63139 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 18:59:07 2018 From: report at bugs.python.org (bbayles) Date: Sun, 10 Jun 2018 22:59:07 +0000 Subject: [issue22454] Adding the opposite function of shlex.split() In-Reply-To: <1411328149.26.0.00522128245951.issue22454@psf.upfronthosting.co.za> Message-ID: <1528671547.73.0.592728768989.issue22454@psf.upfronthosting.co.za> Change by bbayles : ---------- keywords: +patch pull_requests: +7228 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 19:00:55 2018 From: report at bugs.python.org (bbayles) Date: Sun, 10 Jun 2018 23:00:55 +0000 Subject: [issue22454] Adding the opposite function of shlex.split() In-Reply-To: <1411328149.26.0.00522128245951.issue22454@psf.upfronthosting.co.za> Message-ID: <1528671655.11.0.592728768989.issue22454@psf.upfronthosting.co.za> Change by bbayles : ---------- nosy: +bbayles _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 20:17:06 2018 From: report at bugs.python.org (INADA Naoki) Date: Mon, 11 Jun 2018 00:17:06 +0000 Subject: [issue33462] reversible dict In-Reply-To: <1528664689.07.0.592728768989.issue33462@psf.upfronthosting.co.za> Message-ID: INADA Naoki added the comment: My patch was quick and dirty. Please read _collections_abc module and follow the style. (you need to use temporary variables.) And new reviter types can be registered to Iterator ABC too. -- INADA Naoki ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 20:49:37 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 00:49:37 +0000 Subject: [issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set In-Reply-To: <1493196813.64.0.567701209744.issue30167@psf.upfronthosting.co.za> Message-ID: <1528678177.51.0.592728768989.issue30167@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 2487f30d5529948ace26559e274d7cac6abcd1a8 by Ned Deily (Steve Weber) in branch 'master': bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. (GH-6731) https://github.com/python/cpython/commit/2487f30d5529948ace26559e274d7cac6abcd1a8 ---------- nosy: +ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 20:50:49 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 00:50:49 +0000 Subject: [issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set In-Reply-To: <1493196813.64.0.567701209744.issue30167@psf.upfronthosting.co.za> Message-ID: <1528678249.84.0.592728768989.issue30167@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7229 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 20:51:44 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 00:51:44 +0000 Subject: [issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set In-Reply-To: <1493196813.64.0.567701209744.issue30167@psf.upfronthosting.co.za> Message-ID: <1528678304.52.0.592728768989.issue30167@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7230 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 21:19:20 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 01:19:20 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528679960.07.0.592728768989.issue33738@psf.upfronthosting.co.za> Ned Deily added the comment: Sigh! I was hoping we could get this in for 3.7.0 but I think we have run out of time and we really should not be making potential user-visible API changes at this last minute. I did notice the new compile warning for the Windows non-debug build but I overlooked that some other non-Windows buildbots were getting them, too. Serihy proposes a more general fix in Issue33818 but I don't think we should be making a change like that just prior to the release candidate. And, in retrospect, I should not have considered trying to fix the stable ABI support at this late date, either. It looks like it has been broken for some time now so 3.7.0 will not be any worse. At this point, we have Christian's two PRs in master now; if necessary, they could be reverted. I will bow out of this discussion and let you all figure out what is best for master/3.8. Once the changes for master are in and working, we could revisit the question of backports to 3.7 and/or 3.6 maintenance releases. I would like to both thank and apologize to Christian, in particular, and to Serhiy and everyone else who went out of their ways to try to get this in. Lowering priority to "critical". ---------- priority: release blocker -> critical versions: -Python 3.6, Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 21:21:37 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 01:21:37 +0000 Subject: [issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set In-Reply-To: <1493196813.64.0.567701209744.issue30167@psf.upfronthosting.co.za> Message-ID: <1528680097.78.0.592728768989.issue30167@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset ec4343c3b4c0e0a7500122fac616e6488c0ab842 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. (GH-6731) (GH-7606) https://github.com/python/cpython/commit/ec4343c3b4c0e0a7500122fac616e6488c0ab842 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 21:23:43 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 01:23:43 +0000 Subject: [issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set In-Reply-To: <1493196813.64.0.567701209744.issue30167@psf.upfronthosting.co.za> Message-ID: <1528680223.41.0.592728768989.issue30167@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 3e121581d008a780b8a9f1bcda5966cf0c06f6d5 by Ned Deily (Miss Islington (bot)) in branch '3.6': bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. (GH-6731) (GH-7607) https://github.com/python/cpython/commit/3e121581d008a780b8a9f1bcda5966cf0c06f6d5 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 21:30:15 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 01:30:15 +0000 Subject: [issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set In-Reply-To: <1493196813.64.0.567701209744.issue30167@psf.upfronthosting.co.za> Message-ID: <1528680615.57.0.592728768989.issue30167@psf.upfronthosting.co.za> Ned Deily added the comment: As I noted in the discussion on PR 6731, I think there should be a test for this so we don't break it again. But, since it seems that the problem has affected a number of users and projects and since the fix is easy and easily testable manually, I decided to merge the PR for 3.7.0rc1 and 3.6.6rc1. I am leaving the issue open for someone to supply a PR with a test case and for discussion of PR 7415. Thank you all! ---------- stage: patch review -> needs patch versions: +Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 21:52:46 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Mon, 11 Jun 2018 01:52:46 +0000 Subject: [issue33825] Change mentions of "magic" attributes to "special" Message-ID: <1528681966.39.0.592728768989.issue33825@psf.upfronthosting.co.za> New submission from Andr?s Delfino : PR makes all documentation use the same term. ---------- assignee: docs at python components: Documentation messages: 319263 nosy: adelfino, docs at python priority: normal severity: normal status: open title: Change mentions of "magic" attributes to "special" versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 21:53:13 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Mon, 11 Jun 2018 01:53:13 +0000 Subject: [issue33825] Change mentions of "magic" attributes to "special" In-Reply-To: <1528681966.39.0.592728768989.issue33825@psf.upfronthosting.co.za> Message-ID: <1528681993.25.0.592728768989.issue33825@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- keywords: +patch pull_requests: +7231 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 22:08:16 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 02:08:16 +0000 Subject: [issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True In-Reply-To: <1521553319.23.0.467229070634.issue33109@psf.upfronthosting.co.za> Message-ID: <1528682896.32.0.592728768989.issue33109@psf.upfronthosting.co.za> Change by Ned Deily : ---------- pull_requests: +7232 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 22:08:16 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 02:08:16 +0000 Subject: [issue26510] [argparse] Add required argument to add_subparsers In-Reply-To: <1457445361.5.0.530669445668.issue26510@psf.upfronthosting.co.za> Message-ID: <1528682896.53.0.786479179495.issue26510@psf.upfronthosting.co.za> Change by Ned Deily : ---------- pull_requests: +7233 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 22:17:59 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 02:17:59 +0000 Subject: [issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True In-Reply-To: <1521553319.23.0.467229070634.issue33109@psf.upfronthosting.co.za> Message-ID: <1528683479.59.0.592728768989.issue33109@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset ef057bfb06cae0718e6d708061649d2e3983e2ef by Ned Deily in branch 'master': bpo-33109: Remove now-obsolete What's New entry for bpo-26510. (GH-7609) https://github.com/python/cpython/commit/ef057bfb06cae0718e6d708061649d2e3983e2ef ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 22:18:00 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 02:18:00 +0000 Subject: [issue26510] [argparse] Add required argument to add_subparsers In-Reply-To: <1457445361.5.0.530669445668.issue26510@psf.upfronthosting.co.za> Message-ID: <1528683480.02.0.584625200856.issue26510@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset ef057bfb06cae0718e6d708061649d2e3983e2ef by Ned Deily in branch 'master': bpo-33109: Remove now-obsolete What's New entry for bpo-26510. (GH-7609) https://github.com/python/cpython/commit/ef057bfb06cae0718e6d708061649d2e3983e2ef ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 22:19:12 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 02:19:12 +0000 Subject: [issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True In-Reply-To: <1521553319.23.0.467229070634.issue33109@psf.upfronthosting.co.za> Message-ID: <1528683552.52.0.592728768989.issue33109@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7234 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 22:19:12 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 02:19:12 +0000 Subject: [issue26510] [argparse] Add required argument to add_subparsers In-Reply-To: <1457445361.5.0.530669445668.issue26510@psf.upfronthosting.co.za> Message-ID: <1528683552.7.0.786479179495.issue26510@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7235 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 22:31:01 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 02:31:01 +0000 Subject: [issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True In-Reply-To: <1521553319.23.0.467229070634.issue33109@psf.upfronthosting.co.za> Message-ID: <1528684261.02.0.592728768989.issue33109@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset a73399d5963d6b1639d935968f4a8baa868c39d3 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33109: Remove now-obsolete What's New entry for bpo-26510. (GH-7609) (GH-7610) https://github.com/python/cpython/commit/a73399d5963d6b1639d935968f4a8baa868c39d3 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 22:31:01 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 02:31:01 +0000 Subject: [issue26510] [argparse] Add required argument to add_subparsers In-Reply-To: <1457445361.5.0.530669445668.issue26510@psf.upfronthosting.co.za> Message-ID: <1528684261.27.0.584625200856.issue26510@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset a73399d5963d6b1639d935968f4a8baa868c39d3 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33109: Remove now-obsolete What's New entry for bpo-26510. (GH-7609) (GH-7610) https://github.com/python/cpython/commit/a73399d5963d6b1639d935968f4a8baa868c39d3 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 22:35:07 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 02:35:07 +0000 Subject: [issue33745] 3.7.0b5 changes the line number of empty functions with docstrings In-Reply-To: <1528024309.59.0.592728768989.issue33745@psf.upfronthosting.co.za> Message-ID: <1528684507.02.0.592728768989.issue33745@psf.upfronthosting.co.za> Change by Ned Deily : ---------- keywords: +patch pull_requests: +7236 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 22:41:17 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 02:41:17 +0000 Subject: [issue33745] 3.7.0b5 changes the line number of empty functions with docstrings In-Reply-To: <1528024309.59.0.592728768989.issue33745@psf.upfronthosting.co.za> Message-ID: <1528684877.04.0.592728768989.issue33745@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 12c6cdf4d16078aa09de32a39193c8161177b39d by Ned Deily in branch 'master': bpo-33745: Add What's New for empty function docstring change. (GH-7611) https://github.com/python/cpython/commit/12c6cdf4d16078aa09de32a39193c8161177b39d ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 22:42:24 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 02:42:24 +0000 Subject: [issue33745] 3.7.0b5 changes the line number of empty functions with docstrings In-Reply-To: <1528024309.59.0.592728768989.issue33745@psf.upfronthosting.co.za> Message-ID: <1528684944.36.0.592728768989.issue33745@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7237 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 23:00:19 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 03:00:19 +0000 Subject: [issue33745] 3.7.0b5 changes the line number of empty functions with docstrings In-Reply-To: <1528024309.59.0.592728768989.issue33745@psf.upfronthosting.co.za> Message-ID: <1528686019.44.0.592728768989.issue33745@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 14a190c88273fb22d9439bbed394f19f21e8a0f9 by Miss Islington (bot) in branch '3.7': bpo-33745: Add What's New for empty function docstring change. (GH-7611) https://github.com/python/cpython/commit/14a190c88273fb22d9439bbed394f19f21e8a0f9 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 10 23:02:20 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 03:02:20 +0000 Subject: [issue33745] 3.7.0b5 changes the line number of empty functions with docstrings In-Reply-To: <1528024309.59.0.592728768989.issue33745@psf.upfronthosting.co.za> Message-ID: <1528686140.87.0.592728768989.issue33745@psf.upfronthosting.co.za> Ned Deily added the comment: The 3.7 What's New has been updated as Nick suggested. Thanks, Nick, and thanks, Ned, for bringing it up! ---------- priority: deferred blocker -> resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 00:04:00 2018 From: report at bugs.python.org (Raymond Hettinger) Date: Mon, 11 Jun 2018 04:04:00 +0000 Subject: [issue33825] Change mentions of "magic" attributes to "special" In-Reply-To: <1528681966.39.0.592728768989.issue33825@psf.upfronthosting.co.za> Message-ID: <1528689840.74.0.592728768989.issue33825@psf.upfronthosting.co.za> Raymond Hettinger added the comment: Both terms are in common use. There is no need to elide the word "special". ---------- nosy: +rhettinger _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 01:26:01 2018 From: report at bugs.python.org (Tal Einat) Date: Mon, 11 Jun 2018 05:26:01 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528694761.73.0.592728768989.issue33770@psf.upfronthosting.co.za> Tal Einat added the comment: The change is not entirely backward-compatible, so not back-porting before 3.7 seems good to me. IMO this should be closed. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 01:31:13 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 05:31:13 +0000 Subject: [issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding In-Reply-To: <1528142011.45.0.592728768989.issue33770@psf.upfronthosting.co.za> Message-ID: <1528695073.38.0.592728768989.issue33770@psf.upfronthosting.co.za> Change by Ned Deily : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7, Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 01:39:42 2018 From: report at bugs.python.org (Poul-Henning Kamp) Date: Mon, 11 Jun 2018 05:39:42 +0000 Subject: [issue33687] uu.py calls os.path.chmod which doesn't exist In-Reply-To: <1527631327.84.0.682650639539.issue33687@psf.upfronthosting.co.za> Message-ID: <1528695582.09.0.592728768989.issue33687@psf.upfronthosting.co.za> Poul-Henning Kamp added the comment: I was just playing with it in a prototype and noticed that it didn't work. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 01:52:17 2018 From: report at bugs.python.org (INADA Naoki) Date: Mon, 11 Jun 2018 05:52:17 +0000 Subject: [issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set In-Reply-To: <1493196813.64.0.567701209744.issue30167@psf.upfronthosting.co.za> Message-ID: <1528696337.63.0.592728768989.issue30167@psf.upfronthosting.co.za> Change by INADA Naoki : ---------- pull_requests: +7238 stage: needs patch -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 02:12:03 2018 From: report at bugs.python.org (INADA Naoki) Date: Mon, 11 Jun 2018 06:12:03 +0000 Subject: [issue33578] cjkcodecs missing getstate and setstate implementations In-Reply-To: <1526713206.06.0.682650639539.issue33578@psf.upfronthosting.co.za> Message-ID: <1528697523.42.0.592728768989.issue33578@psf.upfronthosting.co.za> Change by INADA Naoki : ---------- type: behavior -> enhancement versions: -Python 2.7, Python 3.6, Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 02:16:37 2018 From: report at bugs.python.org (Thomas Viehmann) Date: Mon, 11 Jun 2018 06:16:37 +0000 Subject: [issue33826] enable discovery of class source code in IPython interactively defined classes Message-ID: <1528697796.87.0.592728768989.issue33826@psf.upfronthosting.co.za> New submission from Thomas Viehmann : Hello, thank you for Python! In IPython (or Jupyter), `inspect.getsource` is able to retrieve the source code for functions but not classes. The fundamental reason is that for functions, a "filename" (input reference rather) is available via fn.__code__.co_filename, while for classes, there is no equivalent (and __module__ is __main__, so no "filename" there). This could be helped by providing a "__filename__" (or however named) attribute in classes. Some digging in the Python code suggests that Python/bltinmodule.c might be a good place to resolve this, namely in function builtin___build_class__. In there, there is the func object and so ((PyCodeObject*) PyFunction_GET_CODE(func))->co_filename has the filename. Then one would copy that to an appropriate item in the namespace ns. I do have a patch (against python 3.6), but as this is my first attempt at digging in the internals, it is probably more than just a bit raw (I see test failures in test_dbm test_lib2to3 test_pydoc test_site, at least test_pydoc is due to the patch). Best regards Thomas ---------- components: Interpreter Core, Library (Lib) files: class-filename.diff keywords: patch messages: 319274 nosy: t-vi priority: normal severity: normal status: open title: enable discovery of class source code in IPython interactively defined classes type: enhancement versions: Python 3.8 Added file: https://bugs.python.org/file47638/class-filename.diff _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 02:21:44 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 11 Jun 2018 06:21:44 +0000 Subject: [issue33687] uu.py calls os.path.chmod which doesn't exist In-Reply-To: <1527631327.84.0.682650639539.issue33687@psf.upfronthosting.co.za> Message-ID: <1528698104.94.0.592728768989.issue33687@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: I concur with Martin. If this feature never worked, there is a risk of breaking user code when fix it. Let consider this as adding a new feature in 3.8. For older versions it should be documented that the mode of the output file is not set. And I agree that it would be more safe to use os.open(). Either call os.open() and pass the file descriptor to the builtin open() (but be careful to not leak it) or use the opener argument of open(). def opener(path, flags): return os.open(path, flags, mode) fp = open(out_file, 'wb', opener=opener) It would be worth also to use the 'xb' opening mode instead of 'wb'. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 02:23:53 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 11 Jun 2018 06:23:53 +0000 Subject: [issue33687] uu.py calls os.path.chmod which doesn't exist In-Reply-To: <1527631327.84.0.682650639539.issue33687@psf.upfronthosting.co.za> Message-ID: <1528698233.53.0.592728768989.issue33687@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: But 'xb' should be used only if out_file is not specified. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 03:09:43 2018 From: report at bugs.python.org (Python++) Date: Mon, 11 Jun 2018 07:09:43 +0000 Subject: [issue33823] A BUG in concurrent/asyncio In-Reply-To: <1528654688.47.0.592728768989.issue33823@psf.upfronthosting.co.za> Message-ID: Python++ added the comment: First Kind of resutl sets: ===================================================== Process-2:<4816> is ProcessExecuting [0] MainThread:<4816> is ThreadExecuting [0] exe_iter:0 sub_iter:0 Run for Wheel and result:0 callback number:1 MainThread:<4816> is ThreadExecuting [1] exe_iter:0 sub_iter:1 Run for Wheel and result:2 callback number:2 Process-1:<4512> is ProcessExecuting [1] MainThread:<4512> is ThreadExecuting [0] exe_iter:1 sub_iter:0 Run for Wheel and result:0 callback number:1 MainThread:<4512> is ThreadExecuting [1] exe_iter:1 sub_iter:1 Run for Wheel and result:2 callback number:2 ====================================================== Program runs with different Threads: Tread ID: 4816 and 4512 callback numbers are 1, 2; 1, 2 ==================================================== Second Kind of resutl sets: ====================================================== Process-1:<7360> is ProcessExecuting [0] MainThread:<7360> is ThreadExecuting [0] exe_iter:0 sub_iter:0 Run for Wheel and result:0 callback number:1 MainThread:<7360> is ThreadExecuting [1] exe_iter:0 sub_iter:1 Run for Wheel and result:2 callback number:2 Process-1:<7360> is ProcessExecuting [1] MainThread:<7360> is ThreadExecuting [0] exe_iter:1 sub_iter:0 Run for Wheel and result:0 callback number:3 MainThread:<7360> is ThreadExecuting [1] exe_iter:1 sub_iter:1 Run for Wheel and result:2 callback number:4 ================================================= Program runs with the same and only Thread: Tread ID: 7360 callback numbers are 1, 2; 3, 4 Based on the above situation, it is impossible to ensure that multiple processes will run the program all the way by employing Process Pool. 2018-06-11 2:18 GMT+08:00 Yury Selivanov : > > Yury Selivanov added the comment: > > > which results in the resulting statistics of the last code run cannot be > promised to be separated. > > I'm sorry but I cannot parse your message and the attached code snippet. > Please try to formulate the actual bug/feature request more clearly. > > ---------- > > _______________________________________ > Python tracker > > _______________________________________ > ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 03:12:04 2018 From: report at bugs.python.org (Python++) Date: Mon, 11 Jun 2018 07:12:04 +0000 Subject: [issue33823] A BUG in concurrent/asyncio In-Reply-To: Message-ID: Python++ added the comment: First Kind of resutl sets: ===================================================== Process-2:<4816> is ProcessExecuting [0] MainThread:<4816> is ThreadExecuting [0] exe_iter:0 sub_iter:0 Run for Wheel and result:0 callback number:1 MainThread:<4816> is ThreadExecuting [1] exe_iter:0 sub_iter:1 Run for Wheel and result:2 callback number:2 Process-1:<4512> is ProcessExecuting [1] MainThread:<4512> is ThreadExecuting [0] exe_iter:1 sub_iter:0 Run for Wheel and result:0 callback number:1 MainThread:<4512> is ThreadExecuting [1] exe_iter:1 sub_iter:1 Run for Wheel and result:2 callback number:2 ====================================================== Program runs with different Threads: Tread ID: 4816 and 4512 callback numbers are 1, 2; 1, 2 ==================================================== Second Kind of resutl sets: ====================================================== Process-1:<7360> is ProcessExecuting [0] MainThread:<7360> is ThreadExecuting [0] exe_iter:0 sub_iter:0 Run for Wheel and result:0 callback number:1 MainThread:<7360> is ThreadExecuting [1] exe_iter:0 sub_iter:1 Run for Wheel and result:2 callback number:2 Process-1:<7360> is ProcessExecuting [1] MainThread:<7360> is ThreadExecuting [0] exe_iter:1 sub_iter:0 Run for Wheel and result:0 callback number:3 MainThread:<7360> is ThreadExecuting [1] exe_iter:1 sub_iter:1 Run for Wheel and result:2 callback number:4 ================================================= Program runs with the same and only Thread: Tread ID: 7360 callback numbers are 1, 2; 3, 4 Based on the above situation, it is impossible to ensure that multiple processes will run the program all the way by employing Process Pool. 2018-06-11 15:09 GMT+08:00 Python++ : > > Python++ added the comment: > > First Kind of resutl sets: > > ===================================================== > > Process-2:<4816> is ProcessExecuting [0] > MainThread:<4816> is ThreadExecuting [0] > exe_iter:0 sub_iter:0 > Run for Wheel and result:0 > callback number:1 > MainThread:<4816> is ThreadExecuting [1] > exe_iter:0 sub_iter:1 > Run for Wheel and result:2 > callback number:2 > Process-1:<4512> is ProcessExecuting [1] > MainThread:<4512> is ThreadExecuting [0] > exe_iter:1 sub_iter:0 > Run for Wheel and result:0 > callback number:1 > MainThread:<4512> is ThreadExecuting [1] > exe_iter:1 sub_iter:1 > Run for Wheel and result:2 > callback number:2 > ====================================================== > Program runs with different Threads: > Tread ID: 4816 and 4512 > callback numbers are 1, 2; 1, 2 > ==================================================== > > Second Kind of resutl sets: > > ====================================================== > Process-1:<7360> is ProcessExecuting [0] > MainThread:<7360> is ThreadExecuting [0] > exe_iter:0 sub_iter:0 > Run for Wheel and result:0 > callback number:1 > MainThread:<7360> is ThreadExecuting [1] > exe_iter:0 sub_iter:1 > Run for Wheel and result:2 > callback number:2 > Process-1:<7360> is ProcessExecuting [1] > MainThread:<7360> is ThreadExecuting [0] > exe_iter:1 sub_iter:0 > Run for Wheel and result:0 > callback number:3 > MainThread:<7360> is ThreadExecuting [1] > exe_iter:1 sub_iter:1 > Run for Wheel and result:2 > callback number:4 > ================================================= > > Program runs with the same and only Thread: > Tread ID: 7360 > callback numbers are 1, 2; 3, 4 > > Based on the above situation, it is impossible to ensure that multiple > processes will run the program all the way by employing Process Pool. > > 2018-06-11 2:18 GMT+08:00 Yury Selivanov : > > > > > Yury Selivanov added the comment: > > > > > which results in the resulting statistics of the last code run cannot > be > > promised to be separated. > > > > I'm sorry but I cannot parse your message and the attached code snippet. > > Please try to formulate the actual bug/feature request more clearly. > > > > ---------- > > > > _______________________________________ > > Python tracker > > > > _______________________________________ > > > > ---------- > > _______________________________________ > Python tracker > > _______________________________________ > ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 03:16:13 2018 From: report at bugs.python.org (Michel Albert) Date: Mon, 11 Jun 2018 07:16:13 +0000 Subject: [issue33827] Generators with lru_cache can be non-intuituve Message-ID: <1528701373.03.0.592728768989.issue33827@psf.upfronthosting.co.za> New submission from Michel Albert : Consider the following code: # filename: foo.py from functools import lru_cache @lru_cache(10) def bar(): yield 10 yield 20 yield 30 # This loop will work as expected for row in bar(): print(row) # This loop will not loop over anything. # The cache will return an already consumed generator. for row in bar(): print(row) This behaviour is natural, but it is almost invisible to the caller of "foo". The main issue is one of "surprise". When inspecting the output of "foo" it is clear that the output is a generator: >>> import foo >>> foo.bar() **Very** careful inspection will reveal that each call will return the same generator instance. So to an observant user the following is an expected behaviour: >>> result = foo.bar() >>> for row in result: ... print(row) ... 10 20 30 >>> for row in result: ... print(row) ... >>> However, the following is not: >>> import foo >>> result = foo.bar() >>> for row in result: ... print(row) ... 10 20 30 >>> result = foo.bar() >>> for row in result: ... print(row) ... >>> Would it make sense to emit a warning (or even raise an exception) in `lru_cache` if the return value of the cached function is a generator? I can think of situation where it makes sense to combine the two. For example the situation I am currently in: I have a piece of code which loops several times over the same SNMP table. Having a generator makes the application far more responsive. And having the cache makes it even faster on subsequent calls. But the gain I get from the cache is bigger than the gain from the generator. So I would be okay with converting the result to a list before storing it in the cache. What is your opinion on this issue? Would it make sense to add a warning? ---------- messages: 319279 nosy: exhuma priority: normal severity: normal status: open title: Generators with lru_cache can be non-intuituve type: behavior _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 03:41:50 2018 From: report at bugs.python.org (Tal Einat) Date: Mon, 11 Jun 2018 07:41:50 +0000 Subject: [issue24356] venv documentation incorrect / misleading In-Reply-To: <1433197293.5.0.203233804739.issue24356@psf.upfronthosting.co.za> Message-ID: <1528702910.61.0.592728768989.issue24356@psf.upfronthosting.co.za> Change by Tal Einat : ---------- nosy: -taleinat _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 03:52:58 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 11 Jun 2018 07:52:58 +0000 Subject: [issue32469] Generator and coroutine repr could be more helpful In-Reply-To: <1514750009.12.0.467229070634.issue32469@psf.upfronthosting.co.za> Message-ID: <1528703578.33.0.592728768989.issue32469@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Isn't it too verbose? For comparison, the repr of function doesn't contain the file path and the line number. And the hexadecimal address in the middle looks distractive. ---------- components: +Interpreter Core type: -> enhancement versions: +Python 3.8 -Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 03:52:59 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 07:52:59 +0000 Subject: [issue23404] 'make touch' does not work with git clones of the source repository In-Reply-To: <1423262765.96.0.527396909.issue23404@psf.upfronthosting.co.za> Message-ID: <1528703579.89.0.592728768989.issue23404@psf.upfronthosting.co.za> Change by Ned Deily : ---------- pull_requests: +7239 stage: backport needed -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 04:02:25 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 11 Jun 2018 08:02:25 +0000 Subject: [issue33827] Generators with lru_cache can be non-intuituve In-Reply-To: <1528701373.03.0.592728768989.issue33827@psf.upfronthosting.co.za> Message-ID: <1528704145.26.0.592728768989.issue33827@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: No, this will break cases when you need to cache generators. There are many ways of using lru_cache improperly, and we can't distinguish incorrect uses from intentional correct uses. ---------- assignee: -> rhettinger nosy: +rhettinger, serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 04:09:43 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 08:09:43 +0000 Subject: [issue23404] 'make touch' does not work with git clones of the source repository In-Reply-To: <1423262765.96.0.527396909.issue23404@psf.upfronthosting.co.za> Message-ID: <1528704583.6.0.592728768989.issue23404@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 9d6171ded5c56679bc295bacffc718472bcb706b by Ned Deily in branch 'master': bpo-23404: Update/sync What's New files for 3.6/3.5/2.7 (GH-7620) https://github.com/python/cpython/commit/9d6171ded5c56679bc295bacffc718472bcb706b ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 04:10:51 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 08:10:51 +0000 Subject: [issue23404] 'make touch' does not work with git clones of the source repository In-Reply-To: <1423262765.96.0.527396909.issue23404@psf.upfronthosting.co.za> Message-ID: <1528704651.8.0.592728768989.issue23404@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7240 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 04:18:52 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 08:18:52 +0000 Subject: [issue23404] 'make touch' does not work with git clones of the source repository In-Reply-To: <1423262765.96.0.527396909.issue23404@psf.upfronthosting.co.za> Message-ID: <1528705132.01.0.592728768989.issue23404@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 144493dd7f2640f7e9091862ece3e0a6aca07884 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-23404: Update/sync What's New files for 3.6/3.5/2.7 (GH-7620) (GH-7621) https://github.com/python/cpython/commit/144493dd7f2640f7e9091862ece3e0a6aca07884 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 04:24:52 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 08:24:52 +0000 Subject: [issue23404] 'make touch' does not work with git clones of the source repository In-Reply-To: <1423262765.96.0.527396909.issue23404@psf.upfronthosting.co.za> Message-ID: <1528705492.8.0.592728768989.issue23404@psf.upfronthosting.co.za> Change by Ned Deily : ---------- pull_requests: +7241 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 04:33:19 2018 From: report at bugs.python.org (Xiang Zhang) Date: Mon, 11 Jun 2018 08:33:19 +0000 Subject: [issue33828] Add versionchanged notes for string.Formatter Message-ID: <1528705999.65.0.592728768989.issue33828@psf.upfronthosting.co.za> New submission from Xiang Zhang : I propose to add versionchanged note about auto-numbering feature of string.Formatter, introduced in #13598. It's quite confusing which version could I use the feature reading the doc. Also it's better to note in 2.7 the feature is not available. Currently the doc gives me the feeling string.Formatter and str.format share the same feature and the auto-numbering feature is available in 2.7 and >3.1. ---------- assignee: docs at python components: Documentation messages: 319284 nosy: docs at python, eric.smith, xiang.zhang priority: normal severity: normal stage: needs patch status: open title: Add versionchanged notes for string.Formatter versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 04:33:30 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 08:33:30 +0000 Subject: [issue23404] 'make touch' does not work with git clones of the source repository In-Reply-To: <1423262765.96.0.527396909.issue23404@psf.upfronthosting.co.za> Message-ID: <1528706010.71.0.592728768989.issue23404@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 1b5731e2761a9a1b7394b3a81ed267f94fde42ca by Ned Deily in branch '3.6': bpo-23404: Update/sync What's New files for 3.6/3.5/2.7 (GH-7622) https://github.com/python/cpython/commit/1b5731e2761a9a1b7394b3a81ed267f94fde42ca ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 04:42:32 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 08:42:32 +0000 Subject: [issue23404] 'make touch' does not work with git clones of the source repository In-Reply-To: <1423262765.96.0.527396909.issue23404@psf.upfronthosting.co.za> Message-ID: <1528706552.06.0.592728768989.issue23404@psf.upfronthosting.co.za> Change by Ned Deily : ---------- pull_requests: +7242 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 04:56:36 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 08:56:36 +0000 Subject: [issue23404] 'make touch' does not work with git clones of the source repository In-Reply-To: <1423262765.96.0.527396909.issue23404@psf.upfronthosting.co.za> Message-ID: <1528707396.61.0.592728768989.issue23404@psf.upfronthosting.co.za> Change by Ned Deily : ---------- pull_requests: +7243 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 05:01:05 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 09:01:05 +0000 Subject: [issue23404] 'make touch' does not work with git clones of the source repository In-Reply-To: <1423262765.96.0.527396909.issue23404@psf.upfronthosting.co.za> Message-ID: <1528707665.14.0.592728768989.issue23404@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 4fde701133643d09354ec4bda6bdf78d85aed797 by Ned Deily in branch '2.7': bpo-23404: Update/sync What's New files for 3.6/3.5/2.7 (GH-7624) https://github.com/python/cpython/commit/4fde701133643d09354ec4bda6bdf78d85aed797 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 05:04:17 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 09:04:17 +0000 Subject: [issue23404] 'make touch' does not work with git clones of the source repository In-Reply-To: <1423262765.96.0.527396909.issue23404@psf.upfronthosting.co.za> Message-ID: <1528707857.35.0.592728768989.issue23404@psf.upfronthosting.co.za> Ned Deily added the comment: I've updated and synced the What's New files across master, 3.7, 3.6, 3.5 (PR pending RM merge), and 2.7. So I think we are finally done here. ---------- priority: deferred blocker -> normal resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 05:54:30 2018 From: report at bugs.python.org (=?utf-8?q?Bartosz_Go=C5=82aszewski?=) Date: Mon, 11 Jun 2018 09:54:30 +0000 Subject: [issue33829] C API: provide new object protocol helper Message-ID: <1528710870.35.0.592728768989.issue33829@psf.upfronthosting.co.za> New submission from Bartosz Go?aszewski : If we want to call an object's method from C code and pass it the args and kwargs tuples unchanged, we need to first retrieve the callable object using PyObject_GetAttrString(), then call it using PyObject_Call(). I would like to propose wrapping the two calls in a new helper. ---------- components: Extension Modules messages: 319288 nosy: Bartosz Go?aszewski priority: normal severity: normal status: open title: C API: provide new object protocol helper type: enhancement versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 05:57:33 2018 From: report at bugs.python.org (Roundup Robot) Date: Mon, 11 Jun 2018 09:57:33 +0000 Subject: [issue33829] C API: provide new object protocol helper In-Reply-To: <1528710870.35.0.592728768989.issue33829@psf.upfronthosting.co.za> Message-ID: <1528711053.79.0.592728768989.issue33829@psf.upfronthosting.co.za> Change by Roundup Robot : ---------- keywords: +patch pull_requests: +7244 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 06:19:00 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 11 Jun 2018 10:19:00 +0000 Subject: [issue33829] C API: provide new object protocol helper In-Reply-To: <1528710870.35.0.592728768989.issue33829@psf.upfronthosting.co.za> Message-ID: <1528712340.96.0.592728768989.issue33829@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Is this case common enough for adding special API? The name PyObject_CallMethodArgs looks too similar to the existing name PyObject_CallMethodObjArgs, this will make confusion. If add an API that accepts the method name as C string, you need to add also an API for method name passed as Python string and a private API for method name passed as `struct _Py_Identifier *`. Adding new API has a non-zero cost. It adds maintenance burden for core developers, it increases the number of things that should be learned by users, and can leads to generating less optimal code by the compiler, because it will need to analyze more code in the same file, and it can optimize less common paths and left more common paths unoptimized. Are you aware that you can pass the args tuple unchanged by using PyObject_CallMethod()? PyObject_CallMethod(obj, name, "O", args) ---------- nosy: +serhiy.storchaka, vstinner _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 06:43:53 2018 From: report at bugs.python.org (Tal Einat) Date: Mon, 11 Jun 2018 10:43:53 +0000 Subject: [issue1529353] Squeezer - squeeze large output in the interpreter Message-ID: <1528713833.93.0.592728768989.issue1529353@psf.upfronthosting.co.za> Change by Tal Einat : ---------- pull_requests: +7245 stage: needs patch -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 06:45:03 2018 From: report at bugs.python.org (Aifu LIU) Date: Mon, 11 Jun 2018 10:45:03 +0000 Subject: [issue33830] example output error Message-ID: <1528713903.44.0.592728768989.issue33830@psf.upfronthosting.co.za> New submission from Aifu LIU : The output of this line: print r2.status, r2.reason should same as: print r1.status, r1.reason from https://docs.python.org/2.7/library/httplib.html >>> import httplib >>> conn = httplib.HTTPSConnection("www.python.org") >>> conn.request("GET", "/") >>> r1 = conn.getresponse() >>> print r1.status, r1.reason 200 OK >>> data1 = r1.read() >>> conn.request("GET", "/") >>> r2 = conn.getresponse() >>> print r2.status, r2.reason 404 Not Found >>> data2 = r2.read() >>> conn.close() ---------- assignee: docs at python components: Documentation messages: 319290 nosy: Aifu LIU, docs at python priority: normal severity: normal status: open title: example output error versions: Python 2.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 06:48:25 2018 From: report at bugs.python.org (Tal Einat) Date: Mon, 11 Jun 2018 10:48:25 +0000 Subject: [issue1529353] Squeezer - squeeze large output in the interpreter Message-ID: <1528714105.78.0.592728768989.issue1529353@psf.upfronthosting.co.za> Tal Einat added the comment: New PR ready for review. I've updated the code for recent master and cleaned up the deprecation warnings from the tests. ---------- versions: +Python 3.5, Python 3.6, Python 3.7, Python 3.8 -Python 3.4 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 07:03:18 2018 From: report at bugs.python.org (Tal Einat) Date: Mon, 11 Jun 2018 11:03:18 +0000 Subject: [issue2053] IDLE - standardize dialogs In-Reply-To: <1202515821.86.0.159216664847.issue2053@psf.upfronthosting.co.za> Message-ID: <1528714998.81.0.592728768989.issue2053@psf.upfronthosting.co.za> Tal Einat added the comment: I suggest that we close this issue. IMO the potential benefit is too small relative to the work required, and the interest is too low. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 07:15:19 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 11 Jun 2018 11:15:19 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528715719.65.0.592728768989.issue33738@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- pull_requests: +7246 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 07:28:07 2018 From: report at bugs.python.org (Martin Panter) Date: Mon, 11 Jun 2018 11:28:07 +0000 Subject: [issue33830] example output error In-Reply-To: <1528713903.44.0.592728768989.issue33830@psf.upfronthosting.co.za> Message-ID: <1528716487.9.0.592728768989.issue33830@psf.upfronthosting.co.za> Martin Panter added the comment: Looks like poor application of a Python 3 patch in Issue 24118. The second request was meant to be for /parrot.spam. ---------- nosy: +benjamin.peterson, martin.panter _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 07:30:30 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 11 Jun 2018 11:30:30 +0000 Subject: [issue32493] UUID Module - FreeBSD build failure In-Reply-To: <1515092270.67.0.467229070634.issue32493@psf.upfronthosting.co.za> Message-ID: <1528716630.52.0.592728768989.issue32493@psf.upfronthosting.co.za> STINNER Victor added the comment: > Would it be easier to split it into 3 issues? One for unixdll, one for netstat, and one for test_uuid? One issue for AIX should be enough. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 07:31:10 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Mon, 11 Jun 2018 11:31:10 +0000 Subject: [issue33825] Change mentions of "magic" attributes to "special" In-Reply-To: <1528681966.39.0.592728768989.issue33825@psf.upfronthosting.co.za> Message-ID: <1528716670.42.0.592728768989.issue33825@psf.upfronthosting.co.za> Andr?s Delfino added the comment: ok :) ---------- resolution: -> not a bug stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 07:34:08 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 11 Jun 2018 11:34:08 +0000 Subject: [issue33829] C API: provide new object protocol helper In-Reply-To: <1528710870.35.0.592728768989.issue33829@psf.upfronthosting.co.za> Message-ID: <1528716848.96.0.592728768989.issue33829@psf.upfronthosting.co.za> STINNER Victor added the comment: > PyObject_CallMethodArgs(PyObject *obj, const char *name, PyObject *args, PyObject *kwargs) This API is not efficient. It requires to create a temporary tuple and dictionary to pass position and keyword arguments. Look at FASTCALL which has a very different API. Sadly, FASTCALL APIs are currently private. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 07:35:30 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 11 Jun 2018 11:35:30 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528716930.76.0.592728768989.issue33738@psf.upfronthosting.co.za> STINNER Victor added the comment: AMD64 Windows8.1 Non-Debug 3.x buildbot is back to green. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 07:48:15 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Mon, 11 Jun 2018 11:48:15 +0000 Subject: [issue33831] Make htmlview work in make.bat Message-ID: <1528717695.86.0.592728768989.issue33831@psf.upfronthosting.co.za> New submission from Andr?s Delfino : The start command understands the first quoted string as the window title, so nothing is being executed right now. PR fixes this. ---------- components: Windows messages: 319298 nosy: adelfino, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Make htmlview work in make.bat type: enhancement versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 07:49:30 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Mon, 11 Jun 2018 11:49:30 +0000 Subject: [issue33831] Make htmlview work in make.bat In-Reply-To: <1528717695.86.0.592728768989.issue33831@psf.upfronthosting.co.za> Message-ID: <1528717770.77.0.592728768989.issue33831@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- keywords: +patch pull_requests: +7247 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 07:50:36 2018 From: report at bugs.python.org (Tal Einat) Date: Mon, 11 Jun 2018 11:50:36 +0000 Subject: [issue1927] Change input() to always prompt to stderr In-Reply-To: <1201206078.95.0.997961854688.issue1927@psf.upfronthosting.co.za> Message-ID: <1528717836.49.0.592728768989.issue1927@psf.upfronthosting.co.za> Change by Tal Einat : ---------- nosy: -taleinat _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 07:54:24 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 11 Jun 2018 11:54:24 +0000 Subject: [issue32356] asyncio: Make transport.pause_reading()/resume_reading() idempotent; add transport.is_reading() In-Reply-To: <1513568775.87.0.213398074469.issue32356@psf.upfronthosting.co.za> Message-ID: <1528718064.83.0.592728768989.issue32356@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7248 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 07:55:56 2018 From: report at bugs.python.org (STINNER Victor) Date: Mon, 11 Jun 2018 11:55:56 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <0EEA7964-A368-4282-A5BC-AE2206B54094@gmail.com> Message-ID: STINNER Victor added the comment: "Since it a minor change we can reconsider it as s bug fix. Feel free to make a pr." Ok, I created https://github.com/python/cpython/pull/7629/ for bpo-32356 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 07:56:31 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Mon, 11 Jun 2018 11:56:31 +0000 Subject: [issue33832] Make "magic methods" a little more discoverable in the docs Message-ID: <1528718191.62.0.592728768989.issue33832@psf.upfronthosting.co.za> New submission from Andr?s Delfino : PR adds "magic method" to the glossary, and adds a mention in Data Model 3.3. Special method names. ---------- assignee: docs at python components: Documentation messages: 319300 nosy: adelfino, docs at python priority: normal severity: normal status: open title: Make "magic methods" a little more discoverable in the docs type: enhancement versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 07:57:36 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Mon, 11 Jun 2018 11:57:36 +0000 Subject: [issue33832] Make "magic methods" a little more discoverable in the docs In-Reply-To: <1528718191.62.0.592728768989.issue33832@psf.upfronthosting.co.za> Message-ID: <1528718256.05.0.592728768989.issue33832@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- keywords: +patch pull_requests: +7249 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 08:01:50 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 11 Jun 2018 12:01:50 +0000 Subject: [issue33738] PyIndex_Check conflicts with PEP 384 In-Reply-To: <1527873299.01.0.81473610881.issue33738@psf.upfronthosting.co.za> Message-ID: <1528718510.96.0.592728768989.issue33738@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: New changeset 5cbefa99198729a1d4e93d93f890c066039ee1d2 by Serhiy Storchaka in branch 'master': Clean up after bpo-33738. (GH-7627) https://github.com/python/cpython/commit/5cbefa99198729a1d4e93d93f890c066039ee1d2 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 08:47:33 2018 From: report at bugs.python.org (Zackery Spytz) Date: Mon, 11 Jun 2018 12:47:33 +0000 Subject: [issue30820] email.contentmanager.raw_data_manager fails to create multipart messages In-Reply-To: <1498842221.12.0.837001254234.issue30820@psf.upfronthosting.co.za> Message-ID: <1528721253.71.0.592728768989.issue30820@psf.upfronthosting.co.za> Change by Zackery Spytz : ---------- keywords: +patch pull_requests: +7250 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 08:49:48 2018 From: report at bugs.python.org (Zackery Spytz) Date: Mon, 11 Jun 2018 12:49:48 +0000 Subject: [issue30820] email.contentmanager.raw_data_manager fails to create multipart messages In-Reply-To: <1498842221.12.0.837001254234.issue30820@psf.upfronthosting.co.za> Message-ID: <1528721388.54.0.592728768989.issue30820@psf.upfronthosting.co.za> Change by Zackery Spytz : ---------- nosy: +ZackerySpytz versions: +Python 3.7, Python 3.8 -Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 09:13:21 2018 From: report at bugs.python.org (Cheryl Sabella) Date: Mon, 11 Jun 2018 13:13:21 +0000 Subject: [issue17286] Make subprocess handling text output with universal_newlines more obious In-Reply-To: <1361708455.88.0.426093416103.issue17286@psf.upfronthosting.co.za> Message-ID: <1528722801.15.0.592728768989.issue17286@psf.upfronthosting.co.za> Change by Cheryl Sabella : ---------- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> subprocess.run should alias universal_newlines to text _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 09:47:30 2018 From: report at bugs.python.org (twisteroid ambassador) Date: Mon, 11 Jun 2018 13:47:30 +0000 Subject: [issue33833] ProactorEventLoop raises AssertionError Message-ID: <1528724850.44.0.592728768989.issue33833@psf.upfronthosting.co.za> New submission from twisteroid ambassador : Sometimes when a socket transport under ProactorEventLoop is writing while the peer closes the connection, asyncio logs an AssertionError. Attached is a script that fairly reliably reproduces the behavior on my computer. This is caused by _ProactorBasePipeTransport._force_close() being called between two invocations of _ProactorBaseWritePipeTransport._loop_writing(), where the latter call asserts self._write_fut has not changed after being set by the former call. ---------- components: asyncio files: test_proactor_force_close.py messages: 319302 nosy: asvetlov, twisteroid ambassador, yselivanov priority: normal severity: normal status: open title: ProactorEventLoop raises AssertionError versions: Python 3.6, Python 3.7, Python 3.8 Added file: https://bugs.python.org/file47639/test_proactor_force_close.py _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 09:47:44 2018 From: report at bugs.python.org (twisteroid ambassador) Date: Mon, 11 Jun 2018 13:47:44 +0000 Subject: [issue33833] ProactorEventLoop raises AssertionError In-Reply-To: <1528724850.44.0.592728768989.issue33833@psf.upfronthosting.co.za> Message-ID: <1528724864.05.0.592728768989.issue33833@psf.upfronthosting.co.za> Change by twisteroid ambassador : ---------- type: -> behavior _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 09:54:02 2018 From: report at bugs.python.org (twisteroid ambassador) Date: Mon, 11 Jun 2018 13:54:02 +0000 Subject: [issue33833] ProactorEventLoop raises AssertionError In-Reply-To: <1528724850.44.0.592728768989.issue33833@psf.upfronthosting.co.za> Message-ID: <1528725242.28.0.592728768989.issue33833@psf.upfronthosting.co.za> Change by twisteroid ambassador : ---------- keywords: +patch pull_requests: +7251 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 10:03:22 2018 From: report at bugs.python.org (twisteroid ambassador) Date: Mon, 11 Jun 2018 14:03:22 +0000 Subject: [issue33834] Test for ProactorEventLoop logs InvalidStateError Message-ID: <1528725802.67.0.592728768989.issue33834@psf.upfronthosting.co.za> New submission from twisteroid ambassador : When running the built-in regression tests, although test_sendfile_close_peer_in_the_middle_of_receiving on ProactorEventLoop completes successfully, an InvalidStateError is logged. Console output below: test_sendfile_close_peer_in_the_middle_of_receiving (test.test_asyncio.test_events.ProactorEventLoopTests) ... Exception in callback _ProactorReadPipeTransport._loop_reading(<_OverlappedF...ne, 64, None)>) handle: )> Traceback (most recent call last): File "\cpython\lib\asyncio\windows_events.py", line 428, in finish_recv return ov.getresult() OSError: [WinError 64] The specified network name is no longer available During handling of the above exception, another exception occurred: Traceback (most recent call last): File "\cpython\lib\asyncio\proactor_events.py", line 255, in _loop_reading data = fut.result() File "\cpython\lib\asyncio\windows_events.py", line 732, in _poll value = callback(transferred, key, ov) File "\cpython\lib\asyncio\windows_events.py", line 432, in finish_recv raise ConnectionResetError(*exc.args) ConnectionResetError: [WinError 64] The specified network name is no longer available During handling of the above exception, another exception occurred: Traceback (most recent call last): File "\cpython\lib\asyncio\events.py", line 88, in _run self._context.run(self._callback, *self._args) File "\cpython\lib\asyncio\proactor_events.py", line 282, in _loop_reading self._force_close(exc) File "\cpython\lib\asyncio\proactor_events.py", line 117, in _force_close self._empty_waiter.set_exception(exc) concurrent.futures._base.InvalidStateError: invalid state ok ---------- components: asyncio messages: 319303 nosy: asvetlov, twisteroid ambassador, yselivanov priority: normal severity: normal status: open title: Test for ProactorEventLoop logs InvalidStateError type: behavior versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 10:18:30 2018 From: report at bugs.python.org (Tal Einat) Date: Mon, 11 Jun 2018 14:18:30 +0000 Subject: [issue24403] Missing fixer for changed round() behavior In-Reply-To: <1433674721.13.0.236886844827.issue24403@psf.upfronthosting.co.za> Message-ID: <1528726710.2.0.592728768989.issue24403@psf.upfronthosting.co.za> Change by Tal Einat : ---------- nosy: -taleinat _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 10:22:18 2018 From: report at bugs.python.org (Tal Einat) Date: Mon, 11 Jun 2018 14:22:18 +0000 Subject: [issue24384] difflib.SequenceMatcher faster quick_ratio with lower bound specification In-Reply-To: <1433448775.15.0.914528193485.issue24384@psf.upfronthosting.co.za> Message-ID: <1528726938.88.0.592728768989.issue24384@psf.upfronthosting.co.za> Tal Einat added the comment: Since this is a small enhancement proposal that is not sure to be approved, and there has been no followup for years, I vote to close this. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 10:40:32 2018 From: report at bugs.python.org (floyd) Date: Mon, 11 Jun 2018 14:40:32 +0000 Subject: [issue24384] difflib.SequenceMatcher faster quick_ratio with lower bound specification In-Reply-To: <1433448775.15.0.914528193485.issue24384@psf.upfronthosting.co.za> Message-ID: <1528728032.92.0.592728768989.issue24384@psf.upfronthosting.co.za> floyd added the comment: Yes, I agree this should be closed. Especially because my proposed code is so incredibly bad (e.g. regarding performance) that it should be rejected. Back then I was horribly wrong and didn't understand the problem well enough yet. If somebody would like to have such a function, this is all it needs: def quick_ratio_ge(self, a, b, threshold): return threshold <= 2.0*(len(a))/(len(a)+len(b)) Here is how I actually use it in code: https://github.com/modzero/burp-ResponseClusterer/blob/master/ResponseClusterer.py#L343 Sorry for the fuzz ---------- resolution: -> rejected stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 10:46:44 2018 From: report at bugs.python.org (Yury Selivanov) Date: Mon, 11 Jun 2018 14:46:44 +0000 Subject: [issue33833] ProactorEventLoop raises AssertionError In-Reply-To: <1528724850.44.0.592728768989.issue33833@psf.upfronthosting.co.za> Message-ID: <1528728404.22.0.592728768989.issue33833@psf.upfronthosting.co.za> Yury Selivanov added the comment: Adding Victor as he's been helping with asyncio/proactor lately. ---------- nosy: +vstinner _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 10:47:57 2018 From: report at bugs.python.org (R. David Murray) Date: Mon, 11 Jun 2018 14:47:57 +0000 Subject: [issue30820] email.contentmanager.raw_data_manager fails to create multipart messages In-Reply-To: <1498842221.12.0.837001254234.issue30820@psf.upfronthosting.co.za> Message-ID: <1528728477.02.0.592728768989.issue30820@psf.upfronthosting.co.za> R. David Murray added the comment: New changeset 2c071cebe67f517f191f4074757a79b0f597d886 by R. David Murray (Zackery Spytz) in branch 'master': bpo-30820: Remove incorrect docs for email.contentmanager.raw_data_manager (#7631) https://github.com/python/cpython/commit/2c071cebe67f517f191f4074757a79b0f597d886 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 10:49:08 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 14:49:08 +0000 Subject: [issue30820] email.contentmanager.raw_data_manager fails to create multipart messages In-Reply-To: <1498842221.12.0.837001254234.issue30820@psf.upfronthosting.co.za> Message-ID: <1528728548.74.0.592728768989.issue30820@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7252 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 10:49:57 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 14:49:57 +0000 Subject: [issue30820] email.contentmanager.raw_data_manager fails to create multipart messages In-Reply-To: <1498842221.12.0.837001254234.issue30820@psf.upfronthosting.co.za> Message-ID: <1528728597.67.0.592728768989.issue30820@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7253 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 11:42:19 2018 From: report at bugs.python.org (X. Yan) Date: Mon, 11 Jun 2018 15:42:19 +0000 Subject: [issue33835] Too strong side effect? Message-ID: <1528731739.92.0.592728768989.issue33835@psf.upfronthosting.co.za> New submission from X. Yan : I am familiar with quite a few languages such as C++, C, PASCAL, Matlab, etc., but starting to practice Python. When I tested the code: def f(a, L=[]): L.append(a) return L followed by calls as follows, v1 = f(1) v2 = f(2) , to my surprise, I saw the v1's content was changed from initial [1] to [1, 2], when the second call, v2=f(2), was executed. This means when you produce the new value for v2, you have to be very very careful for all the results produced by this function previously, such as what in the v1. They can be changed in the background! I wonder if this side-effect was designed on purpose, or is actually a BUG, because it is too dangerous. ---------- messages: 319308 nosy: xgyan priority: normal severity: normal status: open title: Too strong side effect? type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 11:49:55 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 11 Jun 2018 15:49:55 +0000 Subject: [issue33835] Too strong side effect? In-Reply-To: <1528731739.92.0.592728768989.issue33835@psf.upfronthosting.co.za> Message-ID: <1528732194.99.0.592728768989.issue33835@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: See https://docs.python.org/3/faq/programming.html#why-are-default-values-shared-between-objects . ---------- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 11:59:35 2018 From: report at bugs.python.org (Zachary Ware) Date: Mon, 11 Jun 2018 15:59:35 +0000 Subject: [issue33836] [Good first-time issue] Recommend keyword-only param for memoization in FAQ Message-ID: <1528732775.39.0.592728768989.issue33836@psf.upfronthosting.co.za> New submission from Zachary Ware : In https://docs.python.org/3/faq/programming.html#why-are-default-values-shared-between-objects there is an example showing memoization using `def expensive(arg1, arg2, _cache={}):`. We should change the signature in that example to make `_cache` a keyword-only parameter and possibly adjust the comment to note that that's been done to prevent accidental calls with three positional arguments. Note to existing contributors: if this wouldn't be within your first couple of patches, please leave this for a new contributor to find. Thanks! ---------- assignee: docs at python components: Documentation keywords: easy messages: 319310 nosy: docs at python, zach.ware priority: normal severity: normal stage: needs patch status: open title: [Good first-time issue] Recommend keyword-only param for memoization in FAQ versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 11:59:40 2018 From: report at bugs.python.org (Martin Liska) Date: Mon, 11 Jun 2018 15:59:40 +0000 Subject: [issue33837] Closing asyncio.Server on asyncio.ProactorEventLoop causes all active servers to stop listening Message-ID: <1528732780.1.0.592728768989.issue33837@psf.upfronthosting.co.za> New submission from Martin Liska : When calling asyncio.Server.close, the method calls asyncio.AbstractEventLoop._stop_serving for each of its sockets in turn. The implementation of this method in asyncio.ProactorEventLoop calls the _stop_accept_futures method which seems to cancel "accept" futures of all sockets running on the loop, not just the one that was supposed to be stopped. This means that closing one server closes sockets of all existing servers. With asyncio.SelectorEventLoop there is no such issue. ---------- components: asyncio messages: 319311 nosy: asvetlov, mliska, yselivanov priority: normal severity: normal status: open title: Closing asyncio.Server on asyncio.ProactorEventLoop causes all active servers to stop listening type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 12:01:34 2018 From: report at bugs.python.org (Yury Selivanov) Date: Mon, 11 Jun 2018 16:01:34 +0000 Subject: [issue33837] Closing asyncio.Server on asyncio.ProactorEventLoop causes all active servers to stop listening In-Reply-To: <1528732780.1.0.592728768989.issue33837@psf.upfronthosting.co.za> Message-ID: <1528732894.9.0.592728768989.issue33837@psf.upfronthosting.co.za> Yury Selivanov added the comment: Andrew, do you have time to take a look into this? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 12:11:32 2018 From: report at bugs.python.org (R. David Murray) Date: Mon, 11 Jun 2018 16:11:32 +0000 Subject: [issue30820] email.contentmanager.raw_data_manager fails to create multipart messages In-Reply-To: <1498842221.12.0.837001254234.issue30820@psf.upfronthosting.co.za> Message-ID: <1528733492.84.0.592728768989.issue30820@psf.upfronthosting.co.za> R. David Murray added the comment: New changeset b06fc2d244f95f8a497cbcdc6e2fbeb9b8133ca3 by R. David Murray (Miss Islington (bot)) in branch '3.7': bpo-30820: Remove incorrect docs for email.contentmanager.raw_data_manager (GH-7631) (#7633) https://github.com/python/cpython/commit/b06fc2d244f95f8a497cbcdc6e2fbeb9b8133ca3 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 12:11:54 2018 From: report at bugs.python.org (R. David Murray) Date: Mon, 11 Jun 2018 16:11:54 +0000 Subject: [issue30820] email.contentmanager.raw_data_manager fails to create multipart messages In-Reply-To: <1498842221.12.0.837001254234.issue30820@psf.upfronthosting.co.za> Message-ID: <1528733514.67.0.592728768989.issue30820@psf.upfronthosting.co.za> R. David Murray added the comment: New changeset bbbc3d99dca41bc95a9402d702f6ab833d3003c7 by R. David Murray (Miss Islington (bot)) in branch '3.6': bpo-30820: Remove incorrect docs for email.contentmanager.raw_data_manager (GH-7631) (#7634) https://github.com/python/cpython/commit/bbbc3d99dca41bc95a9402d702f6ab833d3003c7 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 12:12:24 2018 From: report at bugs.python.org (R. David Murray) Date: Mon, 11 Jun 2018 16:12:24 +0000 Subject: [issue30820] email.contentmanager.raw_data_manager fails to create multipart messages In-Reply-To: <1498842221.12.0.837001254234.issue30820@psf.upfronthosting.co.za> Message-ID: <1528733544.0.0.592728768989.issue30820@psf.upfronthosting.co.za> R. David Murray added the comment: Thanks, Zachery. ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 12:14:28 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 11 Jun 2018 16:14:28 +0000 Subject: [issue1529353] Squeezer - squeeze large output in the interpreter Message-ID: <1528733668.28.0.592728768989.issue1529353@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Tal, welcome back to Python and IDLE development. 3.5 only gets security fixes. Please post here a draft doc paragraph. Before reading the code in detail, I will pull it into my repository and try to test it as a 'naive user' who has only read that paragraph. 'Large text' has two meanings: long lines and lots of lines. The former bog down and eventually freeze tkinter Texts. (tk 8.7.0, now in alpha, will feature a re-written Text widget that should solve this.) Lots of (short) lines, at least up to a million, is not a problem for Text, but is for users scrolling back. Which problem does squeezer attack? Both? As the comment at the top of tooltips.py says, it is currently unused. It is also untested. Calltips uses a version of the code. Hence, I was planning to sometime delete tooptips.py. If it to be kept, I would like to see if it can be revised (at least TooltipBase) so it can be used both by calltips_w.py and any new code, such as squeezer. It needs docstrings and a complete test. This would be a separate issue that is a dependency of this one. Since the file is so short, TooltipBase might eventually be put in another file with something else. ---------- assignee: kbk -> terry.reedy nosy: -ajaksu2, gpolo, kbk, roger.serwy priority: low -> normal versions: -Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 12:25:04 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 11 Jun 2018 16:25:04 +0000 Subject: [issue1529353] Squeezer - squeeze large output in the interpreter Message-ID: <1528734304.62.0.592728768989.issue1529353@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Last fall, we converted built-in 'extensions' to regular features. I am reluctant to add new 'extensions'. But I can review the patch as an extension before we worry about this. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 12:58:21 2018 From: report at bugs.python.org (Steve Dower) Date: Mon, 11 Jun 2018 16:58:21 +0000 Subject: [issue33831] Make htmlview work in make.bat In-Reply-To: <1528717695.86.0.592728768989.issue33831@psf.upfronthosting.co.za> Message-ID: <1528736301.32.0.592728768989.issue33831@psf.upfronthosting.co.za> Steve Dower added the comment: New changeset 0e5f901508dea6437dc9ee89b434feca721d45be by Steve Dower (Andr?s Delfino) in branch 'master': bpo-33831: Make htmlview run again (GH-7628) https://github.com/python/cpython/commit/0e5f901508dea6437dc9ee89b434feca721d45be ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 12:59:36 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 16:59:36 +0000 Subject: [issue33831] Make htmlview work in make.bat In-Reply-To: <1528717695.86.0.592728768989.issue33831@psf.upfronthosting.co.za> Message-ID: <1528736376.69.0.592728768989.issue33831@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7254 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 13:01:29 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 17:01:29 +0000 Subject: [issue33831] Make htmlview work in make.bat In-Reply-To: <1528717695.86.0.592728768989.issue33831@psf.upfronthosting.co.za> Message-ID: <1528736489.89.0.592728768989.issue33831@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7255 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 13:06:24 2018 From: report at bugs.python.org (Steve Dower) Date: Mon, 11 Jun 2018 17:06:24 +0000 Subject: [issue33831] Make htmlview work in make.bat In-Reply-To: <1528717695.86.0.592728768989.issue33831@psf.upfronthosting.co.za> Message-ID: <1528736784.49.0.592728768989.issue33831@psf.upfronthosting.co.za> Change by Steve Dower : ---------- pull_requests: +7256 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 13:09:37 2018 From: report at bugs.python.org (Tal Einat) Date: Mon, 11 Jun 2018 17:09:37 +0000 Subject: [issue1529353] Squeezer - squeeze large output in the interpreter Message-ID: <1528736977.46.0.592728768989.issue1529353@psf.upfronthosting.co.za> Tal Einat added the comment: Thanks for the warm welcome, Terry :) > 3.5 only gets security fixes. Yup, my mistake. > 'Large text' has two meanings: long lines and lots of lines. [...] Squeezer handles both long lines and/or large numbers of lines. > As the comment at the top of tooltips.py says, it is currently unused. [...] I'd noticed, but it's still there and it works. I'll be happy to refactor it and add tests. > Last fall, we converted built-in 'extensions' to regular features. I am reluctant to add new 'extensions'. But I can review the patch as an extension before we worry about this. I'd noticed this too, but decided to postpone refactoring this more until I got some updated feedback. If you'd prefer this be added in non-extension form, I can do that. > Please post here a draft doc paragraph. Here's a revised version of the module's doc-string: A common problem in IDLE's interactive shell is printing large amounts of text into the shell. This can cause IDLE to become very slow, even to the point of being completely unusable. It can also make using the scrollbar awkward. Squeezer automatically replaces long texts with a small button, which can be used to access the original long text in several ways, such as copying it to the clipboard. Additionally, any output can be manually "squeezed" by the user. This includes output written to the standard error stream ("stderr"), such as exception tracebacks. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 13:16:08 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 17:16:08 +0000 Subject: [issue33831] Make htmlview work in make.bat In-Reply-To: <1528717695.86.0.592728768989.issue33831@psf.upfronthosting.co.za> Message-ID: <1528737368.6.0.592728768989.issue33831@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 904cdbaa9b660d111f5d5f639b38205192715106 by Miss Islington (bot) in branch '3.7': bpo-33831: Make htmlview run again (GH-7628) https://github.com/python/cpython/commit/904cdbaa9b660d111f5d5f639b38205192715106 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 13:20:07 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 17:20:07 +0000 Subject: [issue33831] Make htmlview work in make.bat In-Reply-To: <1528717695.86.0.592728768989.issue33831@psf.upfronthosting.co.za> Message-ID: <1528737607.83.0.592728768989.issue33831@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 860d8c4a5e0d7cd96dd23f3f7996c97693ae3d55 by Miss Islington (bot) in branch '3.6': bpo-33831: Make htmlview run again (GH-7628) https://github.com/python/cpython/commit/860d8c4a5e0d7cd96dd23f3f7996c97693ae3d55 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 13:23:14 2018 From: report at bugs.python.org (X. Yan) Date: Mon, 11 Jun 2018 17:23:14 +0000 Subject: [issue33835] Too strong side effect? In-Reply-To: <1528731739.92.0.592728768989.issue33835@psf.upfronthosting.co.za> Message-ID: <1528737794.16.0.592728768989.issue33835@psf.upfronthosting.co.za> X. Yan added the comment: Hi Serhiy, Thanks for your reply. However, the issue I reported was not about sharing the default value. I understand that the parameter L would keep its value [1] from function f's first run, and used it in the second run to get [1, 2]. My point is that the variable v1 only got involved in f's first run. It should keep the result [1] since then. The second calling v2=f(2) is irrelevant to v1, therefore, v1's content shouldn't be changed. v1 should be independent from f's later activities. Please let me know if this makes sense. ---------- status: closed -> open _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 13:49:58 2018 From: report at bugs.python.org (Ivan Konovalov) Date: Mon, 11 Jun 2018 17:49:58 +0000 Subject: [issue33838] Very slow upload with http.client on Windows when setting timeout Message-ID: <1528739398.2.0.592728768989.issue33838@psf.upfronthosting.co.za> New submission from Ivan Konovalov : Normally, when I upload files using the PUT request I get upload speed of about 100 Mb/s. But as soon as I set the timeout, the speed drops to about 4 Mb/s (can vary depending on the server): # Running on Windows 10, using Python 3.6.5 from io import BytesIO import http.client def upload(timeout=None): test_file = BytesIO(b"0" * 15 * 1024**2) if timeout is not None: conn = http.client.HTTPConnection("httpbin.org", timeout=timeout) else: conn = http.client.HTTPConnection("httpbin.org") conn.request("PUT", "/put", body=test_file) conn.getresponse().read() upload(25) # Painfully slow upload() # Pretty fast This problem seems to only affect Windows. ---------- components: IO, Library (Lib), Windows messages: 319323 nosy: ivknv, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Very slow upload with http.client on Windows when setting timeout type: performance versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 13:52:47 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 11 Jun 2018 17:52:47 +0000 Subject: [issue33835] Too strong side effect? In-Reply-To: <1528731739.92.0.592728768989.issue33835@psf.upfronthosting.co.za> Message-ID: <1528739567.79.0.592728768989.issue33835@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: See https://docs.python.org/3/faq/programming.html#why-did-changing-list-y-also-change-list-x . ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 13:57:14 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 11 Jun 2018 17:57:14 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528739834.58.0.592728768989.issue33656@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- pull_requests: +7257 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 14:00:28 2018 From: report at bugs.python.org (Steven D'Aprano) Date: Mon, 11 Jun 2018 18:00:28 +0000 Subject: [issue33835] Too strong side effect? In-Reply-To: <1528731739.92.0.592728768989.issue33835@psf.upfronthosting.co.za> Message-ID: <1528740028.77.0.592728768989.issue33835@psf.upfronthosting.co.za> Steven D'Aprano added the comment: Both names "v1" and "v2" refer to the same object. Python does not make copies of objects on assignment, so if you write: a = [] b = a then a and b both refer to the same list object, and the names "a" and "b" are effectively aliases. This is standard object-sharing behaviour used by many languages, including Lisp, Ruby, Javascript and Java. If you are familiar with languages like Pascal and C++ you are probably thinking that variables are boxes at fixed memory locations, and assignment copies values into that box. That is not a good model for Python (and others). This is not a bug. If you are unfamiliar with this object model, it can seem a bit strange at first, but for people who are used to Python, the C and Pascal model seems strange too. Some people call this distinction Values Types (like Pascal and C) versus Reference Types (like Python, Ruby, Javascript) https://softwareengineering.stackexchange.com/questions/314808/why-variables-in-python-are-different-from-other-programming-languages ---------- nosy: +steven.daprano _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 14:14:35 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 11 Jun 2018 18:14:35 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528740875.55.0.592728768989.issue33656@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset 800415e3df69f494afe9f95a8563ce17609fe1da by Terry Jan Reedy in branch 'master': bpo-33656: On Windows, add API call saying that tk scales for DPI (GH-7137) https://github.com/python/cpython/commit/800415e3df69f494afe9f95a8563ce17609fe1da ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 14:15:40 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 11 Jun 2018 18:15:40 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528740940.3.0.592728768989.issue33656@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset 8a05f559ce5064df68c8d4ebd7d4ed28381d9971 by Terry Jan Reedy in branch 'master': bpo-33656: Add entry to What's New 3.7. (GH-7638) https://github.com/python/cpython/commit/8a05f559ce5064df68c8d4ebd7d4ed28381d9971 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 14:16:06 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 18:16:06 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528740966.02.0.592728768989.issue33656@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7258 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 14:16:45 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 18:16:45 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528741005.3.0.592728768989.issue33656@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7259 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 14:17:43 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 18:17:43 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528741063.71.0.592728768989.issue33656@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7260 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 14:35:17 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 18:35:17 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528742117.6.0.592728768989.issue33656@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 144a8670f24a157642c5f7fbaf518e87c7c1b969 by Miss Islington (bot) in branch '3.7': bpo-33656: On Windows, add API call saying that tk scales for DPI (GH-7137) https://github.com/python/cpython/commit/144a8670f24a157642c5f7fbaf518e87c7c1b969 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 14:39:46 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 18:39:46 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528742386.27.0.592728768989.issue33656@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 0404d35f9dc89748949935a9178d28bedde9d8c8 by Miss Islington (bot) in branch '3.6': bpo-33656: On Windows, add API call saying that tk scales for DPI (GH-7137) https://github.com/python/cpython/commit/0404d35f9dc89748949935a9178d28bedde9d8c8 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 15:09:43 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 11 Jun 2018 19:09:43 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528744183.42.0.592728768989.issue33656@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Thanks everyone for the help. I think this is the right patch, but as with many IDLE patches, it is hard to be sure until it is in use. At least there is no question here of tk Windows-Linux-MacOS differences. I checked that the Win 7 buildbots are OK with the PR. Serhiy: My interpretation of the tk scaling doc is that 1, not 2, is the right argument. But we can test to be sure. I meant 'spare monitor', not 'space monitor'. But I need to find one with a substantially different DPI. Steve: changing the binaries' manifests is a separate issue, not limited to IDLE or even tkinter. And 3.8 enhancements do nothing for IDLE on 3.6 and 3.7. Ditto for a new WinAPI. ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 15:17:14 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 11 Jun 2018 19:17:14 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528744634.63.0.592728768989.issue33656@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Reopening, temporarily, to add change requested by Eryk Sun after the merge. ---------- status: closed -> open _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 15:32:50 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 11 Jun 2018 19:32:50 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528745570.56.0.592728768989.issue33656@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- pull_requests: +7261 stage: resolved -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 15:33:56 2018 From: report at bugs.python.org (R. David Murray) Date: Mon, 11 Jun 2018 19:33:56 +0000 Subject: [issue33835] Too strong side effect? In-Reply-To: <1528731739.92.0.592728768989.issue33835@psf.upfronthosting.co.za> Message-ID: <1528745636.01.0.592728768989.issue33835@psf.upfronthosting.co.za> Change by R. David Murray : ---------- status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 15:45:29 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 11 Jun 2018 19:45:29 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528746329.57.0.592728768989.issue33656@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset fd88f319a4f40682b989b63f0b6378d69465fda4 by Terry Jan Reedy in branch 'master': bpo-33656: Add enum name for argument of Windows call. (GH-7642) https://github.com/python/cpython/commit/fd88f319a4f40682b989b63f0b6378d69465fda4 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 15:45:48 2018 From: report at bugs.python.org (X. Yan) Date: Mon, 11 Jun 2018 19:45:48 +0000 Subject: [issue33835] Too strong side effect? In-Reply-To: <1528740028.77.0.592728768989.issue33835@psf.upfronthosting.co.za> Message-ID: <8e07dad3-4f9c-8027-8ee0-5341b07062e4@yorku.ca> X. Yan added the comment: I see. Thanks for the detailed explanations. Best, Xiaogang On 6/11/2018 2:00 PM, Steven D'Aprano wrote: > Steven D'Aprano added the comment: > > Both names "v1" and "v2" refer to the same object. Python does not make copies of objects on assignment, so if you write: > > a = [] > b = a > > then a and b both refer to the same list object, and the names "a" and "b" are effectively aliases. This is standard object-sharing behaviour used by many languages, including Lisp, Ruby, Javascript and Java. > > If you are familiar with languages like Pascal and C++ you are probably thinking that variables are boxes at fixed memory locations, and assignment copies values into that box. That is not a good model for Python (and others). > > This is not a bug. If you are unfamiliar with this object model, it can seem a bit strange at first, but for people who are used to Python, the C and Pascal model seems strange too. > > Some people call this distinction Values Types (like Pascal and C) versus Reference Types (like Python, Ruby, Javascript) > > https://softwareengineering.stackexchange.com/questions/314808/why-variables-in-python-are-different-from-other-programming-languages > > ---------- > nosy: +steven.daprano > > _______________________________________ > Python tracker > > _______________________________________ > ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 15:46:47 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 19:46:47 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528746407.1.0.592728768989.issue33656@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7262 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 15:47:38 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 19:47:38 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528746458.43.0.592728768989.issue33656@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7263 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 15:59:28 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 19:59:28 +0000 Subject: [issue33582] formatargspec deprecated but does nto emit DeprecationWarning. In-Reply-To: <1526770549.95.0.682650639539.issue33582@psf.upfronthosting.co.za> Message-ID: <1528747168.77.0.592728768989.issue33582@psf.upfronthosting.co.za> Change by Ned Deily : ---------- versions: -Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 16:06:38 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 20:06:38 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528747598.58.0.592728768989.issue33656@psf.upfronthosting.co.za> miss-islington added the comment: New changeset d26277a73b61277ad9568cff6503d55deef07223 by Miss Islington (bot) in branch '3.7': bpo-33656: Add enum name for argument of Windows call. (GH-7642) https://github.com/python/cpython/commit/d26277a73b61277ad9568cff6503d55deef07223 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 16:08:19 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 20:08:19 +0000 Subject: [issue33582] formatargspec deprecated but does nto emit DeprecationWarning. In-Reply-To: <1526770549.95.0.682650639539.issue33582@psf.upfronthosting.co.za> Message-ID: <1528747699.04.0.592728768989.issue33582@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 46c5cd0f6e22bdfbdd3f0b18f1d01eda754e7e11 by Ned Deily (Matthias Bussonnier) in branch 'master': bpo-33582: Emit deprecation warning for `formatargspec` (GH-6994) https://github.com/python/cpython/commit/46c5cd0f6e22bdfbdd3f0b18f1d01eda754e7e11 ---------- nosy: +ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 16:08:26 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 20:08:26 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528747706.91.0.592728768989.issue33656@psf.upfronthosting.co.za> miss-islington added the comment: New changeset afa1ea5bfd18947aa732a1ea09220aefbed81e1c by Miss Islington (bot) in branch '3.6': bpo-33656: Add enum name for argument of Windows call. (GH-7642) https://github.com/python/cpython/commit/afa1ea5bfd18947aa732a1ea09220aefbed81e1c ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 16:09:40 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 11 Jun 2018 20:09:40 +0000 Subject: [issue33839] IDLE tooltips.py: refactor and add docstrings and tests Message-ID: <1528747780.64.0.592728768989.issue33839@psf.upfronthosting.co.za> New submission from Terry J. Reedy : calltip_w.py code is partly based on tooltip.py. The latter is currently unused. But it is needed, with changes, for squeezer (#1529353). So I would like to see if we can make an improved Tooltip class that can be used or subclassed by both. The current subclasses should be deleted unless actually used. Docstrings should be added to what remains. Then test_tooltip, with 100% coverage, should be added. If needed, code can be changed to make testing easier. ---------- assignee: terry.reedy components: IDLE messages: 319337 nosy: taleinat, terry.reedy priority: normal severity: normal stage: test needed status: open title: IDLE tooltips.py: refactor and add docstrings and tests type: behavior versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 16:09:54 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 20:09:54 +0000 Subject: [issue33582] formatargspec deprecated but does nto emit DeprecationWarning. In-Reply-To: <1526770549.95.0.682650639539.issue33582@psf.upfronthosting.co.za> Message-ID: <1528747794.39.0.592728768989.issue33582@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7264 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 16:12:38 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 20:12:38 +0000 Subject: [issue27397] email.message.Message.get_payload(decode=True) raises AssertionError that "should never happen" In-Reply-To: <1467003168.77.0.181135273122.issue27397@psf.upfronthosting.co.za> Message-ID: <1528747958.96.0.592728768989.issue27397@psf.upfronthosting.co.za> Ned Deily added the comment: > See #33770, which will make recognizing and handling this case straightforward. The fix for #33770 is only in 3.7.0 and later, so does this mean this change should not be backported to 3.6? Updating the the versions accordingly. If it is appropriate for 3.6, we can add that back in. ---------- nosy: +ned.deily versions: +Python 3.7, Python 3.8 -Python 3.5, Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 16:16:10 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 11 Jun 2018 20:16:10 +0000 Subject: [issue1529353] Squeezer - squeeze large output in the interpreter Message-ID: <1528748170.8.0.592728768989.issue1529353@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Since this is the sort of addition that I want to test and evaluate in extended use before release, this is a good time to revive this. 3.6.6rc1 and 3.7.0rc1 are due tonight. 3.6.7 and 3.7.1 will be open for patches by tomorrow. I opened #33839 to redoing tooltip.py. I can test PR 7626 as is while tooltip is worked on. ---------- dependencies: +IDLE tooltips.py: refactor and add docstrings and tests _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 16:39:58 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 11 Jun 2018 20:39:58 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528749598.88.0.592728768989.issue33656@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- pull_requests: +7265 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 16:42:41 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 11 Jun 2018 20:42:41 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528749761.63.0.592728768989.issue33656@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Since there should be time before .rcs are cut, I changed the idlelib NEWS.txt entry to mention color changes, based on editing with the change in place. ---------- stage: patch review -> resolved _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 16:44:18 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 20:44:18 +0000 Subject: [issue33582] formatargspec deprecated but does nto emit DeprecationWarning. In-Reply-To: <1526770549.95.0.682650639539.issue33582@psf.upfronthosting.co.za> Message-ID: <1528749858.73.0.592728768989.issue33582@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 60b8274fec3ff029591d8718650223c5ce78a05c by Miss Islington (bot) in branch '3.7': bpo-33582: Emit deprecation warning for `formatargspec` (GH-6994) https://github.com/python/cpython/commit/60b8274fec3ff029591d8718650223c5ce78a05c ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 16:47:04 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 20:47:04 +0000 Subject: [issue33582] formatargspec deprecated but does nto emit DeprecationWarning. In-Reply-To: <1526770549.95.0.682650639539.issue33582@psf.upfronthosting.co.za> Message-ID: <1528750024.56.0.592728768989.issue33582@psf.upfronthosting.co.za> Ned Deily added the comment: Thanks for the PR, Matthias, and thanks for shepherding this, Tal. Merged for 3.7.0rc1 (I don't think it is appropriate to backport to earlier releases.) ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 16:48:33 2018 From: report at bugs.python.org (Guido van Rossum) Date: Mon, 11 Jun 2018 20:48:33 +0000 Subject: [issue33482] codecs.StreamRecoder.writelines is broken In-Reply-To: <1526222027.51.0.682650639539.issue33482@psf.upfronthosting.co.za> Message-ID: <1528750113.0.0.592728768989.issue33482@psf.upfronthosting.co.za> Guido van Rossum added the comment: LGTM. Though sad there's no test that caught this. Could you add one. ---------- nosy: +gvanrossum _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 16:51:48 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 11 Jun 2018 20:51:48 +0000 Subject: [issue1529353] Squeezer - squeeze large output in the interpreter Message-ID: <1528750308.08.0.592728768989.issue1529353@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Cheryl, if you have time to try out PR 7626, I am curious what you think, as a user. A short doc draft is 2 posts above. ---------- nosy: +cheryl.sabella _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 16:53:51 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 11 Jun 2018 20:53:51 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528750431.68.0.592728768989.issue33656@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset 4b704f29f5a0b6f6d7bd67468ed004bd3a96855d by Terry Jan Reedy in branch 'master': bpo-33656: Mention color in idlelib/NEWS.txt entry. (#7646) https://github.com/python/cpython/commit/4b704f29f5a0b6f6d7bd67468ed004bd3a96855d ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 16:55:02 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 20:55:02 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528750502.27.0.592728768989.issue33656@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7266 stage: resolved -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 16:55:55 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 20:55:55 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528750555.42.0.592728768989.issue33656@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7267 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 17:08:22 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 11 Jun 2018 21:08:22 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528751302.36.0.592728768989.issue33656@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset 6530577e29a9679c7e4c7ba7adf1c02393d2ad13 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.7': bpo-33656: Mention color in idlelib/NEWS.txt entry. (GH-7646) (GH-7647) https://github.com/python/cpython/commit/6530577e29a9679c7e4c7ba7adf1c02393d2ad13 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 17:10:29 2018 From: report at bugs.python.org (Lisa Guo) Date: Mon, 11 Jun 2018 21:10:29 +0000 Subject: [issue33840] connection limit on listening socket in asyncio Message-ID: <1528751429.93.0.592728768989.issue33840@psf.upfronthosting.co.za> New submission from Lisa Guo : I'd like to re-open the discussion on pause_server/resume_server that's been discussed here: https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!topic/python-tulip/btGHbh5kUUM with PR: https://github.com/python/asyncio/pull/448 We would like to set a max_connection parameters to a listening socket. Whenever it reaches this number with open accepted sockets, it stops accepting new connections until a user request is served, response sent back, and the connection closed. This is useful for a web application where the more user requests accepted and processed in-flight isn't necessarily better for performance. It would be great if we could dynamically change this value as well. Some more detailed behavior: - it can be either a per loop parameter, or per server parameter - the number of currently open accepted connections is counted against this limit - if max connection is reached, remove the listening socket from the loop so it back pressures new connections to kernel and other processes can take them - when total number of accepted connections drops below max connection, put the listening socket back in the loop - it can be dynamically configured but has no effect on currently already accepted connections (useful for graceful shutdown) Lisa ---------- components: asyncio messages: 319347 nosy: asvetlov, lguo, yselivanov priority: normal severity: normal status: open title: connection limit on listening socket in asyncio type: enhancement versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 17:19:26 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 21:19:26 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528751966.11.0.592728768989.issue33656@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 2023eafd9a0554823cab5adf5a1b116d7984db98 by Miss Islington (bot) in branch '3.6': bpo-33656: Mention color in idlelib/NEWS.txt entry. (GH-7646) https://github.com/python/cpython/commit/2023eafd9a0554823cab5adf5a1b116d7984db98 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 17:21:32 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 11 Jun 2018 21:21:32 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528752092.54.0.592728768989.issue33656@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 17:45:14 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Mon, 11 Jun 2018 21:45:14 +0000 Subject: [issue33482] codecs.StreamRecoder.writelines is broken In-Reply-To: <1526222027.51.0.682650639539.issue33482@psf.upfronthosting.co.za> Message-ID: <1528753514.64.0.592728768989.issue33482@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- stage: patch review -> test needed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 18:56:53 2018 From: report at bugs.python.org (Yury Selivanov) Date: Mon, 11 Jun 2018 22:56:53 +0000 Subject: [issue33840] connection limit on listening socket in asyncio In-Reply-To: <1528751429.93.0.592728768989.issue33840@psf.upfronthosting.co.za> Message-ID: <1528757813.02.0.592728768989.issue33840@psf.upfronthosting.co.za> Yury Selivanov added the comment: Do other frameworks (Tornado, Twisted, libuv/nodejs) have this functionality? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 18:59:48 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 22:59:48 +0000 Subject: [issue31432] Documention for CERT_OPTIONAL is misleading In-Reply-To: <1505232519.67.0.963615295738.issue31432@psf.upfronthosting.co.za> Message-ID: <1528757988.34.0.592728768989.issue31432@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset ef24b6c54d40e7820456873a6eab6ef57d2bd0db by Ned Deily (Christian Heimes) in branch 'master': bpo-31432: Clarify ssl CERT_NONE/OPTIONAL/REQUIRED docs. (GH-3530) https://github.com/python/cpython/commit/ef24b6c54d40e7820456873a6eab6ef57d2bd0db ---------- nosy: +ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 19:00:09 2018 From: report at bugs.python.org (miss-islington) Date: Mon, 11 Jun 2018 23:00:09 +0000 Subject: [issue31432] Documention for CERT_OPTIONAL is misleading In-Reply-To: <1505232519.67.0.963615295738.issue31432@psf.upfronthosting.co.za> Message-ID: <1528758009.87.0.592728768989.issue31432@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7268 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 19:20:27 2018 From: report at bugs.python.org (Ned Deily) Date: Mon, 11 Jun 2018 23:20:27 +0000 Subject: [issue31432] Documention for CERT_OPTIONAL is misleading In-Reply-To: <1505232519.67.0.963615295738.issue31432@psf.upfronthosting.co.za> Message-ID: <1528759227.06.0.592728768989.issue31432@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset a5db479ac4cdcc0d94ec1d7a594720a651d90433 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-31432: Clarify ssl CERT_NONE/OPTIONAL/REQUIRED docs. (GH-3530) (GH-7649) https://github.com/python/cpython/commit/a5db479ac4cdcc0d94ec1d7a594720a651d90433 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 20:08:29 2018 From: report at bugs.python.org (Ned Deily) Date: Tue, 12 Jun 2018 00:08:29 +0000 Subject: [issue31432] Documention for CERT_OPTIONAL is misleading In-Reply-To: <1505232519.67.0.963615295738.issue31432@psf.upfronthosting.co.za> Message-ID: <1528762109.3.0.592728768989.issue31432@psf.upfronthosting.co.za> Change by Ned Deily : ---------- pull_requests: +7269 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 20:26:34 2018 From: report at bugs.python.org (Ned Deily) Date: Tue, 12 Jun 2018 00:26:34 +0000 Subject: [issue31432] Documention for CERT_OPTIONAL is misleading In-Reply-To: <1505232519.67.0.963615295738.issue31432@psf.upfronthosting.co.za> Message-ID: <1528763194.97.0.592728768989.issue31432@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 4531ec74c4a9c8e15ee2bdec11b12796ce000f6f by Ned Deily in branch 'master': bpo-31432: Revert unrelated code changes to _ssl.c and test_ssl (GH-7650) https://github.com/python/cpython/commit/4531ec74c4a9c8e15ee2bdec11b12796ce000f6f ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 20:27:24 2018 From: report at bugs.python.org (Cheryl Sabella) Date: Tue, 12 Jun 2018 00:27:24 +0000 Subject: [issue1529353] Squeezer - squeeze large output in the interpreter Message-ID: <1528763244.2.0.592728768989.issue1529353@psf.upfronthosting.co.za> Cheryl Sabella added the comment: Thanks for the PR, Tal. I've started looking at it and I have just a few initial observations: 1. Serhiy's msg211068 still happens. I tried his example of print('a'*1000000). There was a noticeable delay before the button was created, then a button with 'Squeezed text (12500 lines).' appeared. I double clicked on it and regretted it. If providing a paging mechanism (i.e., a 'more' button) is too complicated, I think we still need an alternative way to prevent the user from clicking a button that will hose the system. 2. I don't have a middle button. My mouse has 9 buttons, but none are a middle click and I can't map it on Linux. :-( 3. 'preview-command-posix' - I tried 'vim' and 'nano'. Right-clicking the button opens those editors in the terminal window that I'm running IDLE from, but the text isn't displayed in the window. When I exit from the editor, I get a traceback: Warning (from warnings module): File "/cpython/Lib/subprocess.py", line 839 ResourceWarning, source=self) ResourceWarning: subprocess 2797 is still running 4. list(range(500)) showed the button (for 30 lines). I realize that it's configurable, but it seems like a low initial value. 5. The context menu option to manually squeeze works nicely, except that the cursor stays next to the button instead of going back to the prompt. 6. Is it necessary to be able to hide the tooltip? 7. I know you talked about it already, but I think this may need to be moved from Extensions before merging. Changing a config value doesn't always immediately apply the change, so it doesn't fit in with how most config works now. For example, I changed the 'preview' program from a value to nothing. The option to right-click still existed and right-clicking gave a traceback: Traceback (most recent call last): File "/cpython/Lib/idlelib/squeezer.py", line 181, in preview start_new_session=True) File "/cpython/Lib/subprocess.py", line 756, in __init__ restore_signals, start_new_session) File "/cpython/Lib/subprocess.py", line 1499, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) PermissionError: [Errno 13] Permission denied: '' 8. I didn't check the source code, but I wasn't sure what 'Enable editor' did. I *thought* it would enable squeezing in an editor window by using manual squeeze mode, but it wasn't on the context menu. 9. Does the button color need to be configurable? IMHO, the current yellow looks better on Dark than it looks on Classic. But it does work for both. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 20:27:47 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 12 Jun 2018 00:27:47 +0000 Subject: [issue31432] Documention for CERT_OPTIONAL is misleading In-Reply-To: <1505232519.67.0.963615295738.issue31432@psf.upfronthosting.co.za> Message-ID: <1528763267.43.0.592728768989.issue31432@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7270 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 20:28:24 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Tue, 12 Jun 2018 00:28:24 +0000 Subject: [issue33831] Make htmlview work in make.bat In-Reply-To: <1528717695.86.0.592728768989.issue33831@psf.upfronthosting.co.za> Message-ID: <1528763304.12.0.592728768989.issue33831@psf.upfronthosting.co.za> Andr?s Delfino added the comment: Thanks, Steve! ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 20:58:12 2018 From: report at bugs.python.org (Ned Deily) Date: Tue, 12 Jun 2018 00:58:12 +0000 Subject: [issue31432] Documention for CERT_OPTIONAL is misleading In-Reply-To: <1505232519.67.0.963615295738.issue31432@psf.upfronthosting.co.za> Message-ID: <1528765092.74.0.592728768989.issue31432@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 42198571c586e0dc56836b79329f94952b1975bb by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-31432: Revert unrelated code changes to _ssl.c and test_ssl (GH-7650) (GH-7651) https://github.com/python/cpython/commit/42198571c586e0dc56836b79329f94952b1975bb ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 21:15:08 2018 From: report at bugs.python.org (Ned Deily) Date: Tue, 12 Jun 2018 01:15:08 +0000 Subject: [issue31432] Documention for CERT_OPTIONAL is misleading In-Reply-To: <1505232519.67.0.963615295738.issue31432@psf.upfronthosting.co.za> Message-ID: <1528766108.8.0.592728768989.issue31432@psf.upfronthosting.co.za> Change by Ned Deily : ---------- pull_requests: +7271 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 21:45:03 2018 From: report at bugs.python.org (Ned Deily) Date: Tue, 12 Jun 2018 01:45:03 +0000 Subject: [issue31432] Documention for CERT_OPTIONAL is misleading In-Reply-To: <1505232519.67.0.963615295738.issue31432@psf.upfronthosting.co.za> Message-ID: <1528767903.6.0.592728768989.issue31432@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset e25757408dc22561af9f9589c2c7e2a2fbb66ee4 by Ned Deily in branch '3.6': bpo-31432: Clarify ssl CERT_NONE/OPTIONAL/REQUIRED docs. (GH-3530) (GH-7652) https://github.com/python/cpython/commit/e25757408dc22561af9f9589c2c7e2a2fbb66ee4 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 22:37:42 2018 From: report at bugs.python.org (Zackery Spytz) Date: Tue, 12 Jun 2018 02:37:42 +0000 Subject: [issue33582] formatargspec deprecated but does not emit DeprecationWarning. In-Reply-To: <1526770549.95.0.682650639539.issue33582@psf.upfronthosting.co.za> Message-ID: <1528771062.34.0.592728768989.issue33582@psf.upfronthosting.co.za> Change by Zackery Spytz : ---------- nosy: +ZackerySpytz title: formatargspec deprecated but does nto emit DeprecationWarning. -> formatargspec deprecated but does not emit DeprecationWarning. _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 22:40:59 2018 From: report at bugs.python.org (Zackery Spytz) Date: Tue, 12 Jun 2018 02:40:59 +0000 Subject: [issue33582] formatargspec deprecated but does not emit DeprecationWarning. In-Reply-To: <1526770549.95.0.682650639539.issue33582@psf.upfronthosting.co.za> Message-ID: <1528771259.22.0.592728768989.issue33582@psf.upfronthosting.co.za> Change by Zackery Spytz : ---------- pull_requests: +7272 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 23:03:15 2018 From: report at bugs.python.org (Ned Deily) Date: Tue, 12 Jun 2018 03:03:15 +0000 Subject: [issue25612] nested try..excepts don't work correctly for generators In-Reply-To: <1447361959.0.0.839122121456.issue25612@psf.upfronthosting.co.za> Message-ID: <1528772595.14.0.592728768989.issue25612@psf.upfronthosting.co.za> Change by Ned Deily : ---------- pull_requests: +7273 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 23:16:21 2018 From: report at bugs.python.org (Ned Deily) Date: Tue, 12 Jun 2018 03:16:21 +0000 Subject: [issue33582] formatargspec deprecated but does not emit DeprecationWarning. In-Reply-To: <1526770549.95.0.682650639539.issue33582@psf.upfronthosting.co.za> Message-ID: <1528773381.13.0.592728768989.issue33582@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 41254ebd5e4f40a2e095d8aaea60bf3973de4647 by Ned Deily (Zackery Spytz) in branch 'master': bpo-33582: Remove duplicate space in inspect.formatargspec() deprecation warning (GH-7655) https://github.com/python/cpython/commit/41254ebd5e4f40a2e095d8aaea60bf3973de4647 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 23:17:35 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 12 Jun 2018 03:17:35 +0000 Subject: [issue33582] formatargspec deprecated but does not emit DeprecationWarning. In-Reply-To: <1526770549.95.0.682650639539.issue33582@psf.upfronthosting.co.za> Message-ID: <1528773455.91.0.592728768989.issue33582@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7274 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 23:20:37 2018 From: report at bugs.python.org (Ned Deily) Date: Tue, 12 Jun 2018 03:20:37 +0000 Subject: [issue25612] nested try..excepts don't work correctly for generators In-Reply-To: <1447361959.0.0.839122121456.issue25612@psf.upfronthosting.co.za> Message-ID: <1528773637.35.0.592728768989.issue25612@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 04290cb9945eca1a97f6924495256c15f29fab41 by Ned Deily in branch 'master': bpo-25612: Add minimal What's New in 3.7 entry (GH-7656) https://github.com/python/cpython/commit/04290cb9945eca1a97f6924495256c15f29fab41 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jun 11 23:21:44 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 12 Jun 2018 03:21:44 +0000 Subject: [issue25612] nested try..excepts don't work correctly for generators In-Reply-To: <1447361959.0.0.839122121456.issue25612@psf.upfronthosting.co.za> Message-ID: <1528773704.87.0.592728768989.issue25612@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7275 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 00:25:35 2018 From: report at bugs.python.org (Ned Deily) Date: Tue, 12 Jun 2018 04:25:35 +0000 Subject: [issue33582] formatargspec deprecated but does not emit DeprecationWarning. In-Reply-To: <1526770549.95.0.682650639539.issue33582@psf.upfronthosting.co.za> Message-ID: <1528777535.86.0.475983251502.issue33582@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset 8379b70be2c0a9e3f11cdb694a8faaf5763f99ed by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33582: Remove duplicate space in inspect.formatargspec() deprecation warning (GH-7655) (GH-7657) https://github.com/python/cpython/commit/8379b70be2c0a9e3f11cdb694a8faaf5763f99ed ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 00:26:33 2018 From: report at bugs.python.org (Ned Deily) Date: Tue, 12 Jun 2018 04:26:33 +0000 Subject: [issue25612] nested try..excepts don't work correctly for generators In-Reply-To: <1447361959.0.0.839122121456.issue25612@psf.upfronthosting.co.za> Message-ID: <1528777593.1.0.475983251502.issue25612@psf.upfronthosting.co.za> Ned Deily added the comment: New changeset ef5f4ba96e05f61ad3baca502012085f31e99342 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-25612: Add minimal What's New in 3.7 entry (GH-7656) (GH-7658) https://github.com/python/cpython/commit/ef5f4ba96e05f61ad3baca502012085f31e99342 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 00:29:08 2018 From: report at bugs.python.org (Ned Deily) Date: Tue, 12 Jun 2018 04:29:08 +0000 Subject: [issue25612] nested try..excepts don't work correctly for generators In-Reply-To: <1447361959.0.0.839122121456.issue25612@psf.upfronthosting.co.za> Message-ID: <1528777748.02.0.475983251502.issue25612@psf.upfronthosting.co.za> Ned Deily added the comment: P.S. I added a very minimal What's New in 3.7 entry for this change since it has affected some downline projects. I just copied the NEWS entry. Feel free to expand it and/or move it to a better location in the file. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 01:05:06 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 12 Jun 2018 05:05:06 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528779906.75.0.475983251502.issue33656@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: I can't test on multiple monitors, but I tested on a single HiDPI monitor. With 1 it looks much better than with 0. With 2 it looks the same as with 1 on HiDPI, but doesn't scale well after changing the resolution of the display. I suppose there are the same problems on multi-monitor configuration. Thus the value 1 is the correct one. ctypes is optional. It would be better to catch an ImportError from importing it. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 01:25:46 2018 From: report at bugs.python.org (Raymond Hettinger) Date: Tue, 12 Jun 2018 05:25:46 +0000 Subject: [issue33827] Generators with lru_cache can be non-intuituve In-Reply-To: <1528701373.03.0.592728768989.issue33827@psf.upfronthosting.co.za> Message-ID: <1528781146.08.0.475983251502.issue33827@psf.upfronthosting.co.za> Raymond Hettinger added the comment: Serhiy is correct. In general, there is no way to detect when someone is caching something that should be cached (i.e. impure functions). ---------- resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 01:47:13 2018 From: report at bugs.python.org (Tal Einat) Date: Tue, 12 Jun 2018 05:47:13 +0000 Subject: [issue27397] email.message.Message.get_payload(decode=True) raises AssertionError that "should never happen" In-Reply-To: <1467003168.77.0.181135273122.issue27397@psf.upfronthosting.co.za> Message-ID: <1528782433.41.0.475983251502.issue27397@psf.upfronthosting.co.za> Tal Einat added the comment: I ended up fixing this independently of #33770. AFAIK this should just work with 3.6. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 01:47:47 2018 From: report at bugs.python.org (Lev Maximov) Date: Tue, 12 Jun 2018 05:47:47 +0000 Subject: [issue33841] lock not released in threading.Condition Message-ID: <1528782467.05.0.475983251502.issue33841@psf.upfronthosting.co.za> New submission from Lev Maximov : In `Condition.wait()` the `waiter` lock gets acquired twice, but is released only once (both in timeout and no timeout cases). Is it intentional? ---------- components: Library (Lib) messages: 319365 nosy: lev.maximov priority: normal severity: normal status: open title: lock not released in threading.Condition type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 01:49:20 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 12 Jun 2018 05:49:20 +0000 Subject: [issue25612] nested try..excepts don't work correctly for generators In-Reply-To: <1447361959.0.0.839122121456.issue25612@psf.upfronthosting.co.za> Message-ID: <1528782560.18.0.475983251502.issue25612@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: This change was in top5 breaking changes for 3.7. It broke many projects that use Cython until they upgraded Cython to the version that supports 3.7. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 02:58:25 2018 From: report at bugs.python.org (Tal Einat) Date: Tue, 12 Jun 2018 06:58:25 +0000 Subject: [issue1529353] Squeezer - squeeze large output in the interpreter Message-ID: <1528786705.06.0.475983251502.issue1529353@psf.upfronthosting.co.za> Tal Einat added the comment: Cheryl, thanks for testing this and writing up your thoughts! There is certainly much room for improvement. Since it seems that you and Terry like the approach, I'll start working on the tooltips as Terry asked, and wait for more input from him before beginning additional work. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 04:18:19 2018 From: report at bugs.python.org (Dong-hee Na) Date: Tue, 12 Jun 2018 08:18:19 +0000 Subject: [issue33476] String index out of range in get_group(), email/_header_value_parser.py In-Reply-To: <1526172602.81.0.682650639539.issue33476@psf.upfronthosting.co.za> Message-ID: <1528791499.28.0.475983251502.issue33476@psf.upfronthosting.co.za> Dong-hee Na added the comment: @r.david.murray Can I get a review for PR 7484? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 04:20:27 2018 From: report at bugs.python.org (INADA Naoki) Date: Tue, 12 Jun 2018 08:20:27 +0000 Subject: [issue33819] Mention "ordered mapping" instead of "ordered dictionary" in email module In-Reply-To: <1528636386.67.0.592728768989.issue33819@psf.upfronthosting.co.za> Message-ID: <1528791627.68.0.475983251502.issue33819@psf.upfronthosting.co.za> INADA Naoki added the comment: I think "dictionary" means just "dict-like", and it doesn't implies "ordered". Glossary doesn't say "dictionary" is ordered too. So "regular dictionary is ordered now" is not enough reason to stop using "ordered dictionary". ---------- nosy: +inada.naoki _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 05:34:03 2018 From: report at bugs.python.org (INADA Naoki) Date: Tue, 12 Jun 2018 09:34:03 +0000 Subject: [issue33842] Remove tarfile.filemode Message-ID: <1528796043.33.0.475983251502.issue33842@psf.upfronthosting.co.za> New submission from INADA Naoki : ref: #14807, ffa1d0b8d53f426f1f9a0d47f25440b8994c4fb0 tarfile.filemode is deprecated since Python 3.3. And it is not exported by __all__. ---------- components: Library (Lib) messages: 319370 nosy: inada.naoki priority: normal severity: normal status: open title: Remove tarfile.filemode versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 05:35:52 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Tue, 12 Jun 2018 09:35:52 +0000 Subject: [issue32453] shutil.rmtree can have O(n^2) performance on large dirs In-Reply-To: <1514610909.88.0.213398074469.issue32453@psf.upfronthosting.co.za> Message-ID: <1528796152.92.0.475983251502.issue32453@psf.upfronthosting.co.za> Change by Giampaolo Rodola' : ---------- nosy: +giampaolo.rodola _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 05:36:03 2018 From: report at bugs.python.org (INADA Naoki) Date: Tue, 12 Jun 2018 09:36:03 +0000 Subject: [issue33842] Remove tarfile.filemode In-Reply-To: <1528796043.33.0.475983251502.issue33842@psf.upfronthosting.co.za> Message-ID: <1528796163.4.0.475983251502.issue33842@psf.upfronthosting.co.za> Change by INADA Naoki : ---------- keywords: +patch pull_requests: +7276 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 05:37:54 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Tue, 12 Jun 2018 09:37:54 +0000 Subject: [issue30235] Validate shutil supports path-like objects, update docs accordingly In-Reply-To: <1493745159.76.0.694023923588.issue30235@psf.upfronthosting.co.za> Message-ID: <1528796274.81.0.475983251502.issue30235@psf.upfronthosting.co.za> Change by Giampaolo Rodola' : ---------- nosy: +giampaolo.rodola _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 05:39:41 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Tue, 12 Jun 2018 09:39:41 +0000 Subject: [issue32557] allow shutil.disk_usage to take a file path on Windows also In-Reply-To: <1516030012.51.0.467229070634.issue32557@psf.upfronthosting.co.za> Message-ID: <1528796381.6.0.475983251502.issue32557@psf.upfronthosting.co.za> Giampaolo Rodola' added the comment: +1 ---------- nosy: +giampaolo.rodola _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 05:40:25 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Tue, 12 Jun 2018 09:40:25 +0000 Subject: [issue32347] System Integrity Protection breaks shutil.copystat() In-Reply-To: <1513442701.16.0.213398074469.issue32347@psf.upfronthosting.co.za> Message-ID: <1528796425.32.0.475983251502.issue32347@psf.upfronthosting.co.za> Change by Giampaolo Rodola' : ---------- nosy: +giampaolo.rodola _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 05:41:30 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Tue, 12 Jun 2018 09:41:30 +0000 Subject: [issue32073] Add copy_directory_metadata parameter to shutil.copytree In-Reply-To: <1511032407.02.0.213398074469.issue32073@psf.upfronthosting.co.za> Message-ID: <1528796490.26.0.475983251502.issue32073@psf.upfronthosting.co.za> Change by Giampaolo Rodola' : ---------- nosy: +giampaolo.rodola _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 05:43:10 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Tue, 12 Jun 2018 09:43:10 +0000 Subject: [issue20849] add exist_ok to shutil.copytree In-Reply-To: <1393908922.06.0.91052425832.issue20849@psf.upfronthosting.co.za> Message-ID: <1528796590.82.0.475983251502.issue20849@psf.upfronthosting.co.za> Change by Giampaolo Rodola' : ---------- nosy: +giampaolo.rodola _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 05:56:46 2018 From: report at bugs.python.org (INADA Naoki) Date: Tue, 12 Jun 2018 09:56:46 +0000 Subject: [issue33843] Remove deprecated stuff in cgi module Message-ID: <1528797406.97.0.475983251502.issue33843@psf.upfronthosting.co.za> New submission from INADA Naoki : ref: * cgi.escape is deprecated since 3.3. 67317750aff37489fd3fa279413ef20450e7c808 * parse_qs and parse_qsl are deprecated since 2008, before 3.0 https://github.com/python/cpython/commit/c469d4c3aa0a66579d1927f0e5d9630b3ea4024f ---------- components: Library (Lib) messages: 319372 nosy: inada.naoki priority: normal severity: normal status: open title: Remove deprecated stuff in cgi module versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 06:00:26 2018 From: report at bugs.python.org (INADA Naoki) Date: Tue, 12 Jun 2018 10:00:26 +0000 Subject: [issue33843] Remove deprecated stuff in cgi module In-Reply-To: <1528797406.97.0.475983251502.issue33843@psf.upfronthosting.co.za> Message-ID: <1528797626.39.0.475983251502.issue33843@psf.upfronthosting.co.za> Change by INADA Naoki : ---------- keywords: +patch pull_requests: +7277 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 06:09:43 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Tue, 12 Jun 2018 10:09:43 +0000 Subject: [issue30044] shutil.copystat should (allow to) copy ownership, and other attributes In-Reply-To: <1491925353.8.0.782070431072.issue30044@psf.upfronthosting.co.za> Message-ID: <1528798183.57.0.475983251502.issue30044@psf.upfronthosting.co.za> Giampaolo Rodola' added the comment: This could be achieved at least on Windows with CopyFileEx [1] and on OSX with copyfile(3) + COPYFILE_ALL which copies ACLs (but not users/groups). These are (were, in case of CopyFileEx) exposed in https://github.com/python/cpython/pull/7160/. Such a new functionality would probably deserve a separate copy3() function but it would serve OSX and Windows only. I'm not sure how things would work on other POSIX platforms. [1] https://msdn.microsoft.com/en-us/library/windows/desktop/aa363852(v=vs.85).aspx [2] http://www.manpagez.com/man/3/copyfile/ ---------- nosy: +giampaolo.rodola _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 06:10:13 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Tue, 12 Jun 2018 10:10:13 +0000 Subject: [issue30400] Race condition in shutil.copyfile() In-Reply-To: <1495138920.07.0.300372261513.issue30400@psf.upfronthosting.co.za> Message-ID: <1528798213.21.0.475983251502.issue30400@psf.upfronthosting.co.za> Change by Giampaolo Rodola' : ---------- nosy: +giampaolo.rodola _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 06:20:29 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Tue, 12 Jun 2018 10:20:29 +0000 Subject: [issue29699] shutil.rmtree should not fail with FileNotFoundError (race condition) In-Reply-To: <1488481944.03.0.0307704051627.issue29699@psf.upfronthosting.co.za> Message-ID: <1528798829.17.0.475983251502.issue29699@psf.upfronthosting.co.za> Giampaolo Rodola' added the comment: +1. It looks reasonable to ignore FileNotFoundError on os.rmdir(), os.unlink() and also os.open() and os.scandir(). ---------- nosy: +giampaolo.rodola _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 06:21:52 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Tue, 12 Jun 2018 10:21:52 +0000 Subject: [issue10016] shutil.copyfile -- allow sparse copying In-Reply-To: <1286029015.57.0.815158740908.issue10016@psf.upfronthosting.co.za> Message-ID: <1528798912.31.0.475983251502.issue10016@psf.upfronthosting.co.za> Change by Giampaolo Rodola' : ---------- nosy: +giampaolo.rodola _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 06:23:36 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Tue, 12 Jun 2018 10:23:36 +0000 Subject: [issue11989] deprecate shutil.copy2 In-Reply-To: <1304457480.12.0.859066442239.issue11989@psf.upfronthosting.co.za> Message-ID: <1528799016.14.0.475983251502.issue11989@psf.upfronthosting.co.za> Giampaolo Rodola' added the comment: If such a thing goes in then copytree() should also be taken into account and expose the same parameter. That would probably be inconsistent with copytree()'s copy_function parameter though. ---------- nosy: +giampaolo.rodola _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 06:25:21 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Tue, 12 Jun 2018 10:25:21 +0000 Subject: [issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile In-Reply-To: <1340020668.92.0.801725909503.issue15100@psf.upfronthosting.co.za> Message-ID: <1528799121.64.0.475983251502.issue15100@psf.upfronthosting.co.za> Change by Giampaolo Rodola' : ---------- nosy: +giampaolo.rodola _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 06:30:13 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Tue, 12 Jun 2018 10:30:13 +0000 Subject: [issue27687] Linux shutil.move between mountpoints as root does not retain ownership In-Reply-To: <1470343482.28.0.365470977104.issue27687@psf.upfronthosting.co.za> Message-ID: <1528799413.37.0.475983251502.issue27687@psf.upfronthosting.co.za> Change by Giampaolo Rodola' : ---------- nosy: +giampaolo.rodola _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 06:36:38 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Tue, 12 Jun 2018 10:36:38 +0000 Subject: [issue23346] shutil.rmtree doesn't work correctly on FreeBSD. In-Reply-To: <1422507173.88.0.069796427202.issue23346@psf.upfronthosting.co.za> Message-ID: <1528799798.57.0.475983251502.issue23346@psf.upfronthosting.co.za> Change by Giampaolo Rodola' : ---------- nosy: +giampaolo.rodola _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 08:21:26 2018 From: report at bugs.python.org (R. David Murray) Date: Tue, 12 Jun 2018 12:21:26 +0000 Subject: [issue33819] Mention "ordered mapping" instead of "ordered dictionary" in email module In-Reply-To: <1528636386.67.0.592728768989.issue33819@psf.upfronthosting.co.za> Message-ID: <1528806086.97.0.475983251502.issue33819@psf.upfronthosting.co.za> R. David Murray added the comment: Message/EmailMessage are intentionally mimicing the full dictionary API, not just the Mapping API (with a couple exceptions and several extensions). But it is important to mention that it is ordered, both for the reason INADA stgtes, and because the text goes on to discuss the handling of duplicate headers and what happens when you add and delete headers. While this turns out to be almost the same as the rules used by a standard python dictionary, that is partially a coincidence....other ordering rules could have been chosen. ---------- nosy: +r.david.murray resolution: -> not a bug stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 08:44:46 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Tue, 12 Jun 2018 12:44:46 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1528807486.38.0.475983251502.issue33630@psf.upfronthosting.co.za> Change by Pablo Galindo Salgado : ---------- pull_requests: +7278 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 08:46:24 2018 From: report at bugs.python.org (Tal Einat) Date: Tue, 12 Jun 2018 12:46:24 +0000 Subject: [issue27397] email.message.Message.get_payload(decode=True) raises AssertionError that "should never happen" In-Reply-To: <1467003168.77.0.181135273122.issue27397@psf.upfronthosting.co.za> Message-ID: <1528807584.81.0.475983251502.issue27397@psf.upfronthosting.co.za> Tal Einat added the comment: New changeset c3f55be7dd012b7e92901627d0b31c21e983ccb4 by Tal Einat in branch 'master': bpo-27397: Make email module properly handle invalid-length base64 strings (#7583) https://github.com/python/cpython/commit/c3f55be7dd012b7e92901627d0b31c21e983ccb4 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 08:47:40 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 12 Jun 2018 12:47:40 +0000 Subject: [issue27397] email.message.Message.get_payload(decode=True) raises AssertionError that "should never happen" In-Reply-To: <1467003168.77.0.181135273122.issue27397@psf.upfronthosting.co.za> Message-ID: <1528807660.08.0.475983251502.issue27397@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7279 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 08:48:33 2018 From: report at bugs.python.org (miss-islington) Date: Tue, 12 Jun 2018 12:48:33 +0000 Subject: [issue27397] email.message.Message.get_payload(decode=True) raises AssertionError that "should never happen" In-Reply-To: <1467003168.77.0.181135273122.issue27397@psf.upfronthosting.co.za> Message-ID: <1528807713.72.0.475983251502.issue27397@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7280 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 09:01:04 2018 From: report at bugs.python.org (Stefan Vasilev) Date: Tue, 12 Jun 2018 13:01:04 +0000 Subject: [issue33844] Writing capital letters with csvwriter.writerow changes the csv file format Message-ID: <1528808464.61.0.475983251502.issue33844@psf.upfronthosting.co.za> New submission from Stefan Vasilev : import csv csv.writer(open('./file.csv', 'a', newline='')).writerow(['ID', 0]) If you try to open file.csv with Excel on Windows 10 it says: The file format and extension of 'file.csv' don't match. The file could be corrupted or unsafe. Unless you trust its source don't open it. Do you want to open it anyway. When you click 'Yes', another msgbox appears saying: Excel has detected that 'file.csv' is a SYLK file, but cannot load it. Either the file has errors or it is not a SYLK fyle format. Click OK to try to open the file in a different format. When you click on 'OK' it opens it as expected. The strange thing is that if you use the following code, there are no problems opening it: import csv csv.writer(open('./file.csv', 'a', newline='')).writerow(['Id', 0]) ---------- components: Windows messages: 319378 nosy: Stefan Vasilev, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Writing capital letters with csvwriter.writerow changes the csv file format type: behavior versions: Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 09:06:48 2018 From: report at bugs.python.org (Pankaj Pandey) Date: Tue, 12 Jun 2018 13:06:48 +0000 Subject: [issue33587] inspect.getsource performs unnecessary filesystem stat call In-Reply-To: <1526834329.07.0.682650639539.issue33587@psf.upfronthosting.co.za> Message-ID: <1528808808.18.0.475983251502.issue33587@psf.upfronthosting.co.za> Pankaj Pandey added the comment: I simply profiled the script with "python -m cProfile -s cumtime inspect_stack_perf.py" And yes, I should move the linecache check first, that would be a better idea. Though getmodule() is also fast enough and reordering it does not significantly change the performance (for the common case of no PEP302 modules). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 09:41:15 2018 From: report at bugs.python.org (R. David Murray) Date: Tue, 12 Jun 2018 13:41:15 +0000 Subject: [issue33844] Writing capital letters with csvwriter.writerow changes the csv file format In-Reply-To: <1528808464.61.0.475983251502.issue33844@psf.upfronthosting.co.za> Message-ID: <1528810875.33.0.475983251502.issue33844@psf.upfronthosting.co.za> R. David Murray added the comment: It doesn't look like this has anything to do with Python. This sounds like a question more appropriate for an Excel help forum. ---------- nosy: +r.david.murray _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 09:46:14 2018 From: report at bugs.python.org (Tal Einat) Date: Tue, 12 Jun 2018 13:46:14 +0000 Subject: [issue27397] email.message.Message.get_payload(decode=True) raises AssertionError that "should never happen" In-Reply-To: <1467003168.77.0.181135273122.issue27397@psf.upfronthosting.co.za> Message-ID: <1528811174.16.0.475983251502.issue27397@psf.upfronthosting.co.za> Tal Einat added the comment: New changeset 7b82281c80d0064559866afe92f19cae5978c841 by Tal Einat (Miss Islington (bot)) in branch '3.7': bpo-27397: Make email module properly handle invalid-length base64 strings (GH-7583) (GH-7664) https://github.com/python/cpython/commit/7b82281c80d0064559866afe92f19cae5978c841 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 09:46:29 2018 From: report at bugs.python.org (Tal Einat) Date: Tue, 12 Jun 2018 13:46:29 +0000 Subject: [issue27397] email.message.Message.get_payload(decode=True) raises AssertionError that "should never happen" In-Reply-To: <1467003168.77.0.181135273122.issue27397@psf.upfronthosting.co.za> Message-ID: <1528811189.86.0.475983251502.issue27397@psf.upfronthosting.co.za> Tal Einat added the comment: New changeset 63dd1f70c1aa57494802c9b68f9db4918620fc8f by Tal Einat (Miss Islington (bot)) in branch '3.6': bpo-27397: Make email module properly handle invalid-length base64 strings (GH-7583) (GH-7665) https://github.com/python/cpython/commit/63dd1f70c1aa57494802c9b68f9db4918620fc8f ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 09:47:42 2018 From: report at bugs.python.org (Tal Einat) Date: Tue, 12 Jun 2018 13:47:42 +0000 Subject: [issue27397] email.message.Message.get_payload(decode=True) raises AssertionError that "should never happen" In-Reply-To: <1467003168.77.0.181135273122.issue27397@psf.upfronthosting.co.za> Message-ID: <1528811262.41.0.475983251502.issue27397@psf.upfronthosting.co.za> Change by Tal Einat : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 09:56:45 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 12 Jun 2018 13:56:45 +0000 Subject: [issue33844] Writing capital letters with csvwriter.writerow changes the csv file format In-Reply-To: <1528808464.61.0.475983251502.issue33844@psf.upfronthosting.co.za> Message-ID: <1528811805.56.0.475983251502.issue33844@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Both CSV and SYLK are text formats used by Excel. ---------- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 10:01:43 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 12 Jun 2018 14:01:43 +0000 Subject: [issue23346] shutil.rmtree doesn't work correctly on FreeBSD. In-Reply-To: <1422507173.88.0.069796427202.issue23346@psf.upfronthosting.co.za> Message-ID: <1528812103.75.0.475983251502.issue23346@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: I can't reproduce the problem on FreeBSD 11.1. If it is reproducible only on old versions, we can close this issue. If it depends on specific configuration, it is still a Python issue. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 10:03:53 2018 From: report at bugs.python.org (STINNER Victor) Date: Tue, 12 Jun 2018 14:03:53 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1528812233.41.0.475983251502.issue33630@psf.upfronthosting.co.za> STINNER Victor added the comment: I'm not sure that the attached PR fixes all race conditions. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 10:05:49 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 12 Jun 2018 14:05:49 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1528812349.13.0.475983251502.issue33630@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: The part that is related to \udcdb\udcdb\udcdb... is a problem in posix_spawn() implementation, not in tests. It can't be fixed by changing tests. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 10:10:25 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Tue, 12 Jun 2018 14:10:25 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1528812625.37.0.475983251502.issue33630@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: In PR 7663 I am only fixing the race condition. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 10:12:49 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Tue, 12 Jun 2018 14:12:49 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1528812769.65.0.475983251502.issue33630@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: A separate PR is needed for the apparent reusing of freed memory in the implementation of posix_spawn. I am currently looking into it. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 10:12:56 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Tue, 12 Jun 2018 14:12:56 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1528812776.21.0.475983251502.issue33630@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: For reference: posix_spawn() was implemented in issue20104. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 10:14:27 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Tue, 12 Jun 2018 14:14:27 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1528812867.18.0.475983251502.issue33630@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: Should we merge PR6693 and PR6725 before fixing the memory problem? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 10:18:56 2018 From: report at bugs.python.org (Tal Einat) Date: Tue, 12 Jun 2018 14:18:56 +0000 Subject: [issue33839] IDLE tooltips.py: refactor and add docstrings and tests In-Reply-To: <1528747780.64.0.592728768989.issue33839@psf.upfronthosting.co.za> Message-ID: <1528813136.0.0.475983251502.issue33839@psf.upfronthosting.co.za> Tal Einat added the comment: I've started work on this. My progress can be followed on the bpo-33839 branch on my GitHub repo: https://github.com/taleinat/cpython/tree/bpo-33839 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 10:32:10 2018 From: report at bugs.python.org (Dong-hee Na) Date: Tue, 12 Jun 2018 14:32:10 +0000 Subject: [issue33660] pathlib.Path.resolve() returns path with double slash when resolving a relative path in root directory In-Reply-To: <1527418713.03.0.682650639539.issue33660@psf.upfronthosting.co.za> Message-ID: <1528813930.94.0.475983251502.issue33660@psf.upfronthosting.co.za> Change by Dong-hee Na : ---------- keywords: +patch pull_requests: +7281 stage: test needed -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 11:06:34 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Tue, 12 Jun 2018 15:06:34 +0000 Subject: [issue33845] Update Doc\make.bat on 2.7 to bring it on par to master version Message-ID: <1528815994.24.0.475983251502.issue33845@psf.upfronthosting.co.za> New submission from Andr?s Delfino : PR makes the necessary changes to make Doc\make.bat the same as the master version, except some small differences. This should help backports. ---------- components: Windows messages: 319392 nosy: adelfino, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Update Doc\make.bat on 2.7 to bring it on par to master version type: enhancement versions: Python 2.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 11:06:58 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Tue, 12 Jun 2018 15:06:58 +0000 Subject: [issue33845] Update Doc\make.bat on 2.7 to bring it on par to master version In-Reply-To: <1528815994.24.0.475983251502.issue33845@psf.upfronthosting.co.za> Message-ID: <1528816018.39.0.475983251502.issue33845@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- keywords: +patch pull_requests: +7282 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 11:13:06 2018 From: report at bugs.python.org (Xiang Zhang) Date: Tue, 12 Jun 2018 15:13:06 +0000 Subject: [issue33828] Add versionchanged notes for string.Formatter In-Reply-To: <1528705999.65.0.592728768989.issue33828@psf.upfronthosting.co.za> Message-ID: <1528816386.11.0.475983251502.issue33828@psf.upfronthosting.co.za> Change by Xiang Zhang : ---------- keywords: +patch pull_requests: +7283 stage: needs patch -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 11:37:59 2018 From: report at bugs.python.org (Eric V. Smith) Date: Tue, 12 Jun 2018 15:37:59 +0000 Subject: [issue33844] Writing capital letters with csvwriter.writerow changes the csv file format In-Reply-To: <1528808464.61.0.475983251502.issue33844@psf.upfronthosting.co.za> Message-ID: <1528817879.88.0.475983251502.issue33844@psf.upfronthosting.co.za> Eric V. Smith added the comment: This is happening because the string "ID" is special to the SYLK format: https://en.wikipedia.org/wiki/SYmbolic_LinK_(SYLK) ---------- nosy: +eric.smith _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 11:53:28 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Tue, 12 Jun 2018 15:53:28 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1528818808.47.0.475983251502.issue33630@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: Serhiy, I am checking and the only temporary Python object (the result of encoding/decoding) that is passed to C library function that I can find is in: if (!PyArg_ParseTuple(file_action, "OiO&ik" ";A open file_action tuple must have 5 elements", &tag_obj, &fd, PyUnicode_FSConverter, &path, &oflag, &mode)) { goto fail; } errno = posix_spawn_file_actions_addopen(file_actionsp, fd, PyBytes_AS_STRING(path), oflag, (mode_t)mode); Py_DECREF(path); /* addopen copied it. */ And according to the manpage of posix_spawn_file_actions_addopen: "The string described by path shall be copied by the posix_spawn_file_actions_addopen() function.". The object created by `PyArg_ParseTuple` (path) is only freed after calling `posix_spawn_file_actions_addopen` and in that function the contents are copied inside `file_actionsp`. So it should not be a problem. In case there is still a problem, could you elaborate more about what object is being freed and how is being passed to a C library function? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 12:12:25 2018 From: report at bugs.python.org (Dong-hee Na) Date: Tue, 12 Jun 2018 16:12:25 +0000 Subject: [issue33660] pathlib.Path.resolve() returns path with double slash when resolving a relative path in root directory In-Reply-To: <1527418713.03.0.682650639539.issue33660@psf.upfronthosting.co.za> Message-ID: <1528819945.45.0.475983251502.issue33660@psf.upfronthosting.co.za> Dong-hee Na added the comment: For reviewers, I submitted a patch PR 7666. Please take a look ---------- nosy: +corona10 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 14:02:33 2018 From: report at bugs.python.org (Johannes Raggam) Date: Tue, 12 Jun 2018 18:02:33 +0000 Subject: [issue33846] Misleading error message in urllib.parse.unquote Message-ID: <1528826553.26.0.947875510639.issue33846@psf.upfronthosting.co.za> New submission from Johannes Raggam : urllib.parse.unquote gives an misleading error message when: >>> import urllib >>> urllib.parse.unquote(b'bytesurl') *** TypeError: a bytes-like object is required, not 'str' while: >>> urllib.parse.unquote('texturl') texturl The correct behavior is to pass a string/text object to unquote. But passing a bytes object gives a misleading error message. A fix would be to add an assertion in https://github.com/python/cpython/blob/0250de48199552cdaed5a4fe44b3f9cdb5325363/Lib/urllib/parse.py#L614 like: >>> assert isinstance(string, str) ---------- components: Library (Lib) messages: 319396 nosy: thet priority: normal severity: normal status: open title: Misleading error message in urllib.parse.unquote type: enhancement versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 14:11:48 2018 From: report at bugs.python.org (R. David Murray) Date: Tue, 12 Jun 2018 18:11:48 +0000 Subject: [issue33846] Misleading error message in urllib.parse.unquote In-Reply-To: <1528826553.26.0.947875510639.issue33846@psf.upfronthosting.co.za> Message-ID: <1528827108.56.0.947875510639.issue33846@psf.upfronthosting.co.za> R. David Murray added the comment: We don't generally do type checks like that. This is a specific case of a general issue with binary operators and mismatched string/bytes types. I thought there was an open issue for it, but I haven't found it yet. ---------- nosy: +r.david.murray _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 14:44:14 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Tue, 12 Jun 2018 18:44:14 +0000 Subject: [issue33847] doc: Add '@' operator entry to index Message-ID: <1528829054.17.0.947875510639.issue33847@psf.upfronthosting.co.za> New submission from Andr?s Delfino : Currently, the index only refers to decorators for the @ symbol. PR adds entry for the matrix multiplication operator. ---------- assignee: docs at python components: Documentation messages: 319398 nosy: adelfino, docs at python priority: normal severity: normal status: open title: doc: Add '@' operator entry to index type: enhancement versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 14:44:53 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Tue, 12 Jun 2018 18:44:53 +0000 Subject: [issue33847] doc: Add '@' operator entry to index In-Reply-To: <1528829054.17.0.947875510639.issue33847@psf.upfronthosting.co.za> Message-ID: <1528829093.51.0.947875510639.issue33847@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- keywords: +patch pull_requests: +7284 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 16:09:10 2018 From: report at bugs.python.org (Tal Einat) Date: Tue, 12 Jun 2018 20:09:10 +0000 Subject: [issue25246] Alternative algorithm for deque_remove() In-Reply-To: <1443343421.14.0.18683145075.issue25246@psf.upfronthosting.co.za> Message-ID: <1528834150.25.0.947875510639.issue25246@psf.upfronthosting.co.za> Tal Einat added the comment: IMO both approaches sound better than the existing implementation. Better to choose one than to do nothing. ---------- nosy: +taleinat _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 16:37:57 2018 From: report at bugs.python.org (=?utf-8?q?=C5=81ukasz_Langa?=) Date: Tue, 12 Jun 2018 20:37:57 +0000 Subject: [issue32108] configparser bug: section is emptied if you assign a section to itself In-Reply-To: <1511286370.98.0.213398074469.issue32108@psf.upfronthosting.co.za> Message-ID: <1528835877.56.0.947875510639.issue32108@psf.upfronthosting.co.za> ?ukasz Langa added the comment: New changeset 33cd058f21d0673253c88cea70388282918992bc by ?ukasz Langa (Cheryl Sabella) in branch 'master': bpo-32108: Don't clear configparser values if key is assigned to itself (GH-7588) https://github.com/python/cpython/commit/33cd058f21d0673253c88cea70388282918992bc ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 17:04:57 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Tue, 12 Jun 2018 21:04:57 +0000 Subject: [issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win) In-Reply-To: <1527524243.69.0.682650639539.issue33671@psf.upfronthosting.co.za> Message-ID: <1528837497.64.0.947875510639.issue33671@psf.upfronthosting.co.za> Giampaolo Rodola' added the comment: New changeset 4a172ccc739065bb658c75e8929774a8e94af9e9 by Giampaolo Rodola in branch 'master': bpo-33671: efficient zero-copy for shutil.copy* functions (Linux, OSX and Win) (#7160) https://github.com/python/cpython/commit/4a172ccc739065bb658c75e8929774a8e94af9e9 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 17:31:51 2018 From: report at bugs.python.org (Johannes Raggam) Date: Tue, 12 Jun 2018 21:31:51 +0000 Subject: [issue33848] Incomplete format string syntax for Exceptions Message-ID: <1528839111.37.0.947875510639.issue33848@psf.upfronthosting.co.za> New submission from Johannes Raggam : The following is valid Python 2: >>> 'okay {0:s}'.format(Exception('test')) 'okay test' >>> 'okay {0}'.format(Exception('test')) 'okay test' The following fails on Python 3.6: >>> 'okay {0:s}'.format(Exception('test')) Traceback (most recent call last): File "", line 1, in TypeError: unsupported format string passed to Exception.__format__ While this doesn't fail: >>> 'okay {0}'.format(Exception('test')) 'okay test' ---------- components: ctypes messages: 319402 nosy: thet priority: normal severity: normal status: open title: Incomplete format string syntax for Exceptions versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 17:32:30 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Tue, 12 Jun 2018 21:32:30 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528839150.84.0.947875510639.issue33656@psf.upfronthosting.co.za> Terry J. Reedy added the comment: I confirmed that IDLE did not import ctypes before this issue. Serhiy, I presume that the new code can be skipped, you are suggesting replacing import ctypes with try: import ctypes except ImportError: pass # The ctypes-using fix is not essential. else: But, in what sense is ctypes optional *on Windows* more than most other modules? I don't see anything in the ctypes doc. It is normal to depend on stdlib modules being present and not wrap imports. Steve: does the Windows installer have an option to omit ctypes? I don't remember one. Anyone: do you know of any CPython Windows distributions that we care about that omit ctypes? Which of the following best describes the situation? 1. This is a theoretical concern that does not justify adding noise to the code. 2. This is a real concern, but so rare that the fix can be deferred to 3.6.7 and 3.7.1. 3. This is likely common enough that we should ask Ned to cherry-pick the patch into 3.6.6 and 3.7.1. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 17:32:50 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Tue, 12 Jun 2018 21:32:50 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528839170.17.0.947875510639.issue33656@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- status: closed -> open _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 17:45:26 2018 From: report at bugs.python.org (Mariatta Wijaya) Date: Tue, 12 Jun 2018 21:45:26 +0000 Subject: [issue31102] deheader: double #incude of the same file In-Reply-To: <1501667511.46.0.397475744495.issue31102@psf.upfronthosting.co.za> Message-ID: <1528839926.75.0.947875510639.issue31102@psf.upfronthosting.co.za> Mariatta Wijaya added the comment: Closing this. No action item from our side. ---------- nosy: +Mariatta resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 17:48:06 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Tue, 12 Jun 2018 21:48:06 +0000 Subject: [issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win) In-Reply-To: <1527524243.69.0.682650639539.issue33671@psf.upfronthosting.co.za> Message-ID: <1528840086.6.0.947875510639.issue33671@psf.upfronthosting.co.za> Giampaolo Rodola' added the comment: For future reference, as per https://github.com/python/cpython/pull/7160 discussion, we decided not to use CopyFileEx on Windows and instead increase read() buffer size from 16KB to 1MB (Windows only) resulting in a 40.8% speedup (instead of 48%). Also copyfileobj() has been optimized on all platforms by using readinto()/memoryview()/bytearray(). Updated benchmarks on Windows: 128KB copy (+27%) without patch: 50 loops, best of 5: 7.69 sec per loop with patch: 50 loops, best of 5: 5.61 sec per loop 8MB copy (+45.6%) without patch: 10 loops, best of 5: 20.8 sec per loop with patch: 20 loops, best of 5: 11.3 sec per loop 512MB copy (+40.8%) without patch: 1 loop, best of 5: 1.26 sec per loop with patch: 1 loop, best of 5: 646 msec per loop ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 17:50:44 2018 From: report at bugs.python.org (Yury Selivanov) Date: Tue, 12 Jun 2018 21:50:44 +0000 Subject: [issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win) In-Reply-To: <1527524243.69.0.682650639539.issue33671@psf.upfronthosting.co.za> Message-ID: <1528840244.2.0.947875510639.issue33671@psf.upfronthosting.co.za> Change by Yury Selivanov : ---------- nosy: -yselivanov _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 17:52:41 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Tue, 12 Jun 2018 21:52:41 +0000 Subject: [issue33839] IDLE tooltips.py: refactor and add docstrings and tests In-Reply-To: <1528747780.64.0.592728768989.issue33839@psf.upfronthosting.co.za> Message-ID: <1528840361.9.0.947875510639.issue33839@psf.upfronthosting.co.za> Terry J. Reedy added the comment: I just ran the 3.7.0rc1 installer and here is no option to omit ctypes. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 17:53:01 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Tue, 12 Jun 2018 21:53:01 +0000 Subject: [issue33839] IDLE tooltips.py: refactor and add docstrings and tests In-Reply-To: <1528747780.64.0.592728768989.issue33839@psf.upfronthosting.co.za> Message-ID: <1528840381.32.0.947875510639.issue33839@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- Removed message: https://bugs.python.org/msg319406 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 17:53:17 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Tue, 12 Jun 2018 21:53:17 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528840397.94.0.947875510639.issue33656@psf.upfronthosting.co.za> Terry J. Reedy added the comment: I just ran the 3.7.0rc1 installer and here is no option to omit ctypes. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 17:59:37 2018 From: report at bugs.python.org (Eric V. Smith) Date: Tue, 12 Jun 2018 21:59:37 +0000 Subject: [issue33848] Incomplete format string syntax for Exceptions In-Reply-To: <1528839111.37.0.947875510639.issue33848@psf.upfronthosting.co.za> Message-ID: <1528840777.5.0.947875510639.issue33848@psf.upfronthosting.co.za> Eric V. Smith added the comment: This is because Exception does not define __format__, so object.__format__ is being called. object.__format__ does not allow any format specifier to be used. You get the same error for any object without its own __format__, when you supply a format spec. >>> 'okay {0:s}'.format(sys) Traceback (most recent call last): File "", line 1, in TypeError: unsupported format string passed to module.__format__ The reason this is enforced is because it allows an Execption.__format__ to be added in the future, without worrying what existing format specifiers are being used. We had a problem adding complex.__format__ because people had supplied format specs when formatting complex numbers, assuming they acted like strings. But now we've prevented this problem from happening in the future. If you want to provide str formatting options to something like an exception, you should force-convert it to a str first, using !s: >>> 'okay {0!s:*^10}'.format(Exception('test')) 'okay ***test***' ---------- components: +Interpreter Core -ctypes nosy: +eric.smith resolution: -> not a bug stage: -> resolved status: open -> closed type: -> behavior _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 18:24:35 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Tue, 12 Jun 2018 22:24:35 +0000 Subject: [issue33849] Caught infinite recursion resets the trace function Message-ID: <1528842275.49.0.947875510639.issue33849@psf.upfronthosting.co.za> New submission from Alexander Belopolsky : Consider the following code: import sys def trace(frame, event, arg): pass def f(): f() sys.settrace(trace) print(sys.gettrace()) try: f() except RuntimeError: pass print(sys.gettrace()) When I run it, I get None Apparently, the infinite recursion somehow resets the trace function. This interferes with the coverage tools. ---------- messages: 319409 nosy: belopolsky priority: normal severity: normal stage: needs patch status: open title: Caught infinite recursion resets the trace function type: behavior versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 18:29:40 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Tue, 12 Jun 2018 22:29:40 +0000 Subject: [issue33849] Caught infinite recursion resets the trace function In-Reply-To: <1528842275.49.0.947875510639.issue33849@psf.upfronthosting.co.za> Message-ID: <1528842580.08.0.947875510639.issue33849@psf.upfronthosting.co.za> Alexander Belopolsky added the comment: It looks like this has been known for quite some time. See issue10933. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 18:30:19 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Tue, 12 Jun 2018 22:30:19 +0000 Subject: [issue33849] Caught infinite recursion resets the trace function In-Reply-To: <1528842275.49.0.947875510639.issue33849@psf.upfronthosting.co.za> Message-ID: <1528842619.79.0.947875510639.issue33849@psf.upfronthosting.co.za> Change by Alexander Belopolsky : ---------- resolution: -> duplicate superseder: -> Tracing disabled when a recursion error is triggered (even if properly handled) _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 18:30:31 2018 From: report at bugs.python.org (Alexander Belopolsky) Date: Tue, 12 Jun 2018 22:30:31 +0000 Subject: [issue33849] Caught infinite recursion resets the trace function In-Reply-To: <1528842275.49.0.947875510639.issue33849@psf.upfronthosting.co.za> Message-ID: <1528842631.37.0.947875510639.issue33849@psf.upfronthosting.co.za> Change by Alexander Belopolsky : ---------- stage: needs patch -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 19:22:33 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Tue, 12 Jun 2018 23:22:33 +0000 Subject: [issue25246] Alternative algorithm for deque_remove() In-Reply-To: <1443343421.14.0.18683145075.issue25246@psf.upfronthosting.co.za> Message-ID: <1528845753.8.0.947875510639.issue25246@psf.upfronthosting.co.za> Change by Pablo Galindo Salgado : ---------- pull_requests: +7285 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 19:31:47 2018 From: report at bugs.python.org (Steve Dower) Date: Tue, 12 Jun 2018 23:31:47 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528846307.82.0.947875510639.issue33656@psf.upfronthosting.co.za> Steve Dower added the comment: There's no option to omit ctypes, though I am aware of some custom builds of Python that exclude it. I don't think you need to worry about those being used for IDLE (but of course the general policy of the stdlib not relying on ctypes remains). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 19:34:52 2018 From: report at bugs.python.org (Steve Dower) Date: Tue, 12 Jun 2018 23:34:52 +0000 Subject: [issue33845] Update Doc\make.bat on 2.7 to bring it on par to master version In-Reply-To: <1528815994.24.0.475983251502.issue33845@psf.upfronthosting.co.za> Message-ID: <1528846492.83.0.947875510639.issue33845@psf.upfronthosting.co.za> Steve Dower added the comment: Hopefully there aren't that many more fixes needed to this scripts - you've done a great job clearing up the issues! Any reason not to merge right now? I notice your commit message simply reads "Initial commit" ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 19:52:30 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Tue, 12 Jun 2018 23:52:30 +0000 Subject: [issue30317] test_timeout() of test_multiprocessing_spawn.WithManagerTestBarrier fails randomly on x86 Windows7 3.x buildbot In-Reply-To: <1494345179.69.0.743787858569.issue30317@psf.upfronthosting.co.za> Message-ID: <1528847550.28.0.947875510639.issue30317@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: New failure on x86 Windows7 3.x: http://buildbot.python.org/all/#/builders/58/builds/1000 ---------- nosy: +pablogsal _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 20:02:28 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Wed, 13 Jun 2018 00:02:28 +0000 Subject: [issue33845] Update Doc\make.bat on 2.7 to bring it on par to master version In-Reply-To: <1528815994.24.0.475983251502.issue33845@psf.upfronthosting.co.za> Message-ID: <1528848148.91.0.947875510639.issue33845@psf.upfronthosting.co.za> Andr?s Delfino added the comment: Not really. I name all my first commits "Initial commit" as you gals/guys rename it anyways, and, also, it's usual to be asked for changes :) I might change my mind after my initial commit, but I only make pull requests when the first commit _seems_ final to me at the time. PS: Thank you for your words! :) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 20:03:35 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Wed, 13 Jun 2018 00:03:35 +0000 Subject: [issue33845] Update Doc\make.bat on 2.7 to bring it on par to master version In-Reply-To: <1528815994.24.0.475983251502.issue33845@psf.upfronthosting.co.za> Message-ID: <1528848215.47.0.947875510639.issue33845@psf.upfronthosting.co.za> Andr?s Delfino added the comment: I think I wasn't clear: I see no reason to not merge this right now. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 20:22:00 2018 From: report at bugs.python.org (Julian Mehnle) Date: Wed, 13 Jun 2018 00:22:00 +0000 Subject: [issue31861] aiter() and anext() built-in functions In-Reply-To: <1508851575.6.0.213398074469.issue31861@psf.upfronthosting.co.za> Message-ID: <1528849320.38.0.947875510639.issue31861@psf.upfronthosting.co.za> Change by Julian Mehnle : ---------- nosy: +jmehnle _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 20:31:07 2018 From: report at bugs.python.org (Steve Dower) Date: Wed, 13 Jun 2018 00:31:07 +0000 Subject: [issue33845] Update Doc\make.bat on 2.7 to bring it on par to master version In-Reply-To: <1528815994.24.0.475983251502.issue33845@psf.upfronthosting.co.za> Message-ID: <1528849867.57.0.947875510639.issue33845@psf.upfronthosting.co.za> Steve Dower added the comment: New changeset 42ca8367ceb59021bbf5e5fb4fd0268d3411c0a4 by Steve Dower (Andr?s Delfino) in branch '2.7': bpo-33845: Update Doc\make.bat on 2.7 to bring it on par to master version (GH-7667) https://github.com/python/cpython/commit/42ca8367ceb59021bbf5e5fb4fd0268d3411c0a4 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 20:32:00 2018 From: report at bugs.python.org (Steve Dower) Date: Wed, 13 Jun 2018 00:32:00 +0000 Subject: [issue33845] Update Doc\make.bat on 2.7 to bring it on par to master version In-Reply-To: <1528815994.24.0.475983251502.issue33845@psf.upfronthosting.co.za> Message-ID: <1528849920.92.0.947875510639.issue33845@psf.upfronthosting.co.za> Steve Dower added the comment: Merged! We don't normally change the name (except to update the GH-7667 reference at the end), but once there's more than one commit GitHub will use the PR title instead of the commit message. ---------- assignee: -> steve.dower resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 21:42:46 2018 From: report at bugs.python.org (Xiang Zhang) Date: Wed, 13 Jun 2018 01:42:46 +0000 Subject: [issue33828] Add versionchanged notes for string.Formatter In-Reply-To: <1528705999.65.0.592728768989.issue33828@psf.upfronthosting.co.za> Message-ID: <1528854166.92.0.947875510639.issue33828@psf.upfronthosting.co.za> Xiang Zhang added the comment: New changeset b9d8ad5130e0f77be28a3dec6d468e6470835573 by Xiang Zhang in branch 'master': bpo-33828: Add missing versionchanged note for string.Formatter. (GH-7668) https://github.com/python/cpython/commit/b9d8ad5130e0f77be28a3dec6d468e6470835573 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 21:43:20 2018 From: report at bugs.python.org (miss-islington) Date: Wed, 13 Jun 2018 01:43:20 +0000 Subject: [issue33828] Add versionchanged notes for string.Formatter In-Reply-To: <1528705999.65.0.592728768989.issue33828@psf.upfronthosting.co.za> Message-ID: <1528854200.74.0.947875510639.issue33828@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7286 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 21:43:57 2018 From: report at bugs.python.org (miss-islington) Date: Wed, 13 Jun 2018 01:43:57 +0000 Subject: [issue33828] Add versionchanged notes for string.Formatter In-Reply-To: <1528705999.65.0.592728768989.issue33828@psf.upfronthosting.co.za> Message-ID: <1528854237.23.0.947875510639.issue33828@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7287 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 22:04:12 2018 From: report at bugs.python.org (Xiang Zhang) Date: Wed, 13 Jun 2018 02:04:12 +0000 Subject: [issue33828] Add versionchanged notes for string.Formatter In-Reply-To: <1528705999.65.0.592728768989.issue33828@psf.upfronthosting.co.za> Message-ID: <1528855452.7.0.947875510639.issue33828@psf.upfronthosting.co.za> Change by Xiang Zhang : ---------- pull_requests: +7288 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 22:10:54 2018 From: report at bugs.python.org (miss-islington) Date: Wed, 13 Jun 2018 02:10:54 +0000 Subject: [issue33828] Add versionchanged notes for string.Formatter In-Reply-To: <1528705999.65.0.592728768989.issue33828@psf.upfronthosting.co.za> Message-ID: <1528855854.06.0.947875510639.issue33828@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 29fdea5ec2054f18e68733ec83edbd0b855fd8bb by Miss Islington (bot) in branch '3.7': bpo-33828: Add missing versionchanged note for string.Formatter. (GH-7668) https://github.com/python/cpython/commit/29fdea5ec2054f18e68733ec83edbd0b855fd8bb ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 22:11:27 2018 From: report at bugs.python.org (miss-islington) Date: Wed, 13 Jun 2018 02:11:27 +0000 Subject: [issue33828] Add versionchanged notes for string.Formatter In-Reply-To: <1528705999.65.0.592728768989.issue33828@psf.upfronthosting.co.za> Message-ID: <1528855887.65.0.947875510639.issue33828@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 439a9b69985bd4757de1504d19b040f78e384ca4 by Miss Islington (bot) in branch '3.6': bpo-33828: Add missing versionchanged note for string.Formatter. (GH-7668) https://github.com/python/cpython/commit/439a9b69985bd4757de1504d19b040f78e384ca4 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 22:38:04 2018 From: report at bugs.python.org (Xiang Zhang) Date: Wed, 13 Jun 2018 02:38:04 +0000 Subject: [issue33828] Add versionchanged notes for string.Formatter In-Reply-To: <1528705999.65.0.592728768989.issue33828@psf.upfronthosting.co.za> Message-ID: <1528857484.63.0.947875510639.issue33828@psf.upfronthosting.co.za> Xiang Zhang added the comment: New changeset fc8ea20c6f8571de96791bc5f7f2d693406024c7 by Xiang Zhang in branch '2.7': [2.7] bpo-33828: Clarify auto-numbering is not available to string.Formatter. (GH-7668) (GH-7676) https://github.com/python/cpython/commit/fc8ea20c6f8571de96791bc5f7f2d693406024c7 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jun 12 22:40:48 2018 From: report at bugs.python.org (Xiang Zhang) Date: Wed, 13 Jun 2018 02:40:48 +0000 Subject: [issue33828] Add versionchanged notes for string.Formatter In-Reply-To: <1528705999.65.0.592728768989.issue33828@psf.upfronthosting.co.za> Message-ID: <1528857648.38.0.947875510639.issue33828@psf.upfronthosting.co.za> Xiang Zhang added the comment: Thanks for the review, Eric. :-) ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement versions: +Python 2.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 00:12:13 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Wed, 13 Jun 2018 04:12:13 +0000 Subject: [issue26698] Tk DPI awareness In-Reply-To: <1459911228.34.0.00983454800259.issue26698@psf.upfronthosting.co.za> Message-ID: <1528863133.31.0.947875510639.issue26698@psf.upfronthosting.co.za> Terry J. Reedy added the comment: The fix for IDLE on Windows made it into 3.6.6rc1 and 3.7.0rc1. Changing the python.exe and pythonw.exe default dpi settings is a possible issue for 3.8, and should have Steve.Dower nosy. ---------- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> IDLE: Turn on DPI awareness on Windows _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 00:47:24 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Wed, 13 Jun 2018 04:47:24 +0000 Subject: [issue2053] IDLE - standardize dialogs In-Reply-To: <1202515821.86.0.159216664847.issue2053@psf.upfronthosting.co.za> Message-ID: <1528865244.15.0.947875510639.issue2053@psf.upfronthosting.co.za> Terry J. Reedy added the comment: I would rather leave this open for the moment as an information resource. I wrote query.py with a base class and subclasses to standardize asking users for input. So some of the patch may be obsolete, but it does have a catalog of popup uses. The patch consistently replaces tkMessagebox.showerror with widget.showerror. I have done that in several places, although widget.showerror may just be messagebox.showerror. At least some of my motivation was making testing easier, by adding a mock to the test instance instead of temporarily monkeypatching messagebox. If a custom Showerror class were defined in, for instant, query.py, "self.showerror = tkMessagebox.showerror" could easily be replaced by "self.showerror = query.Showerror. I also have some interest in consistently handling focus in response to key presses. (There was recently a request for this on idle-dev.) ---------- nosy: -Todd.Rovito, gpolo, kbk, ned.deily, roger.serwy stage: patch review -> test needed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 00:53:20 2018 From: report at bugs.python.org (Lisa Guo) Date: Wed, 13 Jun 2018 04:53:20 +0000 Subject: [issue33840] connection limit on listening socket in asyncio In-Reply-To: <1528751429.93.0.592728768989.issue33840@psf.upfronthosting.co.za> Message-ID: <1528865600.13.0.947875510639.issue33840@psf.upfronthosting.co.za> Lisa Guo added the comment: Hi Yury, no, I'm not familiar with the other frameworks (libuv doesn't have this). I'll need to look into it. If anybody else knows, please comment as well. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 01:10:31 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 13 Jun 2018 05:10:31 +0000 Subject: [issue33656] IDLE: Turn on DPI awareness on Windows In-Reply-To: <1527376490.94.0.682650639539.issue33656@psf.upfronthosting.co.za> Message-ID: <1528866631.24.0.947875510639.issue33656@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: I don't know whether this is a theoretical or a real concern, but I think this fix can wait for 3.7.1. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 01:54:47 2018 From: report at bugs.python.org (Zackery Spytz) Date: Wed, 13 Jun 2018 05:54:47 +0000 Subject: [issue31378] Missing documentation for sqlite3.OperationalError In-Reply-To: <1504772099.62.0.812032551606.issue31378@psf.upfronthosting.co.za> Message-ID: <1528869287.49.0.947875510639.issue31378@psf.upfronthosting.co.za> Change by Zackery Spytz : ---------- keywords: +patch pull_requests: +7289 stage: needs patch -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 01:56:28 2018 From: report at bugs.python.org (Zackery Spytz) Date: Wed, 13 Jun 2018 05:56:28 +0000 Subject: [issue31378] Missing documentation for sqlite3.OperationalError In-Reply-To: <1504772099.62.0.812032551606.issue31378@psf.upfronthosting.co.za> Message-ID: <1528869388.29.0.947875510639.issue31378@psf.upfronthosting.co.za> Change by Zackery Spytz : ---------- nosy: +ZackerySpytz versions: +Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 01:56:57 2018 From: report at bugs.python.org (Xiang Zhang) Date: Wed, 13 Jun 2018 05:56:57 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1528869417.07.0.947875510639.issue33630@psf.upfronthosting.co.za> Xiang Zhang added the comment: I encounter the same failure when running test_posix suite with a debug build Python. [root at SZX1000328166 cpython]# ./python -m test test_posix Run tests sequentially 0:00:00 load avg: 0.91 [1/1] test_posix Warning -- files was modified by test_posix Before: [] After: ['\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcdb\udcf0\udcd3B\udcb4\udc8b\x7f'] test test_posix failed -- multiple errors occurred; run in verbose mode for details test_posix failed == Tests result: FAILURE == 1 test failed: test_posix Total duration: 459 ms Tests result: FAILURE Believe it or not, when I comment out the `Py_DECREF(path)`, the failure goes away. ---------- nosy: +xiang.zhang _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 02:07:12 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Wed, 13 Jun 2018 06:07:12 +0000 Subject: [issue1529353] Squeezer - squeeze large output in the interpreter Message-ID: <1528870032.88.0.947875510639.issue1529353@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Thanks, Cheryl, very helpful. I have since played around with the patch. Some context first. I want to make improving Shell a major focus for a while. Part of that is handling problematic output. One solution is to remove it. For instance, if I enter a statement with a name error, I would like to be able to, for instance, hit Alt-Cntl-Z ('Undo Output') and have the last prompt and output erased and the last statement made editable, with the cursor at the end. Boxing the output is an alternative to just getting rid of it. Or in some cases, it might make it clearer that deletion is a good idea. I think some detail's should be different for 'too long' versus 'too many'. Initial comments using Cheryl's numbers. 1. I tried something more 'sensible': 'a'*10000 by itself and preceded by "for i in range(10): ". I was surprised that this did not bog down my machine. I will have to look at some old issues where I verified the problem. (Perhaps something has improved?) In any case, I think we should either refuse to expand something malignant or at least ask "Do you really want to kill IDLE by expanding this?" 2. I want IDLE to be more usable without a mouse, and usable with alternate mice. 3. I get the error when Notepad is opened. For 'lots of lines', such as the 1000+ line output for help(tk.Text), the alternate window (or frame!) can and should be an IDLE edit or view window. This will be important when IDLE becomes a tabbed application. I would only want to use external software when a tk Text could not do the job. 8. "Enable editor = False" is needed to keep Squeezer off editor edit menus. The extension config system has no way to differentiate between settings a user can change and those they should not. As a feature, it would clearly be Shell only. As I have said before, I want to move to graying-out menu items rather than inserting and deleting them. 4. I also want restrict new options to those really needed, as determined by experience. Perhaps we can agree on a fixed cutoff. Perhaps something like 'more than 100 lines or 5000 characters'. 9. Color option is not needed. Use the tooltip color. If we wanted, we could make it depend on whether the theme was light or dark. If we did, this would be part of the Tooltip class, and not part of this issue. 5. I agree that the cursor should more. 6. Tooltips should go away when the mouse moves off the tool button, and it does. Cheryl, not sure what you are saying here. I should like to see the tip when moving the cursor with keys. Perhaps the button should be replaced by tagged text. One can click a tag as well as a button, and tab-bind and key press. 7. Making feature option changes take effect immediately was one of the improvements made with the conversion. (new) 10. The button for 'a'*10000 says '(nn lines)'. It should say '(10000 chars)' or '(1 line, 10000 chars)'. The number of lines depends on the text width and changes as the width is changed. I suspect the squeezer should be able to tell the difference, because when I prefixed 'for i in range(10):', I see 10 buttons with, for one width, '87 lines'. After expand all and contract, to one button, I see '96 lines', which is 87 (for the first line) + 9 (for each of the rest). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 02:14:50 2018 From: report at bugs.python.org (Xiang Zhang) Date: Wed, 13 Jun 2018 06:14:50 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1528870490.82.0.947875510639.issue33630@psf.upfronthosting.co.za> Xiang Zhang added the comment: I checked glibc changelog and the copy behaviour is not implemented until 2014, glic 2.20. There is a CVE-2014-4043. My environment has glic 2.17 which seems still suffer the problem. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 02:18:41 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Wed, 13 Jun 2018 06:18:41 +0000 Subject: [issue1529353] Squeezer - squeeze large output in the interpreter Message-ID: <1528870721.54.0.947875510639.issue1529353@psf.upfronthosting.co.za> Terry J. Reedy added the comment: 11. Right click should bring up a custom context menu. It can have 'cut' (delete), 'copy' (to clipboard, eliminating middle click need), 'edit' (IDLE editor if it seems ok), 'view' (ditto for TextView). Is there a standard for simulating left and right click with keys? Whatever, it should be possible to do same with cursor beside button or within tag. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 02:19:38 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 13 Jun 2018 06:19:38 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1528870778.0.0.947875510639.issue33630@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: I'm puzzled. It is not just documented that posix_spawn_file_actions_addopen() should make a copy, but the glibc implementation actually makes it: see for example https://github.com/bminor/glibc/blob/09533208febe923479261a27b7691abef297d604/posix/spawn_faction_addopen.c . I don't see a way of corrupting this memory. Can non-glibc implementation be used here? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 02:29:52 2018 From: report at bugs.python.org (Xiang Zhang) Date: Wed, 13 Jun 2018 06:29:52 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1528871392.69.0.947875510639.issue33630@psf.upfronthosting.co.za> Xiang Zhang added the comment: Serhiy, you need to check an early version, for example 2.17: https://github.com/bminor/glibc/blob/glibc-2.17/posix/spawn_faction_addopen.c ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 02:38:17 2018 From: report at bugs.python.org (=?utf-8?q?R=C3=A9mi_Lapeyre?=) Date: Wed, 13 Jun 2018 06:38:17 +0000 Subject: [issue33462] reversible dict In-Reply-To: <1526009418.33.0.682650639539.issue33462@psf.upfronthosting.co.za> Message-ID: <1528871897.88.0.947875510639.issue33462@psf.upfronthosting.co.za> R?mi Lapeyre added the comment: Thanks INADA, I made the necessary changes to _collections_abc. Is there anything that I should change? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 02:51:52 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 13 Jun 2018 06:51:52 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1528872712.95.0.947875510639.issue33630@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Thank you Xiang! Thus this is a bug in old glibc. It was fixed in glibc 2.20: https://sourceware.org/bugzilla/show_bug.cgi?id=17048 . What should we do with this? Add a workaround for the bug (this will complicate the code)? Or skip the test on glibc <2.20. ---------- nosy: +alex _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 03:24:59 2018 From: report at bugs.python.org (Stefan Vasilev) Date: Wed, 13 Jun 2018 07:24:59 +0000 Subject: [issue33844] Writing capital letters with csvwriter.writerow changes the csv file format In-Reply-To: <1528808464.61.0.475983251502.issue33844@psf.upfronthosting.co.za> Message-ID: <1528874699.09.0.947875510639.issue33844@psf.upfronthosting.co.za> Stefan Vasilev added the comment: Ah, I see now. What a coincidence :) Thank you for explaining that! ---------- resolution: not a bug -> works for me _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 04:44:21 2018 From: report at bugs.python.org (=?utf-8?q?Cl=C3=A9ment_Boyer?=) Date: Wed, 13 Jun 2018 08:44:21 +0000 Subject: [issue33850] Json.dump() bug when using generator Message-ID: <1528879461.56.0.947875510639.issue33850@psf.upfronthosting.co.za> New submission from Cl?ment Boyer : I use a class to write easily json when having generator. ```python class StreamArray(list): def __init__(self, generator): super().__init__() self.generator = generator def __iter__(self): return self.generator def __len__(self): return 1 ``` Below a test comparing json.dump and json.dumps. ``` >>> import json >>> class StreamArray(list): ... def __init__(self, generator): ... super().__init__() ... self.generator = generator ... def __iter__(self): ... return self.generator ... def __len__(self): ... return 1 ... >>> g = (i for i in range(0)) >>> json.dumps({"a": StreamArray(g)}) '{"a": []}' >>> f = open("/tmp/test.json", "w+") >>> g = (i for i in range(0)) >>> json.dump({"a": StreamArray(g)}, f) >>> f.close() >>> print(open("/tmp/test.json").read()) {"a": ]} ``` I don't know if it's me or if there is actually a problem, could you help me ? ---------- components: Library (Lib) messages: 319436 nosy: biloup priority: normal severity: normal status: open title: Json.dump() bug when using generator type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 05:02:07 2018 From: report at bugs.python.org (Jason) Date: Wed, 13 Jun 2018 09:02:07 +0000 Subject: [issue33836] [Good first-time issue] Recommend keyword-only param for memoization in FAQ In-Reply-To: <1528732775.39.0.592728768989.issue33836@psf.upfronthosting.co.za> Message-ID: <1528880526.99.0.947875510639.issue33836@psf.upfronthosting.co.za> Jason added the comment: Hey Zach, Can I get this one? I haven't contributed anything yet. Cheers, Jason ---------- nosy: +codecamelot _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 05:06:36 2018 From: report at bugs.python.org (Chris Eykamp) Date: Wed, 13 Jun 2018 09:06:36 +0000 Subject: [issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition In-Reply-To: <1471355745.98.0.805545529346.issue27777@psf.upfronthosting.co.za> Message-ID: <1528880796.18.0.947875510639.issue27777@psf.upfronthosting.co.za> Chris Eykamp added the comment: This also manifests itself when using web.py: if the underlying code throws an exception, this is emitted: File "/usr/local/lib/python3.5/dist-packages/web/webapi.py", line 364, in input out = rawinput(_method) File "/usr/local/lib/python3.5/dist-packages/web/webapi.py", line 341, in rawinput a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1) File "/usr/lib/python3.5/cgi.py", line 561, in __init__ self.read_single() File "/usr/lib/python3.5/cgi.py", line 740, in read_single self.read_binary() File "/usr/lib/python3.5/cgi.py", line 762, in read_binary self.file.write(data) TypeError: write() argument must be str, not bytes ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 05:09:40 2018 From: report at bugs.python.org (Berker Peksag) Date: Wed, 13 Jun 2018 09:09:40 +0000 Subject: [issue31378] Missing documentation for sqlite3.OperationalError In-Reply-To: <1504772099.62.0.812032551606.issue31378@psf.upfronthosting.co.za> Message-ID: <1528880980.77.0.947875510639.issue31378@psf.upfronthosting.co.za> Berker Peksag added the comment: New changeset 71ede00f140fa6b67a8ac17df68b80079efa8dc2 by Berker Peksag (Zackery Spytz) in branch 'master': bpo-31378: Document sqlite3.OperationalError exception (GH-7677) https://github.com/python/cpython/commit/71ede00f140fa6b67a8ac17df68b80079efa8dc2 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 05:10:05 2018 From: report at bugs.python.org (miss-islington) Date: Wed, 13 Jun 2018 09:10:05 +0000 Subject: [issue31378] Missing documentation for sqlite3.OperationalError In-Reply-To: <1504772099.62.0.812032551606.issue31378@psf.upfronthosting.co.za> Message-ID: <1528881005.9.0.947875510639.issue31378@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7290 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 05:10:42 2018 From: report at bugs.python.org (miss-islington) Date: Wed, 13 Jun 2018 09:10:42 +0000 Subject: [issue31378] Missing documentation for sqlite3.OperationalError In-Reply-To: <1504772099.62.0.812032551606.issue31378@psf.upfronthosting.co.za> Message-ID: <1528881042.62.0.947875510639.issue31378@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7291 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 05:28:51 2018 From: report at bugs.python.org (miss-islington) Date: Wed, 13 Jun 2018 09:28:51 +0000 Subject: [issue31378] Missing documentation for sqlite3.OperationalError In-Reply-To: <1504772099.62.0.812032551606.issue31378@psf.upfronthosting.co.za> Message-ID: <1528882131.4.0.947875510639.issue31378@psf.upfronthosting.co.za> miss-islington added the comment: New changeset eea4f149717cc83038641ca53f6f74be785de6f1 by Miss Islington (bot) in branch '3.7': bpo-31378: Document sqlite3.OperationalError exception (GH-7677) https://github.com/python/cpython/commit/eea4f149717cc83038641ca53f6f74be785de6f1 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 05:30:11 2018 From: report at bugs.python.org (miss-islington) Date: Wed, 13 Jun 2018 09:30:11 +0000 Subject: [issue31378] Missing documentation for sqlite3.OperationalError In-Reply-To: <1504772099.62.0.812032551606.issue31378@psf.upfronthosting.co.za> Message-ID: <1528882211.8.0.947875510639.issue31378@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 961332dfd3dbff4c63ed4d9f8b5de937aa63475b by Miss Islington (bot) in branch '3.6': bpo-31378: Document sqlite3.OperationalError exception (GH-7677) https://github.com/python/cpython/commit/961332dfd3dbff4c63ed4d9f8b5de937aa63475b ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 05:30:47 2018 From: report at bugs.python.org (Berker Peksag) Date: Wed, 13 Jun 2018 09:30:47 +0000 Subject: [issue31378] Missing documentation for sqlite3.OperationalError In-Reply-To: <1504772099.62.0.812032551606.issue31378@psf.upfronthosting.co.za> Message-ID: <1528882247.06.0.947875510639.issue31378@psf.upfronthosting.co.za> Change by Berker Peksag : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 05:31:28 2018 From: report at bugs.python.org (Eric V. Smith) Date: Wed, 13 Jun 2018 09:31:28 +0000 Subject: [issue33844] Writing capital letters with csvwriter.writerow changes the csv file format In-Reply-To: <1528808464.61.0.475983251502.issue33844@psf.upfronthosting.co.za> Message-ID: <1528882288.86.0.947875510639.issue33844@psf.upfronthosting.co.za> Change by Eric V. Smith : ---------- resolution: works for me -> not a bug _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 05:37:56 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 13 Jun 2018 09:37:56 +0000 Subject: [issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition In-Reply-To: <1471355745.98.0.805545529346.issue27777@psf.upfronthosting.co.za> Message-ID: <1528882676.83.0.947875510639.issue27777@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- nosy: -vstinner _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 05:44:58 2018 From: report at bugs.python.org (Eric V. Smith) Date: Wed, 13 Jun 2018 09:44:58 +0000 Subject: [issue33850] Json.dump() bug when using generator In-Reply-To: <1528879461.56.0.947875510639.issue33850@psf.upfronthosting.co.za> Message-ID: <1528883098.82.0.947875510639.issue33850@psf.upfronthosting.co.za> Eric V. Smith added the comment: You should ask your question on this mailing list: https://mail.python.org/mailman/listinfo/python-list The bug tracker is not a place for asking how to use Python. If you actually find a bug in Python, you can re-open this issue. I do not believe that what you show here is a Python bug. Good luck! ---------- nosy: +eric.smith resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 05:57:36 2018 From: report at bugs.python.org (Berker Peksag) Date: Wed, 13 Jun 2018 09:57:36 +0000 Subject: [issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition In-Reply-To: <1471355745.98.0.805545529346.issue27777@psf.upfronthosting.co.za> Message-ID: <1528883856.88.0.947875510639.issue27777@psf.upfronthosting.co.za> Berker Peksag added the comment: Thank you for the ping, Chris. I will try to combine Bert's and Julien's patches and prepare a PR this weekend. ---------- versions: +Python 3.8 -Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 06:05:18 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 13 Jun 2018 10:05:18 +0000 Subject: [issue32356] asyncio: Make transport.pause_reading()/resume_reading() idempotent; add transport.is_reading() In-Reply-To: <1513568775.87.0.213398074469.issue32356@psf.upfronthosting.co.za> Message-ID: <1528884318.53.0.947875510639.issue32356@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 142e3c08a40c75b5788474b0defe7d5c0671f675 by Victor Stinner in branch '3.6': [3.6] bpo-32356: idempotent pause_/resume_reading (GH-4914) (GH-7629) https://github.com/python/cpython/commit/142e3c08a40c75b5788474b0defe7d5c0671f675 ---------- nosy: +vstinner _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 06:08:50 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 13 Jun 2018 10:08:50 +0000 Subject: [issue33748] test_discovery_failed_discovery in test_unittest modifies sys.path In-Reply-To: <1528027393.44.0.592728768989.issue33748@psf.upfronthosting.co.za> Message-ID: <1528884530.69.0.947875510639.issue33748@psf.upfronthosting.co.za> STINNER Victor added the comment: Note: Python 2.7 doesn't have the test_discovery_from_dotted_namespace_packages() test, so no backport to 2.7 is needed. ---------- nosy: +vstinner _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 06:11:45 2018 From: report at bugs.python.org (Damon Atkins) Date: Wed, 13 Jun 2018 10:11:45 +0000 Subject: [issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows In-Reply-To: <1343886272.5.0.825552125397.issue15533@psf.upfronthosting.co.za> Message-ID: <1528884705.65.0.947875510639.issue15533@psf.upfronthosting.co.za> Damon Atkins added the comment: I see from this. That this is still an issue https://github.com/python/cpython/blob/master/Lib/subprocess.py#L1146 Is it not a solution to save current directory location chdir(cwd) before calling _winapi.CreateProcess() restore the original directory. This will result in the cwd being searched for the executable, which most people would expect to happen. It seems CreateProcess does not change to cwd until after the file is checked for existence or loaded. ---------- nosy: +Damon Atkins _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 06:14:19 2018 From: report at bugs.python.org (Damon Atkins) Date: Wed, 13 Jun 2018 10:14:19 +0000 Subject: [issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows In-Reply-To: <1343886272.5.0.825552125397.issue15533@psf.upfronthosting.co.za> Message-ID: <1528884858.99.0.947875510639.issue15533@psf.upfronthosting.co.za> Damon Atkins added the comment: See also https://bugs.python.org/msg262399 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 06:17:52 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 13 Jun 2018 10:17:52 +0000 Subject: [issue33625] Release GIL for grp.getgr{nam, gid} and pwd.getpw{nam, uid} In-Reply-To: <1527105781.7.0.682650639539.issue33625@psf.upfronthosting.co.za> Message-ID: <1528885072.91.0.947875510639.issue33625@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: I think this change is too large for bugfix. It is a performance enhancement, but doing it right needs non-trivial rewriting of the code. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 06:24:11 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 13 Jun 2018 10:24:11 +0000 Subject: [issue33625] Release GIL for grp.getgr{nam, gid} and pwd.getpw{nam, uid} In-Reply-To: <1527105781.7.0.682650639539.issue33625@psf.upfronthosting.co.za> Message-ID: <1528885451.19.0.947875510639.issue33625@psf.upfronthosting.co.za> STINNER Victor added the comment: For a recent example of change releasing the GIL, see bpo-32186 which has been backported up to 2.7. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 06:25:50 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 13 Jun 2018 10:25:50 +0000 Subject: [issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x In-Reply-To: <1527679178.26.0.682650639539.issue33694@psf.upfronthosting.co.za> Message-ID: <1528885550.05.0.947875510639.issue33694@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 142e3c08a40c75b5788474b0defe7d5c0671f675 by Victor Stinner in branch '3.6': [3.6] bpo-32356: idempotent pause_/resume_reading (GH-4914) (GH-7629) https://github.com/python/cpython/commit/142e3c08a40c75b5788474b0defe7d5c0671f675 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 06:29:58 2018 From: report at bugs.python.org (Ethan Smith) Date: Wed, 13 Jun 2018 10:29:58 +0000 Subject: [issue33351] Support compiling with clang-cl on Windows In-Reply-To: <1524631004.17.0.682650639539.issue33351@psf.upfronthosting.co.za> Message-ID: <1528885798.73.0.947875510639.issue33351@psf.upfronthosting.co.za> Change by Ethan Smith : ---------- pull_requests: +7292 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 06:45:36 2018 From: report at bugs.python.org (Chris Eykamp) Date: Wed, 13 Jun 2018 10:45:36 +0000 Subject: [issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition In-Reply-To: <1471355745.98.0.805545529346.issue27777@psf.upfronthosting.co.za> Message-ID: <1528886736.22.0.947875510639.issue27777@psf.upfronthosting.co.za> Chris Eykamp added the comment: I've already got a PR based on the patch listed under the Files section (it's prepared, not yet submitted), but if you want to do something more, I'll step back and let you do it. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 06:51:05 2018 From: report at bugs.python.org (Cheryl Sabella) Date: Wed, 13 Jun 2018 10:51:05 +0000 Subject: [issue1529353] Squeezer - squeeze large output in the interpreter Message-ID: <1528887065.88.0.947875510639.issue1529353@psf.upfronthosting.co.za> Cheryl Sabella added the comment: 6. Sorry about being so vague. I was referring to the configuration page having an option to hide/show the tooltip. I wasn't sure if that was a necessary config option. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 07:22:33 2018 From: report at bugs.python.org (Giampaolo Rodola') Date: Wed, 13 Jun 2018 11:22:33 +0000 Subject: [issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win) In-Reply-To: <1527524243.69.0.682650639539.issue33671@psf.upfronthosting.co.za> Message-ID: <1528888953.39.0.947875510639.issue33671@psf.upfronthosting.co.za> Change by Giampaolo Rodola' : ---------- pull_requests: +7293 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 07:25:47 2018 From: report at bugs.python.org (Marius Gedminas) Date: Wed, 13 Jun 2018 11:25:47 +0000 Subject: [issue33851] 3.7 regression: ast.get_docstring() for a node that lacks a docstring Message-ID: <1528889147.74.0.947875510639.issue33851@psf.upfronthosting.co.za> New submission from Marius Gedminas : Python 3.7 removes an isinstance(node.body[0], Expr) check ast.get_docstring() that makes it crash when you pass in AST nodes of modules or functions that do not have docstrings. Steps to reproduce: - git clone https://github.com/mgedmin/findimports - cd findimports - tox -e py37 The failure looks like this: Traceback (most recent call last): ... File "/home/mg/src/findimports/findimports.py", line 337, in find_imports_and_track_names visitor.visit(root) File "/home/mg/opt/python37/lib/python3.7/ast.py", line 262, in visit return visitor(node) File "/home/mg/src/findimports/findimports.py", line 169, in visitSomethingWithADocstring self.processDocstring(ast.get_docstring(node, clean=False), lineno) File "/home/mg/opt/python37/lib/python3.7/ast.py", line 211, in get_docstring node = node.body[0].value AttributeError: 'Import' object has no attribute 'value' ---------- components: Library (Lib) messages: 319453 nosy: mgedmin priority: normal severity: normal status: open title: 3.7 regression: ast.get_docstring() for a node that lacks a docstring type: behavior versions: Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 08:13:13 2018 From: report at bugs.python.org (Charalampos Stratakis) Date: Wed, 13 Jun 2018 12:13:13 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1528891993.14.0.947875510639.issue33630@psf.upfronthosting.co.za> Charalampos Stratakis added the comment: The latest stable Fedora's have glibc >= 2.26 Maybe the buildbot needs to be updated? ---------- nosy: +cstratak _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 08:14:29 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 13 Jun 2018 12:14:29 +0000 Subject: [issue33851] 3.7 regression: ast.get_docstring() for a node that lacks a docstring In-Reply-To: <1528889147.74.0.947875510639.issue33851@psf.upfronthosting.co.za> Message-ID: <1528892069.38.0.947875510639.issue33851@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- keywords: +patch pull_requests: +7294 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 08:15:50 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 13 Jun 2018 12:15:50 +0000 Subject: [issue33851] 3.7 regression: ast.get_docstring() for a node that lacks a docstring In-Reply-To: <1528889147.74.0.947875510639.issue33851@psf.upfronthosting.co.za> Message-ID: <1528892150.48.0.947875510639.issue33851@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: I think this fix is worth cherry-picking in 3.7.0. ---------- nosy: +ned.deily, serhiy.storchaka priority: normal -> release blocker versions: +Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 08:16:12 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 13 Jun 2018 12:16:12 +0000 Subject: [issue33851] 3.7 regression: ast.get_docstring() for a node that lacks a docstring In-Reply-To: <1528889147.74.0.947875510639.issue33851@psf.upfronthosting.co.za> Message-ID: <1528892172.74.0.947875510639.issue33851@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- nosy: +inada.naoki _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 08:34:53 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 13 Jun 2018 12:34:53 +0000 Subject: [issue26544] platform.libc_ver() returns incorrect version number In-Reply-To: <1457742963.17.0.0403505576154.issue26544@psf.upfronthosting.co.za> Message-ID: <1528893293.74.0.947875510639.issue26544@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: I need the glibc version for skipping a test if run with glibc containing a bug (see issue31630 and issue33630). platform.libc_ver() is not usable, it always returns '2.9' (the version that has bugs), while the actual version on my computer is '2.25' (the version that doesn't have these bugs). ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 08:51:18 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Wed, 13 Jun 2018 12:51:18 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1528894278.01.0.947875510639.issue33630@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: If we want to support older versions of glibc a temporary (and somewhat inelegant) workaround is storing the temporaries in a list that the caller passes and destroy the list after calling `posix_spawn`. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 08:54:41 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 13 Jun 2018 12:54:41 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1528894481.78.0.947875510639.issue33630@psf.upfronthosting.co.za> STINNER Victor added the comment: > If we want to support older versions of glibc a temporary (and somewhat inelegant) workaround is storing the temporaries in a list that the caller passes and destroy the list after calling `posix_spawn`. Creating a copy seems to be a reasonable tradeoff. Another option is to detect the bug at runtime and raise an exception if the bug is detected. But I dislike this option: I hate when a function is available in the os module but calling it raises a NotImplementedError :-( Moreover, posix_spawn() seems to be a lot of benefit, so I would like to be able to use it on "old" glibc versions. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 09:00:02 2018 From: report at bugs.python.org (=?utf-8?q?Walter_D=C3=B6rwald?=) Date: Wed, 13 Jun 2018 13:00:02 +0000 Subject: [issue33850] Json.dump() bug when using generator In-Reply-To: <1528879461.56.0.947875510639.issue33850@psf.upfronthosting.co.za> Message-ID: <1528894802.4.0.947875510639.issue33850@psf.upfronthosting.co.za> Walter D?rwald added the comment: The problem here is that StreamArray lies about the length of the iterator. This confuses json.encoder._make_iterencode._iterencode_list(), (which is called by json.dump()), because it first does a check for "if not lst" and then assumes in the loop that it will be entered at least once. (Note that json.dumps() doesn't have that problem, because it calls JSONEncoder.encode() with _one_shot=True which leads to a totally different code path). We could declare that bug as "don't do that then", but the problem is easily solvable, because we can check whether the loop was entered. The attached patch should do the trick. An even better approach would IMHO be, that the encoder supports a special flag that enables JSON serialization of generators directly, so it's no longer required to masquerade generators as list ---------- keywords: +patch nosy: +doerwalter resolution: not a bug -> status: closed -> open Added file: https://bugs.python.org/file47640/json-dump-generators-bug.diff _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 09:12:22 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Wed, 13 Jun 2018 13:12:22 +0000 Subject: [issue33852] doc Remove parentheses from Message-ID: <1528895542.1.0.947875510639.issue33852@psf.upfronthosting.co.za> New submission from Andr?s Delfino : I think the idea of having "list" inside parentheses is to document that in case of sequences, only "one-expression" expression lists are legal. That being said, IMHO, explaining that in actual prose would be better, but removing the parentheses (taking into account that there's a description of what the expected evaluation of sequences subscription expression lists is) is enough, plus, it's the production list term's name. If a prose is considered better, it could read: "If the primary is a sequence, the expression list must be formed by only one expression, and it must evaluate to an integer or a slice (as discussed in the following section)." Couldn't find the original author. It was committed before the move to mercurial, and I don't know if there's a subversion repo still available to see historical changes. ---------- assignee: docs at python components: Documentation messages: 319460 nosy: adelfino, docs at python priority: normal pull_requests: 7295 severity: normal status: open title: doc Remove parentheses from type: enhancement versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 09:12:52 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 13 Jun 2018 13:12:52 +0000 Subject: [issue33850] Json.dump() bug when using generator In-Reply-To: <1528879461.56.0.947875510639.issue33850@psf.upfronthosting.co.za> Message-ID: <1528895572.89.0.947875510639.issue33850@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: This is a duplicate of issue27613. ---------- nosy: +serhiy.storchaka resolution: -> duplicate status: open -> closed superseder: -> Empty iterator with fake __len__ is rendered as a single bracket ] when using json's iterencode _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 09:14:33 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Wed, 13 Jun 2018 13:14:33 +0000 Subject: [issue33852] doc Remove parentheses from sequence subscription description In-Reply-To: <1528895542.1.0.947875510639.issue33852@psf.upfronthosting.co.za> Message-ID: <1528895673.66.0.947875510639.issue33852@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- title: doc Remove parentheses from -> doc Remove parentheses from sequence subscription description _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 09:19:51 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 13 Jun 2018 13:19:51 +0000 Subject: [issue33852] doc Remove parentheses from sequence subscription description In-Reply-To: <1528895542.1.0.947875510639.issue33852@psf.upfronthosting.co.za> Message-ID: <1528895991.41.0.947875510639.issue33852@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: This wording was introduced in 3a0ad6089bccf0b167fe8ebd2457fedec8f851a3. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 09:28:05 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Wed, 13 Jun 2018 13:28:05 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1528896485.21.0.947875510639.issue33630@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: I have updated the PR with a workaround. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 09:30:13 2018 From: report at bugs.python.org (Zachary Ware) Date: Wed, 13 Jun 2018 13:30:13 +0000 Subject: [issue33836] [Good first-time issue] Recommend keyword-only param for memoization in FAQ In-Reply-To: <1528732775.39.0.592728768989.issue33836@psf.upfronthosting.co.za> Message-ID: <1528896613.01.0.947875510639.issue33836@psf.upfronthosting.co.za> Zachary Ware added the comment: Certainly! Have a look at the devguide to get started. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 09:45:01 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Wed, 13 Jun 2018 13:45:01 +0000 Subject: [issue33852] doc Remove parentheses from sequence subscription description In-Reply-To: <1528895542.1.0.947875510639.issue33852@psf.upfronthosting.co.za> Message-ID: <1528897501.24.0.947875510639.issue33852@psf.upfronthosting.co.za> Andr?s Delfino added the comment: Thanks, Serhiy! Didn't know I should trace the LaTeX version. Guido, I'm adding you because it seems you authored or at least agreed on the current wording. Do you believe this proposal for improvement makes sense? ---------- nosy: +gvanrossum _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 10:02:50 2018 From: report at bugs.python.org (Eric Snow) Date: Wed, 13 Jun 2018 14:02:50 +0000 Subject: [issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x In-Reply-To: <1527078316.31.0.682650639539.issue33615@psf.upfronthosting.co.za> Message-ID: <1528898570.41.0.947875510639.issue33615@psf.upfronthosting.co.za> Eric Snow added the comment: New changeset ab4a1988fd4347484a7928394b94e2cdf5f8f2a7 by Eric Snow in branch 'master': bpo-33615: Re-enable subinterpreter tests. (#7552) https://github.com/python/cpython/commit/ab4a1988fd4347484a7928394b94e2cdf5f8f2a7 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 10:08:31 2018 From: report at bugs.python.org (Jan Lachnitt) Date: Wed, 13 Jun 2018 14:08:31 +0000 Subject: [issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows In-Reply-To: <1343886272.5.0.825552125397.issue15533@psf.upfronthosting.co.za> Message-ID: <1528898911.22.0.947875510639.issue15533@psf.upfronthosting.co.za> Jan Lachnitt added the comment: @eryksun: Sorry for my late reply, apparently I did not have time to reply in 2017. I see your point, but still I think that Python is conceptually multi-platform, so its behavior on Linux and Windows should be as much consistent as possible. I am not the one to decide which one of the two possible behaviors shall be the correct one. The current documentation describes the behavior on Linux: "In particular, the function looks for executable (or for the first item in args) relative to cwd if the executable path is a relative path." If this is chosen as the correct behavior, then the behavior on Windows is incorrect. @Damon Atkins: Thank you for reminding this issue, but I suspect your proposed solution of being thread-unsafe. I propose another solution: On Windows, Python should resolve the executable path itself (taking cwd and env into account) and then pass the absolute path to CreateProcess(). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 10:41:41 2018 From: report at bugs.python.org (Tal Einat) Date: Wed, 13 Jun 2018 14:41:41 +0000 Subject: [issue33839] IDLE tooltips.py: refactor and add docstrings and tests In-Reply-To: <1528747780.64.0.592728768989.issue33839@psf.upfronthosting.co.za> Message-ID: <1528900901.67.0.947875510639.issue33839@psf.upfronthosting.co.za> Change by Tal Einat : ---------- keywords: +patch pull_requests: +7296 stage: test needed -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 10:42:55 2018 From: report at bugs.python.org (Tal Einat) Date: Wed, 13 Jun 2018 14:42:55 +0000 Subject: [issue33839] IDLE tooltips.py: refactor and add docstrings and tests In-Reply-To: <1528747780.64.0.592728768989.issue33839@psf.upfronthosting.co.za> Message-ID: <1528900975.79.0.947875510639.issue33839@psf.upfronthosting.co.za> Tal Einat added the comment: The refactoring is done, manual testing with the htests works, and I've added automated tests with ~92% code coverage. Terry, I'd be happy for your review! ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 10:50:45 2018 From: report at bugs.python.org (Forest) Date: Wed, 13 Jun 2018 14:50:45 +0000 Subject: [issue27575] dict viewkeys intersection slow for large dicts In-Reply-To: <1468950707.74.0.640405379684.issue27575@psf.upfronthosting.co.za> Message-ID: <1528901445.58.0.947875510639.issue27575@psf.upfronthosting.co.za> Forest added the comment: Is there anything helpful I can do to help close this issue? Maybe convert it into a github PR? Since Raymond asked for cases where this issue is a problem, I'll add the case that brought me here. I have an application where I need to do thousands of intersections of multisets. I started with the collections.Counter object, but the current intersection method is too slow. As Counter is a subclass of dict, I thought that I could significantly speed it up by taking advantage of keys intersections. I've been able to verify that if key intersection was roughly similar in speed to set intersection, than that would be very helpful. However, the current speed of key intersection does not make that practicable. I can, of course, cast the keys to sets before intersecting, but as David points out that casting is what is taking significant time. slow dictionary intersection for becoming larger dicts is becoming a problem for me ---------- nosy: +fgregg _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 10:58:00 2018 From: report at bugs.python.org (Eric Snow) Date: Wed, 13 Jun 2018 14:58:00 +0000 Subject: [issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x In-Reply-To: <1527078316.31.0.682650639539.issue33615@psf.upfronthosting.co.za> Message-ID: <1528901880.27.0.947875510639.issue33615@psf.upfronthosting.co.za> Eric Snow added the comment: I've re-enabled the subinterpreter tests, but left the one problem test (ChannelTests.test_run_string_arg_resolved) disabled. I also changed all uses of %lld to use PRId64 instead. (Thanks, Victor, for the suggestion.) The buildbots look good. I'll keep an eye on "x86 Gentoo Refleaks 3.x" for the next time it runs (starts every 24 hours; 10 hours from now). When that passes I'll close this issue. ---------- resolution: -> fixed stage: patch review -> resolved status: open -> pending _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 11:10:40 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Wed, 13 Jun 2018 15:10:40 +0000 Subject: [issue33853] test_multiprocessing_spawn is leaking memory Message-ID: <1528902640.93.0.947875510639.issue33853@psf.upfronthosting.co.za> New submission from Pablo Galindo Salgado : The test `test_multiprocessing_spawn` is leaking memory according to the x86 Gentoo Refleaks 3.x buildbot: x86 Gentoo Refleaks 3.x http://buildbot.python.org/all/#/builders/1/builds/253 test_multiprocessing_spawn leaked [1, 2, 1] memory blocks, sum=4 1 test failed again: test_multiprocessing_spawn x86 Gentoo Refleaks 3.7 http://buildbot.python.org/all/#/builders/114/builds/135 ---------- components: Tests keywords: buildbot messages: 319471 nosy: pablogsal priority: normal severity: normal status: open title: test_multiprocessing_spawn is leaking memory type: behavior versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 11:30:29 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 13 Jun 2018 15:30:29 +0000 Subject: [issue33853] test_multiprocessing_spawn is leaking memory In-Reply-To: <1528902640.93.0.947875510639.issue33853@psf.upfronthosting.co.za> Message-ID: <1528903829.71.0.947875510639.issue33853@psf.upfronthosting.co.za> STINNER Victor added the comment: Duplicate of bpo-33735. ---------- nosy: +vstinner resolution: -> duplicate superseder: -> test_multiprocessing_spawn leaked [1, 2, 1] memory blocks on AMD64 Windows8.1 Refleaks 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 11:30:42 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 13 Jun 2018 15:30:42 +0000 Subject: [issue33735] test_multiprocessing_spawn leaked [1, 2, 1] memory blocks on AMD64 Windows8.1 Refleaks 3.7 In-Reply-To: <1527865087.2.0.81473610881.issue33735@psf.upfronthosting.co.za> Message-ID: <1528903842.77.0.947875510639.issue33735@psf.upfronthosting.co.za> STINNER Victor added the comment: bpo-33853 has been marked as a duplicate this bug. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 11:33:43 2018 From: report at bugs.python.org (Eric Snow) Date: Wed, 13 Jun 2018 15:33:43 +0000 Subject: [issue17045] Improve C-API doc for PyTypeObject In-Reply-To: <1359245485.06.0.557532055897.issue17045@psf.upfronthosting.co.za> Message-ID: <1528904023.27.0.947875510639.issue17045@psf.upfronthosting.co.za> Eric Snow added the comment: @Cheryl, thanks for pointing that out. I'll take a look. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 11:36:44 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 13 Jun 2018 15:36:44 +0000 Subject: [issue31181] Segfault in gcmodule.c:360 visit_decref (PyObject_IS_GC(op)) In-Reply-To: <1502401397.09.0.667650470232.issue31181@psf.upfronthosting.co.za> Message-ID: <1528904204.4.0.947875510639.issue31181@psf.upfronthosting.co.za> STINNER Victor added the comment: I am sorry, but without further information, we cannot fix your issue. Usually, a crash in visit_decref() means that a C extension corrupted a random Python object. Try to run your test on Python 3 using PYTHONMALLOC=debug. ---------- nosy: +vstinner resolution: -> out of date stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 12:21:39 2018 From: report at bugs.python.org (Eric Snow) Date: Wed, 13 Jun 2018 16:21:39 +0000 Subject: [issue23869] Initialization is being done in PyType_GenericAlloc In-Reply-To: <1428159802.19.0.247308187517.issue23869@psf.upfronthosting.co.za> Message-ID: <1528906899.92.0.947875510639.issue23869@psf.upfronthosting.co.za> Eric Snow added the comment: Thanks for bringing this up, Hristo! "Initialization" (in this context, and hopefully everywhere in the C-API docs) is referring specifically to setting fields on a custom instance, much as you would expect in __init__ (or sometimes even __new__). In that regard PyType_GenericAlloc does not do any initialization. Instead, what it does is at a low level which is consistent with allocating a basic object for use in the CPython object machinery: * allocate the memory * NULL out the allocated memory * set initial refcount to 1 * fill in the fundamental PyObject fields (e.g. type) * register with GC Most of that relates directly to memory management and definitely belongs in PyType_GenericAlloc. I suppose you could argue that filling in the fundamental PyObject fields could go into PyType_GenericNew. However, doing so would leave the "allocated" object in an inconsistent state for the object machinery, to be resolved by the type's tp_new implementation. This could lead to problems for types that have a custom tp_new that does not use PyType_GenericNew. In that case moving anything from PyType_GenericAlloc to PyType_GenericNew would be a backward-incompatible change (and add complexity to the object creation workflow). Even though the chance for breakage is small, there would have to be a really strong reason to make such a change. Consequently, there isn't a whole lot to be done here and I'm closing this issue. If I've misunderstood then please let us know. We can re-open the issue then. FTR, PyType_GenericAlloc is implemented here: https://github.com/python/cpython/blob/master/Objects/typeobject.c#L963 ---------- nosy: +eric.snow resolution: -> rejected stage: -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 -Python 3.2, Python 3.3, Python 3.4 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 12:22:49 2018 From: report at bugs.python.org (Eric Snow) Date: Wed, 13 Jun 2018 16:22:49 +0000 Subject: [issue23869] Initialization is being done in PyType_GenericAlloc In-Reply-To: <1428159802.19.0.247308187517.issue23869@psf.upfronthosting.co.za> Message-ID: <1528906969.25.0.947875510639.issue23869@psf.upfronthosting.co.za> Eric Snow added the comment: As to the docs, the entry for tp_alloc in Doc/c-api/typeobj.rst does not mention initialization. The tp_new entry does say that it should call tp_alloc and then do the minimum initialization possible. That implies (weakly) that tp_alloc should do the minimum initialization possible. Could you point me to the place where the docs talk about tp_alloc and initialization? That would be useful to see. Regardless, having the tp_alloc entry explicitly say it shouldn't do any initialization does make sense. Feel free to open a separate issue on that. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 13:14:44 2018 From: report at bugs.python.org (Ned Deily) Date: Wed, 13 Jun 2018 17:14:44 +0000 Subject: [issue33625] Release GIL for grp.getgr{nam, gid} and pwd.getpw{nam, uid} In-Reply-To: <1527105781.7.0.682650639539.issue33625@psf.upfronthosting.co.za> Message-ID: <1528910084.8.0.947875510639.issue33625@psf.upfronthosting.co.za> Ned Deily added the comment: > For a recent example of change releasing the GIL, see bpo-32186 which has been backported up to 2.7. Playing Devil's Advocate here: yes, but that was a far simpler and less extensive change. bpo-32186 did not change configure.ac and pyconfig.h.in and I suspect that the impact of the old behavior that bpo-32186 was far more wide spread than that of bpo-33625 (stating files on a NFS file system versus doing getpwnam/getpwuid's). Also when Christian made his comment about a bug fix, the proposed PR was much simpler in scope. I am not saying that we definitely should not backport to 3.7 but I don't think it is an automatic call as the PR now stands. In any case, we should first get the fix into master and get some exposure there before deciding whether to backport. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 13:50:38 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 13 Jun 2018 17:50:38 +0000 Subject: [issue26544] platform.libc_ver() returns incorrect version number In-Reply-To: <1457742963.17.0.0403505576154.issue26544@psf.upfronthosting.co.za> Message-ID: <1528912238.09.0.947875510639.issue26544@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: I agree that the strategy used for platform.libc_ver() is not perfect. But the implementation has bugs that make it useless. The following PR fixes two bugs in the implementation: 1) Version numbers compared as strings. 2) Versions that are located on the border of 16 KiB blocks were not recognized or were recognized incorrectly. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 13:51:06 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 13 Jun 2018 17:51:06 +0000 Subject: [issue26544] platform.libc_ver() returns incorrect version number In-Reply-To: <1457742963.17.0.0403505576154.issue26544@psf.upfronthosting.co.za> Message-ID: <1528912266.22.0.947875510639.issue26544@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- keywords: +patch pull_requests: +7297 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 13:51:27 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 13 Jun 2018 17:51:27 +0000 Subject: [issue26544] platform.libc_ver() returns incorrect version number In-Reply-To: <1457742963.17.0.0403505576154.issue26544@psf.upfronthosting.co.za> Message-ID: <1528912287.65.0.947875510639.issue26544@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- versions: +Python 3.7, Python 3.8 -Python 3.4, Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 13:54:38 2018 From: report at bugs.python.org (Berker Peksag) Date: Wed, 13 Jun 2018 17:54:38 +0000 Subject: [issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition In-Reply-To: <1471355745.98.0.805545529346.issue27777@psf.upfronthosting.co.za> Message-ID: <1528912478.51.0.947875510639.issue27777@psf.upfronthosting.co.za> Berker Peksag added the comment: That's even better! :) Please submit your work as a pull request. Did you take a look at https://github.com/Pylons/webob/pull/300 as well? Can we use the test in the PR? Is it possible to adapt it solve both this and WebOb issues? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 14:18:35 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Wed, 13 Jun 2018 18:18:35 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1528913915.91.0.947875510639.issue33630@psf.upfronthosting.co.za> Change by Pablo Galindo Salgado : ---------- pull_requests: +7298 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 14:25:18 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Wed, 13 Jun 2018 18:25:18 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1528914318.95.0.947875510639.issue33630@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: Serhiy commented in the PR: >__GLIBC__ and __GLIBC_MINOR__ give you the version of glibc used at >compile time. But can not the different version be dynamically linked at >run time? Should we use the list approach always to avoid problems with this? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 14:28:35 2018 From: report at bugs.python.org (Ethan Smith) Date: Wed, 13 Jun 2018 18:28:35 +0000 Subject: [issue30747] _Py_atomic_* not actually atomic on Windows with MSVC In-Reply-To: <1498332959.93.0.572211672441.issue30747@psf.upfronthosting.co.za> Message-ID: <1528914515.82.0.947875510639.issue30747@psf.upfronthosting.co.za> Ethan Smith added the comment: When working on clang-cl support, I was advised here https://reviews.llvm.org/D47672#1131325 that we may be using hardware lock elision incorrectly. Copying from there: > I also spoke to Andi Kleen here at Intel to make sure I got these inline assembly versions correct. And he's not sure CPython should be using these the way it is. It looks like they try to use the HLE versions anytime the memory order is acquire/release. But HLE isn't suitable for every acquire/release. I believe if we just use the simple _InterlockedExchange/_InterlockedCompareExchange intrinsics, things should be safer. ---------- nosy: +Ethan Smith _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 15:33:29 2018 From: report at bugs.python.org (Tal Einat) Date: Wed, 13 Jun 2018 19:33:29 +0000 Subject: [issue33839] IDLE tooltips.py: refactor and add docstrings and tests In-Reply-To: <1528747780.64.0.592728768989.issue33839@psf.upfronthosting.co.za> Message-ID: <1528918409.39.0.947875510639.issue33839@psf.upfronthosting.co.za> Tal Einat added the comment: Attaching coverage report for tooltip.py. The uncovered lines are required to avoid exceptions when closing a windows with a tooltip shown. These are not currently reproduced by test_tooltip.py because my attempts to exercise them in automated tests have all failed so far. The TclError exceptions are reproduced by the htest in tooltip.py. The ValueError exception, however, I've only seen happen when actually running IDLE, since it is raised by the MultiCall module. IMO it's not worth the effort to achieve 100% automated test coverage here. It's Terry's decision to make, though. ---------- Added file: https://bugs.python.org/file47641/Coverage for Lib_idlelib_tooltip.py.png _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 15:40:16 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 13 Jun 2018 19:40:16 +0000 Subject: [issue33853] test_multiprocessing_spawn is leaking memory In-Reply-To: <1528902640.93.0.947875510639.issue33853@psf.upfronthosting.co.za> Message-ID: <1528918816.61.0.947875510639.issue33853@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 15:50:34 2018 From: report at bugs.python.org (Marcos Dione) Date: Wed, 13 Jun 2018 19:50:34 +0000 Subject: [issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win) In-Reply-To: <1527524243.69.0.682650639539.issue33671@psf.upfronthosting.co.za> Message-ID: <1528919434.9.0.947875510639.issue33671@psf.upfronthosting.co.za> Marcos Dione added the comment: Thanks Gianpaolo for pushing for this. Great job. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 16:02:10 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Wed, 13 Jun 2018 20:02:10 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1528920130.99.0.947875510639.issue33630@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Yes, as I wrote on GitHub. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 17:13:16 2018 From: report at bugs.python.org (Mali Akmanalp) Date: Wed, 13 Jun 2018 21:13:16 +0000 Subject: [issue27575] dict viewkeys intersection slow for large dicts In-Reply-To: <1468950707.74.0.640405379684.issue27575@psf.upfronthosting.co.za> Message-ID: <1528924396.21.0.947875510639.issue27575@psf.upfronthosting.co.za> Change by Mali Akmanalp : ---------- nosy: +Mali Akmanalp _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 17:20:16 2018 From: report at bugs.python.org (STINNER Victor) Date: Wed, 13 Jun 2018 21:20:16 +0000 Subject: [issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win) In-Reply-To: <1527524243.69.0.682650639539.issue33671@psf.upfronthosting.co.za> Message-ID: <1528924816.41.0.947875510639.issue33671@psf.upfronthosting.co.za> STINNER Victor added the comment: > Thanks Gianpaolo for pushing for this. Great job. I concur: great job! Cool optimization. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 18:49:23 2018 From: report at bugs.python.org (Eric Snow) Date: Wed, 13 Jun 2018 22:49:23 +0000 Subject: [issue33462] reversible dict In-Reply-To: <1526009418.33.0.682650639539.issue33462@psf.upfronthosting.co.za> Message-ID: <1528930163.16.0.947875510639.issue33462@psf.upfronthosting.co.za> Eric Snow added the comment: Would it be possible to re-use the __reverse__() support that exists for OrderedDict? Doing so could help avoid adding a bunch of duplicated code. ---------- nosy: +eric.snow _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 19:54:16 2018 From: report at bugs.python.org (Raymond Hettinger) Date: Wed, 13 Jun 2018 23:54:16 +0000 Subject: [issue27575] dict viewkeys intersection slow for large dicts In-Reply-To: <1468950707.74.0.640405379684.issue27575@psf.upfronthosting.co.za> Message-ID: <1528934056.46.0.947875510639.issue27575@psf.upfronthosting.co.za> Raymond Hettinger added the comment: > Is there anything helpful I can do to help close this issue? > Maybe convert it into a github PR? Yes, that would be nice. Also, please verify that the test cases cover all the code paths. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 20:02:05 2018 From: report at bugs.python.org (Raymond Hettinger) Date: Thu, 14 Jun 2018 00:02:05 +0000 Subject: [issue33726] Add short descriptions to PEP references in seealso In-Reply-To: <1527822205.22.0.682650639539.issue33726@psf.upfronthosting.co.za> Message-ID: <1528934525.18.0.947875510639.issue33726@psf.upfronthosting.co.za> Raymond Hettinger added the comment: My personal opinion is that the PEP title should suffice and that a person can click the link for more detail. ---------- nosy: +rhettinger _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 20:27:20 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 14 Jun 2018 00:27:20 +0000 Subject: [issue33718] Enhance regrtest: meta-ticket for multiple changes In-Reply-To: <1527775539.21.0.682650639539.issue33718@psf.upfronthosting.co.za> Message-ID: <1528936040.91.0.947875510639.issue33718@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7299 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 23:01:29 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 14 Jun 2018 03:01:29 +0000 Subject: [issue33726] Add short descriptions to PEP references in seealso In-Reply-To: <1527822205.22.0.682650639539.issue33726@psf.upfronthosting.co.za> Message-ID: <1528945289.28.0.947875510639.issue33726@psf.upfronthosting.co.za> Andr?s Delfino added the comment: Yeah, I think you are right. The motivation for this PR was to not have two PEPs references in the same line, because, IMHO, it looks somewhat weird. Now, they look like: "See also: PEP 3115 - Metaclasses in Python 3 PEP 3129 - Class Decorators" Would a change to make it look like: """ See also: PEP 3115 - Metaclasses in Python 3 PEP 3129 - Class Decorators """ be accepted? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 23:12:52 2018 From: report at bugs.python.org (Noah Haasis) Date: Thu, 14 Jun 2018 03:12:52 +0000 Subject: [issue33836] [Good first-time issue] Recommend keyword-only param for memoization in FAQ In-Reply-To: <1528732775.39.0.592728768989.issue33836@psf.upfronthosting.co.za> Message-ID: <1528945972.84.0.947875510639.issue33836@psf.upfronthosting.co.za> Change by Noah Haasis : ---------- keywords: +patch pull_requests: +7300 stage: needs patch -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 23:33:29 2018 From: report at bugs.python.org (Damon Atkins) Date: Thu, 14 Jun 2018 03:33:29 +0000 Subject: [issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows In-Reply-To: <1343886272.5.0.825552125397.issue15533@psf.upfronthosting.co.za> Message-ID: <1528947209.48.0.947875510639.issue15533@psf.upfronthosting.co.za> Damon Atkins added the comment: >From https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425.aspx Note Python is using CreateProcess(), consider using CreateProcessW() The Unicode version of this function, CreateProcessW, can modify the contents of this string. Therefore, this parameter cannot be a pointer to read-only memory (such as a const variable or a literal string). If this parameter is a constant string, the function may cause an access violation. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 23:50:38 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 14 Jun 2018 03:50:38 +0000 Subject: [issue33854] doc Add PEP title in seealso of Built-in Types Message-ID: <1528948238.24.0.947875510639.issue33854@psf.upfronthosting.co.za> New submission from Andr?s Delfino : Add PEP 461 title to Built-in Types seealso. ---------- assignee: docs at python components: Documentation messages: 319493 nosy: adelfino, docs at python priority: normal severity: normal status: open title: doc Add PEP title in seealso of Built-in Types type: enhancement versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jun 13 23:51:39 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 14 Jun 2018 03:51:39 +0000 Subject: [issue33854] doc Add PEP title in seealso of Built-in Types In-Reply-To: <1528948238.24.0.947875510639.issue33854@psf.upfronthosting.co.za> Message-ID: <1528948299.71.0.947875510639.issue33854@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- keywords: +patch pull_requests: +7302 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 01:17:54 2018 From: report at bugs.python.org (Tal Einat) Date: Thu, 14 Jun 2018 05:17:54 +0000 Subject: [issue1529353] Squeezer - squeeze large output in the interpreter Message-ID: <1528953474.49.0.947875510639.issue1529353@psf.upfronthosting.co.za> Tal Einat added the comment: Once the ToolTip is ready, I'll begin working on this. Summarizing what appear to be agreed-upon changes to be made (keeping original numbering for reference): 1. Avoid expanding large output accidentally / too easily. Current suggestions are expanding part of the output with a "more..." button, and a confirmation dialog e.g. "Are you sure? This could bring IDLE to a halt! Consider other methods of viewing the output." 2. Avoid using the middle button. Either use a more commonly accessible mouse-click combo, make it a context-menu option, or make it user-configurable. 3. Make the "preview" functionality use our tkTextView (will need testing to make sure it performs reasonably). 4. Increase default minimum # lines for auto-squeezing. 50? 100? 7. Change implementation method from an extension to an integrated part of IDLE. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 01:31:00 2018 From: report at bugs.python.org (Tal Einat) Date: Thu, 14 Jun 2018 05:31:00 +0000 Subject: [issue1529353] Squeezer - squeeze large output in the interpreter Message-ID: <1528954260.39.0.947875510639.issue1529353@psf.upfronthosting.co.za> Tal Einat added the comment: Additional feature discussion: > 10. The button for 'a'*10000 says '(nn lines)'. It should say '(10000 chars)' or '(1 line, 10000 chars)'. IMO that's too much, it leads to "information overload". Since the number of lines shown is the number of "wrapped" lines, e.g. how many visual lines would be used, isn't that enough? W ould users really need to also know how many characters are there? While on the subject, the labels are currently not updated when the width of the window is changed; this could be a future improvement to make (might need to be done in the background). > 11. Right click should bring up a custom context menu. It can have 'cut' (delete), 'copy' (to clipboard, eliminating middle click need), 'edit' (IDLE editor if it seems ok), 'view' (ditto for TextView). 'cut' and 'edit' would break the current IDLE shell convention that output above the prompt is read-only. Squeezer currently manipulates such output, but essentially keeps it there in a different form. This seems like a design decision you've already made, Terry, but personally I would find this rather confusing. > Is there a standard for simulating left and right click with keys? Not that I'm aware of. Squeezer already has an event for expanding the last squeezed output; we could improve on the event bindings. Some keyboards have a dedicated key for opening a context menu (used to be common), so for users with that having all of the options in the context menu would achieve the keyboard-only-usability goal. We should likely do both, and show the keyboard shortcuts in the context menu. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 01:44:56 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Thu, 14 Jun 2018 05:44:56 +0000 Subject: [issue1529353] Squeezer - squeeze large output in the interpreter Message-ID: <1528955096.56.0.947875510639.issue1529353@psf.upfronthosting.co.za> Terry J. Reedy added the comment: 3. It is idlelib's TextView, not tkTextView. If it is not 'good enough', we might improve it. 5. Look at former extensions, like codecontext.py, corresponding parts of editor.py. The key thing for immediate effect is the class reload method, called when the module is imported and when ConfigDialog [Apply] or [OK] is clicked. For the latter, the class or its method must added to a list in either in ConfigDialog or EditorWindow. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 02:36:30 2018 From: report at bugs.python.org (Tal Einat) Date: Thu, 14 Jun 2018 06:36:30 +0000 Subject: [issue29750] smtplib doesn't handle unicode passwords In-Reply-To: <1488919224.48.0.0966376973087.issue29750@psf.upfronthosting.co.za> Message-ID: <1528958190.75.0.947875510639.issue29750@psf.upfronthosting.co.za> Tal Einat added the comment: It would be extremely helpful to have some test cases that actually work for users but fail with smtplib. So far we have no actual examples, likely due to these being passwords. > Note: it is definitely the case, regardless of what the RFC says, that binary passwords need to be supported. I'm not sure what you mean by "binary". Do you mean 8-bit characters, a.k.a. bytes? > utf-8 should probably be used as the default encoding for string passwords, rather than ascii. It is also possible that the appropriate encoding here is "latin1" a.k.a. ISO-8859-1 encoding. This specifically includes many specialized versions of latin characters, e.g. those with German umlauts as mentioned in the duplicate issue #33741. And it could even be the very common Windows-1252 encoding: "It is probably the most-used 8-bit character encoding in the world." (Wikipedia) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 03:05:39 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 14 Jun 2018 07:05:39 +0000 Subject: [issue19382] tabnanny unit tests In-Reply-To: <1382655525.74.0.119259261788.issue19382@psf.upfronthosting.co.za> Message-ID: <1528959939.62.0.947875510639.issue19382@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset dfa9643d292dcaa14cbf3c44b8330ba2159976c0 by Victor Stinner (Jaysinh Shukla) in branch 'master': bpo-19382: Adding test cases for module tabnanny (GH-851) https://github.com/python/cpython/commit/dfa9643d292dcaa14cbf3c44b8330ba2159976c0 ---------- nosy: +vstinner _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 03:08:37 2018 From: report at bugs.python.org (david) Date: Thu, 14 Jun 2018 07:08:37 +0000 Subject: [issue29750] smtplib doesn't handle unicode passwords In-Reply-To: <1528958190.75.0.947875510639.issue29750@psf.upfronthosting.co.za> Message-ID: <911855F2-9383-4E75-A727-81FC48F053E1@gmail.com> david added the comment: In my case I was doing tests with "contrase?a" which is (spanish for password) and it failed On June 14, 2018 8:36:30 AM GMT+02:00, Tal Einat wrote: > >Tal Einat added the comment: > >It would be extremely helpful to have some test cases that actually >work for users but fail with smtplib. So far we have no actual >examples, likely due to these being passwords. > >> Note: it is definitely the case, regardless of what the RFC says, >that binary passwords need to be supported. > >I'm not sure what you mean by "binary". Do you mean 8-bit characters, >a.k.a. bytes? > >> utf-8 should probably be used as the default encoding for string >passwords, rather than ascii. > >It is also possible that the appropriate encoding here is "latin1" >a.k.a. ISO-8859-1 encoding. This specifically includes many >specialized versions of latin characters, e.g. those with German >umlauts as mentioned in the duplicate issue #33741. And it could even >be the very common Windows-1252 encoding: "It is probably the most-used >8-bit character encoding in the world." (Wikipedia) > >---------- > >_______________________________________ >Python tracker > >_______________________________________ ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 03:09:42 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 14 Jun 2018 07:09:42 +0000 Subject: [issue19382] tabnanny unit tests In-Reply-To: <1382655525.74.0.119259261788.issue19382@psf.upfronthosting.co.za> Message-ID: <1528960182.87.0.947875510639.issue19382@psf.upfronthosting.co.za> STINNER Victor added the comment: Thanks Jaysinh Shukla for adding new unit tests to tabnanny, good job! I don't think that it's worth it to backport the new tests to 2.7, 3.6 or 3.7 branch. ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 -Python 3.4 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 03:13:13 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Thu, 14 Jun 2018 07:13:13 +0000 Subject: [issue33855] IDLE: Minimally test every non-startup module. Message-ID: <1528960393.44.0.947875510639.issue33855@psf.upfronthosting.co.za> New submission from Terry J. Reedy : For module in idlelib modules: Create test_module from new template.py. Add 'module' to docstring and import. Check other minimal imports. Create instance of each class, with requires('gui') if needed. Add initial coverage of this test. I am also reviewing existing tests. PR initially adds template, 1 new file, and edits 3 others. Needs blurb. I will add more, but will likely break this up into multiple PRs. This should, of course, been done years ago. Reviews welcome, non-Windows test would be good. (Tal, what do you have?) ---------- assignee: terry.reedy components: IDLE messages: 319501 nosy: cheryl.sabella, taleinat, terry.reedy priority: normal severity: normal stage: test needed status: open title: IDLE: Minimally test every non-startup module. type: behavior versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 03:20:06 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Thu, 14 Jun 2018 07:20:06 +0000 Subject: [issue33855] IDLE: Minimally test every non-startup module. In-Reply-To: <1528960393.44.0.947875510639.issue33855@psf.upfronthosting.co.za> Message-ID: <1528960806.87.0.947875510639.issue33855@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- keywords: +patch pull_requests: +7303 stage: test needed -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 03:35:04 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 14 Jun 2018 07:35:04 +0000 Subject: [issue19102] Add tests for CLI of the tabnanny module In-Reply-To: <1380282068.15.0.580247887303.issue19102@psf.upfronthosting.co.za> Message-ID: <1528961704.28.0.947875510639.issue19102@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset dfa9643d292dcaa14cbf3c44b8330ba2159976c0 by Victor Stinner (Jaysinh Shukla) in branch 'master': bpo-19382: Adding test cases for module tabnanny (GH-851) https://github.com/python/cpython/commit/dfa9643d292dcaa14cbf3c44b8330ba2159976c0 -- @Jaysinh Shukla: I looked at Berker's old patch, and I think that it would be interesting to modify tabnanny to return with a non-zero exit code in case of failure. Maybe replace "return" with "sys.exit(1)" after errprint() calls. ---------- nosy: +jaysinh.shukla, vstinner _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 03:43:06 2018 From: report at bugs.python.org (=?utf-8?q?St=C3=A9phane_Wirtel?=) Date: Thu, 14 Jun 2018 07:43:06 +0000 Subject: [issue33856] Type "help" is not present on win32 Message-ID: <1528962186.04.0.947875510639.issue33856@psf.upfronthosting.co.za> Change by St?phane Wirtel : ---------- nosy: matrixise priority: normal severity: normal status: open title: Type "help" is not present on win32 versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 03:56:13 2018 From: report at bugs.python.org (Jaysinh shukla) Date: Thu, 14 Jun 2018 07:56:13 +0000 Subject: [issue19102] Add tests for CLI of the tabnanny module In-Reply-To: <1380282068.15.0.580247887303.issue19102@psf.upfronthosting.co.za> Message-ID: <1528962973.78.0.947875510639.issue19102@psf.upfronthosting.co.za> Jaysinh shukla added the comment: @STINNER Victor Thanks for merging. I will try to observe that patch and will update you here. Have a great day ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 04:26:13 2018 From: report at bugs.python.org (Steven D'Aprano) Date: Thu, 14 Jun 2018 08:26:13 +0000 Subject: [issue33856] Type "help" is not present on win32 Message-ID: <1528964773.31.0.947875510639.issue33856@psf.upfronthosting.co.za> New submission from Steven D'Aprano : What do you mean "type help"? help() is added by the site module, if you've done something to skip running the site module it won't be added. Can you give an example of what you are trying to do, what happens and what you expected? Are you running in IDLE or the regular REPL? ---------- nosy: +steven.daprano _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 06:15:40 2018 From: report at bugs.python.org (=?utf-8?q?R=C3=A9mi_Lapeyre?=) Date: Thu, 14 Jun 2018 10:15:40 +0000 Subject: [issue33462] reversible dict In-Reply-To: <1526009418.33.0.682650639539.issue33462@psf.upfronthosting.co.za> Message-ID: <1528971340.34.0.947875510639.issue33462@psf.upfronthosting.co.za> R?mi Lapeyre added the comment: Hi, I took a look at the code of OrderedDict it's using the double linked-list to iterate through the items using _odictnode_PREV and _odictnode_NEXT. Since ordereddict needs to support move_to_end that will change the iterating order while dict does not, is it possible to share the code for __reversed__? As I understand it, the current code for OrderedDict and dict are not sharing code for the implementation of __iter__ and I'm not sure how it would be possible to do so. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 06:17:35 2018 From: report at bugs.python.org (Tal Einat) Date: Thu, 14 Jun 2018 10:17:35 +0000 Subject: [issue33855] IDLE: Minimally test every non-startup module. In-Reply-To: <1528960393.44.0.947875510639.issue33855@psf.upfronthosting.co.za> Message-ID: <1528971455.89.0.947875510639.issue33855@psf.upfronthosting.co.za> Tal Einat added the comment: My main laptop is currently Windows 10, I use it for most CPython work. I also have PCs running OSX, Ubuntu and Windows 7. Terry, let me know what and when you'd like me to run on which OSs, and I'll get it done :) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 06:28:23 2018 From: report at bugs.python.org (Tal Einat) Date: Thu, 14 Jun 2018 10:28:23 +0000 Subject: [issue24145] Support |= for parameters in converters In-Reply-To: <1431088392.11.0.874490778246.issue24145@psf.upfronthosting.co.za> Message-ID: <1528972103.68.0.947875510639.issue24145@psf.upfronthosting.co.za> Change by Tal Einat : ---------- nosy: -taleinat _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 06:29:46 2018 From: report at bugs.python.org (Tal Einat) Date: Thu, 14 Jun 2018 10:29:46 +0000 Subject: [issue24009] Get rid of rare format units in PyArg_Parse* In-Reply-To: <1429470884.11.0.538472438707.issue24009@psf.upfronthosting.co.za> Message-ID: <1528972186.56.0.947875510639.issue24009@psf.upfronthosting.co.za> Change by Tal Einat : ---------- nosy: -taleinat _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 06:31:18 2018 From: report at bugs.python.org (Tal Einat) Date: Thu, 14 Jun 2018 10:31:18 +0000 Subject: [issue20341] Argument Clinic: add "nullable ints" In-Reply-To: <1390360681.97.0.808723930218.issue20341@psf.upfronthosting.co.za> Message-ID: <1528972278.57.0.947875510639.issue20341@psf.upfronthosting.co.za> Change by Tal Einat : ---------- nosy: -taleinat _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 06:36:56 2018 From: report at bugs.python.org (Tal Einat) Date: Thu, 14 Jun 2018 10:36:56 +0000 Subject: [issue24379] Add operator.subscript as a convenience for creating slices In-Reply-To: <1433398024.28.0.0919512106527.issue24379@psf.upfronthosting.co.za> Message-ID: <1528972616.69.0.947875510639.issue24379@psf.upfronthosting.co.za> Tal Einat added the comment: So 3.8 then, or should this be closed? FWIW I'm -1. IMO this should be a code recipe somewhere, no need for it to be in the stdlib. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 06:37:39 2018 From: report at bugs.python.org (goron) Date: Thu, 14 Jun 2018 10:37:39 +0000 Subject: [issue33857] python exception on Solaris : code for hash blake2b was not found Message-ID: <1528972659.33.0.947875510639.issue33857@psf.upfronthosting.co.za> New submission from goron : Hi I'm running python 3.6 on solaris and i'm always getting this error: ERROR:root:code for hash blake2b was not found. ValueError: unsupported hash type blake2b ERROR:root:code for hash blake2s was not found. ValueError: unsupported hash type blake2s I have found that hashlib.so is missing in my library and the error is disappear when commenting out the import to 'blake2b' and 'blake2s' @ hashlib.py Is this issue was fixed in later versions or a patches? What should i do? Thanks ---------- components: Extension Modules messages: 319508 nosy: goron priority: normal severity: normal status: open title: python exception on Solaris : code for hash blake2b was not found type: behavior versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 07:39:18 2018 From: report at bugs.python.org (aruseni) Date: Thu, 14 Jun 2018 11:39:18 +0000 Subject: [issue33858] A typo in multiprocessing documentation Message-ID: <1528976358.35.0.947875510639.issue33858@psf.upfronthosting.co.za> New submission from aruseni : https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods > locks created using the fork context cannot be passed to a processes started using the spawn or forkserver start methods ---------- assignee: docs at python components: Documentation messages: 319509 nosy: aruseni, docs at python priority: normal severity: normal status: open title: A typo in multiprocessing documentation versions: Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 08:09:39 2018 From: report at bugs.python.org (Karthikeyan Singaravelan) Date: Thu, 14 Jun 2018 12:09:39 +0000 Subject: [issue33859] Spelling mistakes found using aspell Message-ID: <1528978179.87.0.947875510639.issue33859@psf.upfronthosting.co.za> New submission from Karthikeyan Singaravelan : I have found some typos in docs folder using aspell. I have fixed them. The changes are as below : Doc/library/codecs.rst - cypher - cipher Doc/library/email.rst - Protcol - Protocol Doc/library/importlib.rst - abstact - abstract Doc/library/xmlrpc.client.rst - unmarsalling - unmarshalling Doc/license.rst - aheared to - adhered to Doc/using/cmdline.rst - descibed - described Doc/whatsnew/3.3.rst - accumlated - accumulated Doc/whatsnew/3.6.rst - Lollilop - Lollipop Doc/whatsnew/3.7.rst - direcory - directory Find typos - find . -iname '*rst' | xargs -I{} sh -c "aspell --master=en_US --extra-dicts=en_GB --ignore 3 list < {}" | sort | uniq > typos.txt Ignore case tr '[:upper:]' '[:lower:]' < typos.txt | sort | uniq | less This requires manually looking at output of less and then making changes. ---------- assignee: docs at python components: Documentation messages: 319510 nosy: docs at python, xtreak priority: normal severity: normal status: open title: Spelling mistakes found using aspell type: enhancement versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 08:12:54 2018 From: report at bugs.python.org (Karthikeyan Singaravelan) Date: Thu, 14 Jun 2018 12:12:54 +0000 Subject: [issue33859] Spelling mistakes found using aspell In-Reply-To: <1528978179.87.0.947875510639.issue33859@psf.upfronthosting.co.za> Message-ID: <1528978374.42.0.947875510639.issue33859@psf.upfronthosting.co.za> Change by Karthikeyan Singaravelan : ---------- keywords: +patch pull_requests: +7304 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 08:58:24 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 14 Jun 2018 12:58:24 +0000 Subject: [issue33718] Enhance regrtest: meta-ticket for multiple changes In-Reply-To: <1527775539.21.0.682650639539.issue33718@psf.upfronthosting.co.za> Message-ID: <1528981104.42.0.947875510639.issue33718@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 4ffe9c2b251f6e027b26250b7a2618e78d4edd22 by Victor Stinner in branch 'master': bpo-33718: regrtest: use format_duration() to display failed tests (GH-7686) https://github.com/python/cpython/commit/4ffe9c2b251f6e027b26250b7a2618e78d4edd22 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 09:17:23 2018 From: report at bugs.python.org (Pavel Raiskup) Date: Thu, 14 Jun 2018 13:17:23 +0000 Subject: [issue14102] argparse: add ability to create a man page In-Reply-To: <1330031760.56.0.8938390885.issue14102@psf.upfronthosting.co.za> Message-ID: <1528982243.74.0.947875510639.issue14102@psf.upfronthosting.co.za> Change by Pavel Raiskup : ---------- nosy: +Pavel Raiskup _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 09:18:57 2018 From: report at bugs.python.org (Steven D'Aprano) Date: Thu, 14 Jun 2018 13:18:57 +0000 Subject: [issue33721] os.path.exists() ought to return False if pathname contains NUL In-Reply-To: <1527787165.92.0.682650639539.issue33721@psf.upfronthosting.co.za> Message-ID: <1528982337.63.0.947875510639.issue33721@psf.upfronthosting.co.za> Steven D'Aprano added the comment: Eric wrote: > I don't know of any OS that supports NULs in filenames HFS, HFS Plus, and Apple File System all support NULs in filenames. HFS Plus volumes include a special special directory called the metadata directory, in the volume's root directory, called "\0\0\0\0HFS+ Private Data". https://developer.apple.com/library/archive/technotes/tn/tn1150.html#HFSPlusNames There are, I believe, Carbon APIs for checking for file names which do not rely on NUL-terminated strings (they use an array of Unicode characters with an explicit length), but I don't know enough about OS X APIs to know if they are current generation. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 09:25:32 2018 From: report at bugs.python.org (Steven D'Aprano) Date: Thu, 14 Jun 2018 13:25:32 +0000 Subject: [issue33721] os.path.exists() ought to return False if pathname contains NUL In-Reply-To: <1527787165.92.0.682650639539.issue33721@psf.upfronthosting.co.za> Message-ID: <1528982732.98.0.947875510639.issue33721@psf.upfronthosting.co.za> Steven D'Aprano added the comment: Eryk Sun says: > It has to be a ValueError since the error is an invalid parameter at the Python level. How does the first follow from the second? Strings with NULs in them aren't errors or invalid parameters at the Python level, and they are legal file names in at least some file systems. Jython does this: >>> import os >>> os.path.exists('/tmp/foo\0bar') False >>> os.stat('/tmp/foo\0bar') Traceback (most recent call last): File "", line 1, in OSError: [Errno 2] No such file or directory: '/tmp/foo\x00bar' As far as I am concerned, raising ValueError is simply a bug. The documentation for the os module clearly states: All functions in this module raise OSError in the case of invalid or inaccessible file names and paths, or other arguments that have the correct type, but are not accepted by the operating system. I don't believe there is any good reason for singling out NULs for a different exception from other invalid file names like ">" on NTFS. This ought to be an OSError for functions like os.stat and False for os.path.exists, as Jython does. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 09:54:31 2018 From: report at bugs.python.org (R. David Murray) Date: Thu, 14 Jun 2018 13:54:31 +0000 Subject: [issue29750] smtplib doesn't handle unicode passwords In-Reply-To: <1488919224.48.0.0966376973087.issue29750@psf.upfronthosting.co.za> Message-ID: <1528984471.57.0.947875510639.issue29750@psf.upfronthosting.co.za> R. David Murray added the comment: While you are correct that latin1 may be common in this situation, I think it may still be better to have utf-8 be the default, since that is the (still emerging? :) standard. However, you are correct to call for examples: if in the *majority* of the real-world cases it turns out latin1 is what is used, then we could default to that (or not have a default, but instead document our observations). I don't know how we accumulate enough information to make that decision, though. Maybe we could look at what other mail programs do? Thunderbird, etc? David, which mail program(s) did you use that were able to successfully send that password? And yes, by binary passwords I mean that the module needs to support being passed a bytes-like object as the password, since clearly there are servers "in the wild" that support non-ascii passwords and the only way to be sure one can send the server the correct password is by treating it as a series of bytes. The library caller will have to be responsible for picking the correct encoding based on local knowledge. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 09:56:08 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Thu, 14 Jun 2018 13:56:08 +0000 Subject: [issue33829] C API: provide new object protocol helper In-Reply-To: <1528710870.35.0.592728768989.issue33829@psf.upfronthosting.co.za> Message-ID: <1528984568.69.0.947875510639.issue33829@psf.upfronthosting.co.za> Change by Pablo Galindo Salgado : ---------- nosy: +pablogsal _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 09:56:23 2018 From: report at bugs.python.org (david) Date: Thu, 14 Jun 2018 13:56:23 +0000 Subject: [issue29750] smtplib doesn't handle unicode passwords In-Reply-To: <1528984471.57.0.947875510639.issue29750@psf.upfronthosting.co.za> Message-ID: <00028F2E-5885-416F-B147-C64D7181E960@gmail.com> david added the comment: Both thunderbird, sogo (web) and gmail (web). On June 14, 2018 3:54:31 PM GMT+02:00, "R. David Murray" wrote: > >R. David Murray added the comment: > >While you are correct that latin1 may be common in this situation, I >think it may still be better to have utf-8 be the default, since that >is the (still emerging? :) standard. However, you are correct to call >for examples: if in the *majority* of the real-world cases it turns out >latin1 is what is used, then we could default to that (or not have a >default, but instead document our observations). > >I don't know how we accumulate enough information to make that >decision, though. Maybe we could look at what other mail programs do? >Thunderbird, etc? David, which mail program(s) did you use that were >able to successfully send that password? > >And yes, by binary passwords I mean that the module needs to support >being passed a bytes-like object as the password, since clearly there >are servers "in the wild" that support non-ascii passwords and the only >way to be sure one can send the server the correct password is by >treating it as a series of bytes. The library caller will have to be >responsible for picking the correct encoding based on local knowledge. > >---------- > >_______________________________________ >Python tracker > >_______________________________________ ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 09:58:05 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Thu, 14 Jun 2018 13:58:05 +0000 Subject: [issue33858] A typo in multiprocessing documentation In-Reply-To: <1528976358.35.0.947875510639.issue33858@psf.upfronthosting.co.za> Message-ID: <1528984685.59.0.947875510639.issue33858@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: Could you make a PR correcting this bug? If you cannot I can do it instead. :) ---------- nosy: +pablogsal _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 10:11:01 2018 From: report at bugs.python.org (aruseni) Date: Thu, 14 Jun 2018 14:11:01 +0000 Subject: [issue33858] A typo in multiprocessing documentation In-Reply-To: <1528976358.35.0.947875510639.issue33858@psf.upfronthosting.co.za> Message-ID: <1528985461.83.0.947875510639.issue33858@psf.upfronthosting.co.za> aruseni added the comment: I just took a look at the most recent version of this file, and found out that this has already been fixed. https://github.com/python/cpython/blob/master/Doc/library/multiprocessing.rst ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 10:15:35 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 14 Jun 2018 14:15:35 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1528985735.81.0.947875510639.issue32962@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7306 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 10:25:04 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 14 Jun 2018 14:25:04 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1528986304.44.0.947875510639.issue32962@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7307 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 10:28:09 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 14 Jun 2018 14:28:09 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1528986489.63.0.947875510639.issue32962@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 019d33b7a447e78057842332fb5d3bad01922122 by Victor Stinner in branch 'master': bpo-32962: python-gdb catchs ValueError on read_var() (GH-7692) https://github.com/python/cpython/commit/019d33b7a447e78057842332fb5d3bad01922122 ---------- nosy: +vstinner _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 10:49:49 2018 From: report at bugs.python.org (Eric Snow) Date: Thu, 14 Jun 2018 14:49:49 +0000 Subject: [issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x In-Reply-To: <1527078316.31.0.682650639539.issue33615@psf.upfronthosting.co.za> Message-ID: <1528987789.8.0.947875510639.issue33615@psf.upfronthosting.co.za> Change by Eric Snow : ---------- status: pending -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 10:51:41 2018 From: report at bugs.python.org (Jelle Zijlstra) Date: Thu, 14 Jun 2018 14:51:41 +0000 Subject: [issue31861] aiter() and anext() built-in functions In-Reply-To: <1508851575.6.0.213398074469.issue31861@psf.upfronthosting.co.za> Message-ID: <1528987901.92.0.947875510639.issue31861@psf.upfronthosting.co.za> Jelle Zijlstra added the comment: Do these really need to be builtins? They seem too specialized to be widely useful; I've personally never needed them in any async code I've written. It would make more sense to me to put them in a module like operators. ---------- nosy: +Jelle Zijlstra _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 10:55:32 2018 From: report at bugs.python.org (Ned Deily) Date: Thu, 14 Jun 2018 14:55:32 +0000 Subject: [issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows In-Reply-To: <1343886272.5.0.825552125397.issue15533@psf.upfronthosting.co.za> Message-ID: <1528988132.75.0.947875510639.issue15533@psf.upfronthosting.co.za> Change by Ned Deily : ---------- nosy: +gregory.p.smith versions: +Python 3.8 -Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 11:10:54 2018 From: report at bugs.python.org (Yury Selivanov) Date: Thu, 14 Jun 2018 15:10:54 +0000 Subject: [issue31861] aiter() and anext() built-in functions In-Reply-To: <1508851575.6.0.213398074469.issue31861@psf.upfronthosting.co.za> Message-ID: <1528989054.19.0.947875510639.issue31861@psf.upfronthosting.co.za> Yury Selivanov added the comment: > Do these really need to be builtins? We're only beginning to see async iterators being used in the wild, so we can't have a definitive answer at this point. > They seem too specialized to be widely useful; I've personally never needed them in any async code I've written. It would make more sense to me to put them in a module like operators. I think putting them to the operators module makes sense, at least for 3.8. Do you want to work on a pull request? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 11:14:31 2018 From: report at bugs.python.org (R. David Murray) Date: Thu, 14 Jun 2018 15:14:31 +0000 Subject: [issue29750] smtplib doesn't handle unicode passwords In-Reply-To: <1488919224.48.0.0966376973087.issue29750@psf.upfronthosting.co.za> Message-ID: <1528989271.44.0.947875510639.issue29750@psf.upfronthosting.co.za> R. David Murray added the comment: For the web cases I presume you also set the password using the web interface, so that doesn't really tell us anything useful. Did you use thunderbird to access the mailbox that you set up via gmail and/or sogo? That would make what thunderbird does the interesting question. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 11:15:29 2018 From: report at bugs.python.org (david) Date: Thu, 14 Jun 2018 15:15:29 +0000 Subject: [issue29750] smtplib doesn't handle unicode passwords In-Reply-To: <1528989271.44.0.947875510639.issue29750@psf.upfronthosting.co.za> Message-ID: david added the comment: Yes, i used thunderbird for both On June 14, 2018 5:14:31 PM GMT+02:00, "R. David Murray" wrote: > >R. David Murray added the comment: > >For the web cases I presume you also set the password using the web >interface, so that doesn't really tell us anything useful. Did you use >thunderbird to access the mailbox that you set up via gmail and/or >sogo? That would make what thunderbird does the interesting question. > >---------- > >_______________________________________ >Python tracker > >_______________________________________ ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 11:25:56 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 14 Jun 2018 15:25:56 +0000 Subject: [issue33860] doc Avoid "ordered dictionary" references now that dictionaries are ordered Message-ID: <1528989956.26.0.947875510639.issue33860@psf.upfronthosting.co.za> New submission from Andr?s Delfino : IMHO, using "ordered dictionaries" references is somewhat confusing now that dictionaries preserve insertion order. PR changes this references to "OrderedDict object". ---------- assignee: docs at python components: Documentation messages: 319523 nosy: adelfino, docs at python priority: normal pull_requests: 7308 severity: normal status: open title: doc Avoid "ordered dictionary" references now that dictionaries are ordered type: enhancement versions: Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 11:48:44 2018 From: report at bugs.python.org (INADA Naoki) Date: Thu, 14 Jun 2018 15:48:44 +0000 Subject: [issue33860] doc Avoid "ordered dictionary" references now that dictionaries are ordered In-Reply-To: <1528989956.26.0.947875510639.issue33860@psf.upfronthosting.co.za> Message-ID: <1528991324.47.0.947875510639.issue33860@psf.upfronthosting.co.za> INADA Naoki added the comment: "ordered dictionary" means "dict-like object which preserves insertion order". Both of dict and OrderedDict is "ordered dictionary". If we change it to OrderedDict, it make harder to change return type from OrderedDict to normal dict. Do you propose we should never change return type? ---------- nosy: +inada.naoki _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 11:56:43 2018 From: report at bugs.python.org (INADA Naoki) Date: Thu, 14 Jun 2018 15:56:43 +0000 Subject: [issue33860] doc Avoid "ordered dictionary" references now that dictionaries are ordered In-Reply-To: <1528989956.26.0.947875510639.issue33860@psf.upfronthosting.co.za> Message-ID: <1528991803.82.0.947875510639.issue33860@psf.upfronthosting.co.za> INADA Naoki added the comment: Sometime, we chose weak name like "file-like" or "dictionary" over "io.TextIOWrapper" or "dict", to avoid making future improvements harder. If there are no strong reason to specify concrete type, let's keep using weak name. In case of enum members, I want to change it to regular dict in Python 3.8, but I'm not sure yet. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 11:57:46 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Thu, 14 Jun 2018 15:57:46 +0000 Subject: [issue33830] Error in the output of one example in the httplib docs In-Reply-To: <1528713903.44.0.592728768989.issue33830@psf.upfronthosting.co.za> Message-ID: <1528991866.64.0.947875510639.issue33830@psf.upfronthosting.co.za> Change by Pablo Galindo Salgado : ---------- title: example output error -> Error in the output of one example in the httplib docs _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 11:59:56 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 14 Jun 2018 15:59:56 +0000 Subject: [issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x In-Reply-To: <1528987789.85.0.121749146738.issue33615@psf.upfronthosting.co.za> Message-ID: STINNER Victor added the comment: It's nice to see this issue fixed :-) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 12:01:56 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Thu, 14 Jun 2018 16:01:56 +0000 Subject: [issue33823] A BUG in concurrent/asyncio In-Reply-To: <1528653917.32.0.592728768989.issue33823@psf.upfronthosting.co.za> Message-ID: <1528992116.27.0.947875510639.issue33823@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: Python++: Sorry, I still cannot understand exactly what is wrong. Could you please redact a little paragraph explaining (1) what function/functions are you using (and maybe a very short example), (2) what is not working and (3) what do you expect to see instead. Sorry if it feels redundant but it will help is understand better the problem. ---------- nosy: +pablogsal _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 12:24:44 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Thu, 14 Jun 2018 16:24:44 +0000 Subject: [issue14102] argparse: add ability to create a man page In-Reply-To: <1330031760.56.0.8938390885.issue14102@psf.upfronthosting.co.za> Message-ID: <1528993484.79.0.947875510639.issue14102@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: I think this should be something that is not included in argparse itself. I can imagine a scenario in which the manpage is accessible through `./python foo.py --manpage` but the manpage is not installed systemwide. This will be very confusing for users. Also, as Serhiy comments, argparse provides functionality that at this point is relevant for the enduser of the application. Generating a man page in a build script sounds like something that should be on its own or as a help function of the build system. The only thing argparse could do (maybe) is trying to read an already installed manpage and use that, but I still think that is not a good idea because it can generate conflicts and similar if multiple versions are installed or if the help of the package deviates from the manpage. ---------- nosy: +pablogsal _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 12:59:32 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Thu, 14 Jun 2018 16:59:32 +0000 Subject: [issue33861] Minor improvements of tests for os.path. Message-ID: <1528995572.61.0.947875510639.issue33861@psf.upfronthosting.co.za> New submission from Serhiy Storchaka : When working on a path for issue33721 I have found that some tests for os.path can be improved, and these changes are worth backporting to older versions (3.6+). * Test exists(), lexists(), isdir(), isfile(), islink(), ismount() with bytes paths. * Remove unneeded silencing DeprecationWarning for ismount() with bytes path. * Test common functions with unencodable and undecodable paths. * Minor clean up and refactoring. ---------- components: Tests messages: 319529 nosy: serhiy.storchaka priority: normal severity: normal status: open title: Minor improvements of tests for os.path. type: enhancement versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 13:14:41 2018 From: report at bugs.python.org (Gregory P. Smith) Date: Thu, 14 Jun 2018 17:14:41 +0000 Subject: [issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows In-Reply-To: <1343886272.5.0.825552125397.issue15533@psf.upfronthosting.co.za> Message-ID: <1528996481.19.0.947875510639.issue15533@psf.upfronthosting.co.za> Gregory P. Smith added the comment: Thanks for pointing me at this issue Ned. It sounds like there is a behavior difference between Windows and POSIX systems related to the current directory and/or which process environment is used by the system call that launches the new process to find the executable. It seems to have existed "forever" in subprocess module API terms, so I don't know if we should reconcile the corner cases when cwd and/or env are supplied to a single cross platform behavior as that could break existing code. Such a behavior change _could_ be made but be 3.8 specific. BUT: If we did that, it becomes a challenge for people writing code that needs to work on multiple Python versions. Popen growing yet another bool flag parameter to choose the new behavior is possible, but quite ugly (and unusable on multi-python version code). I think we should start out by living with the difference - document these platform specific corner case behaviors to minimize surprise. If we want to provide a way for people to have the same behavior on both, we should document a recommended way to do that. I believe that entails telling people get an absolute path to their executable themselves before launching the subprocess as that should work the same no matter the cwd or environment? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 13:28:25 2018 From: report at bugs.python.org (Tal Einat) Date: Thu, 14 Jun 2018 17:28:25 +0000 Subject: [issue20187] The Great Argument Clinic Conversion Derby Meta-Issue In-Reply-To: <1389141105.5.0.459903580868.issue20187@psf.upfronthosting.co.za> Message-ID: <1528997305.88.0.947875510639.issue20187@psf.upfronthosting.co.za> Change by Tal Einat : ---------- nosy: -taleinat _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 13:28:53 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 14 Jun 2018 17:28:53 +0000 Subject: [issue33860] doc Avoid "ordered dictionary" references now that dictionaries are ordered In-Reply-To: <1528989956.26.0.947875510639.issue33860@psf.upfronthosting.co.za> Message-ID: <1528997333.17.0.947875510639.issue33860@psf.upfronthosting.co.za> Andr?s Delfino added the comment: Please note that DictReader already mentions "OrderedDict" as a type it returns now. I do see the issue you raise though and I'm not proposing to guarantee that type for next versions. I see the benefits of using weak names, but "dictionary" alone doesn't seem like a good weak name to me, as it's the common name of an actual type. "ordered dictionary" is the common name of a type, too, which makes the "dictionary" in that phrase less of a weak name. Bacause of this, I don't think we are using weak names in the cases the PR changes. A dict-like object must preserve insertion order as that's what dict does; specifying it could make people think dicts aren't ordered. I understand a dict-like object as if it were a dict subclass, that is, following the full dict API. As to what the changes could look like with these things in mind... It's difficult to say without knowing which API are we actually telling people to rely on now: dict, dict-like, OrderedDict, OrderedDict-like? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 13:28:59 2018 From: report at bugs.python.org (Tal Einat) Date: Thu, 14 Jun 2018 17:28:59 +0000 Subject: [issue20177] Derby #8: Convert 28 sites to Argument Clinic across 2 files In-Reply-To: <1389138574.32.0.892814928986.issue20177@psf.upfronthosting.co.za> Message-ID: <1528997339.21.0.947875510639.issue20177@psf.upfronthosting.co.za> Change by Tal Einat : ---------- nosy: -taleinat _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 13:29:35 2018 From: report at bugs.python.org (Tal Einat) Date: Thu, 14 Jun 2018 17:29:35 +0000 Subject: [issue20181] Derby #12: Convert 50 sites to Argument Clinic across 4 files In-Reply-To: <1389140203.53.0.198441160626.issue20181@psf.upfronthosting.co.za> Message-ID: <1528997375.7.0.947875510639.issue20181@psf.upfronthosting.co.za> Change by Tal Einat : ---------- nosy: -taleinat _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 13:37:32 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 14 Jun 2018 17:37:32 +0000 Subject: [issue33862] doc Fix Enum __members__ type Message-ID: <1528997852.32.0.947875510639.issue33862@psf.upfronthosting.co.za> New submission from Andr?s Delfino : Documentation says __members__ attribute returns an "ordered dictionary" but it returns a mappingproxy instead. PR fixes this. ---------- assignee: docs at python components: Documentation messages: 319532 nosy: adelfino, docs at python priority: normal severity: normal status: open title: doc Fix Enum __members__ type type: enhancement versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 13:38:25 2018 From: report at bugs.python.org (Tal Einat) Date: Thu, 14 Jun 2018 17:38:25 +0000 Subject: [issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files In-Reply-To: <1389140162.94.0.578256004005.issue20180@psf.upfronthosting.co.za> Message-ID: <1528997905.24.0.947875510639.issue20180@psf.upfronthosting.co.za> Tal Einat added the comment: IMO we should create new issues for AC conversion of the collections and random modules (assuming they haven't been converted yet), and close this issue. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 13:42:08 2018 From: report at bugs.python.org (Chris Eykamp) Date: Thu, 14 Jun 2018 17:42:08 +0000 Subject: [issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition In-Reply-To: <1471355745.98.0.805545529346.issue27777@psf.upfronthosting.co.za> Message-ID: <1528998128.86.0.947875510639.issue27777@psf.upfronthosting.co.za> Chris Eykamp added the comment: I'll get a PR submitted this weekend, and post back here. It will not explicitly address that other case, as I don't have the capacity or wherewithal for that. Alas. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 13:48:44 2018 From: report at bugs.python.org (Sergey Fedoseev) Date: Thu, 14 Jun 2018 17:48:44 +0000 Subject: [issue8488] Docstrings of non-data descriptors "ignored" In-Reply-To: <1271874309.07.0.567011993617.issue8488@psf.upfronthosting.co.za> Message-ID: <1528998524.54.0.947875510639.issue8488@psf.upfronthosting.co.za> Change by Sergey Fedoseev : ---------- nosy: +sir-sigurd _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 13:51:04 2018 From: report at bugs.python.org (Mark Lawrence) Date: Thu, 14 Jun 2018 17:51:04 +0000 Subject: [issue20187] The Great Argument Clinic Conversion Derby Meta-Issue In-Reply-To: <1389141105.5.0.459903580868.issue20187@psf.upfronthosting.co.za> Message-ID: <1528998664.73.0.947875510639.issue20187@psf.upfronthosting.co.za> Change by Mark Lawrence : ---------- nosy: -BreamoreBoy _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 13:57:40 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 14 Jun 2018 17:57:40 +0000 Subject: [issue33862] doc Fix Enum __members__ type In-Reply-To: <1528997852.32.0.947875510639.issue33862@psf.upfronthosting.co.za> Message-ID: <1528999060.09.0.947875510639.issue33862@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- keywords: +patch pull_requests: +7309 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 14:05:59 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Thu, 14 Jun 2018 18:05:59 +0000 Subject: [issue33721] os.path.exists() ought to return False if pathname contains NUL In-Reply-To: <1527787165.92.0.682650639539.issue33721@psf.upfronthosting.co.za> Message-ID: <1528999559.82.0.947875510639.issue33721@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- keywords: +patch pull_requests: +7310 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 14:11:43 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Thu, 14 Jun 2018 18:11:43 +0000 Subject: [issue33721] os.path.exists() ought to return False if pathname contains NUL In-Reply-To: <1527787165.92.0.682650639539.issue33721@psf.upfronthosting.co.za> Message-ID: <1528999903.6.0.947875510639.issue33721@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: This change looks desirable to me. But it looks too large for backporting it to maintained versions. ---------- type: behavior -> enhancement versions: +Python 3.8 -Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 14:16:47 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Thu, 14 Jun 2018 18:16:47 +0000 Subject: [issue33862] doc Fix Enum __members__ type In-Reply-To: <1528997852.32.0.947875510639.issue33862@psf.upfronthosting.co.za> Message-ID: <1529000207.39.0.947875510639.issue33862@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Is not returning a mappingproxy an implementation detail? The important thing is that the result is a mapping of names to members, and that it is ordered. ---------- nosy: +barry, eli.bendersky, ethan.furman, serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 14:46:55 2018 From: report at bugs.python.org (Forest) Date: Thu, 14 Jun 2018 18:46:55 +0000 Subject: [issue27575] dict viewkeys intersection slow for large dicts In-Reply-To: <1468950707.74.0.640405379684.issue27575@psf.upfronthosting.co.za> Message-ID: <1529002015.34.0.947875510639.issue27575@psf.upfronthosting.co.za> Change by Forest : ---------- pull_requests: +7311 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 14:48:42 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 14 Jun 2018 18:48:42 +0000 Subject: [issue33862] doc Fix Enum __members__ type In-Reply-To: <1528997852.32.0.947875510639.issue33862@psf.upfronthosting.co.za> Message-ID: <1529002121.99.0.947875510639.issue33862@psf.upfronthosting.co.za> Andr?s Delfino added the comment: I can't really say if it the return of __members__ is an implementation detail as there's no mention of that in the doc, but from reading the doc I think it's reasonable to think this is allowed: import enum class Colors(enum.Enum): RED = enum.auto() BLUE = enum.auto() Colors.__members__['GREEN'] = enum.auto() And the traceback: Traceback (most recent call last): File "", line 1, in Colors.__members__['GREEN'] = enum.auto() TypeError: 'mappingproxy' object does not support item assignment is somewhat confusing, as the documentation says an "ordered dictionary" is to be returned, and the traceback talks about a mapping proxy. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 15:21:58 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Thu, 14 Jun 2018 19:21:58 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1529004118.61.0.947875510639.issue32962@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Wouldn't be better to use the "surrogateescape" or the "backslashreplace" error handlers? ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 15:32:43 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Thu, 14 Jun 2018 19:32:43 +0000 Subject: [issue30747] _Py_atomic_* not actually atomic on Windows with MSVC In-Reply-To: <1498332959.93.0.572211672441.issue30747@psf.upfronthosting.co.za> Message-ID: <1529004763.68.0.947875510639.issue30747@psf.upfronthosting.co.za> Antoine Pitrou added the comment: I would be ok with reverting to the non-HLE variants. Does anyone want to test the performance implications on TSX-enabled hardware? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 15:34:36 2018 From: report at bugs.python.org (Ben Finney) Date: Thu, 14 Jun 2018 19:34:36 +0000 Subject: [issue14102] argparse: add ability to create a man page In-Reply-To: <1528993484.79.0.947875510639.issue14102@psf.upfronthosting.co.za> Message-ID: <20180614193427.GD10180@benfinney.id.au> Ben Finney added the comment: On 14-Jun-2018, Pablo Galindo Salgado wrote: > I think this should be something that is not included in argparse > itself. I can imagine a scenario in which the manpage is accessible > through `./python foo.py --manpage` but the manpage is not installed > systemwide. This bug report is not asking that ?argparse? install a manual page, and it is not asking for any new command-line option in programs. So I don't know the relevance of that point. > This will be very confusing for users. What would cause that confusion? This is not something that would change how ?argparse? parses its arguments, so I don't know what you're referring to. > Generating a man page in a build script sounds like something that > should be on its own or as a help function of the build system. This is asking that the ?argparse? library should have an API to create a manual page, for use in the build system. The reason to have it in the ?argparse? library is that the library already knows how to build a single document (the ?--help? output) from the collection of arguments, so this would be just another rendering of that information. It makes sense to have it in the ?argparse? library as an API for other tools to use. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 15:54:35 2018 From: report at bugs.python.org (=?utf-8?b?UMOkciBCasO2cmtsdW5k?=) Date: Thu, 14 Jun 2018 19:54:35 +0000 Subject: [issue30747] _Py_atomic_* not actually atomic on Windows with MSVC In-Reply-To: <1529004763.68.0.947875510639.issue30747@psf.upfronthosting.co.za> Message-ID: P?r Bj?rklund added the comment: The HLE variants were simply chosen to match the semantics on other platforms with regard to aquire/release. If Intel engineers say the plain versions are better that's good enough for me. It would be interesting seeing some benchmarks but I don't have any idea on how to reliably test the non happy path. On Thu, 14 Jun 2018, 21:32 Antoine Pitrou, wrote: > > Antoine Pitrou added the comment: > > I would be ok with reverting to the non-HLE variants. Does anyone want to > test the performance implications on TSX-enabled hardware? > > ---------- > > _______________________________________ > Python tracker > > _______________________________________ > ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 15:55:45 2018 From: report at bugs.python.org (Ethan Furman) Date: Thu, 14 Jun 2018 19:55:45 +0000 Subject: [issue33862] doc Fix Enum __members__ type In-Reply-To: <1528997852.32.0.947875510639.issue33862@psf.upfronthosting.co.za> Message-ID: <1529006145.87.0.947875510639.issue33862@psf.upfronthosting.co.za> Ethan Furman added the comment: Serhiy is correct. The exact return type only needs to be ordered, and have appropriate dictionary methods such as `keys()`, `values()`, and `items()`. The reason a mappingproxy was chosen is exactly because what you just tried is illegal and/or confusing: - illegal because an Enum cannot be modified that way - confusing because the dictionary returned is only a copy of the Enum class' __dict__, and successful attempts to modify it would not change the Enum class. It is an implementation detail because the exact type of dictionary returned could change in the future. ---------- assignee: docs at python -> ethan.furman resolution: -> not a bug stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 15:57:49 2018 From: report at bugs.python.org (Ethan Furman) Date: Thu, 14 Jun 2018 19:57:49 +0000 Subject: [issue33863] Enum doc correction relating to __members__ Message-ID: <1529006269.94.0.947875510639.issue33863@psf.upfronthosting.co.za> New submission from Ethan Furman : Checking the docs for Enum I see that section 8.13.15.3.1 says: `__members__` is an `OrderedDict` which is incorrect. It should say "an ordered dictionary". ---------- messages: 319543 nosy: adelfino, barry, eli.bendersky, ethan.furman priority: normal severity: normal stage: needs patch status: open title: Enum doc correction relating to __members__ versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 16:02:21 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Thu, 14 Jun 2018 20:02:21 +0000 Subject: [issue14102] argparse: add ability to create a man page In-Reply-To: <1330031760.56.0.8938390885.issue14102@psf.upfronthosting.co.za> Message-ID: <1529006541.94.0.947875510639.issue14102@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: >What would cause that confusion? This is not something that would >change how ?argparse? parses its arguments, so I don't know what >you're referring to. The (possible) confusion is the existence of a manpage only available though argparse (`./python foo.py --manpage`) and not systemwide. I am not sure how many people do something like `./python poc_2.py > output && man ./output` to **read** the manpage. >This is asking that the ?argparse? library should have an API to >create a manual page, for use in the build system. At this point argparse is user facing in the sense that once configured, it provides functionality for the user of the command line application. My opinion is that it will be weird to have it provide also APIs for creating man pages (which is a developer utility). My humble opinion is that it if argparse starts to provide APIs for usage at install time is not "doing one thing and doing it well". >The reason to have it in the ?argparse? library is that the library >already knows how to build a single document (the ?--help? output) >from the collection of arguments, so this would be just another >rendering of that information. It makes sense to have it in the >?argparse? library as an API for other tools to use Argparse --help makes sense because people expect to use -h or --help with command line tools but IMHO opinion nobody expects --manpage to be the way to read the manpage. I do not know any command line utility that provides its manpage that way. If the argument is using --manpage is the way to generate one, then we are mixing user-facing options with developer ones. Anyway, this is just my view of the problem, nothing more. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 16:20:00 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 14 Jun 2018 20:20:00 +0000 Subject: [issue33863] Enum doc correction relating to __members__ In-Reply-To: <1529006269.94.0.947875510639.issue33863@psf.upfronthosting.co.za> Message-ID: <1529007600.39.0.947875510639.issue33863@psf.upfronthosting.co.za> Andr?s Delfino added the comment: I'm not sure "ordered dictionary" is the right term. To me, "ordered dictionary" and "OrderedDict" are synonyms, just like "dictionary" and "dict" are. Documentation follows this path in several places. You can see my reasons for this in this issue: https://bugs.python.org/issue33860 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 16:33:57 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 14 Jun 2018 20:33:57 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1529008437.68.0.947875510639.issue32962@psf.upfronthosting.co.za> STINNER Victor added the comment: > Wouldn't be better to use the "surrogateescape" or the "backslashreplace" error handlers? Are you talking about my https://github.com/python/cpython/pull/7693 fix? If yes, the error comes from the string() method which comes from the gdb API. I don't see how to control how gdb decodes bytes. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 16:35:01 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 14 Jun 2018 20:35:01 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1529008501.73.0.947875510639.issue32962@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset d22fc0bc7de7882da204abe50884bbde2da4f9e7 by Victor Stinner in branch 'master': bpo-32962: python-gdb catchs UnicodeDecodeError (GH-7693) https://github.com/python/cpython/commit/d22fc0bc7de7882da204abe50884bbde2da4f9e7 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 16:36:28 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Thu, 14 Jun 2018 20:36:28 +0000 Subject: [issue33863] Enum doc correction relating to __members__ In-Reply-To: <1529006269.94.0.947875510639.issue33863@psf.upfronthosting.co.za> Message-ID: <1529008588.08.0.947875510639.issue33863@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: Since dictionaries are ordered "ordered dictionary" can be a synonym of "dictionary" and "OrderDict", right? ---------- nosy: +pablogsal _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 16:36:35 2018 From: report at bugs.python.org (STINNER Victor) Date: Thu, 14 Jun 2018 20:36:35 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1529008595.21.0.947875510639.issue32962@psf.upfronthosting.co.za> STINNER Victor added the comment: Reminder: test_gdb is skipped on Travis CI and AppVeyor. I tested my two changes manually. I will backport python-gdb.py enhancements to other branches once PR 6754 fix will be merged. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 16:42:09 2018 From: report at bugs.python.org (Roundup Robot) Date: Thu, 14 Jun 2018 20:42:09 +0000 Subject: [issue33354] Python2: test_ssl fails on non-ASCII path In-Reply-To: <1524665655.9.0.682650639539.issue33354@psf.upfronthosting.co.za> Message-ID: <1529008929.66.0.947875510639.issue33354@psf.upfronthosting.co.za> Change by Roundup Robot : ---------- pull_requests: +7312 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 16:48:28 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 14 Jun 2018 20:48:28 +0000 Subject: [issue33863] Enum doc correction relating to __members__ In-Reply-To: <1529006269.94.0.947875510639.issue33863@psf.upfronthosting.co.za> Message-ID: <1529009308.55.0.947875510639.issue33863@psf.upfronthosting.co.za> Andr?s Delfino added the comment: It doesn't seem right to me to change a term's meaning. Plus, saying "ordered dictionary" makes me think a "dictionary" isn't ordered. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 16:50:28 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 14 Jun 2018 20:50:28 +0000 Subject: [issue33863] Enum doc correction relating to __members__ In-Reply-To: <1529006269.94.0.947875510639.issue33863@psf.upfronthosting.co.za> Message-ID: <1529009428.5.0.947875510639.issue33863@psf.upfronthosting.co.za> Andr?s Delfino added the comment: What about "a dictionary-like object"? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 16:51:00 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Thu, 14 Jun 2018 20:51:00 +0000 Subject: [issue33863] Enum doc correction relating to __members__ In-Reply-To: <1529006269.94.0.947875510639.issue33863@psf.upfronthosting.co.za> Message-ID: <1529009460.48.0.947875510639.issue33863@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: Well, technically a function can say that it returns a dictionary and this dictionary will be ordered in 3.6> but is not important for the function return value. If a function says that it returns a "ordered dictionary" I now (1) that the order is important in the return value, (2) that it can be a regular dict or an OrderDict depending on the python version. The important thing here is that it preserves insertion order. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 17:05:29 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 14 Jun 2018 21:05:29 +0000 Subject: [issue33863] Enum doc correction relating to __members__ In-Reply-To: <1529006269.94.0.947875510639.issue33863@psf.upfronthosting.co.za> Message-ID: <1529010329.22.0.947875510639.issue33863@psf.upfronthosting.co.za> Andr?s Delfino added the comment: What about "a dictionary-like object" for master/3.7, and "a dictionary-like object with insertion order preservation" for 3.6 (or something like that). I'd avoid "ordered dictionary" altogether as that's the common name of an actual type. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 17:05:46 2018 From: report at bugs.python.org (Ethan Furman) Date: Thu, 14 Jun 2018 21:05:46 +0000 Subject: [issue33863] Enum doc correction relating to __members__ In-Reply-To: <1529006269.94.0.947875510639.issue33863@psf.upfronthosting.co.za> Message-ID: <1529010346.79.0.947875510639.issue33863@psf.upfronthosting.co.za> Ethan Furman added the comment: I am open to suggestions, but I will say that there are other types of ordered dictionaries besides OrderedDict. Also, if you have some generic dictionary that happens to be ordered but is not an OrderedDict, how would you describe it? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 17:09:05 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 14 Jun 2018 21:09:05 +0000 Subject: [issue33863] Enum doc correction relating to __members__ In-Reply-To: <1529006269.94.0.947875510639.issue33863@psf.upfronthosting.co.za> Message-ID: <1529010545.32.0.947875510639.issue33863@psf.upfronthosting.co.za> Andr?s Delfino added the comment: What do you mean by "a generic dictionary"? If it's a dict-like object, then it *must* be ordered starting with 3.7. I believe we should make it clear that a dictionary is always a dict object. If you refer to a mapping with no specific API, then "an ordered mapping" is clear and correct. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 17:14:45 2018 From: report at bugs.python.org (Ethan Furman) Date: Thu, 14 Jun 2018 21:14:45 +0000 Subject: [issue33863] Enum doc correction relating to __members__ In-Reply-To: <1529006269.94.0.947875510639.issue33863@psf.upfronthosting.co.za> Message-ID: <1529010885.37.0.947875510639.issue33863@psf.upfronthosting.co.za> Ethan Furman added the comment: An ordered mapping sounds good to me. Let's let this sit for a couple days in case anyone else wants to chime in. If there are no other ideas or objections then we can make the change mid-next week. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 17:43:36 2018 From: report at bugs.python.org (Jason Fried) Date: Thu, 14 Jun 2018 21:43:36 +0000 Subject: [issue33864] collections.abc.ByteString does not register memoryview Message-ID: <1529012616.87.0.947875510639.issue33864@psf.upfronthosting.co.za> New submission from Jason Fried : Looking at the typing Module docs in the section for ByteString This type represents the types bytes, bytearray, and memoryview. But collections.abc.ByteString does not have memoryview registered. Is it because memoryview doesn't support .index()? ---------- assignee: docs at python components: Documentation messages: 319557 nosy: docs at python, fried, lukasz.langa priority: normal severity: normal status: open title: collections.abc.ByteString does not register memoryview type: behavior versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 17:46:45 2018 From: report at bugs.python.org (Eric Snow) Date: Thu, 14 Jun 2018 21:46:45 +0000 Subject: [issue17045] Improve C-API doc for PyTypeObject In-Reply-To: <1359245485.06.0.557532055897.issue17045@psf.upfronthosting.co.za> Message-ID: <1529012805.18.0.947875510639.issue17045@psf.upfronthosting.co.za> Eric Snow added the comment: New changeset 9e7c92193cc98fd3c2d4751c87851460a33b9118 by Eric Snow in branch 'master': bpo-17045: Improve C-API doc for PyTypeObject. (gh-7413) https://github.com/python/cpython/commit/9e7c92193cc98fd3c2d4751c87851460a33b9118 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 17:47:00 2018 From: report at bugs.python.org (Eric Snow) Date: Thu, 14 Jun 2018 21:47:00 +0000 Subject: [issue17045] Improve C-API doc for PyTypeObject In-Reply-To: <1359245485.06.0.557532055897.issue17045@psf.upfronthosting.co.za> Message-ID: <1529012820.97.0.947875510639.issue17045@psf.upfronthosting.co.za> Change by Eric Snow : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 18:24:48 2018 From: report at bugs.python.org (Eric Snow) Date: Thu, 14 Jun 2018 22:24:48 +0000 Subject: [issue24553] improve test coverage for subinterpreters In-Reply-To: <1435883403.8.0.344718256458.issue24553@psf.upfronthosting.co.za> Message-ID: <1529015088.51.0.947875510639.issue24553@psf.upfronthosting.co.za> Eric Snow added the comment: Note that bpo-32604 is strongly related. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 18:25:04 2018 From: report at bugs.python.org (Eric Snow) Date: Thu, 14 Jun 2018 22:25:04 +0000 Subject: [issue32604] Expose the subinterpreters C-API in Python for testing use. In-Reply-To: <1516413482.13.0.467229070634.issue32604@psf.upfronthosting.co.za> Message-ID: <1529015104.39.0.947875510639.issue32604@psf.upfronthosting.co.za> Eric Snow added the comment: Also see #24553. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 18:35:54 2018 From: report at bugs.python.org (Eryk Sun) Date: Thu, 14 Jun 2018 22:35:54 +0000 Subject: [issue33721] os.path.exists() ought to return False if pathname contains NUL In-Reply-To: <1527787165.92.0.682650639539.issue33721@psf.upfronthosting.co.za> Message-ID: <1529015754.3.0.947875510639.issue33721@psf.upfronthosting.co.za> Eryk Sun added the comment: >> It has to be a ValueError since the error is an invalid >> parameter at the Python level. > > How does the first follow from the second? I only meant that, as an honest error, it has to be ValueError. I didn't think about raising a fake OSError. Note that I didn't say the ValueError shouldn't be ignored by os.path.exists (et al). In the spirit of the current function, it probably should be ignored. For example, it returns False for paths that exist but are inaccessible. > I don't believe there is any good reason for singling out NULs > for a different exception from other invalid file names > like ">" on NTFS. > > This ought to be an OSError for functions like os.stat and False > for os.path.exists, as Jython does. Python can't pass a string that contains NUL characters to POSIX and Windows APIs that use null-terminated strings. That would yield wildly unpredictable results. We need this to be a reliable error. So for the low-level file I/O functions to return an OSError here, it would have to be a bit of a lie (i.e. an 'OS' error without making a system call and without an `errno` and/or `winerror` value). Maybe it could raise an InvalidFilename subclass of OSError. This could even handle some actual OS errors such as POSIX ENAMETOOLONG and Windows ERROR_INVALID_NAME, ERROR_BAD_PATHNAME, and ERROR_FILENAME_EXCED_RANGE. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 18:50:48 2018 From: report at bugs.python.org (pacujo) Date: Thu, 14 Jun 2018 22:50:48 +0000 Subject: [issue33721] os.path.exists() ought to return False if pathname contains NUL In-Reply-To: <1529015754.3.0.947875510639.issue33721@psf.upfronthosting.co.za> (Eryk Sun's message of "Thu, 14 Jun 2018 22:35:54 +0000") Message-ID: <877en1nfsp.fsf@elektro.pacujo.net> pacujo added the comment: Eryk Sun: > I only meant that, as an honest error, it has to be ValueError. I didn't > think about raising a fake OSError. > > Note that I didn't say the ValueError shouldn't be ignored by > os.path.exists (et al). In the spirit of the current function, it > probably should be ignored. For example, it returns False for paths that > exist but are inaccessible. For the original complaint of mine, catching ValueError would work. I must say, though, that Steven's arguments for raising a fake OSError are very convincing. Steven D'Aprano: > Jython does this: > > >>> import os > >>> os.path.exists('/tmp/foo\0bar') > False > >>> os.stat('/tmp/foo\0bar') > Traceback (most recent call last): > File "", line 1, in > OSError: [Errno 2] No such file or directory: '/tmp/foo\x00bar' > > > As far as I am concerned, raising ValueError is simply a bug. The > documentation for the os module clearly states: > > All functions in this module raise OSError in the case of > invalid or inaccessible file names and paths, or other > arguments that have the correct type, but are not accepted > by the operating system. Now the question is not anymore if and how CPython should be fixed but if and how Jython should be fixed. IMO, Jython is doing the right thing. If that is not true, then Jython must be declared buggy. > Maybe it could raise an InvalidFilename subclass of OSError. This > could even handle some actual OS errors such as POSIX ENAMETOOLONG and > Windows ERROR_INVALID_NAME, ERROR_BAD_PATHNAME, and > ERROR_FILENAME_EXCED_RANGE. Maybe. You'll still need OSError.errno to hold a true error value. Marko ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 18:52:28 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Thu, 14 Jun 2018 22:52:28 +0000 Subject: [issue33860] doc Avoid "ordered dictionary" references now that dictionaries are ordered In-Reply-To: <1528989956.26.0.947875510639.issue33860@psf.upfronthosting.co.za> Message-ID: <1529016748.83.0.947875510639.issue33860@psf.upfronthosting.co.za> Andr?s Delfino added the comment: I believe the discussion in #33863 is relevant. Depending on what the API the user can rely on, perhaps "an ordered mapping" fits here too. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 19:15:17 2018 From: report at bugs.python.org (Ben Finney) Date: Thu, 14 Jun 2018 23:15:17 +0000 Subject: [issue14102] argparse: add ability to create a man page In-Reply-To: <1529006541.94.0.947875510639.issue14102@psf.upfronthosting.co.za> Message-ID: <1529018110.2252474.1408579256.6512E493@webmail.messagingengine.com> Ben Finney added the comment: On Thu, 2018-06-14 20:02 +0000, Pablo Galindo Salgado wrote: > The (possible) confusion is the existence of a manpage only available > though argparse (`./python foo.py --manpage`) This report isn't asking for that. (I see only one person proposing such an interface, and even that person said it's not a good idea.) So please don't conflate that with the original bug report. > I am not sure how many people do something like `./python poc_2.py > output > && man ./output` to **read** the manpage. Right, I am not asking for anything like that; I'm not asking that ?argparse? grow a way to read a manual page,. I am asking only for a standard way to programmatically generate that manual page from the information ?argparse? already knows. > >This is asking that the ?argparse? library should have an API to > >create a manual page, for use in the build system. > > At this point argparse is user facing in the sense that once configured, > it provides functionality for the user of the command line application. > My opinion is that it will be weird to have it provide also APIs for > creating man pages (which is a developer utility). Creating an argument parser itself is already a developer activity, and we don't see that as weird that ?argparse? allows for that. I'm arguing that the library already knows how to turn the argument collection into a user-facing document (the usage message), and a manual page is a different way of rendering that same internal data. So that's why ?argparse? is a consistent place to have that functionality. > My humble opinion is > that it if argparse starts to provide APIs for usage at install time is > not "doing one thing and doing it well". That API already exists: the specific ?ArgumentParser? is available to be imported for a program which defines one. So, the library already provides APIs for usage at install time (or any other run-time). I am asking to make that API more useful for the distribution of programs. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 19:19:00 2018 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Thu, 14 Jun 2018 23:19:00 +0000 Subject: [issue14102] argparse: add ability to create a man page In-Reply-To: <1330031760.56.0.8938390885.issue14102@psf.upfronthosting.co.za> Message-ID: <1529018340.81.0.947875510639.issue14102@psf.upfronthosting.co.za> ?ric Araujo added the comment: Thanks Ben for expressing exactly what this ticket is about and why the code would be in argparse. (The author of argparse and Raymond a senior core dev also agree that adding a man page formatter to argparse would be useful.) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 19:46:09 2018 From: report at bugs.python.org (Aaron Meurer) Date: Thu, 14 Jun 2018 23:46:09 +0000 Subject: [issue14102] argparse: add ability to create a man page In-Reply-To: <1330031760.56.0.8938390885.issue14102@psf.upfronthosting.co.za> Message-ID: <1529019969.28.0.947875510639.issue14102@psf.upfronthosting.co.za> Aaron Meurer added the comment: Couldn't such a tool exist outside the standard library. I'm thinking a function that you would import and wrap the parser object, similar to how argcomplete works (https://argcomplete.readthedocs.io/en/latest/index.html). The downside is that developers would have to opt-in for it to work (much like they currently have to opt-in to bash completion with things like argcomplete). But it would allow much more flexibility being outside the standard library. I completely agree that it should be done in Python either way. help2man is very limited in its flexibility (it doesn't help that it's written in Perl), and there are fundamental limits to what you can do from parsing the --help output, vs. just generating correct troff from the source. Installing the manpage is a separate concern. That would need to go in setuptools or distutils, if anywhere. But before you can worry about how to install it you need to be able to generate it in the first place. ---------- nosy: +asmeurer _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 19:52:41 2018 From: report at bugs.python.org (Ben Finney) Date: Thu, 14 Jun 2018 23:52:41 +0000 Subject: [issue14102] argparse: add ability to create a man page In-Reply-To: <1529019969.28.0.947875510639.issue14102@psf.upfronthosting.co.za> Message-ID: <1529020359.2261968.1408606208.0227851F@webmail.messagingengine.com> Ben Finney added the comment: On Thu, 2018-06-14 23:46 +0000, Aaron Meurer wrote: > Couldn't such a tool exist outside the standard library. I've tried writing such a tool. It would ideally re-use as much as feasible of the functionality that assembles the usage message. But that is hampered by the fact the usage message generation is not easily accessible from outside. I am hoping that, in order to re-use that functionality, a common set of ?take the argument collection as input, generate a document structure? functionality can be factored out for other use ? initially, for generating a manual page. So this bug report asks for that work to be done in the ?argparse? library. > Installing the manpage is a separate concern. Yes, I agree. That is not part of this bug report. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 19:59:05 2018 From: report at bugs.python.org (Aaron Meurer) Date: Thu, 14 Jun 2018 23:59:05 +0000 Subject: [issue14102] argparse: add ability to create a man page In-Reply-To: <1330031760.56.0.8938390885.issue14102@psf.upfronthosting.co.za> Message-ID: <1529020745.82.0.947875510639.issue14102@psf.upfronthosting.co.za> Aaron Meurer added the comment: I see. I haven't dug much into the argoarse source, so I don't have a good feel for how feasible such a tool would be to write. Such refactoring would also be useful for generating HTML or RST for the help. I've previously used help2man and man2html to generate html help, but both tools are very limited in what they can do. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 20:39:11 2018 From: report at bugs.python.org (Prawin Phichitnitikorn) Date: Fri, 15 Jun 2018 00:39:11 +0000 Subject: [issue33865] unknown encoding: 874 Message-ID: <1529023151.32.0.947875510639.issue33865@psf.upfronthosting.co.za> New submission from Prawin Phichitnitikorn : This Error " Current thread 0x0000238c (most recent call first): Fatal Python error: Py_Initialize: can?t initialize sys standard streams LookupError: unknown encoding: 874" is cause by mapping of 874 encodling is missing in encodings\aliases.py ---------- components: Unicode files: Capture.PNG messages: 319569 nosy: ezio.melotti, vstinner, winvinc priority: normal severity: normal status: open title: unknown encoding: 874 type: crash versions: Python 3.6 Added file: https://bugs.python.org/file47642/Capture.PNG _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 21:09:00 2018 From: report at bugs.python.org (Steven D'Aprano) Date: Fri, 15 Jun 2018 01:09:00 +0000 Subject: [issue33865] unknown encoding: 874 In-Reply-To: <1529023151.32.0.947875510639.issue33865@psf.upfronthosting.co.za> Message-ID: <1529024940.86.0.947875510639.issue33865@psf.upfronthosting.co.za> Steven D'Aprano added the comment: Please don't post screenshots of text, they make it difficult for the blind and visually impaired to contribute. Instead, please copy and paste the error message into the body of your bug report. (Which I see you have done, which makes the screenshot unnecessary.) Just reporting the error message alone is not very useful, we also should see the context of what you were doing when the error occurred. ---------- nosy: +steven.daprano _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 22:26:23 2018 From: report at bugs.python.org (INADA Naoki) Date: Fri, 15 Jun 2018 02:26:23 +0000 Subject: [issue33863] Enum doc correction relating to __members__ In-Reply-To: <1529006269.94.0.947875510639.issue33863@psf.upfronthosting.co.za> Message-ID: <1529029583.66.0.947875510639.issue33863@psf.upfronthosting.co.za> INADA Naoki added the comment: We use the word "dictionary" for "dict-like" or "maybe dict or it's subclass" many places. I don't feel it worth enough to change all wording about it. ---------- nosy: +inada.naoki _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 22:34:11 2018 From: report at bugs.python.org (INADA Naoki) Date: Fri, 15 Jun 2018 02:34:11 +0000 Subject: [issue33863] Enum doc correction relating to __members__ In-Reply-To: <1529006269.94.0.947875510639.issue33863@psf.upfronthosting.co.za> Message-ID: <1529030051.22.0.947875510639.issue33863@psf.upfronthosting.co.za> INADA Naoki added the comment: > What do you mean by "a generic dictionary"? If it's a dict-like object, then it *must* be ordered starting with 3.7. No. Even though dict is ordered, no guarantee about ordering of "dictionary". Glossary says: dictionary An associative array, where arbitrary keys are mapped to values. The keys can be any object with __hash__() and __eq__() methods. Called a hash in Perl. So there can be dict-like object without preserving insertion order. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 22:39:13 2018 From: report at bugs.python.org (INADA Naoki) Date: Fri, 15 Jun 2018 02:39:13 +0000 Subject: [issue33860] doc Avoid "ordered dictionary" references now that dictionaries are ordered In-Reply-To: <1528989956.26.0.947875510639.issue33860@psf.upfronthosting.co.za> Message-ID: <1529030353.65.0.947875510639.issue33860@psf.upfronthosting.co.za> INADA Naoki added the comment: > Please note that DictReader already mentions "OrderedDict" as a type it returns now. OK, but PR-7535 changes enum too. > but "dictionary" alone doesn't seem like a good weak name to me, as it's the common name of an actual type. As I commented in #33863, "dictionary" is really common weak name defined in glossary. dict ? dictionary ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 22:41:28 2018 From: report at bugs.python.org (Forest) Date: Fri, 15 Jun 2018 02:41:28 +0000 Subject: [issue27575] dict viewkeys intersection slow for large dicts In-Reply-To: <1468950707.74.0.640405379684.issue27575@psf.upfronthosting.co.za> Message-ID: <1529030488.27.0.947875510639.issue27575@psf.upfronthosting.co.za> Forest added the comment: Hi Raymond, I've created a PR here: https://github.com/python/cpython/pull/7696, and I've verified that there are tests for all the code paths. I reached out to Daniel Hsu and he has given his blessing to help push this forward. I think this is ready for your review. Please let me know if there's anything else I can do. Thanks, Forest ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 22:45:53 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Fri, 15 Jun 2018 02:45:53 +0000 Subject: [issue33863] Enum doc correction relating to __members__ In-Reply-To: <1529006269.94.0.947875510639.issue33863@psf.upfronthosting.co.za> Message-ID: <1529030753.7.0.947875510639.issue33863@psf.upfronthosting.co.za> Andr?s Delfino added the comment: IMHO, the Glossary is just a quick & dirty reference. I wouldn't search for hard definitions in there. See Built-in Types: "dictionary" is used specifically for dict. I believe we should make clear use of definitions so users known exactly what they get. I know there's a significant effort in reviewing and merging PRs; all I can say is that if the change is deemed reasonable, I can take the task of making this clear everywhere in the docs. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 22:47:04 2018 From: report at bugs.python.org (INADA Naoki) Date: Fri, 15 Jun 2018 02:47:04 +0000 Subject: [issue33866] Stop using OrderedDict in enum Message-ID: <1529030824.94.0.947875510639.issue33866@psf.upfronthosting.co.za> Change by INADA Naoki : ---------- components: Library (Lib) nosy: inada.naoki priority: normal severity: normal status: open title: Stop using OrderedDict in enum versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 22:49:15 2018 From: report at bugs.python.org (INADA Naoki) Date: Fri, 15 Jun 2018 02:49:15 +0000 Subject: [issue33866] Stop using OrderedDict in enum Message-ID: <1529030955.59.0.947875510639.issue33866@psf.upfronthosting.co.za> Change by INADA Naoki : ---------- keywords: +patch pull_requests: +7314 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 22:49:39 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Fri, 15 Jun 2018 02:49:39 +0000 Subject: [issue33863] Enum doc correction relating to __members__ In-Reply-To: <1529006269.94.0.947875510639.issue33863@psf.upfronthosting.co.za> Message-ID: <1529030979.36.0.947875510639.issue33863@psf.upfronthosting.co.za> Andr?s Delfino added the comment: To be a little more clear about this: I don't think one implements a dict-like object by reading the Glossary reference. At least, we shouldn't expect nor encourage this. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 22:52:05 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Fri, 15 Jun 2018 02:52:05 +0000 Subject: [issue33860] doc Avoid "ordered dictionary" references now that dictionaries are ordered In-Reply-To: <1528989956.26.0.947875510639.issue33860@psf.upfronthosting.co.za> Message-ID: <1529031125.78.0.947875510639.issue33860@psf.upfronthosting.co.za> Andr?s Delfino added the comment: Perhaps we can continue the discussion on #33863 as there are more argumnets there, from all points of view, and when a decision is taken there, we can apply it here too. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 22:56:37 2018 From: report at bugs.python.org (INADA Naoki) Date: Fri, 15 Jun 2018 02:56:37 +0000 Subject: [issue33863] Enum doc correction relating to __members__ In-Reply-To: <1529006269.94.0.947875510639.issue33863@psf.upfronthosting.co.za> Message-ID: <1529031397.78.0.947875510639.issue33863@psf.upfronthosting.co.za> INADA Naoki added the comment: I feel "dictionary" implies "most likely dict or it's subclass" too. But I don't think "ordered dictionary" is bad wording because: * Historically, dict didn't preserve insertion order. * Dict subclass can provide other ordering. So "ordered dictionary" implies "most likely dict or it's subclass, without customizing ordering". ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 23:29:51 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Fri, 15 Jun 2018 03:29:51 +0000 Subject: [issue33863] Enum doc correction relating to __members__ In-Reply-To: <1529006269.94.0.947875510639.issue33863@psf.upfronthosting.co.za> Message-ID: <1529033391.82.0.947875510639.issue33863@psf.upfronthosting.co.za> Andr?s Delfino added the comment: The problem here is that while the historical issue is real, new programmers will come and they won't see a "non-ordered" dict, and having this "dictionaries" vs "ordered dictionaries" that aren't actual OrderedDict objects (which have the common name "ordered dictionaries", though), will be really confusing for them. A dictionary (treated as a synonym for dict) can't have an order different than insertion order, because that is one of the guarantees a *dictionary* provides. If one needs to have an object with another sort of ordering, then we talk about a dict-like object, or a dict subclass; but IMHO "dictionary" alone should imply not only a very specific order, but a very specific type too: dict. A dict subclass with different ordering is nothing but that, not a dictionary with different ordering, that would imply one can setup the ordering method of a dict class. Plus, ordered dictionaries (OrderedDict objects) don't provide exactly the same API as dictionaries, so it gets tricky to use that term to also include dictionaries. It's quite reasonable to expect "ordered dictionaries" to be confused with "OrderedDict objects". Also, I feel somewhat uncomfortable about "most likely". It's fine to use weak names (dict-like, subclass of dict, mapping, etc.), but not knowing exactly what you can *rely on* (i.e. a required subset of whatever the implementation actually provides) from a given API is quite confusing. Notice that it doesn't have to be an actual type, but at least some sort of description of what is guaranteed (i.e. a mapping). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 23:34:11 2018 From: report at bugs.python.org (natedogith1) Date: Fri, 15 Jun 2018 03:34:11 +0000 Subject: [issue33867] Module dicts are wiped on module garbage collection Message-ID: <1529033651.78.0.947875510639.issue33867@psf.upfronthosting.co.za> New submission from natedogith1 : When a module is garbage collected, it fills it's __dict__ with None. issue19255 and issue18214 seem to suggest that this was fixed, along with github pull request 7140 (commit 196b0925ca55bf22ffbb97733cff3e63d4fb6e18). However, this still seems to be an issue in 2.7.14 and 3.6.2. >>> import sys >>> a = type(sys)('a') >>> b = a.__dict__ >>> b['__name__'] is None False >>> del a >>> b['__name__'] is None True ---------- components: Interpreter Core messages: 319581 nosy: natedogith1 priority: normal severity: normal status: open title: Module dicts are wiped on module garbage collection type: behavior versions: Python 2.7, Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jun 14 23:48:07 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Fri, 15 Jun 2018 03:48:07 +0000 Subject: [issue33863] Enum doc correction relating to __members__ In-Reply-To: <1529006269.94.0.947875510639.issue33863@psf.upfronthosting.co.za> Message-ID: <1529034487.25.0.947875510639.issue33863@psf.upfronthosting.co.za> Andr?s Delfino added the comment: Something I forgot: we shouldn't write documentation that expects the user *not* to know that dictionaries are ordered now. It's described in What's New and in Built-in Types. That's why "ordered dictionaries" seems so wrong to me. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 00:11:27 2018 From: report at bugs.python.org (INADA Naoki) Date: Fri, 15 Jun 2018 04:11:27 +0000 Subject: [issue33863] Enum doc correction relating to __members__ In-Reply-To: <1529006269.94.0.947875510639.issue33863@psf.upfronthosting.co.za> Message-ID: <1529035887.91.0.947875510639.issue33863@psf.upfronthosting.co.za> INADA Naoki added the comment: > A dictionary (treated as a synonym for dict) can't have an order different than insertion order, because that is one of the guarantees a *dictionary* provides. When subclassing dict and overrides `__iter__` etc., the subclass is dict (isinstance(subclass, dict) is True) and it have order different than insertion order. So when "dictionary" includes dict subclasses, it doesn't guarantee preserving insertion order. Exact ``dict`` and ``OrderedDict`` guarantee insertion order, but when saying "dictionary", it's not guaranteed. Anyway, word "dictionary" and "ordered dictionary" have vary meanings regarding to context. So talking about general rule doesn't worth enough to use time and energy to discuss. Let's focus on concrete cases. For enum, I created pull request to change OrderedDict to dict. (PR-7698) And for csv.DictReader, it uses OrderedDict already. So I don't against changing "ordered dictionary" to OrderedDict. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 00:33:10 2018 From: report at bugs.python.org (Jaysinh shukla) Date: Fri, 15 Jun 2018 04:33:10 +0000 Subject: [issue19102] Add tests for CLI of the tabnanny module In-Reply-To: <1380282068.15.0.580247887303.issue19102@psf.upfronthosting.co.za> Message-ID: <1529037190.29.0.947875510639.issue19102@psf.upfronthosting.co.za> Change by Jaysinh shukla : ---------- pull_requests: +7315 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 00:34:31 2018 From: report at bugs.python.org (Jaysinh shukla) Date: Fri, 15 Jun 2018 04:34:31 +0000 Subject: [issue19102] Add tests for CLI of the tabnanny module In-Reply-To: <1380282068.15.0.580247887303.issue19102@psf.upfronthosting.co.za> Message-ID: <1529037271.04.0.947875510639.issue19102@psf.upfronthosting.co.za> Jaysinh shukla added the comment: @vstinner I have created the PR here. I wasn't sure so linked the PR with this issue. Thanks! PR URL: https://github.com/python/cpython/pull/7699 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 00:59:40 2018 From: report at bugs.python.org (Pavel Raiskup) Date: Fri, 15 Jun 2018 04:59:40 +0000 Subject: [issue14102] argparse: add ability to create a man page In-Reply-To: <1529020359.2261968.1408606208.0227851F@webmail.messagingengine.com> Message-ID: <3648760.ABcb30h2UU@nb.usersys.redhat.com> Pavel Raiskup added the comment: On Friday, June 15, 2018 1:52:41 AM CEST Ben Finney wrote: > On Thu, 2018-06-14 23:46 +0000, Aaron Meurer wrote: > > Couldn't such a tool exist outside the standard library. > > I've tried writing such a tool. It would ideally re-use as much as feasible of > the functionality that assembles the usage message. FWIW, I followed you and andialbrecht's solution, and did some changes to the code (now the code is in PyPi as argparse-manpage). Feel free to take what's considered useful. > So this bug report asks for that work to be done in the ?argparse? library. Agreed. > > Installing the manpage is a separate concern. > > Yes, I agree. That is not part of this bug report. I think installation is valid concern; so it should be tracked somewhere. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 01:40:58 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jun 2018 05:40:58 +0000 Subject: [issue32839] Add after_info as a function to tkinter In-Reply-To: <1518529095.33.0.467229070634.issue32839@psf.upfronthosting.co.za> Message-ID: <1529041258.28.0.947875510639.issue32839@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Real use case for after_info() (with not arg): #33855 is about minimally testing all IDLE modules. At least import the module and create class instances when easily possible. For test_editor, I started with def test_init(self): # Temporary. e = Editor(root=self.root) self.assertEqual(e.root, self.root) and got in Shell warning: callback failed in WindowList : invalid command name ".!menu.windows" and in the console invalid command name "119640952recolorize" while executing "119640952recolorize" ("after" script) invalid command name "119872312timer_event" while executing "119872312timer_event" ("after" script) invalid command name "119872440config_timer_event" while executing "119872440config_timer_event" ("after" script) Perhaps this is why I previously omitted something so obvious (it add 24% to coverage). I added e._close(), which tries to cleanup, and the messages, in console only, are reduced to bgerror failed to handle background error. Original error: invalid command name "115211704timer_event" Error in bgerror: can't invoke "tk" command: application has been destroyed bgerror failed to handle background error. Original error: invalid command name "115211832config_timer_event" Error in bgerror: can't invoke "tk" command: application has been destroyed I would like to know what _close misses, but it is hard to track them down. print(self.root.tk.call('after', 'info')) after the close returned ('after#4', 'after#3', 'after#1', 'after#0'). Adding for id in cls.root.tk.call('after', 'info'): self.root.after_cancel(id) before cls.root.destroy() in shutDownClass stops the messages. -- For test_del in #32831, I think the following might work, and be much shorter than the current code. n = len(self.root.tk.call('after', 'info') self.cc.__del__() self.assertEqual(len(self.root.tk.call('after', 'info')), n-2) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 02:28:50 2018 From: report at bugs.python.org (Ethan Furman) Date: Fri, 15 Jun 2018 06:28:50 +0000 Subject: [issue33866] Stop using OrderedDict in enum Message-ID: <1529044130.16.0.947875510639.issue33866@psf.upfronthosting.co.za> Change by Ethan Furman : ---------- assignee: -> ethan.furman nosy: +barry, eli.bendersky, ethan.furman _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 02:55:10 2018 From: report at bugs.python.org (Ethan Furman) Date: Fri, 15 Jun 2018 06:55:10 +0000 Subject: [issue33860] doc Avoid "ordered dictionary" references now that dictionaries are ordered In-Reply-To: <1528989956.26.0.947875510639.issue33860@psf.upfronthosting.co.za> Message-ID: <1529045710.05.0.947875510639.issue33860@psf.upfronthosting.co.za> Ethan Furman added the comment: As I said on the PR: This feels like an unnecessary change. The phrase "ordered dictionary" does not always refer to an 'OrderedDict`, and there is more than one way to order a dictionary besides insertion order. As a side note: it's generally better to have different pull requests for different modules. ---------- nosy: +ethan.furman resolution: -> rejected stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 03:05:12 2018 From: report at bugs.python.org (Ethan Furman) Date: Fri, 15 Jun 2018 07:05:12 +0000 Subject: [issue33863] Enum doc correction relating to __members__ In-Reply-To: <1529006269.94.0.947875510639.issue33863@psf.upfronthosting.co.za> Message-ID: <1529046312.34.0.947875510639.issue33863@psf.upfronthosting.co.za> Ethan Furman added the comment: Closing as a duplicate of #33866. My apologies for the fractured discussion. At this point I'm going to leave/update the documentation using "an ordered dictionary". See #33866 for further discussion. ---------- assignee: -> ethan.furman resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> Stop using OrderedDict in enum _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 03:12:37 2018 From: report at bugs.python.org (Ronald Oussoren) Date: Fri, 15 Jun 2018 07:12:37 +0000 Subject: [issue33865] unknown encoding: 874 In-Reply-To: <1529023151.32.0.947875510639.issue33865@psf.upfronthosting.co.za> Message-ID: <1529046757.3.0.947875510639.issue33865@psf.upfronthosting.co.za> Ronald Oussoren added the comment: @stephen: Lib/encoding/aliases.py contains aliases for a (largish) number of encoding names, including both "cpXXXX" and "XXXX" for most windows code pages. For code page 874 only the name "cp874" can be used and not "874", which apparently causes problems. @Prawin: have you added an alias to aliases.py to check if adding an alias would fix the problem you're having? ---------- nosy: +ronaldoussoren _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 03:53:42 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 07:53:42 +0000 Subject: [issue33865] [EASY] Missing code page aliases: "unknown encoding: 874" In-Reply-To: <1529023151.32.0.947875510639.issue33865@psf.upfronthosting.co.za> Message-ID: <1529049222.35.0.947875510639.issue33865@psf.upfronthosting.co.za> STINNER Victor added the comment: It seems like the following code pages have a Python codec (Lib/encoding/cpXXX.py) but lack an alias in Lib/encodings/aliases.py: [720, 737, 856, 874, 875, 1006, 65001] Is someone volunteer to write a pull request for that? It should be easy. Example of a correct alias in Lib/encodings/aliases.py: # cp1252 codec '1252' : 'cp1252', 'windows_1252' : 'cp1252', ---------- keywords: +easy title: unknown encoding: 874 -> [EASY] Missing code page aliases: "unknown encoding: 874" _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 03:58:37 2018 From: report at bugs.python.org (Xiang Zhang) Date: Fri, 15 Jun 2018 07:58:37 +0000 Subject: [issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3 In-Reply-To: <1486355272.29.0.0894514518656.issue29456@psf.upfronthosting.co.za> Message-ID: <1529049517.14.0.947875510639.issue29456@psf.upfronthosting.co.za> Xiang Zhang added the comment: Sorry for the absence and late response. I just reviewed it and think it's ready. I think the change in the unicode standard is more like a bug in the implementation than an intentional change. It's mentioned in Unicode 3.0 the third character is out of bounds when TIndex <= 0 or TIndex >= TCount. We have a ucd_3_2_0 in unicodedata. I'll merge it after resolve the CI bot. ---------- versions: +Python 3.8 -Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 04:02:27 2018 From: report at bugs.python.org (Zackery Spytz) Date: Fri, 15 Jun 2018 08:02:27 +0000 Subject: [issue33032] Mention implicit cache in struct.Struct docs In-Reply-To: <1520551378.96.0.467229070634.issue33032@psf.upfronthosting.co.za> Message-ID: <1529049747.51.0.947875510639.issue33032@psf.upfronthosting.co.za> Change by Zackery Spytz : ---------- keywords: +patch pull_requests: +7316 stage: needs patch -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 04:03:42 2018 From: report at bugs.python.org (Zackery Spytz) Date: Fri, 15 Jun 2018 08:03:42 +0000 Subject: [issue33032] Mention implicit cache in struct.Struct docs In-Reply-To: <1520551378.96.0.467229070634.issue33032@psf.upfronthosting.co.za> Message-ID: <1529049822.83.0.947875510639.issue33032@psf.upfronthosting.co.za> Change by Zackery Spytz : ---------- nosy: +ZackerySpytz _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 04:05:18 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Fri, 15 Jun 2018 08:05:18 +0000 Subject: [issue33851] 3.7 regression: ast.get_docstring() for a node that lacks a docstring In-Reply-To: <1528889147.74.0.947875510639.issue33851@psf.upfronthosting.co.za> Message-ID: <1529049918.11.0.947875510639.issue33851@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: New changeset 08f127a3cad8ce4eb281d30d9488c91b0fd7cfed by Serhiy Storchaka in branch 'master': bpo-33851: Fix ast.get_docstring() for a node that lacks a docstring. (GH-7682) https://github.com/python/cpython/commit/08f127a3cad8ce4eb281d30d9488c91b0fd7cfed ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 04:05:38 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 08:05:38 +0000 Subject: [issue33851] 3.7 regression: ast.get_docstring() for a node that lacks a docstring In-Reply-To: <1528889147.74.0.947875510639.issue33851@psf.upfronthosting.co.za> Message-ID: <1529049938.57.0.947875510639.issue33851@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7317 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 04:09:46 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Fri, 15 Jun 2018 08:09:46 +0000 Subject: [issue33818] Make PyExceptionClass_Name returning a const string In-Reply-To: <1528612584.63.0.592728768989.issue33818@psf.upfronthosting.co.za> Message-ID: <1529050186.75.0.947875510639.issue33818@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: New changeset ceeef10cdbc08561f9954e13bbed1cb2299a8c72 by Serhiy Storchaka in branch 'master': bpo-33818: PyExceptionClass_Name() will now return "const char *". (GH-7581) https://github.com/python/cpython/commit/ceeef10cdbc08561f9954e13bbed1cb2299a8c72 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 04:10:50 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Fri, 15 Jun 2018 08:10:50 +0000 Subject: [issue33818] Make PyExceptionClass_Name returning a const string In-Reply-To: <1528612584.63.0.592728768989.issue33818@psf.upfronthosting.co.za> Message-ID: <1529050250.73.0.947875510639.issue33818@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 04:23:25 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Fri, 15 Jun 2018 08:23:25 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1529051005.94.0.947875510639.issue33630@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: As I wrote on GitHub, I think that it is better to use the list approach always for two reasons: 1) Additional #if's and duplications clutter the code. 2) It is hard to test the alternate branch if the other branch is used on most developer computers. It is better to have a single branch and add a comment that explains a workaround. It can be removed after platforms with buggy glibc versions will grow out of use. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 04:24:33 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Fri, 15 Jun 2018 08:24:33 +0000 Subject: [issue33851] 3.7 regression: ast.get_docstring() for a node that lacks a docstring In-Reply-To: <1528889147.74.0.947875510639.issue33851@psf.upfronthosting.co.za> Message-ID: <1529051073.3.0.947875510639.issue33851@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- assignee: -> ned.deily _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 04:25:21 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 08:25:21 +0000 Subject: [issue33851] 3.7 regression: ast.get_docstring() for a node that lacks a docstring In-Reply-To: <1528889147.74.0.947875510639.issue33851@psf.upfronthosting.co.za> Message-ID: <1529051121.82.0.947875510639.issue33851@psf.upfronthosting.co.za> miss-islington added the comment: New changeset a50b825c18a92655f3dd7939e793fa3d4440d886 by Miss Islington (bot) in branch '3.7': bpo-33851: Fix ast.get_docstring() for a node that lacks a docstring. (GH-7682) https://github.com/python/cpython/commit/a50b825c18a92655f3dd7939e793fa3d4440d886 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 04:33:14 2018 From: report at bugs.python.org (=?utf-8?b?0JDQu9C10LrRgdCw0L3QtNGAINCR0L7QvdC00LDRgNC10LI=?=) Date: Fri, 15 Jun 2018 08:33:14 +0000 Subject: [issue25815] Improper subprocess output of arguments with braces in them on windows In-Reply-To: <1449456600.09.0.498208325206.issue25815@psf.upfronthosting.co.za> Message-ID: <1529051594.21.0.947875510639.issue25815@psf.upfronthosting.co.za> ????????? ???????? added the comment: Can you please re-open this bug? I'm not agree that this a correct behavior. Usually we are using subprocess.check_output([..]) version to not aware about argument escaping and it works good for Linux. In example: > subprocess.check_output(['echo', "'hello'"]) "'hello'" But: > subprocess.check_output("echo 'hello'", shell=True) 'hello' I'm expecting same behavior on Windows system, but: > subprocess.check_output(['echo', "'hello'"]) 'hello' > subprocess.check_output("echo 'hello'", shell=True) 'hello' and > subprocess.check_output(['echo', "'@{u}'"]) '@{u}' > subprocess.check_output(['echo', "@{u}"]) '@u' and it even more confusing: > subprocess.check_output(['echo', " @{u}"]) ' @{u}' because if it detects some spaces in argument then it tries to quote this and it is correct behavior, but it should also care about other kind of characters to escape. We definitely should bring more love for Windows! ---------- nosy: +????????? ???????? _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 04:53:52 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 08:53:52 +0000 Subject: [issue33868] test__xxsubinterpreters: test_subinterpreter() fails randomly on AMD64 Ubuntu Shared 3.x Message-ID: <1529052832.87.0.947875510639.issue33868@psf.upfronthosting.co.za> New submission from STINNER Victor : AMD64 Ubuntu Shared 3.x: http://buildbot.python.org/all/#/builders/141/builds/98 Run tests in parallel using 2 child processes ... 0:21:40 load avg: 3.69 [352/417/1] test__xxsubinterpreters failed -- running: test_concurrent_futures (2 min 35 sec) ... ====================================================================== FAIL: test_subinterpreter (test.test__xxsubinterpreters.IsRunningTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/test__xxsubinterpreters.py", line 480, in test_subinterpreter self.assertTrue(interpreters.is_running(interp)) AssertionError: False is not true test__xxsubinterpreters passed when run again in verbose mode. ---------- assignee: eric.snow components: Tests messages: 319597 nosy: eric.snow, vstinner priority: normal severity: normal status: open title: test__xxsubinterpreters: test_subinterpreter() fails randomly on AMD64 Ubuntu Shared 3.x versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 04:59:07 2018 From: report at bugs.python.org (Xiang Zhang) Date: Fri, 15 Jun 2018 08:59:07 +0000 Subject: [issue33867] Module dicts are wiped on module garbage collection In-Reply-To: <1529033651.78.0.947875510639.issue33867@psf.upfronthosting.co.za> Message-ID: <1529053147.5.0.947875510639.issue33867@psf.upfronthosting.co.za> Change by Xiang Zhang : ---------- nosy: +pitrou _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 05:02:07 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 09:02:07 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1529051005.94.0.947875510639.issue33630@psf.upfronthosting.co.za> Message-ID: STINNER Victor added the comment: "It is better to have a single branch and add a comment that explains a workaround. It can be removed after platforms with buggy glibc versions will grow out of use." Recently, I proposed to drop support for old Linux kernels, but some people still use them and the code to support these kernels don't need a lot of maintenance. So we keep the code :-) https://mail.python.org/pipermail/python-dev/2018-January/151821.html ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 05:04:27 2018 From: report at bugs.python.org (Eryk Sun) Date: Fri, 15 Jun 2018 09:04:27 +0000 Subject: [issue25815] Improper subprocess output of arguments with braces in them on windows In-Reply-To: <1449456600.09.0.498208325206.issue25815@psf.upfronthosting.co.za> Message-ID: <1529053467.51.0.947875510639.issue25815@psf.upfronthosting.co.za> Eryk Sun added the comment: With a stock Windows system, `subprocess.check_output(['echo', "'hello'"])` fails because there is no "echo.exe". That's a 3rd party program that you installed. `subprocess.check_output("echo 'hello'", shell=True)` uses the CMD shell's internal `echo` command, which doesn't strip quotes from the string. subprocess.list2cmdline implements quoting that's meant for applications that use the VC++ [w]main argv array, or the CommandLineToArgvW WinAPI function. It can't take into account custom command-line parsing of all applications. If this echo.exe doesn't work right with an args list, then use a custom command line -- *without* shell=True. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 05:54:03 2018 From: report at bugs.python.org (Daniel Walsh) Date: Fri, 15 Jun 2018 09:54:03 +0000 Subject: [issue14102] argparse: add ability to create a man page In-Reply-To: <1529018110.2252474.1408579256.6512E493@webmail.messagingengine.com> Message-ID: <005ca94e-76c7-675d-7515-0e24d7ec8e4c@redhat.com> Daniel Walsh added the comment: On 06/14/2018 07:15 PM, Ben Finney wrote: > Ben Finney added the comment: > > On Thu, 2018-06-14 20:02 +0000, Pablo Galindo Salgado wrote: >> The (possible) confusion is the existence of a manpage only available >> though argparse (`./python foo.py --manpage`) > This report isn't asking for that. (I see only one person proposing such an interface, and even that person said it's not a good idea.) So please don't conflate that with the original bug report. > >> I am not sure how many people do something like `./python poc_2.py > output >> && man ./output` to **read** the manpage. > Right, I am not asking for anything like that; I'm not asking that ?argparse? grow a way to read a manual page,. I am asking only for a standard way to programmatically generate that manual page from the information ?argparse? already knows. > >>> This is asking that the ?argparse? library should have an API to >>> create a manual page, for use in the build system. >> At this point argparse is user facing in the sense that once configured, >> it provides functionality for the user of the command line application. >> My opinion is that it will be weird to have it provide also APIs for >> creating man pages (which is a developer utility). > Creating an argument parser itself is already a developer activity, and we don't see that as weird that ?argparse? allows for that. > > I'm arguing that the library already knows how to turn the argument collection into a user-facing document (the usage message), and a manual page is a different way of rendering that same internal data. So that's why ?argparse? is a consistent place to have that functionality. > >> My humble opinion is >> that it if argparse starts to provide APIs for usage at install time is >> not "doing one thing and doing it well". > That API already exists: the specific ?ArgumentParser? is available to be imported for a program which defines one. So, the library already provides APIs for usage at install time (or any other run-time). > > I am asking to make that API more useful for the distribution of programs. > > ---------- > > _______________________________________ > Python tracker > > _______________________________________ Correct, the reason I would want this is to add something to a Makefile to automatically generate a man page, when you do a make install manpages: foo.py ./python foo.py --manpage > foo.1 install.manpages: manpages install -D -m 644 foo.1 ${DESTDIR}/usr/share/man/man1 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 06:07:58 2018 From: report at bugs.python.org (Oz Tiram) Date: Fri, 15 Jun 2018 10:07:58 +0000 Subject: [issue14102] argparse: add ability to create a man page In-Reply-To: <1330031760.56.0.8938390885.issue14102@psf.upfronthosting.co.za> Message-ID: <1529057278.76.0.947875510639.issue14102@psf.upfronthosting.co.za> Oz Tiram added the comment: As already pointed out, it can get the parser somehow, you don't need an explicit extra option --man. That's the approach suggesed in: man-argparse and build_manpage.py attached here You can use it a make file like this: install: ./setup.py build_manpage ./setup.py install install -D -m 644 foo.1 ${DESTDIR}/usr/share/man/man1 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 06:41:52 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 10:41:52 +0000 Subject: [issue33625] Release GIL for grp.getgr{nam, gid} and pwd.getpw{nam, uid} In-Reply-To: <1527105781.7.0.682650639539.issue33625@psf.upfronthosting.co.za> Message-ID: <1529059312.1.0.947875510639.issue33625@psf.upfronthosting.co.za> STINNER Victor added the comment: More data to decide if the change should be backported or not: bpo-32186 (Release the GIL during lseek and fstat) has been backported to Python 2.7, but then cffi started to crash: https://bugzilla.redhat.com/show_bug.cgi?id=1561170#c28 At the end, it's a bug in cffi, there was a race condition in cffi. But still, the backport *indirectly* caused a crash. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 07:04:11 2018 From: report at bugs.python.org (Pavel Raiskup) Date: Fri, 15 Jun 2018 11:04:11 +0000 Subject: [issue14102] argparse: add ability to create a man page In-Reply-To: <005ca94e-76c7-675d-7515-0e24d7ec8e4c@redhat.com> Message-ID: <2818965.aAc8FIlAqX@nb.usersys.redhat.com> Pavel Raiskup added the comment: On Friday, June 15, 2018 11:54:04 AM CEST Daniel Walsh wrote: > Correct, the reason I would want this is to add something to a Makefile > ... > manpages: foo.py > ./python foo.py --manpage > foo.1 The /bin/argparse-manpage could help temporarily (if you don't mind the additional build-dep). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 07:05:09 2018 From: report at bugs.python.org (Josh Rosenberg) Date: Fri, 15 Jun 2018 11:05:09 +0000 Subject: [issue33864] collections.abc.ByteString does not register memoryview In-Reply-To: <1529012616.87.0.947875510639.issue33864@psf.upfronthosting.co.za> Message-ID: <1529060709.26.0.947875510639.issue33864@psf.upfronthosting.co.za> Josh Rosenberg added the comment: memoryview isn't just for bytes strings though; the format can make it a sequence of many types of different widths, meanings, etc. Calling it a BytesString would be misleading in many cases. ---------- nosy: +josh.r _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 07:07:27 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Fri, 15 Jun 2018 11:07:27 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1529060847.54.0.947875510639.issue33630@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: I have updated PR7685 to use the temporary list as per Serhiy comments. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 07:18:07 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Fri, 15 Jun 2018 11:18:07 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1529061487.26.0.947875510639.issue33630@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: As I commented on GitHub, it seems that the race in the test (problem covered in PR7663) disappears once the memory problem is fixed (PR33630). As is a race condition I am not sure that this affirmation is true, but running 3 test suites in parallel that executes test_posix 200 times does not raise any problem on the buildbot after applying the patch in PR33630 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 07:27:53 2018 From: report at bugs.python.org (Martin Panter) Date: Fri, 15 Jun 2018 11:27:53 +0000 Subject: [issue24415] SIGINT always reset to SIG_DFL by Py_Finalize() In-Reply-To: <1433853006.37.0.519208037884.issue24415@psf.upfronthosting.co.za> Message-ID: <1529062073.35.0.947875510639.issue24415@psf.upfronthosting.co.za> Martin Panter added the comment: It is worth checking if at least the first half of the report was fixed by Issue 30654 ---------- nosy: +martin.panter superseder: -> signal module always overwrites SIGINT on interpreter shutdown _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 08:03:16 2018 From: report at bugs.python.org (Xiang Zhang) Date: Fri, 15 Jun 2018 12:03:16 +0000 Subject: [issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3 In-Reply-To: <1486355272.29.0.0894514518656.issue29456@psf.upfronthosting.co.za> Message-ID: <1529064196.97.0.947875510639.issue29456@psf.upfronthosting.co.za> Xiang Zhang added the comment: New changeset d134809cd3764c6a634eab7bb8995e3e2eff14d5 by Xiang Zhang (Wonsup Yoon) in branch 'master': bpo-29456: Fix bugs in unicodedata.normalize: u1176, u11a7 and u11c3 (GH-1958) https://github.com/python/cpython/commit/d134809cd3764c6a634eab7bb8995e3e2eff14d5 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 08:03:37 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 12:03:37 +0000 Subject: [issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3 In-Reply-To: <1486355272.29.0.0894514518656.issue29456@psf.upfronthosting.co.za> Message-ID: <1529064217.83.0.947875510639.issue29456@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7318 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 08:04:26 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 12:04:26 +0000 Subject: [issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3 In-Reply-To: <1486355272.29.0.0894514518656.issue29456@psf.upfronthosting.co.za> Message-ID: <1529064266.37.0.947875510639.issue29456@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7319 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 08:21:57 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 12:21:57 +0000 Subject: [issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3 In-Reply-To: <1486355272.29.0.0894514518656.issue29456@psf.upfronthosting.co.za> Message-ID: <1529065317.71.0.947875510639.issue29456@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 0e2b76ea4e48d0fc1ca34ae4ffbb2fd6c19664bb by Miss Islington (bot) in branch '3.7': bpo-29456: Fix bugs in unicodedata.normalize: u1176, u11a7 and u11c3 (GH-1958) https://github.com/python/cpython/commit/0e2b76ea4e48d0fc1ca34ae4ffbb2fd6c19664bb ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 08:23:29 2018 From: report at bugs.python.org (Xiang Zhang) Date: Fri, 15 Jun 2018 12:23:29 +0000 Subject: [issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3 In-Reply-To: <1486355272.29.0.0894514518656.issue29456@psf.upfronthosting.co.za> Message-ID: <1529065409.08.0.947875510639.issue29456@psf.upfronthosting.co.za> Change by Xiang Zhang : ---------- pull_requests: +7320 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 08:28:43 2018 From: report at bugs.python.org (Karthikeyan Singaravelan) Date: Fri, 15 Jun 2018 12:28:43 +0000 Subject: [issue33865] [EASY] Missing code page aliases: "unknown encoding: 874" In-Reply-To: <1529023151.32.0.947875510639.issue33865@psf.upfronthosting.co.za> Message-ID: <1529065723.27.0.947875510639.issue33865@psf.upfronthosting.co.za> Change by Karthikeyan Singaravelan : ---------- keywords: +patch pull_requests: +7321 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 08:32:53 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 12:32:53 +0000 Subject: [issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3 In-Reply-To: <1486355272.29.0.0894514518656.issue29456@psf.upfronthosting.co.za> Message-ID: <1529065973.16.0.947875510639.issue29456@psf.upfronthosting.co.za> miss-islington added the comment: New changeset e2e7ff0d0378ba44f10a1aae10e4bee957fb44d2 by Miss Islington (bot) in branch '3.6': bpo-29456: Fix bugs in unicodedata.normalize: u1176, u11a7 and u11c3 (GH-1958) https://github.com/python/cpython/commit/e2e7ff0d0378ba44f10a1aae10e4bee957fb44d2 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 08:33:09 2018 From: report at bugs.python.org (Karthikeyan Singaravelan) Date: Fri, 15 Jun 2018 12:33:09 +0000 Subject: [issue33865] [EASY] Missing code page aliases: "unknown encoding: 874" In-Reply-To: <1529023151.32.0.947875510639.issue33865@psf.upfronthosting.co.za> Message-ID: <1529065989.53.0.947875510639.issue33865@psf.upfronthosting.co.za> Karthikeyan Singaravelan added the comment: I have added the aliases as per comment by @vstinner https://bugs.python.org/msg319590 . I have used https://docs.python.org/3.8/library/codecs.html#standard-encodings as a reference to see if there are any additional aliases to add with respect to the second column. I am a beginner in contributing to cpython and hence please let me know if I have missed something or any way to test this. PR : https://github.com/python/cpython/pull/7705 Thanks ---------- nosy: +xtreak _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 08:44:55 2018 From: report at bugs.python.org (Ronald Oussoren) Date: Fri, 15 Jun 2018 12:44:55 +0000 Subject: [issue33865] [EASY] Missing code page aliases: "unknown encoding: 874" In-Reply-To: <1529023151.32.0.947875510639.issue33865@psf.upfronthosting.co.za> Message-ID: <1529066695.92.0.947875510639.issue33865@psf.upfronthosting.co.za> Ronald Oussoren added the comment: Could you also add a documentation update and a news entry? The section on standard encodings mentions aliases for standard encodings, and IMHO the new aliases should be added to that page. Creating a new entry is described here: https://devguide.python.org/committing/?highlight=blurb#what-s-new-and-news-entries ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 09:12:20 2018 From: report at bugs.python.org (Karthikeyan Singaravelan) Date: Fri, 15 Jun 2018 13:12:20 +0000 Subject: [issue33865] [EASY] Missing code page aliases: "unknown encoding: 874" In-Reply-To: <1529023151.32.0.947875510639.issue33865@psf.upfronthosting.co.za> Message-ID: <1529068340.04.0.947875510639.issue33865@psf.upfronthosting.co.za> Karthikeyan Singaravelan added the comment: Thanks @ronaldoussoren for the links. I have added an entry using blurb tool and updated the docs at Doc/library/codecs.rst with relevant aliases. Thanks ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 09:12:37 2018 From: report at bugs.python.org (Marcel Plch) Date: Fri, 15 Jun 2018 13:12:37 +0000 Subject: [issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO In-Reply-To: <1494519392.85.0.668925519236.issue30345@psf.upfronthosting.co.za> Message-ID: <1529068357.48.0.947875510639.issue30345@psf.upfronthosting.co.za> Marcel Plch added the comment: LTO may break the debug symbols and make GDB unusable. There is an option, that fixes the issue: to use a -g switch in link flags. Note that this slows loading of the debug symbols significantly. I suggest these options as possible approaches: 1) make the configure script include -g in LDFLAGS when --enable-optimizations and --with-lto are used 2) same as 1), but only when --with-pydebug is also used. 3) document this problem and make the user aware that this possible fix (-g in link flags) exists ---------- nosy: +Dormouse759 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 09:26:57 2018 From: report at bugs.python.org (Xiang Zhang) Date: Fri, 15 Jun 2018 13:26:57 +0000 Subject: [issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3 In-Reply-To: <1486355272.29.0.0894514518656.issue29456@psf.upfronthosting.co.za> Message-ID: <1529069217.96.0.947875510639.issue29456@psf.upfronthosting.co.za> Xiang Zhang added the comment: New changeset 1889c4cbd62e200fa4cde3d6219e0aadf9bd8149 by Xiang Zhang in branch '2.7': bpo-29456: Fix bugs in unicodedata.normalize: u1176, u11a7 and u11c3 (GH-1958) (GH-7704) https://github.com/python/cpython/commit/1889c4cbd62e200fa4cde3d6219e0aadf9bd8149 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 09:28:49 2018 From: report at bugs.python.org (Xiang Zhang) Date: Fri, 15 Jun 2018 13:28:49 +0000 Subject: [issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3 In-Reply-To: <1486355272.29.0.0894514518656.issue29456@psf.upfronthosting.co.za> Message-ID: <1529069329.42.0.947875510639.issue29456@psf.upfronthosting.co.za> Change by Xiang Zhang : ---------- components: +Library (Lib) -Unicode resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 10:27:50 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 14:27:50 +0000 Subject: [issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO In-Reply-To: <1494519392.85.0.668925519236.issue30345@psf.upfronthosting.co.za> Message-ID: <1529072870.49.0.947875510639.issue30345@psf.upfronthosting.co.za> STINNER Victor added the comment: > - ["Python Exception Variable 'func_obj' not found.: ", bpo-32962: My commit 019d33b7a447e78057842332fb5d3bad01922122 "python-gdb catchs ValueError on read_var()" (PR 7692) catches this ValueError. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 10:30:05 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Fri, 15 Jun 2018 14:30:05 +0000 Subject: [issue33865] [EASY] Missing code page aliases: "unknown encoding: 874" In-Reply-To: <1529023151.32.0.947875510639.issue33865@psf.upfronthosting.co.za> Message-ID: <1529073005.76.0.947875510639.issue33865@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Why only these code pages? There are other cpXXXX encodings that don't have the XXXX alias. Maybe add a logic in encodings.search_function() that will map XXXX to cpXXXX if it is all digits? Maybe even map ibmXXXX and windows_XXXX to cpXXXX, but this will create false aliases like ibm1252 and windows_437. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 10:40:01 2018 From: report at bugs.python.org (Marcel Plch) Date: Fri, 15 Jun 2018 14:40:01 +0000 Subject: [issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO In-Reply-To: <1494519392.85.0.668925519236.issue30345@psf.upfronthosting.co.za> Message-ID: <1529073601.85.0.947875510639.issue30345@psf.upfronthosting.co.za> Marcel Plch added the comment: Yes, but that is not a fix really in this case. While it makes the test pass because it 'correctly' prints out unknown objects, it makes no real difference when actually debugging. The -g switch at link time makes the debug symbols readable and user is able to debug just as usual. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 10:43:21 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Fri, 15 Jun 2018 14:43:21 +0000 Subject: [issue33869] doc Add set, frozen set, and tuple entries to Glossary Message-ID: <1529073801.77.0.947875510639.issue33869@psf.upfronthosting.co.za> New submission from Andr?s Delfino : PR adds entries for these three terms and a link to the list definition. ---------- assignee: docs at python components: Documentation messages: 319619 nosy: adelfino, docs at python priority: normal severity: normal status: open title: doc Add set, frozen set, and tuple entries to Glossary type: enhancement versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 10:44:51 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Fri, 15 Jun 2018 14:44:51 +0000 Subject: [issue33869] doc Add set, frozen set, and tuple entries to Glossary In-Reply-To: <1529073801.77.0.947875510639.issue33869@psf.upfronthosting.co.za> Message-ID: <1529073891.08.0.947875510639.issue33869@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- keywords: +patch pull_requests: +7322 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 10:48:16 2018 From: report at bugs.python.org (Eric Snow) Date: Fri, 15 Jun 2018 14:48:16 +0000 Subject: [issue33868] test__xxsubinterpreters: test_subinterpreter() fails randomly on AMD64 Ubuntu Shared 3.x In-Reply-To: <1529052832.87.0.947875510639.issue33868@psf.upfronthosting.co.za> Message-ID: <1529074096.16.0.947875510639.issue33868@psf.upfronthosting.co.za> Eric Snow added the comment: I'll take a look. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 10:52:00 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 14:52:00 +0000 Subject: [issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO In-Reply-To: <1494519392.85.0.668925519236.issue30345@psf.upfronthosting.co.za> Message-ID: <1529074320.13.0.947875510639.issue30345@psf.upfronthosting.co.za> STINNER Victor added the comment: I tested on the current master: git clean -fdx ./configure --with-lto --enable-optimizations sed -i -e 's/^PROFILE_TASK=.*/PROFILE_TASK=-c pass/' Makefile make 2>&1|tee log Python is compiled twice: * (1) gcc -DNDEBUG -g -O3 -flto -fprofile-generate (...) * (2) gcc -DNDEBUG -g -O3 -flto -fprofile-use (...) I see -g in both compilation steps. It seems like debug symbols are still here: vstinner at apu$ file ./python ./python: ELF 64-bit LSB executable, x86-64, (...), with debug_info, not stripped But I confirm that test_gdb fails when using LTO+PGO. gdb seems to be to read any C function argument: $ gdb -args ./python Lib/test/gdb_sample.py (gdb) b builtin_id (gdb) run Breakpoint 1, 0x0000000000518da0 in builtin_id () (gdb) py-bt Traceback (most recent call first): (unable to read python frame information) (unable to read python frame information) (unable to read python frame information) (unable to read python frame information) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 11:20:11 2018 From: report at bugs.python.org (Philip Rowlands) Date: Fri, 15 Jun 2018 15:20:11 +0000 Subject: [issue33870] pdb continue + breakpoint Message-ID: <1529076011.32.0.947875510639.issue33870@psf.upfronthosting.co.za> New submission from Philip Rowlands : Please extend pdb's continue to support an optional argument, identical to break. When debugging I frequently want to quickly run to a certain line number then break. Rather than break / continue / clear (or tbreak / continue), it would be handy to type (Pdb) cont 99 to run to line 99 as a one-off breakpoint. ---------- messages: 319622 nosy: philiprowlands priority: normal severity: normal status: open title: pdb continue + breakpoint type: enhancement _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 11:25:31 2018 From: report at bugs.python.org (Marcel Plch) Date: Fri, 15 Jun 2018 15:25:31 +0000 Subject: [issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO In-Reply-To: <1494519392.85.0.668925519236.issue30345@psf.upfronthosting.co.za> Message-ID: <1529076331.55.0.947875510639.issue30345@psf.upfronthosting.co.za> Marcel Plch added the comment: Those -g switches you see there are during compile-time. For this to work, you need to enable it also during link/time: ./configure --enable-optimizations --with-lto LDFLAGS="-g" Except for py-bt, you should also try bt. With this link flag enabled, I can observe significant slowdown on my machine during the backtrace when using bt command (At least when I let the PGO do all the profiling, when compiled with the sed edit you posted here, I observe none). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 11:26:30 2018 From: report at bugs.python.org (Marcel Plch) Date: Fri, 15 Jun 2018 15:26:30 +0000 Subject: [issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO In-Reply-To: <1494519392.85.0.668925519236.issue30345@psf.upfronthosting.co.za> Message-ID: <1529076390.93.0.947875510639.issue30345@psf.upfronthosting.co.za> Change by Marcel Plch : ---------- nosy: +petr.viktorin _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 11:29:10 2018 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Fri, 15 Jun 2018 15:29:10 +0000 Subject: [issue32295] User friendly message when invoking bdist_wheel sans wheel package. In-Reply-To: <1513118394.49.0.213398074469.issue32295@psf.upfronthosting.co.za> Message-ID: <1529076550.21.0.947875510639.issue32295@psf.upfronthosting.co.za> Change by ?ric Araujo : ---------- stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 11:56:26 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 15:56:26 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1529078186.52.0.947875510639.issue32962@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 9b7c74ca32d1bec7128d550a9ab1b2ddc7046287 by Victor Stinner (Marcel Plch) in branch 'master': bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (#6754) https://github.com/python/cpython/commit/9b7c74ca32d1bec7128d550a9ab1b2ddc7046287 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 12:19:22 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 16:19:22 +0000 Subject: [issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO In-Reply-To: <1494519392.85.0.668925519236.issue30345@psf.upfronthosting.co.za> Message-ID: <1529079562.73.0.947875510639.issue30345@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- keywords: +patch pull_requests: +7323 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 12:21:16 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 16:21:16 +0000 Subject: [issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO In-Reply-To: <1494519392.85.0.668925519236.issue30345@psf.upfronthosting.co.za> Message-ID: <1529079676.64.0.947875510639.issue30345@psf.upfronthosting.co.za> STINNER Victor added the comment: > Except for py-bt, you should also try bt. Oh. Using PGO+LTO but without LDFLAGS=-g, bt only shows me function names: all arguments are missing. I tested with LDFLAGS=-g: py-bt and bt work as expected, and test_gdb pass. I created PR 7709 to always compile Python with LDFLAGS=-g. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 12:30:00 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 16:30:00 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1529080200.65.0.947875510639.issue32962@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7324 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 13:11:54 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 17:11:54 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1529082714.63.0.947875510639.issue32962@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset ca4cb8492c643d1fcac2c5b749595ad5377673ab by Victor Stinner in branch '3.7': [3.7] bpo-32962: Backport python-gdb.py and test_gdb.py from master (GH-7710) https://github.com/python/cpython/commit/ca4cb8492c643d1fcac2c5b749595ad5377673ab ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 13:16:13 2018 From: report at bugs.python.org (Jakub Wilk) Date: Fri, 15 Jun 2018 17:16:13 +0000 Subject: [issue33824] Settign LANG=C modifies the --version behavior In-Reply-To: <1528659337.7.0.592728768989.issue33824@psf.upfronthosting.co.za> Message-ID: <1529082973.25.0.947875510639.issue33824@psf.upfronthosting.co.za> Jakub Wilk added the comment: First bad commit is: 9454060e84a669dde63824d9e2fcaf295e34f687 (bpo-29240, bpo-32030: Py_Main() re-reads config if encoding changes) ---------- nosy: +jwilk, vstinner _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 13:27:52 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 17:27:52 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1529083672.92.0.947875510639.issue32962@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7325 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 13:35:21 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jun 2018 17:35:21 +0000 Subject: [issue33823] A BUG in concurrent/asyncio In-Reply-To: <1528653917.32.0.592728768989.issue33823@psf.upfronthosting.co.za> Message-ID: <1529084121.06.0.947875510639.issue33823@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- Removed message: https://bugs.python.org/msg319278 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 13:38:44 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jun 2018 17:38:44 +0000 Subject: [issue33823] A BUG in concurrent/asyncio In-Reply-To: <1528653917.32.0.592728768989.issue33823@psf.upfronthosting.co.za> Message-ID: <1529084324.17.0.947875510639.issue33823@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Python++, when you respond by email, rather than on the web form, delete the message you are responding to. It is already present on the web page and should not be repeated. I unlinked msg319278 because it uselessly repeats the same message that it responds to. ---------- nosy: +terry.reedy _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 13:41:15 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 17:41:15 +0000 Subject: [issue33824] Settign LANG=C modifies the --version behavior In-Reply-To: <1528659337.7.0.592728768989.issue33824@psf.upfronthosting.co.za> Message-ID: <1529084475.31.0.947875510639.issue33824@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- keywords: +patch pull_requests: +7326 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 13:41:15 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 17:41:15 +0000 Subject: [issue32030] PEP 432: Rewrite Py_Main() In-Reply-To: <1510709424.02.0.213398074469.issue32030@psf.upfronthosting.co.za> Message-ID: <1529084475.44.0.781164650231.issue32030@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7327 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 13:42:20 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 17:42:20 +0000 Subject: [issue33824] Settign LANG=C modifies the --version behavior In-Reply-To: <1528659337.7.0.592728768989.issue33824@psf.upfronthosting.co.za> Message-ID: <1529084540.82.0.947875510639.issue33824@psf.upfronthosting.co.za> STINNER Victor added the comment: The bug is a regression caused by the PEP 540 (UTF-8 Mode) and my work to rewrite Py_Main(). My PR 7712 fixes the bug. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 13:44:03 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 17:44:03 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1529084643.42.0.947875510639.issue32962@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 5279759f52cc5397acfb04351b34feea862864de by Victor Stinner in branch '3.6': bpo-32962: Backport python-gdb.py and test_gdb.py from master (GH-7710) (GH-7711) https://github.com/python/cpython/commit/5279759f52cc5397acfb04351b34feea862864de ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 13:50:07 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jun 2018 17:50:07 +0000 Subject: [issue33832] Make "magic methods" a little more discoverable in the docs In-Reply-To: <1528718191.62.0.592728768989.issue33832@psf.upfronthosting.co.za> Message-ID: <1529085007.28.0.947875510639.issue33832@psf.upfronthosting.co.za> Terry J. Reedy added the comment: It is unclear what problem this issue is meant to serve. If the reference manual uses 'magic method', I think it should be changed. Special method names are obvious by their form and need not and should not be labelled. I think doc policy issues should be discussed on pydev or python-ideas lists. ---------- nosy: +terry.reedy _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 14:05:26 2018 From: report at bugs.python.org (Brett Cannon) Date: Fri, 15 Jun 2018 18:05:26 +0000 Subject: [issue4948] Make heapq work with all mutable sequences In-Reply-To: <1231951228.13.0.336987683355.issue4948@psf.upfronthosting.co.za> Message-ID: <1529085926.05.0.947875510639.issue4948@psf.upfronthosting.co.za> Brett Cannon added the comment: FYI I had a teacher reach out to me who wanted to use heapq as an example of functions-based API that worked without resorting to OOP but ran into this issue of heapq being limited to lists. ---------- nosy: +brett.cannon _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 14:08:18 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jun 2018 18:08:18 +0000 Subject: [issue33847] doc: Add '@' operator entry to index In-Reply-To: <1528829054.17.0.947875510639.issue33847@psf.upfronthosting.co.za> Message-ID: <1529086098.2.0.947875510639.issue33847@psf.upfronthosting.co.za> Terry J. Reedy added the comment: This is definitely an oversight to be corrected. Index entries for the other binary arithmetic operators point to the table at https://docs.python.org/3/library/stdtypes.html#numeric-types-int-float-complex But @ is not in that table since number @ number is meaningless and invalid. So I agree that the best location is the sentence in https://docs.python.org/3/reference/expressions.html#binary-arithmetic-operations. ---------- assignee: docs at python -> terry.reedy nosy: +terry.reedy _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 14:12:57 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Fri, 15 Jun 2018 18:12:57 +0000 Subject: [issue33832] Make "magic methods" a little more discoverable in the docs In-Reply-To: <1528718191.62.0.592728768989.issue33832@psf.upfronthosting.co.za> Message-ID: <1529086377.31.0.579493977442.issue33832@psf.upfronthosting.co.za> Andr?s Delfino added the comment: The original intention of the PR, as shown in this issue, was to add "magic method" in the Glossary as a synonym for "special method", and add "magic method" in Data model (so that people reading Data Model would understand what a "magic method" is). Then I was requested some changes, and stated I wasn't sure about them. I don't believe special methods should be explicitly declared in each mention. The "problem" this PR intended to "solve" was to let people know what a "magic method" is, because as I see it, it has become pretty standard to use "special method" with no indication that it is a synonym of "magic method". ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 14:13:26 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Fri, 15 Jun 2018 18:13:26 +0000 Subject: [issue33832] Make "magic methods" a little more discoverable in the docs In-Reply-To: <1528718191.62.0.592728768989.issue33832@psf.upfronthosting.co.za> Message-ID: <1529086406.12.0.579493977442.issue33832@psf.upfronthosting.co.za> Andr?s Delfino added the comment: I'll update the PR so that it shows what the original intention was. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 14:14:37 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Fri, 15 Jun 2018 18:14:37 +0000 Subject: [issue33871] Possible integer overflow in iov_setup() Message-ID: <1529086477.01.0.579493977442.issue33871@psf.upfronthosting.co.za> New submission from Serhiy Storchaka : The iov_setup() helper in posixmodule.c returns the total size of all buffers. But there is possible an integer overflow because the sequence of buffers can contain the same buffer repeated multiple times. On 32-bit platform: >>> import os >>> f = open('/tmp/temp', 'wb') >>> os.writev(f.fileno(), [b'x' * 2**16] * 2**15) -1 Since the overflowed sum is negative, os_writev_impl() returns -1 as a signal of error, but since the exception is not set, -1 is returned as the result of os.writev(). If the overflowed sum is not negative, the sequence of buffers is passed to OS and an OSError is raised: >>> os.writev(f.fileno(), [b'x' * 2**16] * 2**16) Traceback (most recent call last): File "", line 1, in OSError: [Errno 22] Invalid argument I have not tested (because have not installed corresponding 32-bit OSes, and it is harder to reproduce on 64-bit), but seems this can even cause a crash in os.sendfile() on FreeBSD, DragonFly BSD and Mac OS. This sum is used only in os.sendfile() on Mac OS. In all other cases it is enough to return just an error flag. I can't find the documentation for os.sendfile() on Mac OS for checking if this value actually is needed. ---------- components: Library (Lib) messages: 319636 nosy: ned.deily, ronaldoussoren, serhiy.storchaka priority: normal severity: normal status: open title: Possible integer overflow in iov_setup() type: crash versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 14:24:30 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jun 2018 18:24:30 +0000 Subject: [issue33852] doc Remove parentheses from sequence subscription description In-Reply-To: <1528895542.1.0.947875510639.issue33852@psf.upfronthosting.co.za> Message-ID: <1529087070.42.0.69318462047.issue33852@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset 4fddd4e4069aad9efad999d8d9ce3cd9fb523a5c by Terry Jan Reedy (Andr?s Delfino) in branch 'master': bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672) https://github.com/python/cpython/commit/4fddd4e4069aad9efad999d8d9ce3cd9fb523a5c ---------- nosy: +terry.reedy _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 14:25:44 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 18:25:44 +0000 Subject: [issue33852] doc Remove parentheses from sequence subscription description In-Reply-To: <1528895542.1.0.947875510639.issue33852@psf.upfronthosting.co.za> Message-ID: <1529087144.53.0.69318462047.issue33852@psf.upfronthosting.co.za> Change by miss-islington : ---------- keywords: +patch pull_requests: +7328 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 14:27:38 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 18:27:38 +0000 Subject: [issue33852] doc Remove parentheses from sequence subscription description In-Reply-To: <1528895542.1.0.947875510639.issue33852@psf.upfronthosting.co.za> Message-ID: <1529087258.05.0.56676864532.issue33852@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7329 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 14:28:17 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Fri, 15 Jun 2018 18:28:17 +0000 Subject: [issue33832] Make "magic methods" a little more discoverable in the docs In-Reply-To: <1528718191.62.0.592728768989.issue33832@psf.upfronthosting.co.za> Message-ID: <1529087297.48.0.56676864532.issue33832@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: Just for clarification. My question in the PR was: >I think these are not the only occurrences of method referring to a >magic method. A quick grep reveals that there are more places where the >construction the __something__ method happens. Should we change these > too to __something__ special method? This is because I was not sure if the intention of the PR was changing these everywhere or not. Sorry if that was interpreted as a change request. :S ---------- nosy: +pablogsal _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 14:30:51 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Fri, 15 Jun 2018 18:30:51 +0000 Subject: [issue33832] Make "magic methods" a little more discoverable in the docs In-Reply-To: <1528718191.62.0.592728768989.issue33832@psf.upfronthosting.co.za> Message-ID: <1529087451.13.0.56676864532.issue33832@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- nosy: +rhettinger _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 14:34:17 2018 From: report at bugs.python.org (Fred L. Drake, Jr.) Date: Fri, 15 Jun 2018 18:34:17 +0000 Subject: [issue33832] Make "magic methods" a little more discoverable in the docs In-Reply-To: <1528718191.62.0.592728768989.issue33832@psf.upfronthosting.co.za> Message-ID: <1529087657.48.0.56676864532.issue33832@psf.upfronthosting.co.za> Fred L. Drake, Jr. added the comment: A quick grep on the 3.7 branch indicates that the standard documentation includes each of the terms "magic method" and "special method" about the same number of times. (I didn't check for instances that wrapped lines.) Perhaps we should decide on just one of these terms and fix references that use the other. I agree this can be a source of confusion, but having two terms for the same concept is a bug. I don't think we need to change references to "the __something__ method", because those are specific. We only need to decide on and consistently use the categorical term for these methods when referring to the entire category. ---------- nosy: +fdrake -pablogsal, rhettinger _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 14:40:40 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Fri, 15 Jun 2018 18:40:40 +0000 Subject: [issue33832] Make "magic methods" a little more discoverable in the docs In-Reply-To: <1528718191.62.0.592728768989.issue33832@psf.upfronthosting.co.za> Message-ID: <1529088040.35.0.56676864532.issue33832@psf.upfronthosting.co.za> Andr?s Delfino added the comment: Terry: I have updated the PR with the original intention. You'll see it is much simpler. Pablo: Don't worry! I take it as a mistake of my own. Fred: I believe synonyms aren't the best things to have, but, if used consistently, they don't pose a real problem. Plus, they are so common, that most probably "magic" will reappear. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 14:41:08 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Fri, 15 Jun 2018 18:41:08 +0000 Subject: [issue33861] Minor improvements of tests for os.path. In-Reply-To: <1528995572.61.0.947875510639.issue33861@psf.upfronthosting.co.za> Message-ID: <1529088068.84.0.56676864532.issue33861@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- keywords: +patch pull_requests: +7330 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 14:42:22 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Fri, 15 Jun 2018 18:42:22 +0000 Subject: [issue33871] Possible integer overflow in iov_setup() In-Reply-To: <1529086477.01.0.579493977442.issue33871@psf.upfronthosting.co.za> Message-ID: <1529088142.93.0.56676864532.issue33871@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: I can reproduce the issue on a i686 GNU/Linux Debian system: >>> import os >>> f = open('/tmp/temp', 'wb') >>> l = os.writev(f.fileno(), [b'x' * 2**16] * 2**15) Traceback (most recent call last): File "", line 1, in SystemError: error return without exception set ---------- nosy: +pablogsal _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 14:43:48 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Fri, 15 Jun 2018 18:43:48 +0000 Subject: [issue33832] Make "magic methods" a little more discoverable in the docs In-Reply-To: <1528718191.62.0.592728768989.issue33832@psf.upfronthosting.co.za> Message-ID: <1529088228.27.0.56676864532.issue33832@psf.upfronthosting.co.za> Andr?s Delfino added the comment: For context, I opened this issue after Raymond's reasoning in #33825 (which I agreed with). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 14:45:42 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 18:45:42 +0000 Subject: [issue33852] doc Remove parentheses from sequence subscription description In-Reply-To: <1528895542.1.0.947875510639.issue33852@psf.upfronthosting.co.za> Message-ID: <1529088342.89.0.56676864532.issue33852@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 0113391e3f3db0fea6a9545310dc06aa5ea41461 by Miss Islington (bot) in branch '3.7': bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672) https://github.com/python/cpython/commit/0113391e3f3db0fea6a9545310dc06aa5ea41461 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 14:46:11 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Fri, 15 Jun 2018 18:46:11 +0000 Subject: [issue33832] Make "magic methods" a little more discoverable in the docs In-Reply-To: <1528718191.62.0.592728768989.issue33832@psf.upfronthosting.co.za> Message-ID: <1529088371.72.0.56676864532.issue33832@psf.upfronthosting.co.za> Andr?s Delfino added the comment: Sorry, for some reason the PR doesn't show the intended changes. I'm working on fixing it. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 14:47:20 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Fri, 15 Jun 2018 18:47:20 +0000 Subject: [issue33871] Possible integer overflow in iov_setup() In-Reply-To: <1529086477.01.0.579493977442.issue33871@psf.upfronthosting.co.za> Message-ID: <1529088440.75.0.56676864532.issue33871@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: Docs for sendfile in macOS: https://www.unix.com/man-page/osx/2/sendfile/ ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 14:48:24 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 18:48:24 +0000 Subject: [issue33852] doc Remove parentheses from sequence subscription description In-Reply-To: <1528895542.1.0.947875510639.issue33852@psf.upfronthosting.co.za> Message-ID: <1529088504.74.0.56676864532.issue33852@psf.upfronthosting.co.za> miss-islington added the comment: New changeset eb4989970ce639845ca17e9a040f55fe704b862e by Miss Islington (bot) in branch '3.6': bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672) https://github.com/python/cpython/commit/eb4989970ce639845ca17e9a040f55fe704b862e ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 14:49:43 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Fri, 15 Jun 2018 18:49:43 +0000 Subject: [issue33852] doc Remove parentheses from sequence subscription description In-Reply-To: <1528895542.1.0.947875510639.issue33852@psf.upfronthosting.co.za> Message-ID: <1529088583.25.0.56676864532.issue33852@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- pull_requests: +7331 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:00:13 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Fri, 15 Jun 2018 19:00:13 +0000 Subject: [issue33841] lock not released in threading.Condition In-Reply-To: <1528782467.05.0.475983251502.issue33841@psf.upfronthosting.co.za> Message-ID: <1529089213.82.0.56676864532.issue33841@psf.upfronthosting.co.za> Antoine Pitrou added the comment: The `waiter` lock is always removed from `self._waiters` at the end of wait() (either by notify() or by wait() itself), so there's no point in releasing it a second time before destruction. I'm closing this as it's not a bug. ---------- nosy: +pitrou, tim.peters resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:02:13 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Fri, 15 Jun 2018 19:02:13 +0000 Subject: [issue33867] Module dicts are wiped on module garbage collection In-Reply-To: <1529033651.78.0.947875510639.issue33867@psf.upfronthosting.co.za> Message-ID: <1529089333.53.0.56676864532.issue33867@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: I cannot reproduce this in 3.6.5: >>>import sys >>>import gc >>>a = type(sys)('a') >>>b = a.__dict__ >>>print(b['__name__'] is None) False >>>del a >>>gc.collect() >>>print(b['__name__'] is None) False On the other hand, this still happens in 2.7.15: Python 2.7.15 (default, May 1 2018, 20:16:04) [GCC 7.3.1 20180406] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>>import sys >>>import gc >>>a = type(sys)('a') >>>b = a.__dict__ >>>print(b['__name__'] is None) False >>>del a >>>gc.collect() >>>print(b['__name__'] is None) True ---------- nosy: +pablogsal _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:05:55 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Fri, 15 Jun 2018 19:05:55 +0000 Subject: [issue33870] pdb continue + breakpoint In-Reply-To: <1529076011.32.0.947875510639.issue33870@psf.upfronthosting.co.za> Message-ID: <1529089555.92.0.56676864532.issue33870@psf.upfronthosting.co.za> Change by Pablo Galindo Salgado : ---------- components: +Library (Lib) versions: +Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:11:48 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jun 2018 19:11:48 +0000 Subject: [issue33832] Make "magic methods" a little more discoverable in the docs In-Reply-To: <1528718191.62.0.592728768989.issue33832@psf.upfronthosting.co.za> Message-ID: <1529089908.11.0.56676864532.issue33832@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Fred, did you intend to delete people from nosy? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:21:20 2018 From: report at bugs.python.org (Ivan Pozdeev) Date: Fri, 15 Jun 2018 19:21:20 +0000 Subject: [issue33826] enable discovery of class source code in IPython interactively defined classes In-Reply-To: <1528697796.87.0.592728768989.issue33826@psf.upfronthosting.co.za> Message-ID: <1529090480.22.0.56676864532.issue33826@psf.upfronthosting.co.za> Ivan Pozdeev added the comment: In [1]: import logging In [2]: logging.Logger.__module__ Out[2]: 'logging' In [4]: import sys In [6]: sys.modules[logging.Logger.__module__].__file__ Out[6]: 'C:\\Program Files\\Python36\\lib\\logging\\__init__.py' ---------- nosy: +Ivan.Pozdeev _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:23:02 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jun 2018 19:23:02 +0000 Subject: [issue33847] doc: Add '@' operator entry to index In-Reply-To: <1528829054.17.0.947875510639.issue33847@psf.upfronthosting.co.za> Message-ID: <1529090582.89.0.56676864532.issue33847@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset 695118600fecaa7b95634e168ad7cbbc561fd1ec by Terry Jan Reedy (Andr?s Delfino) in branch 'master': bpo-33847: Add '@' operator entry to index (GH-7669) https://github.com/python/cpython/commit/695118600fecaa7b95634e168ad7cbbc561fd1ec ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:23:40 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jun 2018 19:23:40 +0000 Subject: [issue33852] doc Remove parentheses from sequence subscription description In-Reply-To: <1528895542.1.0.947875510639.issue33852@psf.upfronthosting.co.za> Message-ID: <1529090620.12.0.56676864532.issue33852@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset 184e8ed1eeda3ba869755ff37374dd86f332f30d by Terry Jan Reedy (Andr?s Delfino) in branch '2.7': [2.7] bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672) (#7716) https://github.com/python/cpython/commit/184e8ed1eeda3ba869755ff37374dd86f332f30d ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:24:19 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 19:24:19 +0000 Subject: [issue33847] doc: Add '@' operator entry to index In-Reply-To: <1528829054.17.0.947875510639.issue33847@psf.upfronthosting.co.za> Message-ID: <1529090659.58.0.56676864532.issue33847@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7332 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:25:01 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jun 2018 19:25:01 +0000 Subject: [issue33852] doc Remove parentheses from sequence subscription description In-Reply-To: <1528895542.1.0.947875510639.issue33852@psf.upfronthosting.co.za> Message-ID: <1529090701.23.0.56676864532.issue33852@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Guido approved the change on the PR. ---------- assignee: docs at python -> terry.reedy resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:25:14 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 19:25:14 +0000 Subject: [issue33847] doc: Add '@' operator entry to index In-Reply-To: <1528829054.17.0.947875510639.issue33847@psf.upfronthosting.co.za> Message-ID: <1529090714.24.0.56676864532.issue33847@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7333 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:25:37 2018 From: report at bugs.python.org (Ivan Pozdeev) Date: Fri, 15 Jun 2018 19:25:37 +0000 Subject: [issue33826] enable discovery of class source code in IPython interactively defined classes In-Reply-To: <1528697796.87.0.592728768989.issue33826@psf.upfronthosting.co.za> Message-ID: <1529090737.35.0.56676864532.issue33826@psf.upfronthosting.co.za> Ivan Pozdeev added the comment: What do you mean by "class source code" anyway? A class doesn't actually contain any executable code (and there's no code object associated with it). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:30:56 2018 From: report at bugs.python.org (Fred L. Drake, Jr.) Date: Fri, 15 Jun 2018 19:30:56 +0000 Subject: [issue33832] Make "magic methods" a little more discoverable in the docs In-Reply-To: <1528718191.62.0.592728768989.issue33832@psf.upfronthosting.co.za> Message-ID: <1529091056.36.0.56676864532.issue33832@psf.upfronthosting.co.za> Fred L. Drake, Jr. added the comment: Indeed, I did not. Fixed now. I hope. ---------- nosy: +rhettinger _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:34:34 2018 From: report at bugs.python.org (Fred L. Drake, Jr.) Date: Fri, 15 Jun 2018 19:34:34 +0000 Subject: [issue33832] Make "magic methods" a little more discoverable in the docs In-Reply-To: <1528718191.62.0.592728768989.issue33832@psf.upfronthosting.co.za> Message-ID: <1529091274.73.0.56676864532.issue33832@psf.upfronthosting.co.za> Change by Fred L. Drake, Jr. : ---------- nosy: +pablogsal _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:42:29 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jun 2018 19:42:29 +0000 Subject: [issue33854] doc Add PEP title in seealso of Built-in Types In-Reply-To: <1528948238.24.0.947875510639.issue33854@psf.upfronthosting.co.za> Message-ID: <1529091749.23.0.56676864532.issue33854@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset a9d0b34a5c5d4fdc12bba4f9c1e314e6e132cc65 by Terry Jan Reedy (Andr?s Delfino) in branch 'master': bpo-33854: Add PEP 461 title to 'See also' note (GH-7688) https://github.com/python/cpython/commit/a9d0b34a5c5d4fdc12bba4f9c1e314e6e132cc65 ---------- nosy: +terry.reedy _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:42:33 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 19:42:33 +0000 Subject: [issue33847] doc: Add '@' operator entry to index In-Reply-To: <1528829054.17.0.947875510639.issue33847@psf.upfronthosting.co.za> Message-ID: <1529091753.27.0.56676864532.issue33847@psf.upfronthosting.co.za> miss-islington added the comment: New changeset c05c0e045ccf6e065c59c193195dc0e9b7242dd4 by Miss Islington (bot) in branch '3.7': bpo-33847: Add '@' operator entry to index (GH-7669) https://github.com/python/cpython/commit/c05c0e045ccf6e065c59c193195dc0e9b7242dd4 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:43:40 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 19:43:40 +0000 Subject: [issue33854] doc Add PEP title in seealso of Built-in Types In-Reply-To: <1528948238.24.0.947875510639.issue33854@psf.upfronthosting.co.za> Message-ID: <1529091820.27.0.56676864532.issue33854@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7334 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:44:30 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 19:44:30 +0000 Subject: [issue33854] doc Add PEP title in seealso of Built-in Types In-Reply-To: <1528948238.24.0.947875510639.issue33854@psf.upfronthosting.co.za> Message-ID: <1529091870.26.0.56676864532.issue33854@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7335 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:45:22 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 19:45:22 +0000 Subject: [issue33847] doc: Add '@' operator entry to index In-Reply-To: <1528829054.17.0.947875510639.issue33847@psf.upfronthosting.co.za> Message-ID: <1529091922.43.0.56676864532.issue33847@psf.upfronthosting.co.za> miss-islington added the comment: New changeset cd9ede6b20948af51f9a27b64bd0dfd8909c24f1 by Miss Islington (bot) in branch '3.6': bpo-33847: Add '@' operator entry to index (GH-7669) https://github.com/python/cpython/commit/cd9ede6b20948af51f9a27b64bd0dfd8909c24f1 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:45:49 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jun 2018 19:45:49 +0000 Subject: [issue33856] Type "help" is not present on win32 In-Reply-To: <1528964773.31.0.947875510639.issue33856@psf.upfronthosting.co.za> Message-ID: <1529091949.42.0.56676864532.issue33856@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- nosy: +terry.reedy _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:46:16 2018 From: report at bugs.python.org (Thomas Viehmann) Date: Fri, 15 Jun 2018 19:46:16 +0000 Subject: [issue33826] enable discovery of class source code in IPython interactively defined classes In-Reply-To: <1528697796.87.0.592728768989.issue33826@psf.upfronthosting.co.za> Message-ID: <1529091976.6.0.56676864532.issue33826@psf.upfronthosting.co.za> Thomas Viehmann added the comment: Apologies for not being clear. So I wrote: In IPython (or Jupyter), `inspect.getsource` is able to retrieve the source code for functions but not classes. By this I mean: import inspect class X: pass inspect.getsource(X) Note that: - it won't work in the vanilla python interpreter, - it does work for functions in Jupyter/IPython currently, - it works for classes (and functions) in modules. What I would like is to have it work for classes in Jupyter/IPython. By the way: Would a PR be more convenient than a patch? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:54:20 2018 From: report at bugs.python.org (Ivan Pozdeev) Date: Fri, 15 Jun 2018 19:54:20 +0000 Subject: [issue33826] enable discovery of class source code in IPython interactively defined classes In-Reply-To: <1528697796.87.0.592728768989.issue33826@psf.upfronthosting.co.za> Message-ID: <1529092460.05.0.56676864532.issue33826@psf.upfronthosting.co.za> Ivan Pozdeev added the comment: I got that part, thank you. I can't get 1)what you're expecting as an output and 2)why this should work the way you're suggesting 'cuz functions and classes are very different. In particular, classes can be modified dynamically, unlike functions. So if you just print out the lines from the file with the definition (which is what getsource() does), it may not be what the interpreter is actually using. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 15:55:39 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jun 2018 19:55:39 +0000 Subject: [issue33858] A typo in multiprocessing documentation In-Reply-To: <1528976358.35.0.947875510639.issue33858@psf.upfronthosting.co.za> Message-ID: <1529092539.19.0.56676864532.issue33858@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Doc fixes are routinely backported, when valid, at least within 3.x. If this was not, I could either be intention or accident. If the change in master was with a github PR, maybe someone just forgot the backport label. Is the change in 3.7? Can either of you find the commit that made the change? ---------- nosy: +davin, pitrou, terry.reedy _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 16:04:27 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Fri, 15 Jun 2018 20:04:27 +0000 Subject: [issue33858] A typo in multiprocessing documentation In-Reply-To: <1528976358.35.0.947875510639.issue33858@psf.upfronthosting.co.za> Message-ID: <1529093067.48.0.56676864532.issue33858@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: It seems that it was this commit: https://github.com/python/cpython/commit/5619ab2db3a6c62ffaa55e8826cf67b7459fc484 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 16:09:08 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Fri, 15 Jun 2018 20:09:08 +0000 Subject: [issue33858] A typo in multiprocessing documentation In-Reply-To: <1528976358.35.0.947875510639.issue33858@psf.upfronthosting.co.za> Message-ID: <1529093348.77.0.56676864532.issue33858@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: And this PR: https://github.com/python/cpython/pull/698 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 16:12:05 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jun 2018 20:12:05 +0000 Subject: [issue33847] doc: Add '@' operator entry to index In-Reply-To: <1528829054.17.0.947875510639.issue33847@psf.upfronthosting.co.za> Message-ID: <1529093525.45.0.56676864532.issue33847@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 16:14:02 2018 From: report at bugs.python.org (Thomas Viehmann) Date: Fri, 15 Jun 2018 20:14:02 +0000 Subject: [issue33826] enable discovery of class source code in IPython interactively defined classes In-Reply-To: <1528697796.87.0.592728768989.issue33826@psf.upfronthosting.co.za> Message-ID: <1529093642.68.0.56676864532.issue33826@psf.upfronthosting.co.za> Thomas Viehmann added the comment: So I want "inspect.showsource" to have the same output whether my class has been defined in a .py or in my Jupyter notebook. I appreciate there are limitations to what "inspect.showsource" can do, but I am not so sure how that creates uncertainty my expectation of the output when it should just be the same as the current behaviour when the class is defined in a .py module. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 16:14:34 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jun 2018 20:14:34 +0000 Subject: [issue33854] doc Add PEP title in seealso of Built-in Types In-Reply-To: <1528948238.24.0.947875510639.issue33854@psf.upfronthosting.co.za> Message-ID: <1529093674.65.0.56676864532.issue33854@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset ce1bda774ee28fcdc8966e4158ed42b1246a29d0 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.7': bpo-33854: Add PEP 461 title to 'See also' note (GH-7688) (#7719) https://github.com/python/cpython/commit/ce1bda774ee28fcdc8966e4158ed42b1246a29d0 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 16:14:56 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jun 2018 20:14:56 +0000 Subject: [issue33854] doc Add PEP title in seealso of Built-in Types In-Reply-To: <1528948238.24.0.947875510639.issue33854@psf.upfronthosting.co.za> Message-ID: <1529093696.2.0.56676864532.issue33854@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset ae4b2af42ce908cd3872dd4442c9805beb725167 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.6': bpo-33854: Add PEP 461 title to 'See also' note (GH-7688) (GH-7720) https://github.com/python/cpython/commit/ae4b2af42ce908cd3872dd4442c9805beb725167 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 16:15:39 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jun 2018 20:15:39 +0000 Subject: [issue33854] doc Add PEP title in seealso of Built-in Types In-Reply-To: <1528948238.24.0.947875510639.issue33854@psf.upfronthosting.co.za> Message-ID: <1529093739.59.0.56676864532.issue33854@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- assignee: docs at python -> terry.reedy resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 16:28:48 2018 From: report at bugs.python.org (Antoine Pitrou) Date: Fri, 15 Jun 2018 20:28:48 +0000 Subject: [issue33858] A typo in multiprocessing documentation In-Reply-To: <1528976358.35.0.947875510639.issue33858@psf.upfronthosting.co.za> Message-ID: <1529094528.19.0.56676864532.issue33858@psf.upfronthosting.co.za> Antoine Pitrou added the comment: Ok, I've backported to 3.6 in https://github.com/python/cpython/pull/7721 ---------- components: +Library (Lib) resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 16:38:29 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jun 2018 20:38:29 +0000 Subject: [issue33855] IDLE: Minimally test every non-startup module. In-Reply-To: <1528960393.44.0.947875510639.issue33855@psf.upfronthosting.co.za> Message-ID: <1529095109.06.0.56676864532.issue33855@psf.upfronthosting.co.za> Terry J. Reedy added the comment: debugger and debugger_r: tests are subminimal because instantiating classes is not trivial. dynoption: skipped because I expect it will be replaced and deleted when I review PR to do so. editor: I discovered, or rediscovered, a new shutdown issue, with EditorWindow. It appeared in the new test_flist also. This time, I discovered how to solve it with tcl after info, thanks to Cheryl using it for test_codecontext. --- I am going to break this into 3 PRs. The first third is done. Having written this much, I think the new code is very unlikely to break on other OSes, so I don't think special testing is necessary before merging. Tal, if you have a cpython clone on your OSX machine, it would be nice to have "python -m test.test_idle" (which runs gui tests) run in an updated repository at least once a week if there is anything new. ---------- stage: patch review -> test needed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 16:40:41 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 20:40:41 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1529095241.35.0.56676864532.issue32962@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7336 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 16:45:13 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 20:45:13 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1529095513.6.0.56676864532.issue32962@psf.upfronthosting.co.za> STINNER Victor added the comment: Oh :-( The change caused two buildbot failures, so I wrote PR 7723 to revert it. x86 Gentoo Non-Debug with X 3.x: http://buildbot.python.org/all/#/builders/99/builds/1095 ====================================================================== FAIL: test_NULL_ptr (test.test_gdb.PrettyPrintTests) Ensure that a NULL PyObject* is handled gracefully ---------------------------------------------------------------------- Traceback (most recent call last): File "/buildbot/buildarea/3.x.ware-gentoo-x86.nondebug/build/Lib/test/test_gdb.py", line 481, in test_NULL_ptr 'backtrace']) File "/buildbot/buildarea/3.x.ware-gentoo-x86.nondebug/build/Lib/test/test_gdb.py", line 239, in get_gdb_repr import_site=import_site) File "/buildbot/buildarea/3.x.ware-gentoo-x86.nondebug/build/Lib/test/test_gdb.py", line 217, in get_stack_trace self.assertEqual(unexpected_errlines, []) AssertionError: Lists differ: ['No symbol "v" in current context.'] != [] First list contains 1 additional elements. First extra element 0: 'No symbol "v" in current context.' - ['No symbol "v" in current context.'] + [] ====================================================================== FAIL: test_builtins_help (test.test_gdb.PrettyPrintTests) Ensure that the new-style class _Helper in site.py can be handled ---------------------------------------------------------------------- Traceback (most recent call last): File "/buildbot/buildarea/3.x.ware-gentoo-x86.nondebug/build/Lib/test/test_gdb.py", line 517, in test_builtins_help gdb_repr, gdb_output = self.get_gdb_repr('id(__builtins__.help)', import_site=True) File "/buildbot/buildarea/3.x.ware-gentoo-x86.nondebug/build/Lib/test/test_gdb.py", line 246, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 at 0xf1670: file Python/bltinmodule.c, line 1204.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib/libthread_db.so.1".\n\nBreakpoint 1, builtin_id (self=, v=<_Helper at remote 0xb796c2ec>) at Python/bltinmodule.c:1204\n1204\t{\n__x86.get_pc_thunk.bx ()\n#0 __x86.get_pc_thunk.bx ()\n' Breakpoint 1 at 0xf1670: file Python/bltinmodule.c, line 1204. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". Breakpoint 1, builtin_id (self=, v=<_Helper at remote 0xb796c2ec>) at Python/bltinmodule.c:1204 1204 { __x86.get_pc_thunk.bx () #0 __x86.get_pc_thunk.bx () ====================================================================== FAIL: test_up_at_top (test.test_gdb.StackNavigationTests) Verify handling of "py-up" at the top of the stack ---------------------------------------------------------------------- Traceback (most recent call last): File "/buildbot/buildarea/3.x.ware-gentoo-x86.nondebug/build/Lib/test/test_gdb.py", line 702, in test_up_at_top 'Unable to find an older python frame\n') File "/buildbot/buildarea/3.x.ware-gentoo-x86.nondebug/build/Lib/test/test_gdb.py", line 252, in assertEndsWith msg='%r did not end with %r' % (actual, exp_end)) AssertionError: False is not true : 'Breakpoint 1 at 0xf1670: file Python/bltinmodule.c, line 1204.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib/libthread_db.so.1".\n\nBreakpoint 1, builtin_id (self=, v=42) at Python/bltinmodule.c:1204\n1204\t{\n__x86.get_pc_thunk.bx ()\nUnable to locate python frame\nUnable to locate python frame\nUnable to locate python frame\nUnable to locate python frame\nUnable to locate python frame\n' did not end with 'Unable to find an older python frame\n' AMD64 Debian PGO 3.x: http://buildbot.python.org/all/#/builders/47/builds/1173 ====================================================================== FAIL: test_tuples (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of tuples ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.x.gps-debian-profile-opt.nondebug/build/Lib/test/test_gdb.py", line 351, in test_tuples self.assertGdbRepr(tuple(), '()') File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.x.gps-debian-profile-opt.nondebug/build/Lib/test/test_gdb.py", line 270, in assertGdbRepr gdb_repr, gdb_output = self.get_gdb_repr('id(' + ascii(val) + ')') File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.x.gps-debian-profile-opt.nondebug/build/Lib/test/test_gdb.py", line 246, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 at 0x16dc20: file Python/bltinmodule.c, line 1205.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".\n\nBreakpoint 1, builtin_id (self=, v=()) at Python/bltinmodule.c:1205\n1205\t return PyLong_FromVoidPtr(v);\nPyLong_FromVoidPtr () at Objects/longobject.c:1021\n1021\t{\n#0 PyLong_FromVoidPtr () at Objects/longobject.c:1021\n' Breakpoint 1 at 0x16dc20: file Python/bltinmodule.c, line 1205. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Breakpoint 1, builtin_id (self=, v=()) at Python/bltinmodule.c:1205 1205 return PyLong_FromVoidPtr(v); PyLong_FromVoidPtr () at Objects/longobject.c:1021 1021 { #0 PyLong_FromVoidPtr () at Objects/longobject.c:1021 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 16:45:36 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Fri, 15 Jun 2018 20:45:36 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1529095536.37.0.56676864532.issue32962@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: test_gdb is failing on the following buildbots: x86 Gentoo Non-Debug http://buildbot.python.org/all/#builders/99/builds/1095 AMD64 Debian PGO 3.x http://buildbot.python.org/all/#builders/47/builds/1173 Gentoo Non-Debug with X 3.7 http://buildbot.python.org/all/#builders/115/builds/365 Example error: .... ====================================================================== FAIL: test_truncation (test.test_gdb.PrettyPrintTests) Verify that very long output is truncated ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.7.gps-debian-profile-opt.nondebug/build/Lib/test/test_gdb.py", line 584, in test_truncation gdb_repr, gdb_output = self.get_gdb_repr('id(list(range(1000)))') File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.7.gps-debian-profile-opt.nondebug/build/Lib/test/test_gdb.py", line 246, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 at 0x16ed20: file Python/bltinmodule.c, line 1216.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".\n\nBreakpoint 1, builtin_id (self=, v=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226...(truncated)) at Python/bltinmodule.c:1216\n1216\t return PyLong_FromVoidPtr(v);\nPyLong_FromVoidPtr () at Objects/longobject.c:1021\n1021\t{\n#0 PyLong_FromVoidPtr () at Objects/longobject.c:1021\n' Breakpoint 1 at 0x16ed20: file Python/bltinmodule.c, line 1216. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Breakpoint 1, builtin_id (self=, v=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226...(truncated)) at Python/bltinmodule.c:1216 1216 return PyLong_FromVoidPtr(v); PyLong_FromVoidPtr () at Objects/longobject.c:1021 1021 { #0 PyLong_FromVoidPtr () at Objects/longobject.c:1021 ====================================================================== FAIL: test_tuples (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of tuples ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.7.gps-debian-profile-opt.nondebug/build/Lib/test/test_gdb.py", line 351, in test_tuples self.assertGdbRepr(tuple(), '()') File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.7.gps-debian-profile-opt.nondebug/build/Lib/test/test_gdb.py", line 270, in assertGdbRepr gdb_repr, gdb_output = self.get_gdb_repr('id(' + ascii(val) + ')') File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.7.gps-debian-profile-opt.nondebug/build/Lib/test/test_gdb.py", line 246, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 at 0x16ed20: file Python/bltinmodule.c, line 1216.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".\n\nBreakpoint 1, builtin_id (self=, v=()) at Python/bltinmodule.c:1216\n1216\t return PyLong_FromVoidPtr(v);\nPyLong_FromVoidPtr () at Objects/longobject.c:1021\n1021\t{\n#0 PyLong_FromVoidPtr () at Objects/longobject.c:1021\n' Breakpoint 1 at 0x16ed20: file Python/bltinmodule.c, line 1216. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Breakpoint 1, builtin_id (self=, v=()) at Python/bltinmodule.c:1216 1216 return PyLong_FromVoidPtr(v); PyLong_FromVoidPtr () at Objects/longobject.c:1021 1021 { #0 PyLong_FromVoidPtr () at Objects/longobject.c:1021 ---------- nosy: +pablogsal _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 16:46:01 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Fri, 15 Jun 2018 20:46:01 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1529095561.0.0.56676864532.issue32962@psf.upfronthosting.co.za> Change by Pablo Galindo Salgado : ---------- Removed message: https://bugs.python.org/msg319670 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 16:49:30 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 20:49:30 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1529095770.42.0.56676864532.issue32962@psf.upfronthosting.co.za> STINNER Victor added the comment: > Oh :-( The change caused two buildbot failures, so I wrote PR 7723 to revert it. It seems to only be related to this change: """ New changeset 9b7c74ca32d1bec7128d550a9ab1b2ddc7046287 by Victor Stinner (Marcel Plch) in branch 'master': bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (#6754) https://github.com/python/cpython/commit/9b7c74ca32d1bec7128d550a9ab1b2ddc7046287 """ Since I also backported this change to 3.7 and 3.6, buildbot of 3.7 and 3.6 also failed: AMD64 Debian PGO 3.7 http://buildbot.python.org/all/#builders/128/builds/417 AMD64 Debian PGO 3.6 http://buildbot.python.org/all/#builders/77/builds/419 x86 Gentoo Non-Debug with X 3.7 http://buildbot.python.org/all/#builders/115/builds/365 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 16:53:41 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 20:53:41 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1529096021.61.0.56676864532.issue32962@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7337 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 16:54:07 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 20:54:07 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1529096047.14.0.56676864532.issue32962@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7338 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 16:54:38 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 20:54:38 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1529096078.25.0.56676864532.issue32962@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 2f9cbaa8b2190b6dfd3157ede9b6973523a3b939 by Victor Stinner in branch 'master': Revert "bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (GH-6754)" (#7723) https://github.com/python/cpython/commit/2f9cbaa8b2190b6dfd3157ede9b6973523a3b939 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 17:19:58 2018 From: report at bugs.python.org (Raymond Hettinger) Date: Fri, 15 Jun 2018 21:19:58 +0000 Subject: [issue33869] doc Add set, frozen set, and tuple entries to Glossary In-Reply-To: <1529073801.77.0.947875510639.issue33869@psf.upfronthosting.co.za> Message-ID: <1529097598.63.0.56676864532.issue33869@psf.upfronthosting.co.za> Raymond Hettinger added the comment: This probably shouldn't be done. It is not the goal of the glossary to define all built-in types. We have other sections of the documentation for that purpose. Also, there is no demonstrated need. ---------- nosy: +rhettinger _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 17:37:32 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 21:37:32 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1529098652.05.0.56676864532.issue32962@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 74565aa6d54344d4994c6b81d6fd05a4258283ab by Victor Stinner in branch '3.6': Revert "bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (GH-6754)" (#7725) https://github.com/python/cpython/commit/74565aa6d54344d4994c6b81d6fd05a4258283ab ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 17:37:36 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 21:37:36 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1529098656.48.0.56676864532.issue32962@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset ba67b4f7cb87035e24098f52cf9711b9e793e033 by Victor Stinner in branch '3.7': Revert "bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (GH-6754)" (#7724) https://github.com/python/cpython/commit/ba67b4f7cb87035e24098f52cf9711b9e793e033 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 17:38:37 2018 From: report at bugs.python.org (Fred L. Drake, Jr.) Date: Fri, 15 Jun 2018 21:38:37 +0000 Subject: [issue33869] doc Add set, frozen set, and tuple entries to Glossary In-Reply-To: <1529073801.77.0.947875510639.issue33869@psf.upfronthosting.co.za> Message-ID: <1529098717.93.0.56676864532.issue33869@psf.upfronthosting.co.za> Change by Fred L. Drake, Jr. : ---------- nosy: +fdrake _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 17:38:42 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 21:38:42 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1529098722.83.0.56676864532.issue32962@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7339 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 17:38:42 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 21:38:42 +0000 Subject: [issue29367] python-gdb: display wrapper_call() In-Reply-To: <1485336576.45.0.391174330106.issue29367@psf.upfronthosting.co.za> Message-ID: <1529098722.97.0.665841612001.issue29367@psf.upfronthosting.co.za> Change by STINNER Victor : ---------- pull_requests: +7340 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 17:40:47 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Fri, 15 Jun 2018 21:40:47 +0000 Subject: [issue33869] doc Add set, frozen set, and tuple entries to Glossary In-Reply-To: <1529073801.77.0.947875510639.issue33869@psf.upfronthosting.co.za> Message-ID: <1529098847.78.0.56676864532.issue33869@psf.upfronthosting.co.za> Andr?s Delfino added the comment: I thought since dictionary and list is there, tuple/set/frozenset should be, too. But I think you are right. I'd keep the link to the list definition, though. I didn't add a link to the dictionary definition as "dictionary" seems to be a very open term. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 17:48:50 2018 From: report at bugs.python.org (Brett Cannon) Date: Fri, 15 Jun 2018 21:48:50 +0000 Subject: [issue32718] Install PowerShell activation scripts for venv for all platforms In-Reply-To: <1517273696.22.0.467229070634.issue32718@psf.upfronthosting.co.za> Message-ID: <1529099330.54.0.56676864532.issue32718@psf.upfronthosting.co.za> Brett Cannon added the comment: The prompt issues I was having are fixed in PowerShell 6.1.0-preview3, so as soon at 6.1.0 reaches final I will start working on this again. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 17:54:35 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Fri, 15 Jun 2018 21:54:35 +0000 Subject: [issue33872] doc Add list access time to list definition Message-ID: <1529099675.69.0.56676864532.issue33872@psf.upfronthosting.co.za> New submission from Andr?s Delfino : Glossary talks about list access complexity, but the actual list definition doesn't. I think glossary entries should have more information than actual definitions. PR adds list access complexity to list definition. ---------- assignee: docs at python components: Documentation messages: 319678 nosy: adelfino, docs at python priority: normal severity: normal status: open title: doc Add list access time to list definition type: enhancement versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 17:59:12 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Fri, 15 Jun 2018 21:59:12 +0000 Subject: [issue33872] doc Add list access time to list definition In-Reply-To: <1529099675.69.0.56676864532.issue33872@psf.upfronthosting.co.za> Message-ID: <1529099952.64.0.56676864532.issue33872@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- keywords: +patch pull_requests: +7341 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 17:59:59 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 21:59:59 +0000 Subject: [issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0` In-Reply-To: <1519722167.1.0.467229070634.issue32962@psf.upfronthosting.co.za> Message-ID: <1529099999.48.0.56676864532.issue32962@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset e36f94f204f3257a206a7766464a94230337fd18 by Victor Stinner in branch '2.7': bpo-32962: Backport python-gdb.py and test_gdb.py from master (GH-7726) https://github.com/python/cpython/commit/e36f94f204f3257a206a7766464a94230337fd18 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 17:59:59 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 21:59:59 +0000 Subject: [issue29367] python-gdb: display wrapper_call() In-Reply-To: <1485336576.45.0.391174330106.issue29367@psf.upfronthosting.co.za> Message-ID: <1529099999.6.0.902498594338.issue29367@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset e36f94f204f3257a206a7766464a94230337fd18 by Victor Stinner in branch '2.7': bpo-32962: Backport python-gdb.py and test_gdb.py from master (GH-7726) https://github.com/python/cpython/commit/e36f94f204f3257a206a7766464a94230337fd18 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 18:06:30 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 22:06:30 +0000 Subject: [issue33824] Settign LANG=C modifies the --version behavior In-Reply-To: <1528659337.7.0.592728768989.issue33824@psf.upfronthosting.co.za> Message-ID: <1529100390.87.0.56676864532.issue33824@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 6c5a4b315664f21bffc36ff6987fb4c4d1590897 by Victor Stinner in branch 'master': bpo-33824, bpo-32030: Fix pymain_read_conf() (GH-7712) https://github.com/python/cpython/commit/6c5a4b315664f21bffc36ff6987fb4c4d1590897 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 18:06:31 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 22:06:31 +0000 Subject: [issue32030] PEP 432: Rewrite Py_Main() In-Reply-To: <1510709424.02.0.213398074469.issue32030@psf.upfronthosting.co.za> Message-ID: <1529100391.02.0.902498594338.issue32030@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset 6c5a4b315664f21bffc36ff6987fb4c4d1590897 by Victor Stinner in branch 'master': bpo-33824, bpo-32030: Fix pymain_read_conf() (GH-7712) https://github.com/python/cpython/commit/6c5a4b315664f21bffc36ff6987fb4c4d1590897 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 18:07:48 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 22:07:48 +0000 Subject: [issue33824] Settign LANG=C modifies the --version behavior In-Reply-To: <1528659337.7.0.592728768989.issue33824@psf.upfronthosting.co.za> Message-ID: <1529100468.88.0.56676864532.issue33824@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7342 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 18:07:49 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 22:07:49 +0000 Subject: [issue32030] PEP 432: Rewrite Py_Main() In-Reply-To: <1510709424.02.0.213398074469.issue32030@psf.upfronthosting.co.za> Message-ID: <1529100469.01.0.665841612001.issue32030@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7343 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 18:20:58 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jun 2018 22:20:58 +0000 Subject: [issue33855] IDLE: Minimally test every non-startup module. In-Reply-To: <1528960393.44.0.947875510639.issue33855@psf.upfronthosting.co.za> Message-ID: <1529101258.12.0.56676864532.issue33855@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset ee5ef309c7e2daef1248730145408f700732c42e by Terry Jan Reedy in branch 'master': bpo-33855: Minimally test all IDLE modules. (GH-7689) https://github.com/python/cpython/commit/ee5ef309c7e2daef1248730145408f700732c42e ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 18:22:07 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 22:22:07 +0000 Subject: [issue33855] IDLE: Minimally test every non-startup module. In-Reply-To: <1528960393.44.0.947875510639.issue33855@psf.upfronthosting.co.za> Message-ID: <1529101327.85.0.56676864532.issue33855@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7344 stage: test needed -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 18:26:31 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 22:26:31 +0000 Subject: [issue33824] Settign LANG=C modifies the --version behavior In-Reply-To: <1528659337.7.0.592728768989.issue33824@psf.upfronthosting.co.za> Message-ID: <1529101591.72.0.56676864532.issue33824@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 046da1669598d6112d0a6fb056081f3eb5a4d4e7 by Miss Islington (bot) in branch '3.7': bpo-33824, bpo-32030: Fix pymain_read_conf() (GH-7712) https://github.com/python/cpython/commit/046da1669598d6112d0a6fb056081f3eb5a4d4e7 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 18:26:31 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 22:26:31 +0000 Subject: [issue32030] PEP 432: Rewrite Py_Main() In-Reply-To: <1510709424.02.0.213398074469.issue32030@psf.upfronthosting.co.za> Message-ID: <1529101591.84.0.902498594338.issue32030@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 046da1669598d6112d0a6fb056081f3eb5a4d4e7 by Miss Islington (bot) in branch '3.7': bpo-33824, bpo-32030: Fix pymain_read_conf() (GH-7712) https://github.com/python/cpython/commit/046da1669598d6112d0a6fb056081f3eb5a4d4e7 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 18:37:51 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 22:37:51 +0000 Subject: [issue33824] Settign LANG=C modifies the --version behavior In-Reply-To: <1528659337.7.0.592728768989.issue33824@psf.upfronthosting.co.za> Message-ID: <1529102271.84.0.56676864532.issue33824@psf.upfronthosting.co.za> STINNER Victor added the comment: Ned: I let you decide if this bug should be backported to 3.7.0 final or not. I would prefer to see this fix in 3.7.0, since Py_Main() refactoring was complex and maybe this bug hides another bug. The memset() is safe and make the code more reliable. ---------- components: +Interpreter Core resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 18:38:37 2018 From: report at bugs.python.org (miss-islington) Date: Fri, 15 Jun 2018 22:38:37 +0000 Subject: [issue33855] IDLE: Minimally test every non-startup module. In-Reply-To: <1528960393.44.0.947875510639.issue33855@psf.upfronthosting.co.za> Message-ID: <1529102317.67.0.56676864532.issue33855@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 508568764593dca3844a51c10f1493413a51d66f by Miss Islington (bot) in branch '3.7': bpo-33855: Minimally test all IDLE modules. (GH-7689) https://github.com/python/cpython/commit/508568764593dca3844a51c10f1493413a51d66f ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 18:42:06 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Fri, 15 Jun 2018 22:42:06 +0000 Subject: [issue33873] False positives when running refleaks tests with -R 1:1 Message-ID: <1529102526.45.0.56676864532.issue33873@psf.upfronthosting.co.za> New submission from Pablo Galindo Salgado : I am not sure is a problem we can do something about but right know if you run the refleak tests with low repetitions it reports leaks: ./python -m test test_list -R 1:1 Run tests sequentially 0:00:00 load avg: 0.66 [1/1] test_list beginning 2 repetitions 12 .. test_list leaked [3] memory blocks, sum=3 test_list failed == Tests result: FAILURE == 1 test failed: test_list Total duration: 1 sec 759 ms Tests result: FAILURE This also happens with other low numbers: ./python -m test test_list -R 1:2 Obviously using this numbers is "wrong" (there is not enough repetitions to get meaningful results). The only problem I see is that if you are not aware of this limitation (in the case this is a real limitation on how `dash_R` works) the output is a bit misleading. Should we leave this as it is or try to improve the output? ---------- components: Tests messages: 319688 nosy: pablogsal, serhiy.storchaka, vstinner priority: normal severity: normal status: open title: False positives when running refleaks tests with -R 1:1 type: behavior versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 18:51:44 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 22:51:44 +0000 Subject: [issue33873] False positives when running refleaks tests with -R 1:1 In-Reply-To: <1529102526.45.0.56676864532.issue33873@psf.upfronthosting.co.za> Message-ID: <1529103104.69.0.56676864532.issue33873@psf.upfronthosting.co.za> STINNER Victor added the comment: > test_list leaked [3] memory blocks, sum=3 Memory block leaks are very different from reference leaks. Memory block are low level allocations. Python has *many* internal caches: tuple uses an internal "free list" for example. The first runs of the tests (2 runs when using -R 2:3) is used to warmup these caches. Maybe regrtest -R should raise an error, or at least emit a big warning when using -R with less than 3 warmup runs. By the way, regrtest has a very old bug: -R 3:3 runs the test 7 times, not 6 times. See runtest_inner() in Lib/test/libregrtest/runtest.py: test_runner() if ns.huntrleaks: refleak = dash_R(the_module, test, test_runner, ns.huntrleaks) The code should be: if ns.huntrleaks: refleak = dash_R(the_module, test, test_runner, ns.huntrleaks) else: test_runner() Do you want to write a PR for that? I should make our Refleaks buildbots 1/7 faster ;-) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 18:51:47 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jun 2018 22:51:47 +0000 Subject: [issue33855] IDLE: Minimally test every non-startup module. In-Reply-To: <1528960393.44.0.947875510639.issue33855@psf.upfronthosting.co.za> Message-ID: <1529103107.75.0.56676864532.issue33855@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- pull_requests: +7345 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 18:52:56 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Fri, 15 Jun 2018 22:52:56 +0000 Subject: [issue33873] False positives when running leak tests with -R 1:1 In-Reply-To: <1529102526.45.0.56676864532.issue33873@psf.upfronthosting.co.za> Message-ID: <1529103176.59.0.56676864532.issue33873@psf.upfronthosting.co.za> Change by Pablo Galindo Salgado : ---------- title: False positives when running refleaks tests with -R 1:1 -> False positives when running leak tests with -R 1:1 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 18:56:27 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Fri, 15 Jun 2018 22:56:27 +0000 Subject: [issue33873] False positives when running leak tests with -R 1:1 In-Reply-To: <1529102526.45.0.56676864532.issue33873@psf.upfronthosting.co.za> Message-ID: <1529103387.49.0.56676864532.issue33873@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: Let's make the buildbots happier! ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 18:59:38 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Fri, 15 Jun 2018 22:59:38 +0000 Subject: [issue33873] False positives when running leak tests with -R 1:1 In-Reply-To: <1529102526.45.0.56676864532.issue33873@psf.upfronthosting.co.za> Message-ID: <1529103578.5.0.56676864532.issue33873@psf.upfronthosting.co.za> Change by Pablo Galindo Salgado : ---------- keywords: +patch pull_requests: +7346 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 19:08:52 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Fri, 15 Jun 2018 23:08:52 +0000 Subject: [issue33873] False positives when running leak tests with -R 1:1 In-Reply-To: <1529102526.45.0.56676864532.issue33873@psf.upfronthosting.co.za> Message-ID: <1529104132.07.0.56676864532.issue33873@psf.upfronthosting.co.za> Change by Pablo Galindo Salgado : ---------- pull_requests: +7347 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 19:17:47 2018 From: report at bugs.python.org (STINNER Victor) Date: Fri, 15 Jun 2018 23:17:47 +0000 Subject: [issue33873] False positives when running leak tests with -R 1:1 In-Reply-To: <1529102526.45.0.56676864532.issue33873@psf.upfronthosting.co.za> Message-ID: <1529104667.44.0.56676864532.issue33873@psf.upfronthosting.co.za> STINNER Victor added the comment: I tested PR 7735: vstinner at apu$ ./python -m test -R 0:0 test_os -m test_access Run tests sequentially 0:00:00 load avg: 0.19 [1/1] test_os beginning 0 repetitions test_os leaked [] references, sum=0 test_os leaked [] memory blocks, sum=0 test_os failed == Tests result: FAILURE == 1 test failed: test_os Total duration: 63 ms Tests result: FAILURE vstinner at apu$ ./python -m test -R 0:1 test_os -m test_access Run tests sequentially 0:00:00 load avg: 0.35 [1/1] test_os beginning 1 repetitions 1 . test_os leaked [280435] references, sum=280435 test_os leaked [91518] memory blocks, sum=91518 test_os leaked [4] file descriptors, sum=4 test_os failed == Tests result: FAILURE == 1 test failed: test_os Total duration: 95 ms Tests result: FAILURE vstinner at apu$ ./python -m test -R 1:0 test_os -m test_access Run tests sequentially 0:00:00 load avg: 0.16 [1/1] test_os beginning 1 repetitions 1 . test_os leaked [] references, sum=0 test_os leaked [] memory blocks, sum=0 test_os failed == Tests result: FAILURE == 1 test failed: test_os Total duration: 95 ms Tests result: FAILURE Hum, we should require at least one run and at least one warmup: -R 1:1 should be the bare minimum. By the way, it seems like negative numbers are currently accepted, whereas it doesn't make sense: vstinner at apu$ ./python -m test -R 0:-2 test_list Run tests sequentially 0:00:00 load avg: 0.31 [1/1] test_list beginning -2 repetitions (...) It would fix this bug as well. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 19:36:26 2018 From: report at bugs.python.org (Ivan Pozdeev) Date: Fri, 15 Jun 2018 23:36:26 +0000 Subject: [issue33826] enable discovery of class source code in IPython interactively defined classes In-Reply-To: <1528697796.87.0.592728768989.issue33826@psf.upfronthosting.co.za> Message-ID: <1529105786.78.0.56676864532.issue33826@psf.upfronthosting.co.za> Ivan Pozdeev added the comment: Oh, I see, you want to be able to get the source for code entered into the interactive session. IPython does this by creating a separate fake "file name" for every input and adding corresponding entries for them into `linecache.cache'. This doesn't work for classes 'cuz for them, inspect.getfile() rather looks at __module__.__file__ , and there's no single __file__ for __main__. Now, there are two concerns here: * This will lead to linecache being polluted with old input, effectively a memory leak. Unlike vanilla's readline cache which has a maximum length. Not much concern for IPython which only needs to be good enough for its target audience and can be dropped if it doesn't work for a specific scenario. But not for vanilla which needs to work reliably in all cases. * There indeed is a discrepancy between functions that link to source directly and classes that rely on heuristics for that (inspect.findsource() searches the file with a regex for the class' definition, how absurd is that?). Adding __file__ and __firstlineno__ _could_ help here, the `class' directive will need to add them. * In any case, the returned source is prone to "not necessarily what the interpreter uses", but that's the problem with how the returned source is generated, not where it's taken from. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 19:44:31 2018 From: report at bugs.python.org (Pablo Galindo Salgado) Date: Fri, 15 Jun 2018 23:44:31 +0000 Subject: [issue33873] False positives when running leak tests with -R 1:1 In-Reply-To: <1529102526.45.0.56676864532.issue33873@psf.upfronthosting.co.za> Message-ID: <1529106271.86.0.56676864532.issue33873@psf.upfronthosting.co.za> Pablo Galindo Salgado added the comment: Updated PR7735 with the checks for invalid parameters. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 20:21:00 2018 From: report at bugs.python.org (STINNER Victor) Date: Sat, 16 Jun 2018 00:21:00 +0000 Subject: [issue33873] False positives when running leak tests with -R 1:1 In-Reply-To: <1529102526.45.0.56676864532.issue33873@psf.upfronthosting.co.za> Message-ID: <1529108460.86.0.56676864532.issue33873@psf.upfronthosting.co.za> STINNER Victor added the comment: New changeset cac4fef8860e66a9da67d09762f5b614b9471a12 by Victor Stinner (Pablo Galindo) in branch 'master': bpo-33873: regrtest: Add warning on -R 1:3 (GH-7736) https://github.com/python/cpython/commit/cac4fef8860e66a9da67d09762f5b614b9471a12 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 20:26:40 2018 From: report at bugs.python.org (Guido van Rossum) Date: Sat, 16 Jun 2018 00:26:40 +0000 Subject: [issue24379] Add operator.subscript as a convenience for creating slices In-Reply-To: <1433398024.28.0.0919512106527.issue24379@psf.upfronthosting.co.za> Message-ID: <1529108800.87.0.56676864532.issue24379@psf.upfronthosting.co.za> Guido van Rossum added the comment: Let's close it. Just because someone spent a lot of effort on a patch we don't have to accept it. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 22:02:00 2018 From: report at bugs.python.org (Raymond Hettinger) Date: Sat, 16 Jun 2018 02:02:00 +0000 Subject: [issue24379] Add operator.subscript as a convenience for creating slices In-Reply-To: <1433398024.28.0.0919512106527.issue24379@psf.upfronthosting.co.za> Message-ID: <1529114520.84.0.56676864532.issue24379@psf.upfronthosting.co.za> Change by Raymond Hettinger : ---------- resolution: -> rejected stage: commit review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 22:27:21 2018 From: report at bugs.python.org (Forest) Date: Sat, 16 Jun 2018 02:27:21 +0000 Subject: [issue33874] dictviews set operations do not follow pattern of set or frozenset Message-ID: <1529116041.48.0.56676864532.issue33874@psf.upfronthosting.co.za> New submission from Forest : Views of dictionary keys and items admit set operations, but the behavior of operations differs significantly from that of set and frozenset. >>> {}.keys() & [] set() >>> set() & [] Traceback (most recent call last): File "", line 1, in TypeError: unsupported operand type(s) for &: 'set' and 'list' >>> set() & [] set() >>> {}.keys() & frozenset([]) set() >>> frozenset([]) & {}.keys() set() >>> set() & frozenset([]) set() >>> frozenset([]) & set() frozenset() Similar for |, ^, - >>> [1, 2, 3] - {2:None}.keys() {1, 3} Is perhaps particularly surprising The operators <, <=, >, >= do work as expected. >>> [1, 2, 3] > {}.keys() Traceback (most recent call last): File "", line 1, in TypeError: unorderable types: list() > dict_keys() I'm not sure if these differences between dictviews and set/frozenset should be considered bugs. If no, it may be good to document that the behavior is different. ---------- components: Library (Lib) messages: 319696 nosy: fgregg priority: normal severity: normal status: open title: dictviews set operations do not follow pattern of set or frozenset versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 22:35:15 2018 From: report at bugs.python.org (Forest) Date: Sat, 16 Jun 2018 02:35:15 +0000 Subject: [issue33874] dictviews set operations do not follow pattern of set or frozenset In-Reply-To: <1529116041.48.0.56676864532.issue33874@psf.upfronthosting.co.za> Message-ID: <1529116515.27.0.56676864532.issue33874@psf.upfronthosting.co.za> Forest added the comment: Sorry there was a typo in the first example block: It should be >>> {}.keys() & [] set() >>> set() & [] Traceback (most recent call last): File "", line 1, in TypeError: unsupported operand type(s) for &: 'set' and 'list' >>> set() & [] does **not** return set() it raises a TypeError ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 22:44:36 2018 From: report at bugs.python.org (Forest) Date: Sat, 16 Jun 2018 02:44:36 +0000 Subject: [issue33874] dictviews set operations do not follow pattern of set or frozenset In-Reply-To: <1529116041.48.0.56676864532.issue33874@psf.upfronthosting.co.za> Message-ID: <1529117076.37.0.56676864532.issue33874@psf.upfronthosting.co.za> Forest added the comment: Issue https://bugs.python.org/issue24413 also flags a difference in the behavior between dictviews and sets/frozensets. "for non-iterable object x, set().__or__(x) raises NotImplementedError, but {}.keys().__or__(x) raises TypeError" Issue https://bugs.python.org/issue33874 added a number of tests for dictview set operators, but none covering the examples raised here. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 22:54:38 2018 From: report at bugs.python.org (Joel Perras) Date: Sat, 16 Jun 2018 02:54:38 +0000 Subject: [issue33875] Allow dynamic password evaluation in pypirc configuration file. Message-ID: <1529117678.87.0.56676864532.issue33875@psf.upfronthosting.co.za> New submission from Joel Perras : In its current implementation, a user is required to provide their cleartext PyPi password in their .pypirc configuration file for authenticated interactions with PyPi servers to succeed. For hopefully obvious reasons, this is sub-optimal from a security standpoint. In some popular utilities (e.g. msmtp), the ability to provide a `passwordeval` field is made optional to the user. The value to this field is executed by the OS-dependent shell, and the return value is then used as the password. For example, instead of this: ``` index-servers= pypi [pypi] username=jperras password=mygreatpassword ``` we can instead have this: ``` index-servers= pypi [pypi] username=jperras passwordeval="gpg --quiet --for-your-eyes-only --no-tty --decrypt ~/.pypipwd.gpg" ``` ---------- components: Distutils messages: 319699 nosy: dstufft, eric.araujo, jperras priority: normal severity: normal status: open title: Allow dynamic password evaluation in pypirc configuration file. type: enhancement versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 23:03:10 2018 From: report at bugs.python.org (Joel Perras) Date: Sat, 16 Jun 2018 03:03:10 +0000 Subject: [issue33875] Allow dynamic password evaluation in pypirc configuration file. In-Reply-To: <1529117678.87.0.56676864532.issue33875@psf.upfronthosting.co.za> Message-ID: <1529118190.08.0.56676864532.issue33875@psf.upfronthosting.co.za> Change by Joel Perras : ---------- keywords: +patch pull_requests: +7348 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 23:15:10 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Sat, 16 Jun 2018 03:15:10 +0000 Subject: [issue33876] doc Mention the MicroPython implementation in Introduction Message-ID: <1529118910.74.0.56676864532.issue33876@psf.upfronthosting.co.za> New submission from Andr?s Delfino : IMHO, mentioning MicroPython is a plus because it's a mature project with a focus not covered by any of the other mentioned implementations. PR adds the mention. ---------- assignee: docs at python components: Documentation messages: 319700 nosy: adelfino, docs at python priority: normal severity: normal status: open title: doc Mention the MicroPython implementation in Introduction versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 23:17:39 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Sat, 16 Jun 2018 03:17:39 +0000 Subject: [issue33876] doc Mention the MicroPython implementation in Introduction In-Reply-To: <1529118910.74.0.56676864532.issue33876@psf.upfronthosting.co.za> Message-ID: <1529119059.46.0.56676864532.issue33876@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- keywords: +patch pull_requests: +7349 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 23:18:55 2018 From: report at bugs.python.org (Ma Lin) Date: Sat, 16 Jun 2018 03:18:55 +0000 Subject: [issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3 In-Reply-To: <1486355272.29.0.0894514518656.issue29456@psf.upfronthosting.co.za> Message-ID: <1529119135.58.0.56676864532.issue29456@psf.upfronthosting.co.za> Ma Lin added the comment: > We have a ucd_3_2_0 in unicodedata. Probably this 3.2 unicodedata is used for IDNA2003. In IDNA2003 there is a step: normalize the domain_name string to Unicode Normalization Form C. Now we changed the Composition code of Hangul to Unicode Standard 4.1+, and fixed the bug even in Unicode Standard 4.1-. Should this (Unicode Standard 4.1+ behavior) cause a security vulnerability for someone who is using IDNA2003 via ucd_3_2_0? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 23:29:14 2018 From: report at bugs.python.org (Mariatta Wijaya) Date: Sat, 16 Jun 2018 03:29:14 +0000 Subject: [issue33836] [Good first-time issue] Recommend keyword-only param for memoization in FAQ In-Reply-To: <1528732775.39.0.592728768989.issue33836@psf.upfronthosting.co.za> Message-ID: <1529119754.33.0.56676864532.issue33836@psf.upfronthosting.co.za> Mariatta Wijaya added the comment: New changeset 2707e41a5c7ede30349cc7dbd66f8be564965d7c by Mariatta (Noah Haasis) in branch 'master': bpo-33836: Recommend keyword-only param for memoization in FAQ (GH-7687) https://github.com/python/cpython/commit/2707e41a5c7ede30349cc7dbd66f8be564965d7c ---------- nosy: +Mariatta _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 23:30:29 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 16 Jun 2018 03:30:29 +0000 Subject: [issue33836] [Good first-time issue] Recommend keyword-only param for memoization in FAQ In-Reply-To: <1528732775.39.0.592728768989.issue33836@psf.upfronthosting.co.za> Message-ID: <1529119829.35.0.56676864532.issue33836@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7350 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 23:31:20 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 16 Jun 2018 03:31:20 +0000 Subject: [issue33836] [Good first-time issue] Recommend keyword-only param for memoization in FAQ In-Reply-To: <1528732775.39.0.592728768989.issue33836@psf.upfronthosting.co.za> Message-ID: <1529119880.45.0.56676864532.issue33836@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7351 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 23:33:50 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Sat, 16 Jun 2018 03:33:50 +0000 Subject: [issue33877] doc Mention Windows along UNIX for script running instructions Message-ID: <1529120030.12.0.56676864532.issue33877@psf.upfronthosting.co.za> New submission from Andr?s Delfino : Reference 9.1. says: "Under Unix, a complete program can be passed to the interpreter in three forms...". This also applies to Windows. PR fixes this. ---------- assignee: docs at python components: Documentation messages: 319703 nosy: adelfino, docs at python priority: normal severity: normal status: open title: doc Mention Windows along UNIX for script running instructions type: enhancement versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 23:34:23 2018 From: report at bugs.python.org (Mariatta Wijaya) Date: Sat, 16 Jun 2018 03:34:23 +0000 Subject: [issue33836] [Good first-time issue] Recommend keyword-only param for memoization in FAQ In-Reply-To: <1528732775.39.0.592728768989.issue33836@psf.upfronthosting.co.za> Message-ID: <1529120063.87.0.56676864532.issue33836@psf.upfronthosting.co.za> Mariatta Wijaya added the comment: Thanks! ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 23:36:36 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Sat, 16 Jun 2018 03:36:36 +0000 Subject: [issue33877] doc Mention Windows along UNIX for script running instructions In-Reply-To: <1529120030.12.0.56676864532.issue33877@psf.upfronthosting.co.za> Message-ID: <1529120196.07.0.56676864532.issue33877@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- keywords: +patch pull_requests: +7352 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 23:45:09 2018 From: report at bugs.python.org (Carol Willing) Date: Sat, 16 Jun 2018 03:45:09 +0000 Subject: [issue33876] doc Mention the MicroPython implementation in Introduction In-Reply-To: <1529118910.74.0.56676864532.issue33876@psf.upfronthosting.co.za> Message-ID: <1529120709.82.0.56676864532.issue33876@psf.upfronthosting.co.za> Carol Willing added the comment: A reasonable suggestion. Let's make sure that we mention CircuitPython as well. ---------- nosy: +willingc _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 23:46:32 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 16 Jun 2018 03:46:32 +0000 Subject: [issue33836] [Good first-time issue] Recommend keyword-only param for memoization in FAQ In-Reply-To: <1528732775.39.0.592728768989.issue33836@psf.upfronthosting.co.za> Message-ID: <1529120792.94.0.56676864532.issue33836@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 5a0bf74d4ec11a246b401896cbfb2e840c13da40 by Miss Islington (bot) in branch '3.7': bpo-33836: Recommend keyword-only param for memoization in FAQ (GH-7687) https://github.com/python/cpython/commit/5a0bf74d4ec11a246b401896cbfb2e840c13da40 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 23:46:41 2018 From: report at bugs.python.org (Mariatta Wijaya) Date: Sat, 16 Jun 2018 03:46:41 +0000 Subject: [issue33571] Add triple quotes to list of delimiters that trigger '...' prompt Message-ID: <1529120801.36.0.56676864532.issue33571@psf.upfronthosting.co.za> New submission from Mariatta Wijaya : New changeset 68680035143a3a6398faa88f067f244c74691d19 by Mariatta (Andr?s Delfino) in branch 'master': bpo-33571: Improve the glossary description for '...' prompt (GH-6971) https://github.com/python/cpython/commit/68680035143a3a6398faa88f067f244c74691d19 ---------- nosy: +Mariatta _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 23:47:09 2018 From: report at bugs.python.org (Mariatta Wijaya) Date: Sat, 16 Jun 2018 03:47:09 +0000 Subject: [issue33571] Add triple quotes to list of delimiters that trigger '...' prompt In-Reply-To: <1529120801.36.0.56676864532.issue33571@psf.upfronthosting.co.za> Message-ID: <1529120829.37.0.56676864532.issue33571@psf.upfronthosting.co.za> Mariatta Wijaya added the comment: Thanks! ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 23:47:53 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 16 Jun 2018 03:47:53 +0000 Subject: [issue33571] Add triple quotes to list of delimiters that trigger '...' prompt In-Reply-To: <1529120801.36.0.56676864532.issue33571@psf.upfronthosting.co.za> Message-ID: <1529120873.36.0.56676864532.issue33571@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7353 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 23:48:50 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 16 Jun 2018 03:48:50 +0000 Subject: [issue33571] Add triple quotes to list of delimiters that trigger '...' prompt In-Reply-To: <1529120801.36.0.56676864532.issue33571@psf.upfronthosting.co.za> Message-ID: <1529120930.09.0.56676864532.issue33571@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7354 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 23:49:47 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 16 Jun 2018 03:49:47 +0000 Subject: [issue33571] Add triple quotes to list of delimiters that trigger '...' prompt In-Reply-To: <1529120801.36.0.56676864532.issue33571@psf.upfronthosting.co.za> Message-ID: <1529120987.27.0.56676864532.issue33571@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7355 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 23:50:30 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 16 Jun 2018 03:50:30 +0000 Subject: [issue33836] [Good first-time issue] Recommend keyword-only param for memoization in FAQ In-Reply-To: <1528732775.39.0.592728768989.issue33836@psf.upfronthosting.co.za> Message-ID: <1529121030.45.0.56676864532.issue33836@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 2636833e8e9cb16ba3ae7bf776bbfc91f176367c by Miss Islington (bot) in branch '3.6': bpo-33836: Recommend keyword-only param for memoization in FAQ (GH-7687) https://github.com/python/cpython/commit/2636833e8e9cb16ba3ae7bf776bbfc91f176367c ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jun 15 23:58:17 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 16 Jun 2018 03:58:17 +0000 Subject: [issue33571] Add triple quotes to list of delimiters that trigger '...' prompt In-Reply-To: <1529120801.36.0.56676864532.issue33571@psf.upfronthosting.co.za> Message-ID: <1529121497.43.0.56676864532.issue33571@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 80c51c4737c6bb51dd76d2ab6c5f7ea75bf118f2 by Miss Islington (bot) in branch '2.7': bpo-33571: Improve the glossary description for '...' prompt (GH-6971) https://github.com/python/cpython/commit/80c51c4737c6bb51dd76d2ab6c5f7ea75bf118f2 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 00:03:22 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 16 Jun 2018 04:03:22 +0000 Subject: [issue33571] Add triple quotes to list of delimiters that trigger '...' prompt In-Reply-To: <1529120801.36.0.56676864532.issue33571@psf.upfronthosting.co.za> Message-ID: <1529121802.42.0.56676864532.issue33571@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 380a2b09e8c78b1222f9295e82e7ef34a0e70d99 by Miss Islington (bot) in branch '3.7': bpo-33571: Improve the glossary description for '...' prompt (GH-6971) https://github.com/python/cpython/commit/380a2b09e8c78b1222f9295e82e7ef34a0e70d99 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 00:08:24 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 16 Jun 2018 04:08:24 +0000 Subject: [issue33571] Add triple quotes to list of delimiters that trigger '...' prompt In-Reply-To: <1529120801.36.0.56676864532.issue33571@psf.upfronthosting.co.za> Message-ID: <1529122104.62.0.56676864532.issue33571@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 8e6428f21699e15b5d96f949db221f20d8466b4b by Miss Islington (bot) in branch '3.6': bpo-33571: Improve the glossary description for '...' prompt (GH-6971) https://github.com/python/cpython/commit/8e6428f21699e15b5d96f949db221f20d8466b4b ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 00:40:59 2018 From: report at bugs.python.org (Nick Coghlan) Date: Sat, 16 Jun 2018 04:40:59 +0000 Subject: [issue33499] Environment variable to set alternate location for pycache tree In-Reply-To: <1526310769.71.0.682650639539.issue33499@psf.upfronthosting.co.za> Message-ID: <1529124059.59.0.56676864532.issue33499@psf.upfronthosting.co.za> Nick Coghlan added the comment: New changeset b193fa996a746111252156f11fb14c12fd6267e6 by Nick Coghlan (Carl Meyer) in branch 'master': bpo-33499: Add PYTHONPYCACHEPREFIX env var for alt bytecode cache location. (GH-6834) https://github.com/python/cpython/commit/b193fa996a746111252156f11fb14c12fd6267e6 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 00:45:26 2018 From: report at bugs.python.org (Nick Coghlan) Date: Sat, 16 Jun 2018 04:45:26 +0000 Subject: [issue33499] Environment variable to set alternate location for pycache tree In-Reply-To: <1526310769.71.0.682650639539.issue33499@psf.upfronthosting.co.za> Message-ID: <1529124326.2.0.56676864532.issue33499@psf.upfronthosting.co.za> Nick Coghlan added the comment: Merged as PYTHONPYCACHEPREFIX=path, -X pycache_prefix=path and sys.pycache_prefix :) I'll also update PEP 304 with a note saying a variant of the idea was eventually accepted for Python 3.8. ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 01:08:34 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sat, 16 Jun 2018 05:08:34 +0000 Subject: [issue33859] Spelling mistakes found using aspell In-Reply-To: <1528978179.87.0.947875510639.issue33859@psf.upfronthosting.co.za> Message-ID: <1529125714.14.0.56676864532.issue33859@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: New changeset c151f7846d6d900c22edaaa77f5f7771b529099e by Serhiy Storchaka (Xtreak) in branch 'master': bpo-33859: Fix spelling mistakes in docs. (GH-7691) https://github.com/python/cpython/commit/c151f7846d6d900c22edaaa77f5f7771b529099e ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 01:09:46 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 16 Jun 2018 05:09:46 +0000 Subject: [issue33859] Spelling mistakes found using aspell In-Reply-To: <1528978179.87.0.947875510639.issue33859@psf.upfronthosting.co.za> Message-ID: <1529125786.86.0.56676864532.issue33859@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7356 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 01:12:29 2018 From: report at bugs.python.org (Nick Coghlan) Date: Sat, 16 Jun 2018 05:12:29 +0000 Subject: [issue33499] Environment variable to set alternate location for pycache tree In-Reply-To: <1526310769.71.0.682650639539.issue33499@psf.upfronthosting.co.za> Message-ID: <1529125949.66.0.56676864532.issue33499@psf.upfronthosting.co.za> Change by Nick Coghlan : ---------- pull_requests: +7357 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 01:14:55 2018 From: report at bugs.python.org (Karthikeyan Singaravelan) Date: Sat, 16 Jun 2018 05:14:55 +0000 Subject: [issue33865] [EASY] Missing code page aliases: "unknown encoding: 874" In-Reply-To: <1529023151.32.0.947875510639.issue33865@psf.upfronthosting.co.za> Message-ID: <1529126095.94.0.56676864532.issue33865@psf.upfronthosting.co.za> Karthikeyan Singaravelan added the comment: There are certain encodings as I went through the file Lib/encodings/aliases.py where there are all digit items that doesn't correspond to cpXXXX sequence. I think the search function is used not only for encodings that start with 'cp' and thus adding the logic might result in checks for extra cases. Sample cases : '936' : 'gbk' '8859' : 'latin_1' '646' : 'ascii' I also have limited knowledge on working through encodings/__init__.py so correct me if I am wrong on the above. Thanks. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 01:20:34 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sat, 16 Jun 2018 05:20:34 +0000 Subject: [issue33865] [EASY] Missing code page aliases: "unknown encoding: 874" In-Reply-To: <1529023151.32.0.947875510639.issue33865@psf.upfronthosting.co.za> Message-ID: <1529126434.04.0.56676864532.issue33865@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: Of course entries in the alias table should have a precedence. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 01:26:41 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 16 Jun 2018 05:26:41 +0000 Subject: [issue33859] Spelling mistakes found using aspell In-Reply-To: <1528978179.87.0.947875510639.issue33859@psf.upfronthosting.co.za> Message-ID: <1529126801.8.0.56676864532.issue33859@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 416e488415cacec98778da11da401c1b94d92c10 by Miss Islington (bot) in branch '3.7': bpo-33859: Fix spelling mistakes in docs. (GH-7691) https://github.com/python/cpython/commit/416e488415cacec98778da11da401c1b94d92c10 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 01:52:13 2018 From: report at bugs.python.org (Karthikeyan Singaravelan) Date: Sat, 16 Jun 2018 05:52:13 +0000 Subject: [issue33859] Spelling mistakes found using aspell In-Reply-To: <1528978179.87.0.947875510639.issue33859@psf.upfronthosting.co.za> Message-ID: <1529128333.66.0.56676864532.issue33859@psf.upfronthosting.co.za> Change by Karthikeyan Singaravelan : ---------- pull_requests: +7358 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 01:56:16 2018 From: report at bugs.python.org (Xiang Zhang) Date: Sat, 16 Jun 2018 05:56:16 +0000 Subject: [issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3 In-Reply-To: <1486355272.29.0.0894514518656.issue29456@psf.upfronthosting.co.za> Message-ID: <1529128576.58.0.56676864532.issue29456@psf.upfronthosting.co.za> Xiang Zhang added the comment: As I said, I checked Unicode 3.0 for the hangul composition algorithm. It looks consistent with Unicode 4.1+. 3.0 only gets description but no sample implementation. So I think the changed code also applies to Unicode 3.0+. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 02:33:21 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sat, 16 Jun 2018 06:33:21 +0000 Subject: [issue33859] Spelling mistakes found using aspell In-Reply-To: <1528978179.87.0.947875510639.issue33859@psf.upfronthosting.co.za> Message-ID: <1529130801.98.0.56676864532.issue33859@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: New changeset c5ff553ae717c33f86d4fa984ee92de71c467f2a by Serhiy Storchaka (Xtreak) in branch '3.6': [3.6] bpo-33859: Fix spelling mistakes in docs. (GH-7691). (GH-7750) https://github.com/python/cpython/commit/c5ff553ae717c33f86d4fa984ee92de71c467f2a ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 02:42:59 2018 From: report at bugs.python.org (Raymond Hettinger) Date: Sat, 16 Jun 2018 06:42:59 +0000 Subject: [issue33859] Spelling mistakes found using aspell In-Reply-To: <1528978179.87.0.947875510639.issue33859@psf.upfronthosting.co.za> Message-ID: <1529131379.35.0.56676864532.issue33859@psf.upfronthosting.co.za> Raymond Hettinger added the comment: Thanks for finding these mistakes :-) ---------- nosy: +rhettinger _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 03:06:20 2018 From: report at bugs.python.org (Karthikeyan Singaravelan) Date: Sat, 16 Jun 2018 07:06:20 +0000 Subject: [issue33859] Spelling mistakes found using aspell In-Reply-To: <1528978179.87.0.947875510639.issue33859@psf.upfronthosting.co.za> Message-ID: <1529132780.78.0.56676864532.issue33859@psf.upfronthosting.co.za> Karthikeyan Singaravelan added the comment: Thanks much @rhettinger and the team for all the work on documentation. This is my first patch and I am pretty amazed at the smooth experience for a beginner like me with GitHub and helpful bots. I hope to contribute more. Just wanted to leave a note that this was inspired by the Rust book's work where they have a CI running with aspell to make sure that there are no spelling mistakes in the book. It would require a personal dictionary where all the valid words have to be added. I think given the rate of documentation changes that go into the repository having a personal dictionary will result in merge conflicts and not a feasible option but I just want to put this idea here. The initial work requires me to a manual scan of 10k words and hence I might have missed some words or assumed some spellings as correct. I think this can be used for code comments as well but would require even more attention since the dictionary file will be large. Reference : https://github.com/rust-lang/book/blob/a5c9f1f9fbcda0a6e16ea80e64452b33006f4127/ci/spellcheck.sh#L56 Command to generate a personal file : cd Docs && find . -iname '*rst' | xargs -I{} sh -c "aspell --master=en_US --extra-dicts=en_GB --ignore 3 list < {}" | sort | uniq > typos.txt typos.txt : https://gist.github.com/tirkarthi/d49ac3fdce93c1e3ab4b85b5e1c82b49 Thanks again :) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 03:22:23 2018 From: report at bugs.python.org (Raymond Hettinger) Date: Sat, 16 Jun 2018 07:22:23 +0000 Subject: [issue33874] dictviews set operations do not follow pattern of set or frozenset In-Reply-To: <1529116041.48.0.56676864532.issue33874@psf.upfronthosting.co.za> Message-ID: <1529133743.9.0.56676864532.issue33874@psf.upfronthosting.co.za> Raymond Hettinger added the comment: It's true the concrete set API differs in some ways from the Set abstract base class followed by dictviews. The concrete set-to-set operators are restricted to only work with other sets, leaving the named set methods (union, intersection, difference, etc) to accept any iterable. In contrast, the Set abstract base class only has operators and those are specifically allowed to accept any iterable. It may not seem harmonious, but those were intentional and long-standing design decisions. The restriction on concrete set operators to only work with other sets can be traced back to bad experiences with the += operator for lists accepting any iterable (allowing mistakes like s+='abc' when s.append('abc') was intended). Different choices were made in the design of the abstract Set API. In order to be useful, that API can't make as strong of a restriction, so it allows any iterable to be used as inputs to the operators. Also note that the abstract Set API doesn't have the named set methods (union, intersection, difference, etc), so the burden of falls on the operators to support iterables. IIRC, the reason that the named set methods were omitted was to make it easier to implement conforming classes that could interoperate with one another. For more details on the design of the collections ABCs, see Guido's PEP on the subject (that's where he explains was problem the abstract classes where intended to solve and some of design considerations). One can argue with those design decisions, but that ship sailed a long time ago and it would no longer be possible to change either set or Set without breaking existing code. The existing behaviors are intentional, venerable, tested, and guaranteed. ---------- nosy: +rhettinger resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 03:26:50 2018 From: report at bugs.python.org (Raymond Hettinger) Date: Sat, 16 Jun 2018 07:26:50 +0000 Subject: [issue33864] collections.abc.ByteString does not register memoryview In-Reply-To: <1529012616.87.0.947875510639.issue33864@psf.upfronthosting.co.za> Message-ID: <1529134010.13.0.56676864532.issue33864@psf.upfronthosting.co.za> Raymond Hettinger added the comment: The docs should be made more precise. Perhaps, "This type represents the types bytes, bytearray, and memoryview of byte sequences"? ---------- nosy: +rhettinger _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 03:37:51 2018 From: report at bugs.python.org (Karthikeyan Singaravelan) Date: Sat, 16 Jun 2018 07:37:51 +0000 Subject: [issue33865] [EASY] Missing code page aliases: "unknown encoding: 874" In-Reply-To: <1529023151.32.0.947875510639.issue33865@psf.upfronthosting.co.za> Message-ID: <1529134671.89.0.56676864532.issue33865@psf.upfronthosting.co.za> Karthikeyan Singaravelan added the comment: Thanks @serhiy.storchaka . I looked into the code and it seems the resolution is done in `search_function` at Lib/encodings/__init__.py . It seems that encoding is normalized using some logic and then we use the normalized encoding to check against aliases which is the dictionary where I have added the alias. If it's not found then '.' is replaced with '_' to check again. I hope this is the place where I need to check if aliased_encoding is None after both attempts and norm_encoding is all digits then prepend "cp" to norm_encoding to check again against `aliases` dictionary. Unfortunately, print and pdb doesn't work inside the function and I don't know how to test this change or write test cases for the same. Any pointers will be highly helpful. Thanks ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 03:40:29 2018 From: report at bugs.python.org (Raymond Hettinger) Date: Sat, 16 Jun 2018 07:40:29 +0000 Subject: [issue33876] doc Mention the MicroPython implementation in Introduction In-Reply-To: <1529118910.74.0.56676864532.issue33876@psf.upfronthosting.co.za> Message-ID: <1529134829.57.0.56676864532.issue33876@psf.upfronthosting.co.za> Raymond Hettinger added the comment: IIRC, Guido recognized only PyPy, Jython, and IronPython as alternate conforming implementations. A number of other projects were python-like but were also going off in their own directions not subject to his pronouncements. MicroPython is a pretty cool project but I don't think that its goal is for most code written for CPython would run on MicroPython or vice-versa. That said, somewhere in the docs (a FAQ entry) there should be a list some of pythonesque implementation like MicroPython, CircuitPython, CPython, VPython, etc. IMO, the Language Reference is the wrong place. That document (which used to be subtitled "for language lawyers only") is intended to be the most precise and offical specification of the Python language. It doesn't make sense to reference implementations that don't follow the specification. ---------- nosy: +rhettinger _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 03:43:13 2018 From: report at bugs.python.org (Raymond Hettinger) Date: Sat, 16 Jun 2018 07:43:13 +0000 Subject: [issue33876] doc Mention the MicroPython implementation in Introduction In-Reply-To: <1529118910.74.0.56676864532.issue33876@psf.upfronthosting.co.za> Message-ID: <1529134993.65.0.56676864532.issue33876@psf.upfronthosting.co.za> Raymond Hettinger added the comment: Addenda: Somewhere in the annals of our history this was discussed before (perhaps dating back to Stackless Python). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 03:51:58 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sat, 16 Jun 2018 07:51:58 +0000 Subject: [issue33865] [EASY] Missing code page aliases: "unknown encoding: 874" In-Reply-To: <1529023151.32.0.947875510639.issue33865@psf.upfronthosting.co.za> Message-ID: <1529135518.17.0.56676864532.issue33865@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: It is easy to test it. Encoding/decoding with '874' should give the same result as with 'cp874'. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 04:47:53 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sat, 16 Jun 2018 08:47:53 +0000 Subject: [issue31966] [EASY C][Windows] print('hello\n', end='', flush=True) raises OSError when ran with py -u In-Reply-To: <1510047605.77.0.213398074469.issue31966@psf.upfronthosting.co.za> Message-ID: <1529138873.86.0.56676864532.issue31966@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 06:13:08 2018 From: report at bugs.python.org (Martin Panter) Date: Sat, 16 Jun 2018 10:13:08 +0000 Subject: [issue11380] Improve reporting of broken stdout pipe during interpreter shutdown In-Reply-To: <1299115966.12.0.337666295395.issue11380@psf.upfronthosting.co.za> Message-ID: <1529143988.01.0.56676864532.issue11380@psf.upfronthosting.co.za> Martin Panter added the comment: Issue 33550 was opened about Mike?s case of ignoring broken pipe conditions. BTW a side effect of closing sys.stderr is that error messages reported by interpreter shutdown will be missing (even if there was no broken pipe). For example, exception messages reported by sys.excepthook. ---------- nosy: +martin.panter _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 06:26:02 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sat, 16 Jun 2018 10:26:02 +0000 Subject: [issue33861] Minor improvements of tests for os.path. In-Reply-To: <1528995572.61.0.947875510639.issue33861@psf.upfronthosting.co.za> Message-ID: <1529144762.39.0.56676864532.issue33861@psf.upfronthosting.co.za> Serhiy Storchaka added the comment: New changeset 17a0088e2680e12ce2c5f2ffc6b71766299e38d5 by Serhiy Storchaka in branch 'master': bpo-33861: Minor improvements of tests for os.path. (GH-7715) https://github.com/python/cpython/commit/17a0088e2680e12ce2c5f2ffc6b71766299e38d5 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 06:27:21 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 16 Jun 2018 10:27:21 +0000 Subject: [issue33861] Minor improvements of tests for os.path. In-Reply-To: <1528995572.61.0.947875510639.issue33861@psf.upfronthosting.co.za> Message-ID: <1529144841.38.0.56676864532.issue33861@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7359 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 06:28:05 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 16 Jun 2018 10:28:05 +0000 Subject: [issue33861] Minor improvements of tests for os.path. In-Reply-To: <1528995572.61.0.947875510639.issue33861@psf.upfronthosting.co.za> Message-ID: <1529144885.86.0.56676864532.issue33861@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7360 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 06:57:52 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 16 Jun 2018 10:57:52 +0000 Subject: [issue33861] Minor improvements of tests for os.path. In-Reply-To: <1528995572.61.0.947875510639.issue33861@psf.upfronthosting.co.za> Message-ID: <1529146672.96.0.56676864532.issue33861@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 633593372a8aec46644a39e8d0b68e0f1eb5ed38 by Miss Islington (bot) in branch '3.7': bpo-33861: Minor improvements of tests for os.path. (GH-7715) https://github.com/python/cpython/commit/633593372a8aec46644a39e8d0b68e0f1eb5ed38 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 06:58:12 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 16 Jun 2018 10:58:12 +0000 Subject: [issue33861] Minor improvements of tests for os.path. In-Reply-To: <1528995572.61.0.947875510639.issue33861@psf.upfronthosting.co.za> Message-ID: <1529146692.36.0.56676864532.issue33861@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 5c23e21ef655db35af45ed98a62eb54bff64dbd0 by Miss Islington (bot) in branch '3.6': bpo-33861: Minor improvements of tests for os.path. (GH-7715) https://github.com/python/cpython/commit/5c23e21ef655db35af45ed98a62eb54bff64dbd0 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 07:04:58 2018 From: report at bugs.python.org (Serhiy Storchaka) Date: Sat, 16 Jun 2018 11:04:58 +0000 Subject: [issue33861] Minor improvements of tests for os.path. In-Reply-To: <1528995572.61.0.947875510639.issue33861@psf.upfronthosting.co.za> Message-ID: <1529147098.57.0.56676864532.issue33861@psf.upfronthosting.co.za> Change by Serhiy Storchaka : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 08:01:24 2018 From: report at bugs.python.org (Karthikeyan Singaravelan) Date: Sat, 16 Jun 2018 12:01:24 +0000 Subject: [issue33865] [EASY] Missing code page aliases: "unknown encoding: 874" In-Reply-To: <1529023151.32.0.947875510639.issue33865@psf.upfronthosting.co.za> Message-ID: <1529150484.86.0.56676864532.issue33865@psf.upfronthosting.co.za> Karthikeyan Singaravelan added the comment: I am able to verify the newly added aliases using the below assert statement assert codecs.encode('a', '874') == codecs.encode('a', 'cp874') I am struck on the part where it could be patched in the search_function and I hope this is the approach @serhiy.storchaka was making. After the usual logic I am checking if the aliased_encoding is None and if the normalized_encoding is all digits then I am prepending 'cp' in front and calling search_function again so that cases like '936' first look at the table which has higher precedence and then for other cases even though an entry is not present it returns 'cpXXXX' encoder. I have tested it by removing newly added '874' from aliases.py so that instead of an error 'cp874' is returned. Since in the next call the case of encoding being digits is not valid due to prepending 'cp' there will be no error due to infinite recursion for wrong ones. Thanks ---------- Added file: https://bugs.python.org/file47643/33865.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 08:32:11 2018 From: report at bugs.python.org (Karthikeyan Singaravelan) Date: Sat, 16 Jun 2018 12:32:11 +0000 Subject: [issue33830] Error in the output of one example in the httplib docs In-Reply-To: <1528713903.44.0.592728768989.issue33830@psf.upfronthosting.co.za> Message-ID: <1529152331.13.0.56676864532.issue33830@psf.upfronthosting.co.za> Change by Karthikeyan Singaravelan : ---------- nosy: +xtreak _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 08:37:58 2018 From: report at bugs.python.org (Forest) Date: Sat, 16 Jun 2018 12:37:58 +0000 Subject: [issue33874] dictviews set operations do not follow pattern of set or frozenset In-Reply-To: <1529133743.9.0.56676864532.issue33874@psf.upfronthosting.co.za> Message-ID: Forest added the comment: Thank you very much for thorough explanation! It really helped me understand the issue. Since this is the intended behavior, would it be good to add some tests for the behavior? I would have found those tests helpful in working on https://bugs.python.org/issue27575 If so, I'm happy to prepare a PR for adding some tests for this behavior. On Sat, Jun 16, 2018 at 2:22 AM Raymond Hettinger wrote: > > Raymond Hettinger added the comment: > > It's true the concrete set API differs in some ways from the Set abstract > base class followed by dictviews. The concrete set-to-set operators are > restricted to only work with other sets, leaving the named set methods > (union, intersection, difference, etc) to accept any iterable. In > contrast, the Set abstract base class only has operators and those are > specifically allowed to accept any iterable. > > It may not seem harmonious, but those were intentional and long-standing > design decisions. The restriction on concrete set operators to only work > with other sets can be traced back to bad experiences with the += operator > for lists accepting any iterable (allowing mistakes like s+='abc' when > s.append('abc') was intended). > > Different choices were made in the design of the abstract Set API. In > order to be useful, that API can't make as strong of a restriction, so it > allows any iterable to be used as inputs to the operators. Also note that > the abstract Set API doesn't have the named set methods (union, > intersection, difference, etc), so the burden of falls on the operators to > support iterables. IIRC, the reason that the named set methods were > omitted was to make it easier to implement conforming classes that could > interoperate with one another. For more details on the design of the > collections ABCs, see Guido's PEP on the subject (that's where he explains > was problem the abstract classes where intended to solve and some of design > considerations). > > One can argue with those design decisions, but that ship sailed a long > time ago and it would no longer be possible to change either set or Set > without breaking existing code. The existing behaviors are intentional, > venerable, tested, and guaranteed. > > ---------- > nosy: +rhettinger > resolution: -> not a bug > stage: -> resolved > status: open -> closed > > _______________________________________ > Python tracker > > _______________________________________ > ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 09:01:46 2018 From: report at bugs.python.org (Julien Palard) Date: Sat, 16 Jun 2018 13:01:46 +0000 Subject: [issue33878] Doc: Assignment statement to tuple or list: case missing. Message-ID: <1529154106.75.0.56676864532.issue33878@psf.upfronthosting.co.za> New submission from Julien Palard : In [1] I read: > If the target list is a comma-separated list of targets, or a single target in square brackets This come from https://bugs.python.org/issue23275 (patch is [2]). I suspect there's a missing case "list of targets in square brackets" (and to be pedantic "list of targets in parenthesis"). The specialized documentation about single-valued targets in sequence-like construction come from this difference: >>> (a) = 42 >>> a 42 >>> [a] = [42] >>> a 42 which is correctly described the line before: > If the target list is a single target in parentheses: The object is assigned to that target. So the correct way to state it may be: > Else the object must be an iterable with the same number of items as there are targets in the target list, and the items are assigned, from left to right, to the corresponding targets. The `Else`, coupled with the existing "Assignment of an object to a target list, optionally enclosed in parentheses or square brackets" covers properly the cases: - Multiple target separated by comas (already covered) - Multiple target enclosed by parenthesis and brackets (not covered) - Single target enclosed by angle brackets (already covered) [1]: https://docs.python.org/3.7/reference/simple_stmts.html#assignment-statements [2]: https://bugs.python.org/file42878/issue23275_v4.diff ---------- assignee: docs at python components: Documentation messages: 319735 nosy: docs at python, martin.panter, mdk priority: normal severity: normal status: open title: Doc: Assignment statement to tuple or list: case missing. type: enhancement _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 09:04:37 2018 From: report at bugs.python.org (Martin Panter) Date: Sat, 16 Jun 2018 13:04:37 +0000 Subject: [issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x In-Reply-To: <1527128333.92.0.682650639539.issue33630@psf.upfronthosting.co.za> Message-ID: <1529154277.62.0.56676864532.issue33630@psf.upfronthosting.co.za> Martin Panter added the comment: I doubt it is a race condition. ?Waitpid? only returns after the child has terminated, and the file should be created as the child starts, before it terminates. Surely it is just the buggy glibc opening the DBDBDB file, when the test case expects it to create outfile. ---------- nosy: +martin.panter _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 09:32:49 2018 From: report at bugs.python.org (Martin Panter) Date: Sat, 16 Jun 2018 13:32:49 +0000 Subject: [issue33878] Doc: Assignment statement to tuple or list: case missing. In-Reply-To: <1529154106.75.0.56676864532.issue33878@psf.upfronthosting.co.za> Message-ID: <1529155969.73.0.56676864532.issue33878@psf.upfronthosting.co.za> Martin Panter added the comment: I think I intended the third option to include all comma-separated lists, including: a, b, c = x # No brackets (a, b, c) = x # Round brackets [a, b, c] = x # Square brackets a, = x # Single target with comma Perhaps something like this would be clearer: * If the target list is * a comma-separated list of targets, with or without brackets, or * a single target with a trailing comma, with or without brackets, or * a single target in square brackets, the object must be . . . The empty target list case could also be merged. Then the only differentiation is between a single target (no comma, optional round brackets) and iterable unpacking. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 09:36:04 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Sat, 16 Jun 2018 13:36:04 +0000 Subject: [issue33876] doc Mention the MicroPython implementation in Introduction In-Reply-To: <1529118910.74.0.56676864532.issue33876@psf.upfronthosting.co.za> Message-ID: <1529156164.24.0.56676864532.issue33876@psf.upfronthosting.co.za> Andr?s Delfino added the comment: Sorry, I didn't knew that :) I'll update the PR adding an entry in the FAQ. With "CPython" in "pythonesque implementation like MicroPython, CircuitPython, CPython" did you mean Cython? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 10:24:37 2018 From: report at bugs.python.org (Carol Willing) Date: Sat, 16 Jun 2018 14:24:37 +0000 Subject: [issue33876] doc Mention the MicroPython implementation in Introduction In-Reply-To: <1529118910.74.0.56676864532.issue33876@psf.upfronthosting.co.za> Message-ID: <1529159077.76.0.56676864532.issue33876@psf.upfronthosting.co.za> Carol Willing added the comment: Thanks Raymond :-) The FAQ seems like a good place to share. Cython would be a nice addition and perhaps IPython too. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 10:34:45 2018 From: report at bugs.python.org (Carol Willing) Date: Sat, 16 Jun 2018 14:34:45 +0000 Subject: [issue22571] Remove import * recommendations and examples in doc? In-Reply-To: <1412627004.13.0.564055290321.issue22571@psf.upfronthosting.co.za> Message-ID: <1529159685.22.0.56676864532.issue22571@psf.upfronthosting.co.za> Carol Willing added the comment: Hi @terry.reedy @rhettinger, I'm triaging the 'turtle' open issues. I'm wondering if we can close this issue with a resolution of "Remind". If there are '*' imports that folks feel strongly about changing, then those could be opened now or in the future as a new, more narrowly scoped issue(s) with cleared next actions for contributors. ---------- nosy: +willingc _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 10:38:59 2018 From: report at bugs.python.org (Carol Willing) Date: Sat, 16 Jun 2018 14:38:59 +0000 Subject: [issue6717] Some problem with recursion handling In-Reply-To: <1250518561.04.0.421053701967.issue6717@psf.upfronthosting.co.za> Message-ID: <1529159939.8.0.56676864532.issue6717@psf.upfronthosting.co.za> Carol Willing added the comment: Hi Gregor and others, I'm triaging 'turtle' issues. I'm recommending, if I don't hear an objection in two weeks, closing this issue with a resolution of "outdated". Thanks. ---------- nosy: +willingc _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 10:50:45 2018 From: report at bugs.python.org (Carol Willing) Date: Sat, 16 Jun 2018 14:50:45 +0000 Subject: [issue21914] Create unit tests for Turtle guionly In-Reply-To: <1404442037.11.0.611165319303.issue21914@psf.upfronthosting.co.za> Message-ID: <1529160645.2.0.56676864532.issue21914@psf.upfronthosting.co.za> Carol Willing added the comment: A reasonable next step for this patch review would be to review these tests to see if they still apply for more recent Python versions as well. This is a "new contributor"-friendly issue. I'm sorry Lita.Cho that these patches languished on the issue tracker. ---------- keywords: +easy nosy: +willingc _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 10:52:59 2018 From: report at bugs.python.org (Julien Palard) Date: Sat, 16 Jun 2018 14:52:59 +0000 Subject: [issue33878] Doc: Assignment statement to tuple or list: case missing. In-Reply-To: <1529154106.75.0.56676864532.issue33878@psf.upfronthosting.co.za> Message-ID: <1529160779.7.0.56676864532.issue33878@psf.upfronthosting.co.za> Julien Palard added the comment: Agree, the empty list could be merged, the only special-case is the "single item in parenthesis", as always. I'm still exploring the path to simplicity over explicitly listing everything (but in the reference, explicitly listing could be what we need): Assignment of an object to a target list, optionally enclosed in parentheses or square brackets, is recursively defined as follows. If the target list is a single target in parentheses: The object is assigned to that target. Else the object must be an iterable with the same number of items as there are targets in the target list, and the items are assigned, from left to right, to the corresponding targets. What do you think? Should we go full-explicit, with trailing comas and everything? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 11:00:18 2018 From: report at bugs.python.org (Karthikeyan Singaravelan) Date: Sat, 16 Jun 2018 15:00:18 +0000 Subject: [issue33830] Error in the output of one example in the httplib docs In-Reply-To: <1528713903.44.0.592728768989.issue33830@psf.upfronthosting.co.za> Message-ID: <1529161218.53.0.56676864532.issue33830@psf.upfronthosting.co.za> Karthikeyan Singaravelan added the comment: I was making a patch for this and both Python 2.7 and Python 3.6 returned "404 OK" for the example instead of "404 Not Found". I think the end-point is misleading and it's better to use httpbin.org for this. cpython git:(master) ./python Python 3.8.0a0 (heads/master:c151f78, Jun 16 2018, 14:50:28) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import http.client >>> conn = http.client.HTTPSConnection("www.python.org") >>> conn.request("GET", "/") >>> r1 = conn.getresponse() >>> print(r1.status, r1.reason) 200 OK >>> data1 = r1.read() >>> conn.request("GET", "/parrot.spam") >>> r2 = conn.getresponse() >>> print(r2.status, r2.reason) 404 OK >>> data2 = r2.read() >>> conn.close() >>> conn = http.client.HTTPSConnection("httpbin.org") >>> conn.request("GET", "/status/404") >>> r2 = conn.getresponse() >>> print(r2.status, r2.reason) 404 NOT FOUND ? ~ python2.7 Python 2.7.14 (default, Mar 12 2018, 13:54:56) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import httplib >>> conn = httplib.HTTPSConnection("www.python.org") >>> conn.request("GET", "/") >>> r1 = conn.getresponse() >>> print r1.status, r1.reason 200 OK >>> data1 = r1.read() >>> conn.request("GET", "/parrot.spam") >>> r2 = conn.getresponse() >>> print r2.status, r2.reason 404 OK >>> ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 11:03:14 2018 From: report at bugs.python.org (Carol Willing) Date: Sat, 16 Jun 2018 15:03:14 +0000 Subject: [issue21941] Clean up turtle TPen class In-Reply-To: <1404873989.47.0.448854632734.issue21941@psf.upfronthosting.co.za> Message-ID: <1529161394.98.0.56676864532.issue21941@psf.upfronthosting.co.za> Carol Willing added the comment: Hi ingrid, Thanks for your work on this issue. I'm triaging the open "turtle" issues, and I'm going to go ahead and close this one. If you would like to open a new, more specific issue, I would welcome that. Thanks. ---------- nosy: +willingc resolution: -> remind stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 11:08:18 2018 From: report at bugs.python.org (Carol Willing) Date: Sat, 16 Jun 2018 15:08:18 +0000 Subject: [issue1702036] Make Turtle thread-safe so it does not crash Message-ID: <1529161698.47.0.56676864532.issue1702036@psf.upfronthosting.co.za> Carol Willing added the comment: Hi all, I'm triaging 'turtle' open issues. I'm going to close this issue with a resolution of not a Turtle bug. Thanks. ---------- nosy: +willingc resolution: -> not a bug stage: test needed -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 11:12:16 2018 From: report at bugs.python.org (Carol Willing) Date: Sat, 16 Jun 2018 15:12:16 +0000 Subject: [issue16428] turtle with compound shape doesn't get clicks In-Reply-To: <1352299609.35.0.759398778926.issue16428@psf.upfronthosting.co.za> Message-ID: <1529161936.07.0.56676864532.issue16428@psf.upfronthosting.co.za> Carol Willing added the comment: This issue is "new contributor"-friendly. The next steps would be to apply the patch to a recent version of Python 3, check if tests run cleanly, and if the patch resolves the issue. I'm sorry ingrid that the patch review languished on the issue tracker. ---------- nosy: +willingc versions: +Python 3.6 -Python 2.7, Python 3.2 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 11:13:15 2018 From: report at bugs.python.org (njayinthehouse) Date: Sat, 16 Jun 2018 15:13:15 +0000 Subject: [issue33879] Item assignment in tuple mutates list despite throwing error Message-ID: <1529161995.75.0.56676864532.issue33879@psf.upfronthosting.co.za> New submission from njayinthehouse : Seems like a bug. >>> a = (1, [1]) >>> a[1] += [2] Traceback (most recent call last): File "", line 1, in TypeError: 'tuple' object does not support item assignment >>> a (1, [1, 2]) ---------- messages: 319748 nosy: njayinthehouse priority: normal severity: normal status: open title: Item assignment in tuple mutates list despite throwing error type: behavior versions: Python 2.7, Python 3.4, Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 11:14:42 2018 From: report at bugs.python.org (Carol Willing) Date: Sat, 16 Jun 2018 15:14:42 +0000 Subject: [issue21077] Turtle Circle Speed 0 In-Reply-To: <1395936990.77.0.953738655575.issue21077@psf.upfronthosting.co.za> Message-ID: <1529162082.08.0.56676864532.issue21077@psf.upfronthosting.co.za> Carol Willing added the comment: The next step on this issue would be to test if this behavior is still present in Python 3.6 and 3.7 and report the result of your test here. ---------- nosy: +willingc _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 11:17:33 2018 From: report at bugs.python.org (Carol Willing) Date: Sat, 16 Jun 2018 15:17:33 +0000 Subject: [issue10531] write tilted text in turtle In-Reply-To: <1290702974.67.0.695196946667.issue10531@psf.upfronthosting.co.za> Message-ID: <1529162253.49.0.56676864532.issue10531@psf.upfronthosting.co.za> Carol Willing added the comment: This would be a fun feature to add. The next step on this issue would be to determine if this can be accomplished with Tk 8.6. ---------- nosy: +willingc versions: +Python 3.8 -Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 11:22:14 2018 From: report at bugs.python.org (Carol Willing) Date: Sat, 16 Jun 2018 15:22:14 +0000 Subject: [issue23660] Turtle left/right inverted when using different coordinates orientation In-Reply-To: <1426261372.66.0.413514291582.issue23660@psf.upfronthosting.co.za> Message-ID: <1529162534.91.0.56676864532.issue23660@psf.upfronthosting.co.za> Carol Willing added the comment: Hi aroberge, Thanks for filing this issue. I'm triaging all of the open 'turtle' issues. I'm closing this issue since introducing this suggested change would impact teaching materials and resources that have already been published. This would be a change that would break compatibility. I've marked the resolution as "Remind" if someone in the future wishes to open a documentation issue. ---------- nosy: +willingc resolution: -> remind stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 11:26:38 2018 From: report at bugs.python.org (Carol Willing) Date: Sat, 16 Jun 2018 15:26:38 +0000 Subject: [issue14117] Turtledemo: exception and minor glitches. In-Reply-To: <1330120365.77.0.428280648922.issue14117@psf.upfronthosting.co.za> Message-ID: <1529162798.65.0.56676864532.issue14117@psf.upfronthosting.co.za> Carol Willing added the comment: Hi @terry.reedy, I'm triaging open "turtle" issues. What do you think would be a reasonable next step for this issue? Perhaps: a contributor runs the demo and reports back here with the current behavior experienced. ---------- nosy: +willingc _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 11:30:05 2018 From: report at bugs.python.org (Carol Willing) Date: Sat, 16 Jun 2018 15:30:05 +0000 Subject: [issue24990] Foreign language support in turtle module In-Reply-To: <1441238139.14.0.540040388391.issue24990@psf.upfronthosting.co.za> Message-ID: <1529163005.88.0.56676864532.issue24990@psf.upfronthosting.co.za> Carol Willing added the comment: A good next step with this issue would be to look at the languages mentioned in the devguide experts page (https://devguide.python.org/experts/#documentation-translations) with people interested in translations ---------- nosy: +willingc _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 11:37:41 2018 From: report at bugs.python.org (Carol Willing) Date: Sat, 16 Jun 2018 15:37:41 +0000 Subject: [issue27461] Optimize PNGs In-Reply-To: <1467894574.39.0.144098385194.issue27461@psf.upfronthosting.co.za> Message-ID: <1529163461.54.0.56676864532.issue27461@psf.upfronthosting.co.za> Change by Carol Willing : ---------- stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 11:40:09 2018 From: report at bugs.python.org (Carol Willing) Date: Sat, 16 Jun 2018 15:40:09 +0000 Subject: [issue26571] turtle regression in 3.5 In-Reply-To: <1458104355.45.0.620158354917.issue26571@psf.upfronthosting.co.za> Message-ID: <1529163609.38.0.56676864532.issue26571@psf.upfronthosting.co.za> Change by Carol Willing : ---------- stage: -> needs patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 11:44:34 2018 From: report at bugs.python.org (Carol Willing) Date: Sat, 16 Jun 2018 15:44:34 +0000 Subject: [issue29560] Turtle graphics fill behavior differs between versions In-Reply-To: <1487100128.83.0.366459584593.issue29560@psf.upfronthosting.co.za> Message-ID: <1529163874.71.0.56676864532.issue29560@psf.upfronthosting.co.za> Carol Willing added the comment: The next action for this issue would be to run the demo listed on Python 3.7 and report the results back here. We can then document expected behavior if it differs. ---------- nosy: +willingc _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 11:49:26 2018 From: report at bugs.python.org (Carol Willing) Date: Sat, 16 Jun 2018 15:49:26 +0000 Subject: [issue23922] Refactor icon setting to a separate function for Turtle In-Reply-To: <1428861614.96.0.721771203423.issue23922@psf.upfronthosting.co.za> Message-ID: <1529164166.84.0.56676864532.issue23922@psf.upfronthosting.co.za> Carol Willing added the comment: I've updated the issue title to reflect Terry's comments and changed the stage to needs patch. ---------- nosy: +willingc stage: test needed -> needs patch title: turtle.py and turtledemo use the default tkinter icon -> Refactor icon setting to a separate function for Turtle versions: -Python 3.6 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 11:53:08 2018 From: report at bugs.python.org (Carol Willing) Date: Sat, 16 Jun 2018 15:53:08 +0000 Subject: [issue31725] Turtle/tkinter: NameError crashes ipython with "Tcl_AsyncDelete: async handler deleted by the wrong thread" In-Reply-To: <1507447004.91.0.213398074469.issue31725@psf.upfronthosting.co.za> Message-ID: <1529164388.83.0.56676864532.issue31725@psf.upfronthosting.co.za> Carol Willing added the comment: Hi Rick, I'm closing this issue as not reproducible. Thanks for filing it and using Turtle. ---------- nosy: +willingc resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 11:54:54 2018 From: report at bugs.python.org (Ned Deily) Date: Sat, 16 Jun 2018 15:54:54 +0000 Subject: [issue33877] doc Mention Windows along UNIX for script running instructions In-Reply-To: <1529120030.12.0.56676864532.issue33877@psf.upfronthosting.co.za> Message-ID: <1529164494.55.0.56676864532.issue33877@psf.upfronthosting.co.za> Change by Ned Deily : ---------- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 11:55:33 2018 From: report at bugs.python.org (Ned Deily) Date: Sat, 16 Jun 2018 15:55:33 +0000 Subject: [issue33877] doc Mention Windows along UNIX for script running instructions In-Reply-To: <1529120030.12.0.56676864532.issue33877@psf.upfronthosting.co.za> Message-ID: <1529164533.44.0.56676864532.issue33877@psf.upfronthosting.co.za> Change by Ned Deily : ---------- nosy: +terry.reedy _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 12:02:48 2018 From: report at bugs.python.org (Ned Deily) Date: Sat, 16 Jun 2018 16:02:48 +0000 Subject: [issue33871] Possible integer overflow in iov_setup() In-Reply-To: <1529086477.01.0.579493977442.issue33871@psf.upfronthosting.co.za> Message-ID: <1529164968.77.0.56676864532.issue33871@psf.upfronthosting.co.za> Ned Deily added the comment: Test case: import os fo = open('/tmp/temp', 'wb') fi = open('/tmp/temp', 'rb') os.sendfile(fo.fileno(), fi.fileno(), 0, 0, headers=[b'x' * 2**16] * 2**15) -- run against current master HEAD (2f9cbaa8b2190b6dfd3157ede9b6973523a3b939, as of 2018-06-15) --with-pydebug current macOS 10.13.5 64-bit Python $ ./bin/python3.8 ~/Desktop/test_s.py Traceback (most recent call last): File "/Users/nad/Desktop/test_s.py", line 4, in os.sendfile(fo.fileno(), fi.fileno(), 0, 0, headers=[b'x' * 2**16] * 2**15) OSError: [Errno 38] Socket operation on non-socket sys:1: ResourceWarning: unclosed file <_io.BufferedWriter name='/tmp/temp'> sys:1: ResourceWarning: unclosed file <_io.BufferedReader name='/tmp/temp'> 32-bit Python $ ./bin/python3.8-32 ~/Desktop/test_s.py Fatal Python error: a function returned NULL without setting an error SystemError: returned NULL without setting an error Current thread 0xa983a1c0 (most recent call first): File "/Users/nad/Desktop/test_s.py", line 4 in Abort trap: 6 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 12:10:31 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Sat, 16 Jun 2018 16:10:31 +0000 Subject: [issue33876] doc Mention the MicroPython implementation in Introduction In-Reply-To: <1529118910.74.0.56676864532.issue33876@psf.upfronthosting.co.za> Message-ID: <1529165431.57.0.56676864532.issue33876@psf.upfronthosting.co.za> Andr?s Delfino added the comment: What do you think about also mentioning Skulpt and Brython? On one hand, they -like MicroPython/CirtcuitPython- cover a focus no other implementation does (and a special one: client side Web scripting); but on the other hand, we shouldn't make space for everybody to add her/his pythonesque implementation. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 12:16:52 2018 From: report at bugs.python.org (Carol Willing) Date: Sat, 16 Jun 2018 16:16:52 +0000 Subject: [issue33876] doc Mention the MicroPython implementation in Introduction In-Reply-To: <1529118910.74.0.56676864532.issue33876@psf.upfronthosting.co.za> Message-ID: <1529165812.55.0.56676864532.issue33876@psf.upfronthosting.co.za> Carol Willing added the comment: I think your suggestion for Brython and Skulpt is excellent. I believe that it's important to point out that Python can be used client-side, and both your suggestions have been around for a while, are stable, and often used in large courses such as OpenEdX. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 12:47:27 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 16 Jun 2018 16:47:27 +0000 Subject: [issue22571] Remove import * recommendations and examples in doc? In-Reply-To: <1412627004.13.0.564055290321.issue22571@psf.upfronthosting.co.za> Message-ID: <1529167647.54.0.56676864532.issue22571@psf.upfronthosting.co.za> Terry J. Reedy added the comment: I am going to accept Raymond's rejection of a general change. I will reconsider the tkinter doc should I ever work on it. For IDLE code, I have settled on 'from tkinter import Tk, Text, ..., perhaps followed by 'from tkinter.ttk import Scrollbar, ...'. But having alternate sources for many modules is a special case. Listing each object is a bit more effort*, but I like knowing what is imported, from where after reading the module header. (* With complete tests, NameErrors quickly expose omissions.) Carol, thank you for bumping this issue. ---------- resolution: -> rejected stage: needs patch -> resolved status: open -> closed type: -> enhancement _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 12:49:12 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 16 Jun 2018 16:49:12 +0000 Subject: [issue33855] IDLE: Minimally test every non-startup module. In-Reply-To: <1528960393.44.0.947875510639.issue33855@psf.upfronthosting.co.za> Message-ID: <1529167752.71.0.56676864532.issue33855@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset 833b3d2dcc7043be20ac19f7821552fcb21f4365 by Terry Jan Reedy in branch '3.6': [3.6] bpo-33855: Minimally test all IDLE modules. (GH-7689) (GH-7734) https://github.com/python/cpython/commit/833b3d2dcc7043be20ac19f7821552fcb21f4365 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 13:00:05 2018 From: report at bugs.python.org (Karthikeyan Singaravelan) Date: Sat, 16 Jun 2018 17:00:05 +0000 Subject: [issue33879] Item assignment in tuple mutates list despite throwing error In-Reply-To: <1529161995.75.0.56676864532.issue33879@psf.upfronthosting.co.za> Message-ID: <1529168405.82.0.56676864532.issue33879@psf.upfronthosting.co.za> Karthikeyan Singaravelan added the comment: Interesting. I googled this and came across this note which covers this : https://docs.python.org/2/faq/programming.html#why-does-a-tuple-i-item-raise-an-exception-when-the-addition-works ---------- nosy: +xtreak _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 13:12:33 2018 From: report at bugs.python.org (John Cooke) Date: Sat, 16 Jun 2018 17:12:33 +0000 Subject: [issue33880] namedtuple should use NFKD to find duplicate members Message-ID: <1529169153.27.0.56676864532.issue33880@psf.upfronthosting.co.za> New submission from John Cooke : from collections import namedtuple # create a namedtuple whose members are: # 00B5;MICRO SIGN;Ll; # 03BC;GREEK SMALL LETTER MU;Ll # these are both legal identifier names names = ['\u00b5', '\u03bc'] for name in names: assert name.isidentifier() mu = namedtuple('mu', names) # should have raised ValueError, but instead get SyntaxError ---------- components: Library (Lib) messages: 319763 nosy: John Cooke priority: normal severity: normal status: open title: namedtuple should use NFKD to find duplicate members type: behavior versions: Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 13:51:56 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 16 Jun 2018 17:51:56 +0000 Subject: [issue6717] Some problem with recursion handling In-Reply-To: <1250518561.04.0.421053701967.issue6717@psf.upfronthosting.co.za> Message-ID: <1529171516.16.0.56676864532.issue6717@psf.upfronthosting.co.za> Terry J. Reedy added the comment: I reran Dino's test.py on current master on Win10 and got Traceback (most recent call last): File "f:/dev/tem/recursion_crash.py", line 23, in f() File "f:/dev/tem/recursion_crash.py", line 18, in f f() File "f:/dev/tem/recursion_crash.py", line 18, in f f() File "f:/dev/tem/recursion_crash.py", line 18, in f f() [Previous line repeated 991 more times] File "f:/dev/tem/recursion_crash.py", line 17, in f print(sys.getrecursionlimit()) RecursionError: maximum recursion depth exceeded while calling a Python object The request for a fix to get a nice traceback is out of date. When I run Gregor's tkinter_recursionbug_31.py, I immediately get this: f:\dev\3x>python f:/dev/tem/tk_recbug.py Running Debug|Win32 interpreter... f:/dev/tem/tk_recbug.py:14: DeprecationWarning: invalid escape sequence \P """ The closet I came to reproducing this is >>> eval(r"f'\P{1}'") Warning (from warnings module): File "", line 1 DeprecationWarning: invalid escape sequence \P '\\P1' When I continue and move the red box, I eventually get Fatal Python error: Cannot recover from stack overflow. Current thread 0x000012c8 (most recent call first): File "F:\dev\3x\lib\enum.py", line 535 in __new__ File "F:\dev\3x\lib\enum.py", line 307 in __call__ File "F:\dev\3x\lib\tkinter\__init__.py", line 1431 in _substitute File "F:\dev\3x\lib\tkinter\__init__.py", line 1701 in __call__ File "F:\dev\3x\lib\tkinter\__init__.py", line 1174 in update File "f:/dev/tem/tk_recbug.py", line 39 in move File "F:\dev\3x\lib\tkinter\__init__.py", line 1702 in __call__ File "F:\dev\3x\lib\tkinter\__init__.py", line 1174 in update ... f:\dev\3x> and the tk window disappears. With pythonw, the tk window disappears with no feedback. There is no Windows message box, so the request to not get one is fixed already. There is a (truncated) traceback (without the code lines, but they are viewable in the source), so the requested to get one is also fulfilled. The only thing left is 'Fatal Python error'. From Antoine's messages, the request to get a normal exception instead is "Won't fix unless someone has a bright new idea". ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 13:59:31 2018 From: report at bugs.python.org (Eric V. Smith) Date: Sat, 16 Jun 2018 17:59:31 +0000 Subject: [issue33880] namedtuple should use NFKD to find duplicate members In-Reply-To: <1529169153.27.0.56676864532.issue33880@psf.upfronthosting.co.za> Message-ID: <1529171971.89.0.56676864532.issue33880@psf.upfronthosting.co.za> Eric V. Smith added the comment: Not that it really matters to this issue, but here's how dataclasses and attrs deal with this: dataclasses has the same issue, via make_dataclass(). attrs gives a syntax error with your field names, but interestingly this succeeds: >>> Foo = attr,make_class('Foo', ['a', 'b', 'a']) >>> Foo(1, 3) I'll open a corresponding issue for dataclasses. Foo(a=1, b=3) ---------- nosy: +eric.smith _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 14:02:08 2018 From: report at bugs.python.org (Eric V. Smith) Date: Sat, 16 Jun 2018 18:02:08 +0000 Subject: [issue33881] dataclasses should use NFKD to find duplicate members Message-ID: <1529172128.32.0.56676864532.issue33881@psf.upfronthosting.co.za> New submission from Eric V. Smith : See issue 33880 for the same issue with namedtuple. This shows up on dataclasses only through make_dataclass. This is an expected ValueError: >>> make_dataclass('a', ['a', 'b', 'c', 'a']) Traceback (most recent call last): File "", line 1, in File "/cygdrive/c/home/eric/.local/lib/python3.6/site-packages/dataclasses.py", line 1123, in make_dataclass raise TypeError(f'Field name duplicated: {name!r}') TypeError: Field name duplicated: 'a' But this is a SyntaxError: >>> make_dataclass('a', ['\u00b5', '\u03bc']) Traceback (most recent call last): File "", line 1, in File "/cygdrive/c/home/eric/.local/lib/python3.6/site-packages/dataclasses.py", line 1133, in make_dataclass unsafe_hash=unsafe_hash, frozen=frozen) File "/cygdrive/c/home/eric/.local/lib/python3.6/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/cygdrive/c/home/eric/.local/lib/python3.6/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/cygdrive/c/home/eric/.local/lib/python3.6/site-packages/dataclasses.py", line 871, in _process_class else 'self', File "/cygdrive/c/home/eric/.local/lib/python3.6/site-packages/dataclasses.py", line 490, in _init_fn return_type=None) File "/cygdrive/c/home/eric/.local/lib/python3.6/site-packages/dataclasses.py", line 356, in _create_fn exec(txt, globals, locals) File "", line 1 SyntaxError: duplicate argument '?' in function definition ---------- assignee: eric.smith components: Library (Lib) messages: 319766 nosy: eric.smith priority: low severity: normal status: open title: dataclasses should use NFKD to find duplicate members versions: Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 14:10:49 2018 From: report at bugs.python.org (Eric V. Smith) Date: Sat, 16 Jun 2018 18:10:49 +0000 Subject: [issue33880] namedtuple should use NFKD to find duplicate members In-Reply-To: <1529169153.27.0.56676864532.issue33880@psf.upfronthosting.co.za> Message-ID: <1529172649.83.0.56676864532.issue33880@psf.upfronthosting.co.za> Eric V. Smith added the comment: See issue 33881 for the corresponding dataclasses issue. ---------- nosy: +rhettinger _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 14:14:21 2018 From: report at bugs.python.org (Valeriya Sinevich) Date: Sat, 16 Jun 2018 18:14:21 +0000 Subject: [issue33663] Web.py wsgiserver3.py raises TypeError when CSS file is not found In-Reply-To: <1527462202.39.0.682650639539.issue33663@psf.upfronthosting.co.za> Message-ID: <1529172861.05.0.56676864532.issue33663@psf.upfronthosting.co.za> Change by Valeriya Sinevich : ---------- keywords: +patch pull_requests: +7361 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 14:15:32 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 16 Jun 2018 18:15:32 +0000 Subject: [issue10531] write tilted text in turtle In-Reply-To: <1290702974.67.0.695196946667.issue10531@psf.upfronthosting.co.za> Message-ID: <1529172932.13.0.56676864532.issue10531@psf.upfronthosting.co.za> Terry J. Reedy added the comment: c.create_text(100, 100, angle=90.0, text='test text') is a tclerror in 8.5 and works in 8.6. ---------- nosy: +serhiy.storchaka -BreamoreBoy _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 14:17:15 2018 From: report at bugs.python.org (Valeriya Sinevich) Date: Sat, 16 Jun 2018 18:17:15 +0000 Subject: [issue33663] Web.py wsgiserver3.py raises TypeError when CSS file is not found In-Reply-To: <1527462202.39.0.682650639539.issue33663@psf.upfronthosting.co.za> Message-ID: <1529173035.15.0.56676864532.issue33663@psf.upfronthosting.co.za> Valeriya Sinevich added the comment: Hello! I created a PR for this but I am new to the process, so I don't know what to do with the error on "no news entry" issue. Could someone please help me with the next steps? ---------- nosy: +valer _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 14:21:51 2018 From: report at bugs.python.org (Eric V. Smith) Date: Sat, 16 Jun 2018 18:21:51 +0000 Subject: [issue33880] namedtuple should use NFKD to find duplicate members In-Reply-To: <1529169153.27.0.56676864532.issue33880@psf.upfronthosting.co.za> Message-ID: <1529173311.79.0.56676864532.issue33880@psf.upfronthosting.co.za> Eric V. Smith added the comment: Actually, should this be NKFC? >From https://docs.python.org/3.6/reference/lexical_analysis.html#identifiers : "All identifiers are converted into the normal form NFKC while parsing; comparison of identifiers is based on NFKC." ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 14:24:39 2018 From: report at bugs.python.org (Rick J. Pelleg) Date: Sat, 16 Jun 2018 18:24:39 +0000 Subject: [issue31725] Turtle/tkinter: NameError crashes ipython with "Tcl_AsyncDelete: async handler deleted by the wrong thread" In-Reply-To: <1529164388.83.0.56676864532.issue31725@psf.upfronthosting.co.za> Message-ID: Rick J. Pelleg added the comment: Thanks! On Sat, Jun 16, 2018, 18:53 Carol Willing wrote: > > Carol Willing added the comment: > > Hi Rick, > > I'm closing this issue as not reproducible. Thanks for filing it and using > Turtle. > > ---------- > nosy: +willingc > resolution: -> not a bug > stage: -> resolved > status: open -> closed > > _______________________________________ > Python tracker > > _______________________________________ > ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 14:36:06 2018 From: report at bugs.python.org (Karthikeyan Singaravelan) Date: Sat, 16 Jun 2018 18:36:06 +0000 Subject: [issue33663] Web.py wsgiserver3.py raises TypeError when CSS file is not found In-Reply-To: <1527462202.39.0.682650639539.issue33663@psf.upfronthosting.co.za> Message-ID: <1529174166.8.0.56676864532.issue33663@psf.upfronthosting.co.za> Karthikeyan Singaravelan added the comment: Congratulations! All the changes and patches are collected in Misc/NEWS.d file. You can find more information and the process to create one here : https://devguide.python.org/committing/?highlight=blurb#what-s-new-and-news-entries . Happy hacking :) ---------- nosy: +xtreak _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 14:36:51 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 16 Jun 2018 18:36:51 +0000 Subject: [issue24978] Contributing to Documentation. Translation to Russian. In-Reply-To: <1441109047.57.0.29993860249.issue24978@psf.upfronthosting.co.za> Message-ID: <1529174211.18.0.56676864532.issue24978@psf.upfronthosting.co.za> Terry J. Reedy added the comment: There are now several official translations: see current doc pages, the bottom of https://devguide.python.org/experts/, and https://www.python.org/dev/peps/pep-0545/. According to the pep, discussion is on doc-sig. https://mail.python.org/mailman/listinfo/doc-sig 'third party' is not quite right, but there is no 'separate repository and issues tracker' selection. Carol, perhaps devguide 7. Documenting Python should have a short new section 7.6 Translations with at least the above info, better formatted. ---------- nosy: +terry.reedy, willingc resolution: -> third party stage: -> resolved status: open -> closed title: Contributing to Python 2x and 3x Documentation. Translation to Russian. -> Contributing to Documentation. Translation to Russian. _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 14:41:42 2018 From: report at bugs.python.org (Steve Dower) Date: Sat, 16 Jun 2018 18:41:42 +0000 Subject: [issue33663] Web.py wsgiserver3.py raises TypeError when CSS file is not found In-Reply-To: <1527462202.39.0.682650639539.issue33663@psf.upfronthosting.co.za> Message-ID: <1529174502.59.0.56676864532.issue33663@psf.upfronthosting.co.za> Steve Dower added the comment: For the NEWS entry, I'd suggest putting "Library" for the category and use your commit message for the text at the end. You should also fill out the CLA form posted in your PR by the bot. While we *can* overlook it for very simple changes, best to get it done anyway. As to Jean-Marc's comment, what you are describing is basically a bug in a third-party library and should be reported to them. As far as I can tell, http.server handles the encoding just fine, and if the web package has overridden part of it then it needs to override the rest in order to send headers properly. We can be less surprising to subclasses by only sending str, but if they're handling the conversion to bytes we can't really help any more than that. ---------- nosy: +steve.dower -xtreak _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 14:58:22 2018 From: report at bugs.python.org (=?utf-8?q?St=C3=A9phane_Wirtel?=) Date: Sat, 16 Jun 2018 18:58:22 +0000 Subject: [issue33856] Type "help" is not present on win32 In-Reply-To: <1528964773.31.0.947875510639.issue33856@psf.upfronthosting.co.za> Message-ID: <1529175502.7.0.56676864532.issue33856@psf.upfronthosting.co.za> St?phane Wirtel added the comment: Hi Steven, On Thursday, I gave a python training with some Windows computers and I have executer python, just the REPL, normally, you have Python 3.6.5 (default, Apr 4 2018, 15:01:18) [GCC 7.3.1 20180303 (Red Hat 7.3.1-5)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> But I didn't see the message with "help" in the prompt on the Windows computer. I would like to confirm with the standard bundle of python.org but I don't have a windows computer. and I didn't check the author of this bundle, but it was the 3.6.x version. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 15:05:49 2018 From: report at bugs.python.org (Ammar Askar) Date: Sat, 16 Jun 2018 19:05:49 +0000 Subject: [issue33856] Type "help" is not present on win32 In-Reply-To: <1528964773.31.0.947875510639.issue33856@psf.upfronthosting.co.za> Message-ID: <1529175949.9.0.56676864532.issue33856@psf.upfronthosting.co.za> Ammar Askar added the comment: Can't recreate from latest Python 3.6.5 downloaded off python.org > D:\Python365\python.exe Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. ---------- nosy: +ammar2 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 15:08:50 2018 From: report at bugs.python.org (Eric V. Smith) Date: Sat, 16 Jun 2018 19:08:50 +0000 Subject: [issue33881] dataclasses should use NFKC to find duplicate members In-Reply-To: <1529172128.32.0.56676864532.issue33881@psf.upfronthosting.co.za> Message-ID: <1529176130.16.0.56676864532.issue33881@psf.upfronthosting.co.za> Change by Eric V. Smith : ---------- title: dataclasses should use NFKD to find duplicate members -> dataclasses should use NFKC to find duplicate members _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 15:21:12 2018 From: report at bugs.python.org (Zachary Ware) Date: Sat, 16 Jun 2018 19:21:12 +0000 Subject: [issue33856] Type "help" is not present on win32 In-Reply-To: <1528964773.31.0.947875510639.issue33856@psf.upfronthosting.co.za> Message-ID: <1529176872.24.0.56676864532.issue33856@psf.upfronthosting.co.za> Zachary Ware added the comment: I suspect you either had a non-python.org version of Python, or had the embeddable distribution rather than a proper installation (the embeddable distribution should not be used unless you're embedding, hence the name :)). Either way, the standard distribution started normally imports site by default, which monkeypatches `help` into builtins on all platforms. ---------- nosy: +zach.ware resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 15:38:04 2018 From: report at bugs.python.org (Zachary Ware) Date: Sat, 16 Jun 2018 19:38:04 +0000 Subject: [issue10652] test___all_ + test_tcl fails (Windows installed binary) In-Reply-To: <1291819198.8.0.493152862608.issue10652@psf.upfronthosting.co.za> Message-ID: <1529177884.72.0.56676864532.issue10652@psf.upfronthosting.co.za> Zachary Ware added the comment: The root of this issue was fixed by #20035 for 3.5+. Terry, do you still have issues with this with 2.7, and is it still worth trying to fix? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 15:39:56 2018 From: report at bugs.python.org (=?utf-8?q?St=C3=A9phane_Wirtel?=) Date: Sat, 16 Jun 2018 19:39:56 +0000 Subject: [issue33856] Type "help" is not present on win32 In-Reply-To: <1528964773.31.0.947875510639.issue33856@psf.upfronthosting.co.za> Message-ID: <1529177996.79.0.56676864532.issue33856@psf.upfronthosting.co.za> St?phane Wirtel added the comment: Hi Zach, in fact, it's not a problem with Python itself, but with Idle. I just downloaded a virtualbox image via (https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/) and started the installation of Python 3.6.5 and when you execute IDLE, "help()" is not present, but this sentence is present in the prompt of python3. I am going to provide a small patch. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 15:55:42 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 16 Jun 2018 19:55:42 +0000 Subject: [issue24990] Foreign language support in turtle module In-Reply-To: <1441238139.14.0.540040388391.issue24990@psf.upfronthosting.co.za> Message-ID: <1529178942.07.0.56676864532.issue24990@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Al did post to python-ideas, with a link to a prototype. I think a fair summary is that core-developers had at least the same reluctance to be involve with code translations as with doc translations. We rejected doing the latter as part of cpython by pydev. I am doing the same with respect to this specific implementation. Looking at the prototype, I agreed with Al hard-coding translations is a "terrible way for a software module to implement internationalization,". For one thing, mixing multiple languages does not scale. On python-ideas, I urged Al to make this a pypi project. I give below a different path that would also be mostly independent of cpython and this tracker. The March 2017 pydev decision with respect to document translations, as described in the PEP, was that they should be a separate project with a separate team, team leaders, contributor agreement, infrastructure, and procedures. The pydev/cpython contribution was limited adding the language selection box and whatever html is needed to grab a translation. Code translations should be handled the same way. One of the common issues, for instance, is trust. Core developers are in no position to check that translations are not, for instance, 'adults-only'. The translation project leaders have worked out whatever procedure they have for vetting translators and translations. For one thing, I believe they usually have more than one person per language team. According to the PEP, https://mail.python.org/mailman/listinfo/doc-sig is used for discussion of document translations. When I feel like revisiting the issue of translating IDLE's menus, I will discuss it with them. I think anyone interested in turtle command translations should do the same. When there is something to hook to and therefore a need to modify turtle, a new issue can be opened. ---------- resolution: -> rejected stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 15:56:40 2018 From: report at bugs.python.org (=?utf-8?q?St=C3=A9phane_Wirtel?=) Date: Sat, 16 Jun 2018 19:56:40 +0000 Subject: [issue33856] Type "help" is not present on win32 In-Reply-To: <1528964773.31.0.947875510639.issue33856@psf.upfronthosting.co.za> Message-ID: <1529179000.52.0.56676864532.issue33856@psf.upfronthosting.co.za> Change by St?phane Wirtel : ---------- pull_requests: +7363 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 15:57:15 2018 From: report at bugs.python.org (=?utf-8?q?St=C3=A9phane_Wirtel?=) Date: Sat, 16 Jun 2018 19:57:15 +0000 Subject: [issue33856] Type "help" is not present on win32 In-Reply-To: <1528964773.31.0.947875510639.issue33856@psf.upfronthosting.co.za> Message-ID: <1529179035.95.0.56676864532.issue33856@psf.upfronthosting.co.za> St?phane Wirtel added the comment: PR proposed ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 16:14:29 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 16 Jun 2018 20:14:29 +0000 Subject: [issue29560] Tkinter and turtle graphics fill differs between Windows and *nix In-Reply-To: <1487100128.83.0.366459584593.issue29560@psf.upfronthosting.co.za> Message-ID: <1529180069.11.0.56676864532.issue29560@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Behavior has not changed. It is a legitimate doc issue for both tkinter and turtle. The turtle intro, https://docs.python.org/3/library/turtle.html#introduction, currently 24.1.1. says nothing about the sidebar and image. I think there should be a short paragraph added, which includes "The image was drawn on Linux. On Windows, the star will be filled in solid." The filling doc, https://docs.python.org/3/library/turtle.html#filling, should also have a note. If you do a PR, I will review. The tkinter docs should be handled separately. ---------- assignee: -> docs at python components: +Documentation nosy: +docs at python stage: -> needs patch title: Turtle graphics fill behavior differs between versions -> Tkinter and turtle graphics fill differs between Windows and *nix versions: +Python 3.7, Python 3.8 -Python 3.5 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 16:56:03 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 16 Jun 2018 20:56:03 +0000 Subject: [issue23922] Refactor icon setting to a separate function for Turtle In-Reply-To: <1428861614.96.0.721771203423.issue23922@psf.upfronthosting.co.za> Message-ID: <1529182563.49.0.56676864532.issue23922@psf.upfronthosting.co.za> Terry J. Reedy added the comment: I am closing and rejecting this as not worth the bother and "ain't gonna happen" at things now stand. The 'IDLE icons' are not IDLE icons. They are Python application icons which I adapted for IDLE. The one on the Windows taskbar are set by the Windows installer. The IDLE code could be copied into turtle (where it might stagnate if tk changes), but this would require making turtle a package. Not worth it. I don't consider using the tk icons that big a problem. They work across platforms and the tk people will continue to make sure they do. I would not be terribly surprised is some beginners think that the blue feature *is* a turtle logo ;-). To use the IDLE code directly, it should be in a public interface module. I am willing to create one within idlelib, but there would be opposition, so this is off the table for now. I think there should be a utility module under tkinter, but Serhiy has shown no interest, and I am not going to divert my energy to pushing this at present. In any case, I think such a proposal should be a clean new issue. ---------- resolution: -> rejected stage: needs patch -> resolved status: open -> closed versions: +Python 3.8 -Python 3.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 17:04:11 2018 From: report at bugs.python.org (R. David Murray) Date: Sat, 16 Jun 2018 21:04:11 +0000 Subject: [issue33879] Item assignment in tuple mutates list despite throwing error In-Reply-To: <1529161995.75.0.56676864532.issue33879@psf.upfronthosting.co.za> Message-ID: <1529183051.34.0.56676864532.issue33879@psf.upfronthosting.co.za> Change by R. David Murray : ---------- resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 17:12:02 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 16 Jun 2018 21:12:02 +0000 Subject: [issue10652] test___all_ + test_tcl fails (Windows installed binary) In-Reply-To: <1291819198.8.0.493152862608.issue10652@psf.upfronthosting.co.za> Message-ID: <1529183522.29.0.56676864532.issue10652@psf.upfronthosting.co.za> Terry J. Reedy added the comment: I believe the following means 'No' and that you can close this. f:\dev\27>python -m test.regrtest test___all__ test_tcl Running Debug|Win32 interpreter... Run tests sequentially 0:00:00 [1/2] test___all__ 0:00:24 [2/2] test_tcl All 2 tests OK. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 17:12:14 2018 From: report at bugs.python.org (Ammar Askar) Date: Sat, 16 Jun 2018 21:12:14 +0000 Subject: [issue10531] write tilted text in turtle In-Reply-To: <1290702974.67.0.695196946667.issue10531@psf.upfronthosting.co.za> Message-ID: <1529183534.86.0.56676864532.issue10531@psf.upfronthosting.co.za> Ammar Askar added the comment: I don't think backwards compatibility matters too much for the turtle package but the way its proposed in the initial report makes it so that text in previous versions would now be angled to the turtle's heading. To keep the previous behavior a keyword arg could be added but given that this package is mostly for learning and fun, that might complicate it a little. Aside from that, the patch to add this is fairly trivial now. ---------- nosy: +ammar2 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 17:20:54 2018 From: report at bugs.python.org (Andre Roberge) Date: Sat, 16 Jun 2018 21:20:54 +0000 Subject: [issue23660] Turtle left/right inverted when using different coordinates orientation In-Reply-To: <1426261372.66.0.413514291582.issue23660@psf.upfronthosting.co.za> Message-ID: <1529184054.47.0.56676864532.issue23660@psf.upfronthosting.co.za> Andre Roberge added the comment: I am sorry to hear that this bug was closed based on the unproven assumption that this would impact teaching material. I have *never* seen any pedaggical material for the turtle module where the instructor wrote "use left() to have the turtle turn right, and vice-versa". I file the original bug report and the code to fix it based on a report on the edu-sig mailing list, more than 3 years ago https://mail.python.org/pipermail/edu-sig/2015-March/011207.html This bug makes it pedagogically unwise to set the coordinate system as described since a left() instruction makes the turtle turns right, and vice-versa. So, no one using the turtle module to teach can currently use this type of coordinate choice as it would be too confusing to students. The solution provided would have fixed that. If that is the final decision, then so be it - and I will advise people to use Brython's turtle module instead as it does not have this bug. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 17:20:59 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 16 Jun 2018 21:20:59 +0000 Subject: [issue33856] Type "help" is not present on win32 In-Reply-To: <1528964773.31.0.947875510639.issue33856@psf.upfronthosting.co.za> Message-ID: <1529184059.11.0.56676864532.issue33856@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset 9d49f85064c388e2dddb9f8cb4ae1f486bc8d357 by Terry Jan Reedy (St?phane Wirtel) in branch 'master': bpo-33856: Add "help" to the welcome message of IDLE (GH-7755) https://github.com/python/cpython/commit/9d49f85064c388e2dddb9f8cb4ae1f486bc8d357 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 17:22:16 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 16 Jun 2018 21:22:16 +0000 Subject: [issue33856] Type "help" is not present on win32 In-Reply-To: <1528964773.31.0.947875510639.issue33856@psf.upfronthosting.co.za> Message-ID: <1529184136.26.0.56676864532.issue33856@psf.upfronthosting.co.za> Change by miss-islington : ---------- pull_requests: +7364 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 17:23:25 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 16 Jun 2018 21:23:25 +0000 Subject: [issue33856] IDLE: "help" is missing from the sign-on message In-Reply-To: <1528964773.31.0.947875510639.issue33856@psf.upfronthosting.co.za> Message-ID: <1529184205.06.0.56676864532.issue33856@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Thanks for the clarification. >>> help works but is not in the sign-on message, even though it is by far the most important item mentioned. I just merged to master. ---------- assignee: -> terry.reedy components: +IDLE resolution: not a bug -> stage: resolved -> backport needed status: closed -> open title: Type "help" is not present on win32 -> IDLE: "help" is missing from the sign-on message type: -> behavior versions: +Python 2.7, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 17:24:07 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 16 Jun 2018 21:24:07 +0000 Subject: [issue33856] IDLE: "help" is missing from the sign-on message In-Reply-To: <1528964773.31.0.947875510639.issue33856@psf.upfronthosting.co.za> Message-ID: <1529184247.96.0.56676864532.issue33856@psf.upfronthosting.co.za> Change by miss-islington : ---------- keywords: +patch pull_requests: +7365 stage: backport needed -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 17:37:31 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 16 Jun 2018 21:37:31 +0000 Subject: [issue33856] IDLE: "help" is missing from the sign-on message In-Reply-To: <1528964773.31.0.947875510639.issue33856@psf.upfronthosting.co.za> Message-ID: <1529185051.31.0.56676864532.issue33856@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- pull_requests: +7366 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 17:37:58 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 16 Jun 2018 21:37:58 +0000 Subject: [issue33856] IDLE: "help" is missing from the sign-on message In-Reply-To: <1528964773.31.0.947875510639.issue33856@psf.upfronthosting.co.za> Message-ID: <1529185078.74.0.56676864532.issue33856@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 6bb770445192e19aef94111c6a9913e1526c4d64 by Miss Islington (bot) in branch '3.7': bpo-33856: Add "help" to the welcome message of IDLE (GH-7755) https://github.com/python/cpython/commit/6bb770445192e19aef94111c6a9913e1526c4d64 ---------- nosy: +miss-islington _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 17:44:04 2018 From: report at bugs.python.org (miss-islington) Date: Sat, 16 Jun 2018 21:44:04 +0000 Subject: [issue33856] IDLE: "help" is missing from the sign-on message In-Reply-To: <1528964773.31.0.947875510639.issue33856@psf.upfronthosting.co.za> Message-ID: <1529185444.22.0.56676864532.issue33856@psf.upfronthosting.co.za> miss-islington added the comment: New changeset 25531fb7b8338a21cdcdf2ce0f981d781d21641f by Miss Islington (bot) in branch '3.6': bpo-33856: Add "help" to the welcome message of IDLE (GH-7755) https://github.com/python/cpython/commit/25531fb7b8338a21cdcdf2ce0f981d781d21641f ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 18:15:23 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 16 Jun 2018 22:15:23 +0000 Subject: [issue33856] IDLE: "help" is missing from the sign-on message In-Reply-To: <1528964773.31.0.947875510639.issue33856@psf.upfronthosting.co.za> Message-ID: <1529187323.49.0.56676864532.issue33856@psf.upfronthosting.co.za> Terry J. Reedy added the comment: New changeset c488558faaff4ffa44ba20e0c1f1fc8f18fe722f by Terry Jan Reedy in branch '2.7': [2.7] bpo-33856: Add "help" to the welcome message of IDLE (GH-7755) (GH-7758) https://github.com/python/cpython/commit/c488558faaff4ffa44ba20e0c1f1fc8f18fe722f ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 18:15:55 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 16 Jun 2018 22:15:55 +0000 Subject: [issue33856] IDLE: "help" is missing from the sign-on message In-Reply-To: <1528964773.31.0.947875510639.issue33856@psf.upfronthosting.co.za> Message-ID: <1529187355.84.0.56676864532.issue33856@psf.upfronthosting.co.za> Change by Terry J. Reedy : ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 18:30:27 2018 From: report at bugs.python.org (Zachary Ware) Date: Sat, 16 Jun 2018 22:30:27 +0000 Subject: [issue10652] test___all_ + test_tcl fails (Windows installed binary) In-Reply-To: <1291819198.8.0.493152862608.issue10652@psf.upfronthosting.co.za> Message-ID: <1529188227.55.0.56676864532.issue10652@psf.upfronthosting.co.za> Zachary Ware added the comment: Excellent. Thanks, Terry! ---------- resolution: -> out of date stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 19:06:27 2018 From: report at bugs.python.org (=?utf-8?q?St=C3=A9phane_Wirtel?=) Date: Sat, 16 Jun 2018 23:06:27 +0000 Subject: [issue33821] IDLE subsection of What's New 3.7 In-Reply-To: <1528651926.75.0.592728768989.issue33821@psf.upfronthosting.co.za> Message-ID: <1529190387.96.0.56676864532.issue33821@psf.upfronthosting.co.za> St?phane Wirtel added the comment: Hi Terry, not sure, but your PR have been merged, but this issue should be closed, do you confirm? ---------- nosy: +matrixise _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 19:46:03 2018 From: report at bugs.python.org (Terry J. Reedy) Date: Sat, 16 Jun 2018 23:46:03 +0000 Subject: [issue33821] IDLE subsection of What's New 3.7 In-Reply-To: <1528651926.75.0.592728768989.issue33821@psf.upfronthosting.co.za> Message-ID: <1529192763.91.0.56676864532.issue33821@psf.upfronthosting.co.za> Terry J. Reedy added the comment: There will be more IDLE entries when features are added to maintenance releases. See What's New 3.6 for examples, and PEP 434 for further explanation. I prefer to have one issue for all patches to that section. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 19:49:13 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Sat, 16 Jun 2018 23:49:13 +0000 Subject: [issue33882] doc Mention breakpoint() in debugger-related FAQ Message-ID: <1529192953.25.0.56676864532.issue33882@psf.upfronthosting.co.za> New submission from Andr?s Delfino : IMHO, it's a good opportunity to advertise the convenience of breakpoint(). PR adds a mention. ---------- assignee: docs at python components: Documentation messages: 319796 nosy: adelfino, docs at python priority: normal severity: normal status: open title: doc Mention breakpoint() in debugger-related FAQ type: enhancement versions: Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 19:52:00 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Sat, 16 Jun 2018 23:52:00 +0000 Subject: [issue33882] doc Mention breakpoint() in debugger-related FAQ In-Reply-To: <1529192953.25.0.56676864532.issue33882@psf.upfronthosting.co.za> Message-ID: <1529193120.34.0.56676864532.issue33882@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- keywords: +patch pull_requests: +7367 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 19:52:17 2018 From: report at bugs.python.org (Martin Panter) Date: Sat, 16 Jun 2018 23:52:17 +0000 Subject: [issue33878] Doc: Assignment statement to tuple or list: case missing. In-Reply-To: <1529154106.75.0.56676864532.issue33878@psf.upfronthosting.co.za> Message-ID: <1529193137.14.0.56676864532.issue33878@psf.upfronthosting.co.za> Martin Panter added the comment: I think it is okay to leave out the options for the unpacking case. But I think it is worth clarifying that the single-target case also applies without parentheses, but that it doesn?t apply if there is a trailing comma. So: ??? If the target list is a single target with no trailing comma, optionally in parentheses, the object is assigned to that target. Else the object must be an iterable . . . ??? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 20:52:16 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Sun, 17 Jun 2018 00:52:16 +0000 Subject: [issue33883] doc Mention mypy, pytype and PyAnnotate in FAQ Message-ID: <1529196736.16.0.56676864532.issue33883@psf.upfronthosting.co.za> New submission from Andr?s Delfino : As far as I know, mypy and pytype are more advanced that any of the other tools mentioned in the FAQ for static analysis, however we are not touching them. PR adds mentions. ---------- assignee: docs at python components: Documentation messages: 319798 nosy: adelfino, docs at python priority: normal severity: normal status: open title: doc Mention mypy, pytype and PyAnnotate in FAQ type: enhancement versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 20:53:45 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Sun, 17 Jun 2018 00:53:45 +0000 Subject: [issue33883] doc Mention mypy, pytype and PyAnnotate in FAQ In-Reply-To: <1529196736.16.0.56676864532.issue33883@psf.upfronthosting.co.za> Message-ID: <1529196825.36.0.56676864532.issue33883@psf.upfronthosting.co.za> Change by Andr?s Delfino : ---------- keywords: +patch pull_requests: +7368 stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 22:10:54 2018 From: report at bugs.python.org (Ammar Askar) Date: Sun, 17 Jun 2018 02:10:54 +0000 Subject: [issue33872] doc Add list access time to list definition In-Reply-To: <1529099675.69.0.56676864532.issue33872@psf.upfronthosting.co.za> Message-ID: <1529201454.2.0.56676864532.issue33872@psf.upfronthosting.co.za> Ammar Askar added the comment: I don't think this should be documented at all, not in the glossary, nor the stdtypes section. A quick search through of the glossary and stdtypes indicates that the glossary entry of list is the only place where a time complexity is documented. The problem with documenting this is that the underlying complexity is an implementation detail, by saying its always O(1), alternative implementations like PyPy etc cannot freely implement lists in whatever way they wish. ---------- nosy: +ammar2 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 22:14:28 2018 From: report at bugs.python.org (=?utf-8?q?Andr=C3=A9s_Delfino?=) Date: Sun, 17 Jun 2018 02:14:28 +0000 Subject: [issue33872] doc Add list access time to list definition In-Reply-To: <1529099675.69.0.56676864532.issue33872@psf.upfronthosting.co.za> Message-ID: <1529201668.65.0.56676864532.issue33872@psf.upfronthosting.co.za> Andr?s Delfino added the comment: If O(1) time complexity for element access is not a requirement (which it seems it's not), I agree that this PR as it is should be closed, and the Glossary entry should have this detail removed. In that case, can I edit the PR or should I open a new one? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 22:16:12 2018 From: report at bugs.python.org (Ammar Askar) Date: Sun, 17 Jun 2018 02:16:12 +0000 Subject: [issue33872] doc Add list access time to list definition In-Reply-To: <1529099675.69.0.56676864532.issue33872@psf.upfronthosting.co.za> Message-ID: <1529201772.24.0.56676864532.issue33872@psf.upfronthosting.co.za> Ammar Askar added the comment: I'd say edit the PR and the bug tracker issue to reflect the change. Though you might want to wait for the opinion of a core dev or someone with more documentation experience than me. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 22:40:32 2018 From: report at bugs.python.org (Ma Lin) Date: Sun, 17 Jun 2018 02:40:32 +0000 Subject: [issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3 In-Reply-To: <1486355272.29.0.0894514518656.issue29456@psf.upfronthosting.co.za> Message-ID: <1529203232.87.0.56676864532.issue29456@psf.upfronthosting.co.za> Ma Lin added the comment: You are right. I found a Normalization Test Suite for Unicode 3.2 http://www.unicode.org/Public/3.2-Update/NormalizationTest-3.2.0.txt \u1176 is not in the range of the second character. \u11a7, \u11c3 are not in the range of the third character. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jun 16 22:50:08 2018 From: report at bugs.python.org (Ma Lin) Date: Sun, 17 Jun 2018 02:50:08 +0000 Subject: [issue26917] unicodedata.normalize(): bug in Hangul Composition In-Reply-To: <1462265307.72.0.382714967199.issue26917@psf.upfronthosting.co.za> Message-ID: <1529203808.19.0.56676864532.issue26917@psf.upfronthosting.co.za> Ma Lin added the comment: This issue can be closed, already fixed in issue29456 Also, PyPy's current code is correct. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jun 17 01:44:46 2018 From: report at bugs.python.org (Karthikeyan Singaravelan) Date: Sun, 17 Jun 2018 05:44:46 +0000 Subject: [issue33095] Cross-reference isolated mode from relevant locations In-Reply-To: <1521352636.34.0.467229070634.issue33095@psf.upfronthosting.co.za> Message-ID: <1529214286.39.0.56676864532.issue33095@psf.upfronthosting.co.za> Karthikeyan Singaravelan added the comment: There are four parts where I could see sys.path manipulation being mentioned while running scripts : -c option (https://docs.python.org/3/using/cmdline.html#cmdoption-c) -m option (https://docs.python.org/3/using/cmdline.html#cmdoption-m) - (input option)