[issue41020] Could not build the ssl module!

2020-06-17 Thread Christian Heimes
Christian Heimes added the comment: I'm closing the ssl related issue. Please follow the documentation to install the necessary dependencies. -- assignee: -> christian.heimes components: +SSL nosy: +christian.heimes resolution: -> works for me stage: -> resolved status: open ->

[issue35018] Sax parser provides no user access to lexical handlers

2020-06-17 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz nosy_count: 3.0 -> 4.0 pull_requests: +20136 pull_request: https://github.com/python/cpython/pull/20958 ___ Python tracker ___

[issue40275] test.support has way too many imports

2020-06-17 Thread hai shi
Change by hai shi : -- pull_requests: +20135 pull_request: https://github.com/python/cpython/pull/20957 ___ Python tracker ___ ___

[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-06-17 Thread Ned Deily
Ned Deily added the comment: New changeset 0d70a98f449d58311aff3374ab5f203a401fc3bf by Ned Deily in branch '3.7': bpo-40204: Pin Sphinx version to 2.3.1 in Doc/Makefile https://github.com/python/cpython/commit/0d70a98f449d58311aff3374ab5f203a401fc3bf --

[issue39580] Check for COMMAND_LINE_INSTALL variable in Python_Documentation.pkg

2020-06-17 Thread Ned Deily
Ned Deily added the comment: New changeset 966036af0e5e1dff8fedd423d90a246067537345 by Ned Deily in branch '3.7': bpo-39580: add check for CLI installation on macOS https://github.com/python/cpython/commit/966036af0e5e1dff8fedd423d90a246067537345 --

[issue41002] HTTPResponse.read with amt is slow

2020-06-17 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +inada.naoki versions: +Python 3.10 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue17110] sys.argv docs should explaining how to handle encoding issues

2020-06-17 Thread Inada Naoki
Inada Naoki added the comment: There is no strict guarantee. I think ASCII, UTF-8, latin1 with surrogateescape guarantee roundtrip. Other legacy encodings like cp932 may not roundtrip. But it is not a huge problem because only Windows use them typically. On Windows: * wchar_t is used in

[issue41020] Could not build the ssl module!

2020-06-17 Thread Emmanuel Arias
Emmanuel Arias added the comment: Hi, All issue opened seems to be the same: https://bugs.python.org/issue41019 https://bugs.python.org/issue41018 https://bugs.python.org/issue41017 https://bugs.python.org/issue41016 https://bugs.python.org/issue41015 https://bugs.python.org/issue41014 Maybe

[issue41020] Could not build the ssl module!

2020-06-17 Thread Ned Deily
New submission from Ned Deily : Thank you for your report but please stop filing all of these separate issues. :) As is true on many platforms, you can't build Python on macOS without additional third-party libraries. The Python Developer's Guide, among other places, has more information.

[issue41020] Could not build the ssl module!

2020-06-17 Thread Sree Vaddi
Change by Sree Vaddi : -- components: macOS files: python.compile.log nosy: ned.deily, ronaldoussoren, svaddi priority: normal severity: normal status: open title: Could not build the ssl module! Added file: https://bugs.python.org/file49248/python.compile.log

[issue41019] The necessary bits to build these optional modules were not found:

2020-06-17 Thread Sree Vaddi
Change by Sree Vaddi : -- components: macOS files: python.compile.log nosy: ned.deily, ronaldoussoren, svaddi priority: normal severity: normal status: open title: The necessary bits to build these optional modules were not found: Added file:

[issue41018] warning: 'Tk_MainWindow' is deprecated: first deprecated

2020-06-17 Thread Sree Vaddi
Change by Sree Vaddi : -- components: macOS files: python.compile.log nosy: ned.deily, ronaldoussoren, svaddi priority: normal severity: normal status: open title: warning: 'Tk_MainWindow' is deprecated: first deprecated Added file: https://bugs.python.org/file49246/python.compile.log

[issue41017] warning: 'Tk_Init' is deprecated: first deprecated

