[issue37295] Possible optimizations for math.comb()

2019-06-17 Thread Tim Peters
Tim Peters added the comment: In real life, I expect 99.999%+ of calls will be made with small arguments, so (1) is worth it. I like Mark's suggestion to use uint64_t so the acceptable range doesn't depend on platform. At least in the world I live in, 32-bit boxes are all but extinct

[issue37317] asyncio gather doesn't handle custom exceptions that inherit from BaseException

2019-06-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: On master this returns the below output. Maybe this change in master was due to 431b540bf79f0982559b1b0e420b1b085f667bb7 (issue32528) that is available with 3.8+ ? ./python.exe ../backups/bpo37317.py BEGIN THIS DONE: 1 THIS DONE: 2 THIS DONE: 3

[issue37326] Windows LICENSE.txt do not contain libffi license

2019-06-17 Thread Ammar Askar
Ammar Askar added the comment: Oh whoops, I was looking at my py2 folder. Let's reopen in that case. -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware resolution: not a bug -> stage: resolved -> status: closed -> open title: Python distributions do not

[issue37326] Python distributions do not contain libffi license

2019-06-17 Thread Gregory Szorc
Gregory Szorc added the comment: FWIW LICENSE.txt on Windows contains licenses for additional projects starting on line 258 (at least in CPython 3.7.3), which contains the section header "Additional Conditions for this Windows binary build". But, the Doc/pythonXXX.chm does indeed contain

[issue37326] Python distributions do not contain libffi license

2019-06-17 Thread Ammar Askar
Ammar Askar added the comment: LICENSE.txt only contains Python's licensing information. You can find all the external licenses in https://docs.python.org/3/license.html?highlight=libffi#libffi On Windows, this is also distributed as part of Doc/pythonXXX.chm If you don't think this is

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-17 Thread miss-islington
miss-islington added the comment: New changeset 81f7899f517f18a45ab111598f9dd6d7210956a8 by Miss Islington (bot) in branch '3.7': bpo-5680: IDLE: Customize running a module (GH-13763) https://github.com/python/cpython/commit/81f7899f517f18a45ab111598f9dd6d7210956a8 -- nosy:

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-17 Thread miss-islington
miss-islington added the comment: New changeset ae526ee320d3feabba0aa4dffa9d52e39f8941dc by Miss Islington (bot) in branch '3.8': bpo-5680: IDLE: Customize running a module (GH-13763) https://github.com/python/cpython/commit/ae526ee320d3feabba0aa4dffa9d52e39f8941dc --

[issue28869] __module__ attribute is not set correctly for a class created by direct metaclass call

2019-06-17 Thread Alejandro Gonzalez
Alejandro Gonzalez added the comment: >It can be fixed in general if deduce __module__ in type.__call__() instead of >type.__new__(). But wouldn't we have the same problem if a metaclass overrides type.__call__ instead? Also, wouldn't that reset the __module__ value anytime the class is

[issue37326] Python distributions do not contain libffi license

2019-06-17 Thread Gregory Szorc
New submission from Gregory Szorc : The Modules/_ctypes/libffi_msvc/ffi.h and Modules/_ctypes/libffi_osx/include/ffi.h files in the CPython repository contain copies of libffi. On at least the official Windows distributions, the LICENSE.txt does not contain libffi's license text from these

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: A more than minimal patch has been merged. Further work will be on new issues. Remaining problems not previously discussed: 1. Tab focus traversal is wrong. This is generic to Query subclasses that add widgets. See #37325. 2. When the customize box is

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +14021 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14184 ___ Python tracker ___

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +14022 pull_request: https://github.com/python/cpython/pull/14185 ___ Python tracker ___

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 201bc2d18b60adb05810d2a6ab396047bc527088 by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-5680: IDLE: Customize running a module (GH-13763) https://github.com/python/cpython/commit/201bc2d18b60adb05810d2a6ab396047bc527088

[issue37325] IDLE: fix Query subclass tab focus traversal order

2019-06-17 Thread Terry J. Reedy
New submission from Terry J. Reedy : query.Query creates a popup with entry and ok/cancel buttons, in that order. Tabbing moves from the entry in that order. Currently, subclasses that add widgets add them after the 3 above, so they follow Cancel in the tab order. They do this by

