[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

[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: New changeset 4c18fc8f1def7030e5ec5d1ffb9355d7453dc408 by Victor Stinner in branch 'master': bpo-41006: Document the runpy optimization (GH-20953) https://github.com/python/cpython/commit/4c18fc8f1def7030e5ec5d1ffb9355d7453dc408 --

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

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

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

[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 "/usr/home/buildbot/pyth

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

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

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

[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’: cpython/Modules/socketmodule.c:8304

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

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

[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: https://bugs.python.org/file49244/python.compil

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

[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

[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: https://bugs.python.org/file49247/python.com

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

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

[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

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

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

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

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

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

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

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

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

2020-06-17 Thread Christian Heimes
Christian Heimes added the comment: Commit bb6ec14479f18c32e71e43f2785f177aa17aabbd fixed a problem with tests, so the test is now executed. Does FreeBSD have an implementation of memfd_create that behaves slightly differently than memfd_create on Linux? -- nosy: +christian.heimes _

<    1   2