2020-06-17 Thread Sree Vaddi
Change by Sree Vaddi : -- components: macOS files: python.compile.log nosy: ned.deily, ronaldoussoren, svaddi priority: normal severity: normal status: open title: warning: 'Tk_Init' is deprecated: first deprecated Added file: https://bugs.python.org/file49245/python.compile.log

[issue41016] warning: 'Tk_GetNumMainWindows' is deprecated

2020-06-17 Thread Sree Vaddi
Change by Sree Vaddi : -- components: macOS files: python.compile.log nosy: ned.deily, ronaldoussoren, svaddi priority: normal severity: normal status: open title: warning: 'Tk_GetNumMainWindows' is deprecated type: enhancement Added file:

[issue41014] warning: 'sqlite3_trace' is deprecated

2020-06-17 Thread Sree Vaddi
Change by Sree Vaddi : -- title: sqlite3_trace deprecated -> warning: 'sqlite3_trace' is deprecated ___ Python tracker ___ ___

[issue41015] warning: 'sqlite3_enable_shared_cache' is deprecated

2020-06-17 Thread Sree Vaddi
New submission from Sree Vaddi : details in the attached python.compile.log -- components: macOS files: python.compile.log messages: 371785 nosy: ned.deily, ronaldoussoren, svaddi priority: normal severity: normal status: open title: warning: 'sqlite3_enable_shared_cache' is deprecated

[issue41014] sqlite3_trace deprecated

2020-06-17 Thread Sree Vaddi
New submission from Sree Vaddi : details in the attached python.compile.log -- components: macOS files: python.compile.log messages: 371784 nosy: ned.deily, ronaldoussoren, svaddi priority: normal severity: normal status: open title: sqlite3_trace deprecated type: enhancement Added

[issue34820] binascii.c:1578:1: error: the control flow of function ‘binascii_crc32’ does not match its profile data (counter ‘arcs’)

2020-06-17 Thread Nick Coghlan
Nick Coghlan added the comment: I'm seeing this as well when attempting to run an optimised Python 3.8 build on an old Debian 9 system (with the curses and socket extension modules). For example: cpython/Modules/socketmodule.c: In function ‘PyInit__socket’:

[issue41006] Reduce number of modules imported by runpy

2020-06-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2c2a4f3d8545784c6e4ca8128bfc706916080712 by Victor Stinner in branch 'master': bpo-41006: What's New: less => fewer modules (GH-20955) https://github.com/python/cpython/commit/2c2a4f3d8545784c6e4ca8128bfc706916080712 --

[issue41006] Reduce number of modules imported by runpy

2020-06-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1bf7959dce0597e312c6f35476a7cc957fd0323c by Victor Stinner in branch 'master': bpo-41006: Remove init_sys_streams() hack (GH-20954) https://github.com/python/cpython/commit/1bf7959dce0597e312c6f35476a7cc957fd0323c --

[issue41006] Reduce number of modules imported by runpy

2020-06-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +20134 pull_request: https://github.com/python/cpython/pull/20955 ___ Python tracker ___

[issue41013] test_os.test_memfd_create() fails on AMD64 FreeBSD Shared 3.x

2020-06-17 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41013] test_os.test_memfd_create() fails on AMD64 FreeBSD Shared 3.x

2020-06-17 Thread STINNER Victor
New submission from STINNER Victor : https://buildbot.python.org/all/#/builders/152/builds/1024 ... test_makedir (test.test_os.MakedirTests) ... ok test_mode (test.test_os.MakedirTests) ... ok Timeout (0:25:00)! Thread 0x000800b54000 (most recent call first): File

[issue41012] Some code comments refer to removed initfsencoding()

2020-06-17 Thread Manuel Jacob
New submission from Manuel Jacob : Some code comments refer to initfsencoding(), which was however removed after Python 3.7. -- messages: 371779 nosy: mjacob priority: normal severity: normal status: open title: Some code comments refer to removed initfsencoding()

[issue41006] Reduce number of modules imported by runpy

2020-06-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +20133 pull_request: https://github.com/python/cpython/pull/20954 ___ Python tracker ___

[issue17110] sys.argv docs should explaining how to handle encoding issues