[issue35360] Update SQLite to 3.28 in Windows and macOS installer builds

2019-06-17 Thread Ma Lin
Ma Lin added the comment: 2.7 branch: PR 14182 is for Windows build PR 14183 is for Mac OS X build -- ___ Python tracker ___ ___

[issue35360] Update SQLite to 3.28 in Windows and macOS installer builds

2019-06-17 Thread Ma Lin
Change by Ma Lin : -- pull_requests: +14020 pull_request: https://github.com/python/cpython/pull/14183 ___ Python tracker ___ ___

[issue35360] Update SQLite to 3.28 in Windows and macOS installer builds

2019-06-17 Thread Ma Lin
Change by Ma Lin : -- pull_requests: +14019 pull_request: https://github.com/python/cpython/pull/14182 ___ Python tracker ___ ___

[issue35360] Update SQLite to 3.28 in Windows and macOS installer builds

2019-06-17 Thread Ma Lin
Ma Lin added the comment: PR 14179 is for Windows build PR 14180 is for Mac OS X build Both update to Sqlite 3.28.0 -- title: Update SQLite to 3.26 in Windows and macOS installer builds -> Update SQLite to 3.28 in Windows and macOS installer builds

[issue35360] Update SQLite to 3.26 in Windows and macOS installer builds

2019-06-17 Thread Ma Lin
Change by Ma Lin : -- pull_requests: +14018 pull_request: https://github.com/python/cpython/pull/14180 ___ Python tracker ___ ___

[issue35360] Update SQLite to 3.26 in Windows and macOS installer builds

2019-06-17 Thread Ma Lin
Change by Ma Lin : -- keywords: +patch pull_requests: +14017 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14179 ___ Python tracker ___

[issue33529] [security] Infinite loop on folding email (_fold_as_ew()) if an header has no spaces

2019-06-17 Thread Ned Deily
Ned Deily added the comment: New changeset 516a6a254814d2bc6a90290dfc44d77fdfb4050b by Ned Deily (Victor Stinner) in branch '3.6': bpo-33529, email: Fix infinite loop in email header encoding (GH-12020) (GH-14162)

[issue37319] Deprecate using random.randrange() with non-integers

2019-06-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: We probably should not do this until we're willing to give PEP 8 guidance recommending operator.index() as preferable to int() for all cases needing integer offsets. Maybe we do want to go down that path or maybe we just stick with "practicality beats

[issue37245] Azure Pipeline 3.8 CI: multiple tests hung and timed out on macOS 10.13

2019-06-17 Thread Steve Dower
Steve Dower added the comment: I'm still seeing this, maybe 1 in 20 builds, so it's semi-random. A new deadlock, maybe? -- nosy: +steve.dower ___ Python tracker ___

[issue37319] Deprecate using random.randrange() with non-integers

2019-06-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: While there isn't anything intrinsically wrong with using index(), the premise of this issue is essentially a claim that most Python code that uses int() is wrong. That seems rather bold and flies in the face of common practices. I don't really like

[issue37189] PyRun_String not exported in python38.dll

2019-06-17 Thread miss-islington
miss-islington added the comment: New changeset 8cb8d5de4bcc587b35d1b2f4166dad98c202805c by Miss Islington (bot) in branch '3.8': bpo-37189: Export old PyRun_XXX() functions (GH-14142) https://github.com/python/cpython/commit/8cb8d5de4bcc587b35d1b2f4166dad98c202805c -- nosy:

[issue34631] Upgrade to OpenSSL 1.1.1c, 1.1.0k, and/or 1.0.2s

2019-06-17 Thread Steve Dower
Steve Dower added the comment: New changeset 14bac0088271d0a5c428e3468ef94fe7c73e93f7 by Steve Dower in branch '3.7': bpo-34631: Updated OpenSSL to 1.1.1c in Windows installer (GH-14163) https://github.com/python/cpython/commit/14bac0088271d0a5c428e3468ef94fe7c73e93f7 --

[issue34631] Upgrade to OpenSSL 1.1.1c, 1.1.0k, and/or 1.0.2s

2019-06-17 Thread Ned Deily
Ned Deily added the comment: Might as well, thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37189] PyRun_String not exported in python38.dll