2020-06-17 Thread Manuel Jacob
Manuel Jacob added the comment: The actual startup code uses Py_DecodeLocale() for converting argv from bytes to unicode. Since which Python version is it guaranteed that Py_DecodeLocale() and os.fsencode() roundtrip? -- nosy: +mjacob ___ Python

[issue41006] Reduce number of modules imported by runpy

2020-06-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4c18fc8f1def7030e5ec5d1ffb9355d7453dc408 by Victor Stinner in branch 'master': bpo-41006: Document the runpy optimization (GH-20953) https://github.com/python/cpython/commit/4c18fc8f1def7030e5ec5d1ffb9355d7453dc408 --

[issue41006] Reduce number of modules imported by runpy

2020-06-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +20132 pull_request: https://github.com/python/cpython/pull/20953 ___ Python tracker ___

[issue41006] Reduce number of modules imported by runpy

2020-06-17 Thread STINNER Victor
STINNER Victor added the comment: I close the issue. Making more imports lazy doesn't bring much benefit. -- With the 3 changes, runpy now imports 55 modules, instead of 70. The startup time is 1.3x faster, 18 ms instead of 24 ms: Mean +- std dev: [before] 23.7 ms +- 0.4 ms -> [after] 17.8

[issue41011] [venv] record which executable and command were used to create a virtual environment