2019-06-17 Thread STINNER Victor
STINNER Victor added the comment: My notes on checking an ABI: https://pythoncapi.readthedocs.io/stable_abi.html#check-for-abi-changes I didn't check if https://abi-laboratory.pro/tracker/timeline/python/ supports Windows or not. -- ___ Python

[issue37189] PyRun_String not exported in python38.dll

2019-06-17 Thread STINNER Victor
STINNER Victor added the comment: > Should we add a regression test to avoid this happening in the future? I'm not sure where to add such test, nor which kind of test is needed. I mean, should we only test that the symbol is present? Or should we also test the ABI? Or even write a

[issue37189] PyRun_String not exported in python38.dll

2019-06-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +14016 pull_request: https://github.com/python/cpython/pull/14177 ___ Python tracker ___

[issue37189] PyRun_String not exported in python38.dll

2019-06-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 343ed0ffe0d5ddd4f17c31e14a656a04ac7dfc19 by Victor Stinner in branch 'master': bpo-37189: Export old PyRun_XXX() functions (#14142) https://github.com/python/cpython/commit/343ed0ffe0d5ddd4f17c31e14a656a04ac7dfc19 --

[issue37189] PyRun_String not exported in python38.dll

2019-06-17 Thread Steve Dower
Steve Dower added the comment: Ah, that's what ctypes.pythonapi is :) I looked at PyDLL first and figured it out from there. Should we add a regression test to avoid this happening in the future? -- ___ Python tracker

[issue37318] builtins.True exists but can't be accessed

2019-06-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Depending on your mental model of the language, this may not seem odd at all. >>> # We can set any key/value pair in any dictionary >>> d = {'x': 10, 'True': 20, 'for': 30} >>> # We can do regular string lookups at any time >>> d['x'] 10 >>> d['True'] 20

[issue37189] PyRun_String not exported in python38.dll

2019-06-17 Thread STINNER Victor
STINNER Victor added the comment: "Those should be the same." Well, I wasn't 100% sure so I tested both. At least, I can now confirm that missing symbols are now exposed in both :-D -- ___ Python tracker

[issue37320] aifc, sunau, wave: remove deprecated openfp() function

2019-06-17 Thread STINNER Victor
STINNER Victor added the comment: If your code uses openfp(): just use open() instead ;-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37320] aifc, sunau, wave: remove deprecated openfp() function

2019-06-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset ac7b1a3f32cc81520e8962352294006d65744028 by Victor Stinner in branch 'master': bpo-37320: Remove openfp() of aifc, sunau and wave (GH-14169) https://github.com/python/cpython/commit/ac7b1a3f32cc81520e8962352294006d65744028 --

[issue37324] collections: remove deprecated aliases to ABC classes

2019-06-17 Thread STINNER Victor
STINNER Victor added the comment: Oh. I wasn't aware of the previous attempt: https://github.com/python/cpython/pull/10596 there is a long discussion there. The blocker issue was also html5lib. -- ___ Python tracker

[issue37166] inspect.findsource doesn't handle shortened files gracefully

2019-06-17 Thread STINNER Victor
STINNER Victor added the comment: If the file content changed, I'm not sure that the folloing heuristic will always find the expected function: lnum = object.co_firstlineno - 1 pat = re.compile(r'^(\s*def\s)|(\s*async\s+def\s)|(.*(? 0: if pat.match(lines[lnum]):

[issue37321] IDLE: Make Subprocess Connection Errors consistent.

2019-06-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: New code tested by copying into a temporary test fixture. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37166] inspect.findsource doesn't handle shortened files gracefully

2019-06-17 Thread STINNER Victor
STINNER Victor added the comment: inspect.getsource() starts with linecache.checkcache(file) which if the file modification time changed or if the file size changed. Using regular files on disk, I don't see how this bug is possible: $ cat x.py import inspect import os import linecache

[issue37189] PyRun_String not exported in python38.dll

2019-06-17 Thread Eryk Sun
Eryk Sun added the comment: > api = ctypes.pythonapi > api2 = ctypes.PyDLL("", handle=sys.dllhandle) Those should be the same. In Windows, pythonapi is defined as PyDLL("python dll", None, sys.dllhandle). Wouldn't it be better to add a function to _testcapi that checks

[issue37321] IDLE: Make Subprocess Connection Errors consistent.

2019-06-17 Thread miss-islington
miss-islington added the comment: New changeset 02f7f741e83c018015eb8fcb95bd592c1787fe5f by Miss Islington (bot) in branch '3.8': bpo-37321: Edit IDLE subprocess connection error messages. (GH-14170) https://github.com/python/cpython/commit/02f7f741e83c018015eb8fcb95bd592c1787fe5f

[issue37321] IDLE: Make Subprocess Connection Errors consistent.

2019-06-17 Thread miss-islington
miss-islington added the comment: New changeset 336cf399546f3362033f9d2b475feae050373ef8 by Miss Islington (bot) in branch '3.7': bpo-37321: Edit IDLE subprocess connection error messages. (GH-14170) https://github.com/python/cpython/commit/336cf399546f3362033f9d2b475feae050373ef8

[issue35495] argparse does not honor default argument for nargs=argparse.REMAINDER argument

2019-06-17 Thread Michael Blahay
Michael Blahay added the comment: Need some help searching github to determine the blast radius of the proposed changes. How does one look for instances of argparse.REMAINDER that are used with a default value? -- ___ Python tracker

[issue37189] PyRun_String not exported in python38.dll

2019-06-17 Thread STINNER Victor
STINNER Victor added the comment: I tested the following code: --- import ctypes, sys names = """ PyRun_String PyRun_AnyFile PyRun_AnyFileEx PyRun_AnyFileFlags PyRun_SimpleString PyRun_SimpleFile PyRun_SimpleFileEx PyRun_InteractiveOne PyRun_InteractiveLoop PyRun_File PyRun_FileEx

[issue37120] Provide knobs to disable session ticket generation on TLS 1.3

2019-06-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 78c7d527799dacca91b9ed67057cb996efe526b0 by Christian Heimes in branch 'master': bpo-37120: Add SSLContext.num_tickets (GH-13719) https://github.com/python/cpython/commit/78c7d527799dacca91b9ed67057cb996efe526b0 This change introduced this

[issue37323] test_asyncio: test_debug_mode_interop() fails using -Werror

2019-06-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It affects 3.8 as well since https://github.com/python/cpython/pull/13346 was merged and I guess the fix would be to wrap it with assertWarns(DeprecationWarning) context manager like other tests. Interesting, does PYTHONWARNINGS=error affects the

[issue37321] IDLE: Make Subprocess Connection Errors consistent.

2019-06-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +14014 pull_request: https://github.com/python/cpython/pull/14173 ___ Python tracker ___

[issue37321] IDLE: Make Subprocess Connection Errors consistent.

2019-06-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 8fac1221097aaf6ac37ed9ea727ee7892085e183 by Terry Jan Reedy in branch 'master': bpo-37321: Edit IDLE subprocess connection error messages. (#14170) https://github.com/python/cpython/commit/8fac1221097aaf6ac37ed9ea727ee7892085e183 --

[issue37321] IDLE: Make Subprocess Connection Errors consistent.

2019-06-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +14015 pull_request: https://github.com/python/cpython/pull/14174 ___ Python tracker ___

[issue34631] Upgrade to OpenSSL 1.1.1c, 1.1.0k, and/or 1.0.2s

2019-06-17 Thread Steve Dower
Steve Dower added the comment: Ned - the 3.7 backport seems to be okay (PR 14165). Do we want it? -- ___ Python tracker ___ ___

[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2019-06-17 Thread Brett Cannon
Brett Cannon added the comment: Anything zipimport-related should stay separate as zipimport is not a part of importlib. The other three will have to be looked at to see what exactly they are testing to know whether they relate to importlib and the implementation of import or not (my guess

[issue37287] picke cannot dump Exception subclasses with different super() args

2019-06-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: possibly related to https://bugs.python.org/issue32696 and https://bugs.python.org/issue1692335. -- nosy: +gregory.p.smith ___ Python tracker

[issue37297] function changed when pickle bound method object

2019-06-17 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35360] Update SQLite to 3.26 in Windows and macOS installer builds

2019-06-17 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37324] collections: remove deprecated aliases to ABC classes

2019-06-17 Thread STINNER Victor
STINNER Victor added the comment: html5lib has already been fixed: https://github.com/vstinner/html5lib-python/commit/4f9235752cea29c5a31721440578b430823a1e69 But latest html5lib release was version 1.0.1 at... Dec 7, 2017 :-( Paul Ganssle requested a new html5lib release... to fix the

[issue37323] test_asyncio: test_debug_mode_interop() fails using -Werror

2019-06-17 Thread STINNER Victor
STINNER Victor added the comment: def test_debug_mode_interop(self): # https://bugs.python.org/issue32636 code = textwrap.dedent(""" import asyncio async def native_coro(): pass @asyncio.coroutine def

[issue37324] collections: remove deprecated aliases to ABC classes

2019-06-17 Thread STINNER Victor
STINNER Victor added the comment: pip is broken by this change, causing test_venv to fail: html5lib still uses collections to get ABC. FAIL: test_with_pip (test.test_venv.EnsurePipTest) -- Traceback (most recent call last):

[issue37324] collections: remove deprecated aliases to ABC classes

2019-06-17 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +14013 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14171 ___ Python tracker ___

[issue37321] IDLE: Make Subprocess Connection Errors consistent.

2019-06-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +14012 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14170 ___ Python tracker

[issue37324] collections: remove deprecated aliases to ABC classes

2019-06-17 Thread STINNER Victor
New submission from STINNER Victor : Extract of collections documentation: https://docs.python.org/dev/library/collections.html "Deprecated since version 3.3, will be removed in version 3.9: Moved Collections Abstract Base Classes to the collections.abc module. For backwards compatibility,

[issue37323] test_asyncio: test_debug_mode_interop() fails using -Werror

2019-06-17 Thread STINNER Victor
New submission from STINNER Victor : vstinner@apu$ PYTHONWARNINGS=error ./python -Werror -m test -v test_asyncio -m test_debug_mode_interop == CPython 3.9.0a0 (heads/master-dirty:00f6493084, Jun 17 2019, 21:50:32) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] ==

[issue37322] test_ssl: test_pha_required_nocert() emits a ResourceWarning

2019-06-17 Thread STINNER Victor
New submission from STINNER Victor : vstinner@apu$ ./python -X tracemalloc=10 -m test --fail-env-changed -v test_ssl -m test_pha_required_nocert == CPython 3.9.0a0 (heads/master-dirty:00f6493084, Jun 17 2019, 21:50:32) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] ==

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-06-17 Thread Tal Einat
Tal Einat added the comment: Hey, I did the implementation too! :) I'm really happy to see this fixed in time for 3.8. -- ___ Python tracker ___

[issue35360] Update SQLite to 3.26 in Windows and macOS installer builds

2019-06-17 Thread Steve Dower
Steve Dower added the comment: I just pushed sources with tag sqlite-3.28.0.0, so now anybody should be able to submit a CPython PR for it. -- ___ Python tracker ___

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-06-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you Andre for the reports and followup and Tal for the research. I can start using this now. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-06-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 4b68a8eb0df7317d6c57b021d40cc0b31e3f1cd3 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.8': bpo-37039: Make IDLE's Zoom Height adjust to users' screens (GH-13678) (GH-14168)

[issue37321] IDLE: Make Subprocess Connection Errors consistent.

2019-06-17 Thread Terry J. Reedy
New submission from Terry J. Reedy : A Subprocess Connection Error (new consistent name) can be displayed by either the user or IDLE process (run and pyshell modules). The latter is much more common. Only the former was updated to refer to the newish doc section. Update the latter also.

[issue31985] Deprecate openfp() in aifc, sunau and wave

2019-06-17 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-37320: "aifc, sunau, wave: remove deprecated openfp() function". -- nosy: +vstinner resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37320] aifc, sunau, wave: remove deprecated openfp() function

2019-06-17 Thread STINNER Victor
STINNER Victor added the comment: openfp() functions were deprecated by bpo-31985. -- ___ Python tracker ___ ___ Python-bugs-list

[issue37320] aifc, sunau, wave: remove deprecated openfp() function

2019-06-17 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +14011 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14169 ___ Python tracker ___

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-06-17 Thread miss-islington
miss-islington added the comment: New changeset 0f31a2d3e85d3644de30626a00439ab3c7424105 by Miss Islington (bot) in branch '3.7': bpo-37039: Make IDLE's Zoom Height adjust to users' screens (GH-13678) https://github.com/python/cpython/commit/0f31a2d3e85d3644de30626a00439ab3c7424105

[issue37320] aifc, sunau, wave: remove deprecated openfp() function

2019-06-17 Thread STINNER Victor
New submission from STINNER Victor : The openfp() function of aifc, sunau, wave is an alias to the open() function of each module and is deprecated since Python 3.7. Attached PR removes it. -- components: Library (Lib) messages: 345894 nosy: vstinner priority: normal severity: normal

[issue34631] Upgrade to OpenSSL 1.1.1c, 1.1.0k, and/or 1.0.2s

2019-06-17 Thread Steve Dower
Steve Dower added the comment: New changeset c28c1358245b9fe42e9559c34eae01befce73a1f by Steve Dower (Miss Islington (bot)) in branch '3.8': bpo-34631: Updated OpenSSL to 1.1.1c in Windows installer (GH-14163) https://github.com/python/cpython/commit/c28c1358245b9fe42e9559c34eae01befce73a1f

[issue37319] Deprecate using random.randrange() with non-integers

2019-06-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Unlike other range()-like functions random.randrange() accepts not only integers and integer-like objects (implementing __index__), but any numbers with integral values, like 3.0 or Decimal(3). In 3.8 using __int__ for implicit converting to C integers

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-06-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +14010 pull_request: https://github.com/python/cpython/pull/14168 ___ Python tracker ___

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-06-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +14009 pull_request: https://github.com/python/cpython/pull/14167 ___ Python tracker ___

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-06-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 5bff3c86ab77e9d831b3cd19b45654c7eef22931 by Terry Jan Reedy (Tal Einat) in branch 'master': bpo-37039: Make IDLE's Zoom Height adjust to users' screens (GH-13678) https://github.com/python/cpython/commit/5bff3c86ab77e9d831b3cd19b45654c7eef22931

[issue35360] Update SQLite to 3.26 in Windows and macOS installer builds

2019-06-17 Thread Big Stone
Big Stone added the comment: on my test cases, sqlite_bro and baresql, db.py , it works without problems. -- ___ Python tracker ___

[issue34631] Upgrade to OpenSSL 1.1.1c, 1.1.0k, and/or 1.0.2s

2019-06-17 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +14007 pull_request: https://github.com/python/cpython/pull/14165 ___ Python tracker ___

[issue28869] __module__ attribute is not set correctly for a class created by direct metaclass call

2019-06-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +14008 pull_request: https://github.com/python/cpython/pull/14166 ___ Python tracker ___

[issue28869] __module__ attribute is not set correctly for a class created by direct metaclass call

2019-06-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The problem is that __module__ is deduced from the caller's frame in type.__new__(). In case if type.__new__() is called directly, __module__ is set to the name of the module where type.__new__() is called. So virtually every type subclass which defines

[issue37133] Erro "ffi.h: No such file" when build python 3.8 (branch master) on windows 10

2019-06-17 Thread Zachary Ware
Zachary Ware added the comment: I'm unable to reproduce the problem. If you're still having issues, please reopen the issue with more details about what exactly you did and the error(s) you saw (preferably copied and pasted into a message). -- resolution: -> works for me stage:

[issue34631] Upgrade to OpenSSL 1.1.1c, 1.1.0k, and/or 1.0.2s

2019-06-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +14006 pull_request: https://github.com/python/cpython/pull/14164 ___ Python tracker ___

[issue34631] Upgrade to OpenSSL 1.1.1c, 1.1.0k, and/or 1.0.2s

2019-06-17 Thread Steve Dower
Steve Dower added the comment: New changeset a268edd6a411480281222b1fdb0f78053434d17f by Steve Dower in branch 'master': bpo-34631: Updated OpenSSL to 1.1.1c in Windows installer (GH-14163) https://github.com/python/cpython/commit/a268edd6a411480281222b1fdb0f78053434d17f --

[issue34631] Upgrade to OpenSSL 1.1.1c, 1.1.0k, and/or 1.0.2s

2019-06-17 Thread Steve Dower
Steve Dower added the comment: The tests seem to pass fine for 1.1.1c against master, so I'll merge that and see if the backport is also okay. -- ___ Python tracker ___

[issue37299] RuntimeWarning is NOT raised

2019-06-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: > If a RuntimeWarning is warranted when a temporary variable is used, it's > warranted when the value is used directly, without a temporary variable. No, it's not. If "1/0" is present in never executed code block Python don't raise an exception too.

[issue34556] Add --upgrade to venv module

2019-06-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 4acdbf11b1fae1af24c47413a6caa593010d1b6f by Łukasz Langa (Cooper Lees) in branch 'master': bpo-34556: Add --upgrade-deps to venv module (#13100) https://github.com/python/cpython/commit/4acdbf11b1fae1af24c47413a6caa593010d1b6f -- nosy:

[issue34875] Change .js mime to "text/javascript"

2019-06-17 Thread Myles Borins
Myles Borins added the comment: Hey All, I'd like to reopen this. We are almost done with the IETF standardization of .mjs, and part of this process is making obsolete application/javascript in favor of text/javascript. -->

[issue30052] URL Quoting page links to function Bytes instead of defintion

2019-06-17 Thread wim glenn
wim glenn added the comment: This anchor works, by the way: https://docs.python.org/3/library/functions.html#func-bytes Hopefully someone more fluent in the docs syntax can figure out a way to fix the anchor-link hovers -- ___ Python tracker

[issue30052] URL Quoting page links to function Bytes instead of defintion

2019-06-17 Thread wim glenn
wim glenn added the comment: https://docs.python.org/3/library/functions.html Usually the little paragraph icon appears when you hover over a function name, giving an anchor link. It's not doing it for bytes or bytearray. Was that an unintended consequence of disambiguation from the

[issue37299] RuntimeWarning is NOT raised

2019-06-17 Thread YoSTEALTH
YoSTEALTH added the comment: As far as i can tell "static analyzers" like flake8 and "type hints" like mypy does not detect this problem -- ___ Python tracker ___

[issue33529] [security] Infinite loop on folding email (_fold_as_ew()) if an header has no spaces

2019-06-17 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +maxking ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33529] [security] Infinite loop on folding email (_fold_as_ew()) if an header has no spaces

2019-06-17 Thread STINNER Victor
STINNER Victor added the comment: Python 2.7 doesn't have email.policy module. For Python 2.7, I wrote this code: --- import email.header import email.message msg = email.message.Message() msg.set_charset("UTF-8") msg['Subject'] = email.header.Header(u'\u0105' * 12, maxlinelen=20,

[issue33529] [security] Infinite loop on folding email (_fold_as_ew()) if an header has no spaces

2019-06-17 Thread STINNER Victor
STINNER Victor added the comment: Python 3.5 is not vulnerable, it doesn't hang on the following code: import email.policy policy = email.policy.default.clone(max_line_length=20) actual = policy.fold('Subject', '\u0105' * 12) -- ___ Python tracker

[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-06-17 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -Python 3.7, Python 3.8 ___ Python tracker ___

[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-06-17 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset ca7b504a4d4c3a5fde1ee4607b9501c2bab6e743 by Vinay Sajip in branch 'master': bpo-37111: Add 'encoding' and 'errors' parameters to logging.basicCon… (GH-14008) https://github.com/python/cpython/commit/ca7b504a4d4c3a5fde1ee4607b9501c2bab6e743

[issue37295] Possible optimizations for math.comb()

2019-06-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, here's a rough implementation of (3). It is limited to a specific range to avoid excess memory usage. For comb(50_000, 25_000), it gives a three-fold speedup: if (k_long > 20 && k_long > n_long / 3 && n_long <= 10) { PyObject *den

[issue34631] Upgrade to OpenSSL 1.1.1c, 1.1.0k, and/or 1.0.2s

2019-06-17 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +14005 pull_request: https://github.com/python/cpython/pull/14163 ___ Python tracker ___

[issue34631] Upgrade to OpenSSL 1.1.1c, 1.1.0k, and/or 1.0.2s

2019-06-17 Thread Steve Dower
Steve Dower added the comment: New changeset d8e3a8af775d683c606f3618d04f2be4e97ac3c0 by Steve Dower in branch '2.7': bpo-34631: Updated OpenSSL to 1.0.2s in Windows installer (GH-14161) https://github.com/python/cpython/commit/d8e3a8af775d683c606f3618d04f2be4e97ac3c0 --

  1   2   3   >