2020-06-17 Thread Brett Cannon
New submission from Brett Cannon : When a virtual environment is created, the resulting pyvenv.cfg specifies the directory which contained the Python executable and the version of Python (see https://github.com/python/cpython/blob/master/Lib/venv/__init__.py#L147). Unfortunately that may not

[issue41006] Reduce number of modules imported by runpy

2020-06-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9e09849d20987c131b28bcdd252e53440d4cd1b3 by Victor Stinner in branch 'master': bpo-41006: importlib.util no longer imports typing (GH-20938) https://github.com/python/cpython/commit/9e09849d20987c131b28bcdd252e53440d4cd1b3 --

[issue39093] tkinter objects garbage collected from non-tkinter thread cause crash

2020-06-17 Thread obserience
obserience added the comment: I looked into this in greater depth a while back and never followed up. In "Modules/_tkinter.c" the Tkapp_Dealloc() function has a commented out check that would ensure it isn't called from the wrong thread. Tkapp_Dealloc(PyObject *self) { PyObject *tp =

[issue40637] Allow users to disable builtin hash modules on compile time

2020-06-17 Thread miss-islington
miss-islington added the comment: New changeset 9a58f03dc21d15c076d051d902ce1d0324db9741 by stratakis in branch '3.9': [3.9] bpo-40637: Do not emit warnings for disabled builtin hashes (GH… (GH-20951) https://github.com/python/cpython/commit/9a58f03dc21d15c076d051d902ce1d0324db9741

[issue40997] python 3.8.2: datetime.datetime(1969, 1, 1).timestamp() yields OSError

2020-06-17 Thread SilentGhost
SilentGhost added the comment: This looks like a duplicate of #37527. -- nosy: +SilentGhost, belopolsky, p-ganssle resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Timestamp conversion on windows fails with timestamps close to EPOCH

[issue41004] Hash collisions in IPv4Interface and IPv6Interface

2020-06-17 Thread martin w
martin w added the comment: Forgot to add, this applies to all versions, 3.10, 3.9, 3.8, 3.7, 3.6, 3.5 -- versions: +Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker

[issue40637] Allow users to disable builtin hash modules on compile time

2020-06-17 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +20131 pull_request: https://github.com/python/cpython/pull/20951 ___ Python tracker ___

[issue41000] IDLE: only allow single instance

2020-06-17 Thread E. Paine
E. Paine added the comment: I appreciate your concerns Terry and I guess I must start by saying as much as I like notepad++, I don't like how their instances work. This issue shouldn't change any behaviour (from a user's perspective) other than not being able to open the same file twice.

[issue41004] Hash collisions in IPv4Interface and IPv6Interface

2020-06-17 Thread martin w
Change by martin w : -- versions: +Python 3.10 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41004] Hash collisions in IPv4Interface and IPv6Interface

2020-06-17 Thread Eric V. Smith
Change by Eric V. Smith : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41004] Hash collisions in IPv4Interface and IPv6Interface

2020-06-17 Thread Eric V. Smith
Eric V. Smith added the comment: Good catch. Your approach seems like a good one. -- nosy: +eric.smith ___ Python tracker ___ ___

[issue41009] @support.requires_*_version broken for classes

2020-06-17 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +20130 pull_request: https://github.com/python/cpython/pull/20949 ___ Python tracker ___

[issue41009] @support.requires_*_version broken for classes

2020-06-17 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +20129 pull_request: https://github.com/python/cpython/pull/20948 ___ Python tracker ___

[issue40637] Allow users to disable builtin hash modules on compile time

2020-06-17 Thread miss-islington
miss-islington added the comment: New changeset 236a0f5cf022b59dbb6ea17a8e7a677c573d39b9 by stratakis in branch 'master': bpo-40637: Do not emit warnings for disabled builtin hashes (GH-20937) https://github.com/python/cpython/commit/236a0f5cf022b59dbb6ea17a8e7a677c573d39b9 --

[issue41009] @support.requires_*_version broken for classes

2020-06-17 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +20128 pull_request: https://github.com/python/cpython/pull/20947 ___ Python tracker ___

[issue41006] Reduce number of modules imported by runpy

2020-06-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 98ce7b107e6611d04dc35a4f5b02ea215ef122cf by Victor Stinner in branch 'master': bpo-41006: pkgutil imports lazily re (GH-20939) https://github.com/python/cpython/commit/98ce7b107e6611d04dc35a4f5b02ea215ef122cf --

[issue41006] Reduce number of modules imported by runpy

2020-06-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7824cc05bfe7f8181b21848a52007ddaf5612b9b by Victor Stinner in branch 'master': bpo-41006: collections imports lazily heap (GH-20940) https://github.com/python/cpython/commit/7824cc05bfe7f8181b21848a52007ddaf5612b9b --

[issue41003] test_copyreg: importing numpy changes warnings filters

2020-06-17 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8, Python 3.9 ___ Python tracker ___

[issue41003] test_copyreg: importing numpy changes warnings filters

2020-06-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3d974b2fc681ddd0ec722cf631008d5941da52b8 by Victor Stinner in branch '3.8': bpo-41003: Fix test_copyreg when numpy is installed (GH-20935) (GH-20945) (GH-20946) https://github.com/python/cpython/commit/3d974b2fc681ddd0ec722cf631008d5941da52b8

[issue41009] @support.requires_*_version broken for classes

2020-06-17 Thread miss-islington
miss-islington added the comment: New changeset bb6ec14479f18c32e71e43f2785f177aa17aabbd by Christian Heimes in branch 'master': bpo-41009: fix requires_OS_version() class decorator (GH-20942) https://github.com/python/cpython/commit/bb6ec14479f18c32e71e43f2785f177aa17aabbd --

[issue40999] implicit-int-float-conversion warnings in time and math code

2020-06-17 Thread Mark Dickinson
Mark Dickinson added the comment: I think #39277 is related. -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list

[issue41006] Reduce number of modules imported by runpy

2020-06-17 Thread STINNER Victor
STINNER Victor added the comment: I created 3 PRs. I have a few more local branches to avoid types and itertools imports. I may create PRs for these ones as well. -- ___ Python tracker

[issue41003] test_copyreg: importing numpy changes warnings filters

2020-06-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +20127 pull_request: https://github.com/python/cpython/pull/20946 ___ Python tracker ___

[issue41003] test_copyreg: importing numpy changes warnings filters

2020-06-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset b39d41ba1b77f7bc51c4d6f6d0e336693192cb3a by Victor Stinner in branch '3.9': bpo-41003: Fix test_copyreg when numpy is installed (GH-20935) (GH-20945) https://github.com/python/cpython/commit/b39d41ba1b77f7bc51c4d6f6d0e336693192cb3a --

[issue37369] Issue with pip in venv on Powershell in Windows

2020-06-17 Thread Steve Dower
Steve Dower added the comment: Hi Miika Please create a new issue. It would also be helpful if you gave us some idea of what your username looks like, even if you change it a bit to hide it from the internet. The most common cause of this error is spaces or non-ASCII characters in your

[issue41009] @support.requires_*_version broken for classes

2020-06-17 Thread Christian Heimes
Christian Heimes added the comment: Clarification: By "ignored" I mean that the entire class is ignored and none of the tests in the class is executed. I ran into the issue when I was working on eventfd PR. -- ___ Python tracker

[issue1222585] C++ compilation support for distutils

2020-06-17 Thread STINNER Victor
STINNER Victor added the comment: > What needs to happen to get this 15 year old bug fixed? It prevents C++ > Python modules from being compiled in situations where the user needs to > supply CXXFLAGS. Someone has to propose a PR, someone else to review it, and a core developer has to take

[issue41003] test_copyreg: importing numpy changes warnings filters

2020-06-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +20126 pull_request: https://github.com/python/cpython/pull/20945 ___ Python tracker ___

[issue38377] test_asyncio.test_events.GetEventLoopTestsMixin.test_get_event_loop_new_process mixin breaks in the Unix environment without working /dev/shm

2020-06-17 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner nosy_count: 3.0 -> 4.0 pull_requests: +20125 pull_request: https://github.com/python/cpython/pull/20944 ___ Python tracker ___

[issue41003] test_copyreg: importing numpy changes warnings filters

2020-06-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8362893e3fe083df2ec8bb94c28b1a78383eadbf by Victor Stinner in branch 'master': bpo-41003: Fix test_copyreg when numpy is installed (GH-20935) https://github.com/python/cpython/commit/8362893e3fe083df2ec8bb94c28b1a78383eadbf --

[issue41010] email.message.EmailMessage.get_body

2020-06-17 Thread patrick totzke
New submission from patrick totzke : I am trying to use EmailMessage.get_body() on the attached spam email. Although that message may be malformed, I believe that this method should fail gracefully. To reproduce ``` with open('msg', 'rb') as f: m = email.message_from_binary_file(f,

[issue34908] netrc parsing is overly strict

2020-06-17 Thread Theresa O'Connor
Theresa O'Connor added the comment: Emacs' netrc library supports some other keywords, namely 'port'. (This helps distinguish SMTP and IMAP auth information for the same machine.) Documentation is here: https://www.gnu.org/software/emacs/manual/html_node/auth/Help-for-users.html --

[issue41002] HTTPResponse.read with amt is slow

2020-06-17 Thread Bruce Merry
Change by Bruce Merry : -- keywords: +patch pull_requests: +20124 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20943 ___ Python tracker ___

[issue40485] Provide an abstraction for a select-able Event

2020-06-17 Thread Christian Heimes
Change by Christian Heimes : -- dependencies: +Provide wrapper for eventfd ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41009] @support.requires_*_version broken for classes

2020-06-17 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +20123 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20942 ___ Python tracker

[issue10118] Tkinter does not find font

2020-06-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: If this is not out of date, it is, and was, a tcl/tk (3rd party) issue. tkinter.font.families basically wraps a tk call. return root.tk.splitlist(root.tk.call("font", "families", *args)) -- resolution: -> out of date stage: -> resolved

[issue41009] @support.requires_*_version broken for classes

2020-06-17 Thread Christian Heimes
New submission from Christian Heimes : The decorators requires_linux_version, requires_freebsd_version, and requires_mac_ver don't work as class decorators. Decorated classes are ignored completely and not used in tests. The problem affects a couple of tests in test_os and maybe more cases.

[issue41006] Reduce number of modules imported by runpy

2020-06-17 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41006] Reduce number of modules imported by runpy

2020-06-17 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-40275: "test.support has way too many imports". -- ___ Python tracker ___ ___

[issue40275] test.support has way too many imports

2020-06-17 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-41006: "Reduce number of modules imported by runpy". -- ___ Python tracker ___ ___

[issue41000] IDLE only allow single instance

2020-06-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am somewhat dubious about this. IDLE *must* allow side-by-side windows. AFAIK, single instance Notepad++ does not allow this. Tiles rather than only tabbed windows can potentially be done with with one process (turtledemo), but we are not there yet. I

[issue36346] Prepare for removing the legacy Unicode C API

2020-06-17 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +20122 pull_request: https://github.com/python/cpython/pull/20941 ___ Python tracker ___

[issue41008] multiprocessing.Connection.poll raises BrokenPipeError on Windows

2020-06-17 Thread David Adam
New submission from David Adam : On Windows 10 (1909, build 18363.900) in 3.7.7 and 3.9.0b3, poll() on a multiprocessing.Connection object can produce an exception: -- import multiprocessing def run(output_socket): for i in range(10): output_socket.send(i)

[issue41006] Reduce number of modules imported by runpy

2020-06-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +20121 pull_request: https://github.com/python/cpython/pull/20940 ___ Python tracker ___

[issue40636] Provide a strict form of zip (PEP-618) requiring same length inputs

2020-06-17 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +gvanrossum nosy_count: 5.0 -> 6.0 pull_requests: +20120 pull_request: https://github.com/python/cpython/pull/20921 ___ Python tracker

[issue40353] Add an optional "strict" check to zip

2020-06-17 Thread Brandt Bucher
Brandt Bucher added the comment: Looks like two issues were created. I'm going to close this one in favor of 40636, which has PRs attached and is specific to PEP 618. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Provide a strict form of zip

[issue41006] Reduce number of modules imported by runpy

2020-06-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +20119 pull_request: https://github.com/python/cpython/pull/20939 ___ Python tracker ___

[issue40636] Provide a strict form of zip (PEP-618) requiring same length inputs

2020-06-17 Thread Brandt Bucher
Change by Brandt Bucher : -- assignee: -> brandtbucher components: +Interpreter Core nosy: +cool-RR versions: +Python 3.10 -Python 3.9 ___ Python tracker ___

[issue41006] Reduce number of modules imported by runpy

2020-06-17 Thread STINNER Victor
STINNER Victor added the comment: > Currently, runpy imports +21 modules: > * ./python mod.py: Total 33 > * ./python -m mod: Total 54 (+21) Oops sorry, that's with my local changes! Currently, runpy imports not less than 37 modules: * ./python mod.py: Total 33 * ./python -m mod: Total 70

[issue36346] Prepare for removing the legacy Unicode C API

2020-06-17 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36346] Prepare for removing the legacy Unicode C API

2020-06-17 Thread Inada Naoki
Inada Naoki added the comment: New changeset 8e34e92caa73259620dd242b92d26edd0949b4ba by Inada Naoki in branch 'master': bpo-36346: Make unicodeobject.h C89 compatible (GH-20934) https://github.com/python/cpython/commit/8e34e92caa73259620dd242b92d26edd0949b4ba --

[issue39791] New `files()` api from importlib_resources.

2020-06-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +20118 pull_request: https://github.com/python/cpython/pull/20938 ___ Python tracker ___

[issue41006] Reduce number of modules imported by runpy

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

[issue39791] New `files()` api from importlib_resources.

2020-06-17 Thread STINNER Victor
STINNER Victor added the comment: > bpo-39791 native hooks for importlib.resources.files (GH-20576) > https://github.com/python/cpython/commit/843c27765652e2322011fb3e5d88f4837de38c06 This change introduced bpo-41007 "test_importlib logs ResourceWarning:

[issue41007] test_importlib logs ResourceWarning: test_path.CommonTests.test_importing_module_as_side_effect()

2020-06-17 Thread STINNER Victor
New submission from STINNER Victor : It seems like the issue was introduced in bpo-39791 by: commit 843c27765652e2322011fb3e5d88f4837de38c06 Author: Jason R. Coombs Date: Sun Jun 7 21:00:51 2020 -0400 bpo-39791 native hooks for importlib.resources.files (GH-20576) The warning: $

[issue41004] Hash collisions in IPv4Interface and IPv6Interface

2020-06-17 Thread martin w
Change by martin w : -- type: -> security ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41006] Reduce number of modules imported by runpy

2020-06-17 Thread STINNER Victor
STINNER Victor added the comment: My local changes removed the following imports from runpy: - '_heapq', - '_locale', - '_sre', - 'collections.abc', - 'copyreg', - 'enum', - 'heapq', - 'importlib.abc', - 'itertools', - 're', - 'sre_compile', - 'sre_constants', - 'sre_parse', - 'typing', -

[issue41006] Reduce number of modules imported by runpy

2020-06-17 Thread STINNER Victor
New submission from STINNER Victor : Currently, the runpy module imports many modules. runpy is used by "python3 -m module". I propose to attempt to reduce the number of imports to reduce Python startup time. With my local changes, I reduce Python startup time from 24 ms to 18 ms: Mean +-

[issue40637] Allow users to disable builtin hash modules on compile time

2020-06-17 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- nosy: +cstratak nosy_count: 2.0 -> 3.0 pull_requests: +20116 pull_request: https://github.com/python/cpython/pull/20937 ___ Python tracker

[issue41005] Permission denied: 'xdg-settings' when executing 'jupyter notebook' from command line

2020-06-17 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +20115 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20936 ___ Python tracker

[issue41005] Permission denied: 'xdg-settings' when executing 'jupyter notebook' from command line

2020-06-17 Thread SBC King
SBC King added the comment: error was caused by the permission problem with 'xdg-settings'. I checked that Google Chrome is my default browser. I tried the following command by changing the c.NotebookApp.allow_root to True in the jupyter_notebook_config.py file, and it can successfully open

[issue41005] Permission denied: 'xdg-settings' when executing 'jupyter notebook' from command line

2020-06-17 Thread SBC King
New submission from SBC King : error was caused by the permission problem with 'xdg-settings'. I checked that Google Chrome is my default browser. I tried the following command by changing the c.NotebookApp.allow_root to True in the jupyter_notebook_config.py file, and it can successfully

[issue41003] test_copyreg: importing numpy changes warnings filters

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

[issue41004] Hash collisions in IPv4Interface and IPv6Interface

2020-06-17 Thread martin w
New submission from martin w : In the ipaddress library there exists two classes IPv4Interface, and IPv6Interface. These classes' hash functions will always return 32 and 64 respectively. If IPv4Interface or IPv6Interface objects then are put in a dictionary, on for example a server storing

[issue41003] test_copyreg: importing numpy changes warnings filters

2020-06-17 Thread STINNER Victor
STINNER Victor added the comment: The issue can be replaced by a fake numpy module: $ cat Lib/numpy.py import warnings warnings.simplefilter('ignore', UserWarning) -- ___ Python tracker

[issue41003] test_copyreg: importing numpy changes warnings filters

2020-06-17 Thread STINNER Victor
New submission from STINNER Victor : This issue is similar to bpo-40055: running test_copyreg fails with ENV_CHANGED if numpy is available. Example: $ ./python -m venv env $ env/bin/python -m pip install numpy $ env/bin/python -m test --fail-env-changed -v test_copyreg -m == CPython

[issue36346] Prepare for removing the legacy Unicode C API

2020-06-17 Thread STINNER Victor
STINNER Victor added the comment: > Oh, why I can not use C99? PEP 7 requires C99 to build Python, but I think that we can try to keep C89 compatibility for the public header files (Python C API). -- ___ Python tracker

[issue36346] Prepare for removing the legacy Unicode C API

2020-06-17 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +20113 pull_request: https://github.com/python/cpython/pull/20934 ___ Python tracker ___

[issue36346] Prepare for removing the legacy Unicode C API

2020-06-17 Thread Inada Naoki
Inada Naoki added the comment: Oh, why I can not use C99? ``` /home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/build/Include/cpython/unicodeobject.h: In function ‘Py_UNICODE_FILL’: /home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/build/Include/cpython/unicodeobject.h:56:5: error: ‘for’

[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2020-06-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 07923f32b16ba39165a58a5f47e807ca04ae17aa by Victor Stinner in branch 'master': bpo-35059: Enhance _PyObject_GC_TRACK() macros (GH-20931) https://github.com/python/cpython/commit/07923f32b16ba39165a58a5f47e807ca04ae17aa --

[issue41002] HTTPResponse.read with amt is slow

2020-06-17 Thread Bruce Merry
Change by Bruce Merry : -- type: -> performance ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >