[issue36407] xml.dom.minidom wrong indentation writing for CDATA section

2019-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 384b81d923addd52125e94470b11d2574ca266a9 by Serhiy Storchaka (Vladimir Surjaninov) in branch 'master': bpo-36407: Fix writing indentations of CDATA section (xml.dom.minidom). (GH-12514)

[issue36384] ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2019-03-26 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +12521 stage: -> patch review ___ Python tracker ___ ___

[issue36444] Python initialization: remove _PyMainInterpreterConfig

2019-03-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12520 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33832] doc Add "magic method" entry to Glossary

2019-03-26 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the patch! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue14817] pkgutil.extend_path has no tests

2019-03-26 Thread Windson Yang
Windson Yang added the comment: My base idea would be some unittests for the function like: class ExtendPathBaseTests(unittest.TestCase): def test_input_string(self): path = 'path' name = 'foo' self.assertEqual('path', pkgutil.extend_path(path, name)) def

[issue33832] doc Add "magic method" entry to Glossary

2019-03-26 Thread miss-islington
miss-islington added the comment: New changeset ead15795986972690217e52087eb946b8a5bbcda by Miss Islington (bot) in branch '3.7': bpo-33832: Add "magic method" glossary entry (GH-7630) https://github.com/python/cpython/commit/ead15795986972690217e52087eb946b8a5bbcda --

[issue33832] doc Add "magic method" entry to Glossary

2019-03-26 Thread miss-islington
miss-islington added the comment: New changeset 6cbb4c0795099b79f0a7c7d20df4ba1c1ec0ac24 by Miss Islington (bot) in branch '2.7': bpo-33832: Add "magic method" glossary entry (GH-7630) https://github.com/python/cpython/commit/6cbb4c0795099b79f0a7c7d20df4ba1c1ec0ac24 -- nosy:

[issue33832] doc Add "magic method" entry to Glossary

2019-03-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +12519 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33832] doc Add "magic method" entry to Glossary

2019-03-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +12518 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33832] doc Add "magic method" entry to Glossary

2019-03-26 Thread Éric Araujo
Éric Araujo added the comment: New changeset f760610bddd7e8f8ac0914d5d59ef806bc16a73b by Éric Araujo (Andre Delfino) in branch 'master': bpo-33832: Add "magic method" glossary entry (GH-7630) https://github.com/python/cpython/commit/f760610bddd7e8f8ac0914d5d59ef806bc16a73b -- nosy:

[issue18697] Unify arguments names in Unicode object C API documentation

2019-03-26 Thread Rune Tynan
Change by Rune Tynan : -- nosy: +Rune Tynan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36444] Python initialization: remove _PyMainInterpreterConfig

2019-03-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 484f20d2ff95cc2e1bea759852da307bc1d1d944 by Victor Stinner in branch 'master': bpo-36444: Add _PyCoreConfig._init_main (GH-12572) https://github.com/python/cpython/commit/484f20d2ff95cc2e1bea759852da307bc1d1d944 --

[issue36444] Python initialization: remove _PyMainInterpreterConfig

2019-03-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12517 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36444] Python initialization: remove _PyMainInterpreterConfig

2019-03-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8b9dbc017a190d13f717e714630d620adb7c7ac2 by Victor Stinner in branch 'master': bpo-36444: Remove _PyMainInterpreterConfig (GH-12571) https://github.com/python/cpython/commit/8b9dbc017a190d13f717e714630d620adb7c7ac2 --

[issue36429] Fix starting IDLE with pyshell

2019-03-26 Thread miss-islington
miss-islington added the comment: New changeset 23eb816399ac7482d2bd7d50814b19a3db52e7d4 by Miss Islington (bot) in branch '3.7': bpo-36429: Fix starting IDLE with pyshell (GH-12548) https://github.com/python/cpython/commit/23eb816399ac7482d2bd7d50814b19a3db52e7d4 -- nosy:

[issue36444] Python initialization: remove _PyMainInterpreterConfig

2019-03-26 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12516 stage: -> patch review ___ Python tracker ___ ___

[issue36431] Use dict unpacking for merging two dicts

2019-03-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3 years ago, Trey Hunter found 11 ways to merge to a new dict. https://treyhunner.com/2016/02/how-to-merge-dictionaries-in-python/ He followed up with a performance comparison. https://gist.github.com/treyhunner/f35292e676efa0be1728 ** unpacking was nearly

[issue36429] Fix starting IDLE with pyshell

2019-03-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 6a258c88906a7e8acde455ee2acb78b6f315ea0b by Terry Jan Reedy in branch 'master': bpo-36429: Fix starting IDLE with pyshell (#12548) https://github.com/python/cpython/commit/6a258c88906a7e8acde455ee2acb78b6f315ea0b --

[issue36429] Fix starting IDLE with pyshell

2019-03-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +12515 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36301] Add _Py_PreInitialize() function

2019-03-26 Thread STINNER Victor
STINNER Victor added the comment: The feature has been implemented, I close the issue. The work is continued in other issues. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36444] Python initialization: remove _PyMainInterpreterConfig

2019-03-26 Thread STINNER Victor
New submission from STINNER Victor : The _PyMainInterpreterConfig structure is redundant with _PyCoreConfig: it is a subset but using PyObject*. PyInterpreterState has 2 fields: _PyCoreConfig core_config; _PyMainInterpreterConfig config; config parameters can be found in core_config,

[issue30337] Vague wording of pkgutil.walk_packages parameter 'prefix'

2019-03-26 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31466] No easy way to change float formatting when subclassing encoder.JSONEncoder

2019-03-26 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: +Python 3.7, Python 3.8 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36301] Add _Py_PreInitialize() function

2019-03-26 Thread STINNER Victor
STINNER Victor added the comment: I created a follow-up issue: bpo-36443. -- > Note for myself: PYTHONDEVMODE=1, PreConfig isolated=1, CoreConfig > isolated=0: is the dev mode enabled or not? IMHO it should not. Maybe add a > specific unit test? PR 12569 adds these tests. --

[issue36443] Disable coerce_c_locale and utf8_mode by default in _PyPreConfig?

2019-03-26 Thread STINNER Victor
New submission from STINNER Victor : bpo-36301 created a very strict separated between Python initialization and a new "pre-initialization" which is responsible to configure encodings and memory allocators. Nick Coghlan proposed to disable UTF-8 Mode and C locale coercion by default in the

[issue35165] Possible wrong method name in attribute references doc

2019-03-26 Thread Cheryl Sabella
Cheryl Sabella added the comment: > Or maybe just link to > https://docs.python.org/3/reference/datamodel.html#object.__getattr__ (which > mention about it) will be enough. In section 6.3.1, __getattr__() is already linked to the datamodel page referenced. As your suggested change is

[issue33601] [EASY DOC] Py_UTF8Mode is not documented

2019-03-26 Thread STINNER Victor
STINNER Victor added the comment: PR 7143 has been closed. So is there another candidate to write the doc? -- ___ Python tracker ___

[issue36301] Add _Py_PreInitialize() function

2019-03-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12514 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36425] Add Simplified Chinese to the language switcher

2019-03-26 Thread Julien Palard
Julien Palard added the comment: That's nice to read! Once you've added a NEWS (see PR) entry I'll be happy to merge this. -- assignee: docs@python -> mdk ___ Python tracker

[issue36276] Python urllib CRLF injection vulnerability

2019-03-26 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34203] documentation: recommend Python 3 over 2 in faq

2019-03-26 Thread miss-islington
miss-islington added the comment: New changeset 5ac626350e2bfe5f283e7322bc31045062680d2b by Miss Islington (bot) in branch '3.7': bpo-34203: FAQ: improve wording of paragraph about 2.x vs. 3.x (GH-9821) https://github.com/python/cpython/commit/5ac626350e2bfe5f283e7322bc31045062680d2b

[issue34203] documentation: recommend Python 3 over 2 in faq

2019-03-26 Thread miss-islington
miss-islington added the comment: New changeset 5a3316931c6042df44b3b342df956cd6a77e8dcd by Miss Islington (bot) in branch '2.7': [2.7] bpo-34203: FAQ: improve wording of paragraph about 2.x vs. 3.x (GH-9821) (GH-12568)

[issue34203] documentation: recommend Python 3 over 2 in faq

2019-03-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +12513 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34203] documentation: recommend Python 3 over 2 in faq

2019-03-26 Thread Tal Einat
Tal Einat added the comment: New changeset 6cd658b1a5cb2413230dbc2d9395d20498be8518 by Tal Einat in branch 'master': bpo-34203: FAQ: improve wording of paragraph about 2.x vs. 3.x (GH-9821) https://github.com/python/cpython/commit/6cd658b1a5cb2413230dbc2d9395d20498be8518 --

[issue34203] documentation: recommend Python 3 over 2 in faq

2019-03-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +12512 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36441] Cannot create venv with debug binaries installed

2019-03-26 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +12511 stage: -> patch review ___ Python tracker ___ ___

[issue36364] errors in multiprocessing.shared_memory examples

2019-03-26 Thread Brett Cannon
Brett Cannon added the comment: I've gone ahead and merged Pierre's fix (thanks!), but I'm not sure if SharedMemoryManager should stay in the shared_memory docs or if it should move over to multiprocessing.manager. Davin, any input on that? -- nosy: +brett.cannon

[issue36364] errors in multiprocessing.shared_memory examples

2019-03-26 Thread miss-islington
miss-islington added the comment: New changeset 3b7e47aea9b29f2669e7178a461426d18bce349e by Miss Islington (bot) (Pierre Glaser) in branch 'master': bpo-36364: fix SharedMemoryManager examples (GH-12439) https://github.com/python/cpython/commit/3b7e47aea9b29f2669e7178a461426d18bce349e

[issue36085] Enable better DLL resolution

2019-03-26 Thread Eryk Sun
Eryk Sun added the comment: > Any comments, questions or more feedback on the PR? I commented on the PR that I'm concerned that ctypes.CDLL will no longer open a path with slashes in it (e.g. CDLL("./spam.dll") or CDLL("eggs/spam.dll")) relative to the working directory, and may

[issue36436] _testcapi.pymem_buffer_overflow() doesn't handle memory allocation failure

2019-03-26 Thread STINNER Victor
STINNER Victor added the comment: Thanks for your bug report. It is now fixed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36441] Cannot create venv with debug binaries installed

2019-03-26 Thread Steve Dower
Steve Dower added the comment: Thanks! Two issues here: * symlink_or_copy doesn't verify that the source file exists after rewriting the path * Tools/msi/lib/lib_files.wxs doesn't include the debug launchers -- ___ Python tracker

[issue36442] Different ValueError for the same operation in List and Tuple

2019-03-26 Thread SilentGhost
SilentGhost added the comment: This seems to be related to argument clinic work (issue 20186 and issue 20185). -- components: +Argument Clinic nosy: +SilentGhost, larry ___ Python tracker

[issue36345] Deprecate Tools/scripts/serve.py in favour of python -m http.server -d

2019-03-26 Thread Brett Cannon
Brett Cannon added the comment: I actually still think we should remove serve.py as the person who had needed to clean up that directory when we realized we had massive bitrot in /Tools. :) I don't' think that just because Debian packages means we need to continue supporting and maintaining

[issue36442] Different ValueError for the same operation in List and Tuple

2019-03-26 Thread SilentGhost
Change by SilentGhost : -- components: +Interpreter Core -Tests nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

[issue36085] Enable better DLL resolution

2019-03-26 Thread Steve Dower
Steve Dower added the comment: Since there's no chance of getting old SQL Server fixed, I think we should just merge it without the SetDefaultDllDirectories change. Any comments, questions or more feedback on the PR? -- ___ Python tracker

[issue36356] Failure to build with address sanitizer

2019-03-26 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @Ned, I have found a solution on Linux, will try on this evening with my macOS laptop. I hope to come with a solution on this evening or tomorrow, but need to check my proto. -- ___ Python tracker

[issue36442] Different ValueError for the same operation in List and Tuple

2019-03-26 Thread Hardik
New submission from Hardik : I am curious why ValueErrors are different in List and Tuple when I try to get an index. ValueError of a list returns in well format with actual argument "ValueError: 'ITEM' is not in list", whereas tuple returns something like this "ValueError: tuple.index(x):

[issue36441] Cannot create venv with debug binaries installed

2019-03-26 Thread Christian Ullrich
New submission from Christian Ullrich : Creating a venv using "py -m venv" fails when the debug binaries are installed in the system-wide installation. Note the below uses the 32-bit installation, but that is probably not significant. C:\Daten\pyv>py -3.7-32 -m venv v37-32 Error: [Errno 2]

[issue36441] Cannot create venv with debug binaries installed

2019-03-26 Thread Christian Ullrich
Christian Ullrich added the comment: Python version is 3.7.3. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36301] Add _Py_PreInitialize() function

2019-03-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset f8ba6f5afc317d1be3025db1be410ac66a7e5a27 by Victor Stinner in branch 'master': bpo-36301: Cleanup preconfig.c and coreconfig.c (GH-12563) https://github.com/python/cpython/commit/f8ba6f5afc317d1be3025db1be410ac66a7e5a27 --

[issue36440] more helpful diagnostics for parser module

2019-03-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Meaning that no one will ever look at it again. I am very interested in a better alternative to the parser module, so I will open soon another issue for that matter. But as the original issue was about a specific bug, I prefer to mark it as

[issue36440] more helpful diagnostics for parser module

2019-03-26 Thread A. Skrobov
A. Skrobov added the comment: > Nothing was really "decided", just that meanwhile is better not to ship a > broken parser module. Totally true, but the issue is closed and resolved, meaning that no one will ever look at it again. -- ___ Python

[issue36440] more helpful diagnostics for parser module

2019-03-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Haha, you were faster creating the PR than me posting the message! -- ___ Python tracker ___

[issue36440] more helpful diagnostics for parser module

2019-03-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thank you very much for creating the issue :) > Seeing that the implicit resolution at #36256 was to keep the parser module > in place Nothing was really "decided", just that meanwhile is better not to ship a broken parser module. > may I suggest

[issue36436] _testcapi.pymem_buffer_overflow() doesn't handle memory allocation failure

2019-03-26 Thread miss-islington
miss-islington added the comment: New changeset 20fde53a25aefd076d8478f67d6db3908459c6f3 by Miss Islington (bot) in branch '3.7': bpo-36436: Fix _testcapi.pymem_buffer_overflow() (GH-12560) https://github.com/python/cpython/commit/20fde53a25aefd076d8478f67d6db3908459c6f3 -- nosy:

[issue36440] more helpful diagnostics for parser module

2019-03-26 Thread A. Skrobov
New submission from A. Skrobov : Seeing that the implicit resolution at #36256 was to keep the parser module in place, may I suggest that the diagnostics it produces be improved, so that instead of "Expected node type 305, got 11", it would raise "Expected namedexpr_test, got COLON"

[issue36440] more helpful diagnostics for parser module

2019-03-26 Thread A. Skrobov
Change by A. Skrobov : -- keywords: +patch pull_requests: +12510 stage: -> patch review ___ Python tracker ___ ___

[issue36439] Inconsistencies with datetime.fromtimestamp(t) when t < 0

2019-03-26 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- title: OSes inconsistency whith datetime.fromtimestamp(t) when t < 0 -> Inconsistencies with datetime.fromtimestamp(t) when t < 0 ___ Python tracker

[issue36439] OSes inconsistency whith datetime.fromtimestamp(t) when t < 0

2019-03-26 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- title: [Windows] datetime.fromtimestamp(t) when t < 0 fails on Python 3.6 -> OSes inconsistency whith datetime.fromtimestamp(t) when t < 0 ___ Python tracker

[issue36439] [Windows] datetime.fromtimestamp(t) when t < 0 fails on Python 3.6

2019-03-26 Thread Mickaël Schoentgen
Mickaël Schoentgen added the comment: And also reproduced on 3.8.0a3. -- versions: +Python 3.8 ___ Python tracker ___ ___

[issue36301] Add _Py_PreInitialize() function

2019-03-26 Thread STINNER Victor
STINNER Victor added the comment: Note for myself: PYTHONDEVMODE=1, PreConfig isolated=1, CoreConfig isolated=0: is the dev mode enabled or not? IMHO it should not. Maybe add a specific unit test? -- ___ Python tracker

[issue36439] [Windows] datetime.fromtimestamp(t) when t < 0 fails on Python 3.6

2019-03-26 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36439] [Windows] datetime.fromtimestamp(t) when t < 0 fails on Python 3.6

2019-03-26 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36439] [Windows] datetime.fromtimestamp(t) when t < 0 fails on Python 3.6

2019-03-26 Thread Mickaël Schoentgen
Mickaël Schoentgen added the comment: Reproduced on 3.6.8 and 3.7.3. -- type: -> behavior versions: +Python 3.7 ___ Python tracker ___

[issue36436] _testcapi.pymem_buffer_overflow() doesn't handle memory allocation failure

2019-03-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +12509 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36301] Add _Py_PreInitialize() function

2019-03-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12508 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36439] [Windows] datetime.fromtimestamp(t) when t < 0 fails on Python 3.6

2019-03-26 Thread Mickaël Schoentgen
New submission from Mickaël Schoentgen : A similar issue was resolved with issue29097 (with 0 <= t <= 86399). Here, we have an inconsistency between OSes when using datetime.fromtimestamp(t) when t < 0. Tested on Python 3.6.7. GNU/Linux: >>> datetime.fromtimestamp(-1) datetime.datetime(1970,

[issue35872] Creating venv from venv no longer works in 3.7.2

2019-03-26 Thread Paul Moore
Paul Moore added the comment: See https://github.com/pypa/virtualenv/issues/1339 - it's possible that something in this area is still affecting virtualenv. -- ___ Python tracker

[issue36345] Deprecate Tools/scripts/serve.py in favour of python -m http.server -d

2019-03-26 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- pull_requests: +12507 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36438] Python 3.5.7 import error on Cross compile

2019-03-26 Thread Brian Spratke
Change by Brian Spratke : -- type: -> compile error ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36438] Python 3.5.7 import error on Cross compile

2019-03-26 Thread Brian Spratke
New submission from Brian Spratke : I apologize if this is a stupid question, but I am not very experienced building Python, or cross compiling. While trying to cross compile Python 3.5.7 I can run configure, and make, but when I try to run 'make install' it throws the error posted below. I

[issue36409] plistlib old API should be removed

2019-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, this is mainly about modules, but in general we try to be more careful with removing features that do not have alternatives in 2.7. In this particular case, the benefit from removing the deprecated functions in 3.8 instead of 3.9 is small, but this

[issue28190] Cross-build _curses failed if host ncurses headers and target ncurses headers have different layouts

2019-03-26 Thread Matthias Klose
Matthias Klose added the comment: no, please don't assume that if it builds for one cross build variant, that it builds for all. re-opening. -- resolution: fixed -> status: closed -> open ___ Python tracker

[issue36436] _testcapi.pymem_buffer_overflow() doesn't handle memory allocation failure

2019-03-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 414b1cde93764cdabb0798b02af4dd7df954424d by Victor Stinner in branch 'master': bpo-36436: Fix _testcapi.pymem_buffer_overflow() (GH-12560) https://github.com/python/cpython/commit/414b1cde93764cdabb0798b02af4dd7df954424d --

[issue36436] _testcapi.pymem_buffer_overflow() doesn't handle memory allocation failure

2019-03-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +12506 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36435] multiprocessing crashes in Python 3.7.3 on Windows

2019-03-26 Thread Paul Moore
Paul Moore added the comment: Oh doh. That's what I get for trying to produce a minimal test case without thinking :-( Thanks for the pointer. I originally hit this (or what I thought was this) in pipx - see https://github.com/pipxproject/pipx/issues/122 but then tried a smaller test,

[issue36437] method_descriptor surprising error message when self is passed a keyword argument

2019-03-26 Thread STINNER Victor
New submission from STINNER Victor : _PyMethodDescr_FastCallKeywords() is an optimization in ceval.c to call methods. Problem: it introduces a wrong bug. >>> import io >>> help(io.FileIO.write) Help on method_descriptor: write(self, b, /) Write buffer b to file, return number of bytes

[issue36435] multiprocessing crashes in Python 3.7.3 on Windows

2019-03-26 Thread Steve Dower
Steve Dower added the comment: If you make the change suggested in the error text, does it fix it? (It could be clearer, but your module needs to only run its code when __name__=="__main__" instead of every time it gets imported.) -- ___ Python

[issue28190] Cross-build _curses failed if host ncurses headers and target ncurses headers have different layouts

2019-03-26 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: As ncurses-related modules in Python alreadu build fine for Android, I consider the issue resolved. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue22503] Signal stack overflow in faulthandler_user

2019-03-26 Thread STINNER Victor
STINNER Victor added the comment: Python 3 is built frequently on the Fedora infra on AArch64 and the test_faulthandler test doesn't fail there. Recent example of build: https://koji.fedoraproject.org/koji/buildinfo?buildID=1236594 Direct link to AArch64 build logs (build.log):

[issue36409] plistlib old API should be removed

2019-03-26 Thread Jon Janzen
Jon Janzen added the comment: Ah, I misinterpreted PEP4. I thought it only applied to modules as a whole (e.g. plistlib) rather than individual functionality within that module. I'll close my PR and wait until 3.9 is accepting patches -- versions: +Python 3.9 -Python 3.8

[issue36414] Multiple test failures in GCC and Clang optional builds on Travis CI

2019-03-26 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://bugs.python.org/issue36414#msg338876 > Travis CI config has been changed to use a more recent Ubuntu version, it can > explain the failure. I am confused since the commit changes the linux build to use xenial but the failure is on Mac OS

[issue36436] _testcapi.pymem_buffer_overflow() doesn't handle memory allocation failure

2019-03-26 Thread STINNER Victor
STINNER Victor added the comment: > _testcapimodule.c is mostly imported as _testcapi in tests. I am not sure > this is a security issue. The function triggers a memory overflow on purpose. Handling memory allocation failure is the least of your problem if you call this function :-) The

[issue36436] Potential null pointer de-reference vulnerability

2019-03-26 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12505 stage: -> patch review ___ Python tracker ___ ___

[issue36414] Multiple test failures in GCC and Clang optional builds on Travis CI

2019-03-26 Thread STINNER Victor
STINNER Victor added the comment: > Possibly first occurrence of this error : > https://travis-ci.org/python/cpython/jobs/506783665 after which it's more or > less consistent. That's the first build including my change: commit 86082c22d23285995a32aabb491527c9f5629556 Author: Victor Stinner

[issue36436] Potential null pointer de-reference vulnerability

2019-03-26 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: _testcapimodule.c is mostly imported as _testcapi in tests. I am not sure this is a security issue. -- nosy: +serhiy.storchaka, xtreak ___ Python tracker

[issue36414] Multiple test failures in GCC and Clang optional builds on Travis CI

2019-03-26 Thread STINNER Victor
STINNER Victor added the comment: > https://travis-ci.org/python/cpython/jobs/510447290 That's a run on the master branch ("CRON"). xvfb-run ./venv/bin/python -m coverage run --pylib -m test --fail-env-changed -uall,-cpu -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x

[issue36414] Multiple test failures in GCC and Clang optional builds on Travis CI

2019-03-26 Thread STINNER Victor
STINNER Victor added the comment: > https://travis-ci.org/python/cpython/jobs/510447289 This failure is on the master branch. ./python.exe ./Tools/scripts/run_tests.py -j 1 -u all -W --slowest --fail-env-changed --timeout=1200 -j4 -uall,-cpu ERROR:root:code for hash md5 was not found.

[issue36436] Potential null pointer de-reference vulnerability

2019-03-26 Thread SilentGhost
Change by SilentGhost : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36436] Potential null pointer de-reference vulnerability

2019-03-26 Thread wangjiangqiang
New submission from wangjiangqiang <767563...@qq.com>: In Modules/_testcapimodule.c line 4186 and 4187. Allocated memory is used without null check. -- messages: 338875 nosy: wjq-security priority: normal severity: normal status: open title: Potential null pointer de-reference

[issue36345] Deprecate Tools/scripts/serve.py in favour of python -m http.server -d

2019-03-26 Thread STINNER Victor
STINNER Victor added the comment: Would it me sense to use ".. literalinclude:: ../../Tools/scripts/serve.py" in the wsgi doc to keep serve.py and and this example up to date? It seems like serve.py is going to stay. -- ___ Python tracker

[issue33725] Python crashes on macOS after fork with no exec

2019-03-26 Thread STINNER Victor
STINNER Victor added the comment: > And that change should be made for every platform so it will affect a much > broader group of users than are affected by *this* issue. Do you mean to stop using fork on Linux as well? Using fork is just fine on Linux, no? --

[issue36434] Zipfile breaks if signalled during write()

2019-03-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +12504 stage: -> patch review ___ Python tracker ___ ___

[issue34075] asyncio: We should prohibit setting a ProcessPoolExecutor in with set_default_executor

2019-03-26 Thread Bas Nijholt
Bas Nijholt added the comment: I think this issue is related to the problem in https://bugs.python.org/issue36281 If it indeed is the case, then the fix proposed here and implemented in https://github.com/python/cpython/commit/22d25085db2590932b3664ca32ab82c08f2eb2db won't really help.

[issue13282] the table of contents in epub file is too long

2019-03-26 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +ezio.melotti, mdk, willingc type: -> enhancement versions: +Python 3.7, Python 3.8 -Python 2.7, Python 3.2 ___ Python tracker ___

[issue36408] Tkinter multi-processing performance, Linux 10-25 times faster than Windows 10

2019-03-26 Thread J.E.McCormack
J.E.McCormack added the comment: Attached is a minimal reproducer script which is sufficient to show the issue clearly. It is a simple single-thread Tkinter program with one canvas. No multiprocessing, no shared variables, no connections between instances. Instructions at top of

[issue36435] multiprocessing crashes in Python 3.7.3 on Windows

2019-03-26 Thread Paul Moore
New submission from Paul Moore : If I run the following sample program using Python 3.7.3 (64 bit) for Windows, it immediately fails, producing a massive traceback. import multiprocessing def f(n): return n+1 with multiprocessing.Pool() as p: for n in p.map(f, [1,2,3]):

[issue36433] Unhelpful error message in classmethoddescr_call()

2019-03-26 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36433] Unhelpful error message in classmethoddescr_call()

2019-03-26 Thread miss-islington
miss-islington added the comment: New changeset 03440850e7266aa7fd531c7f281a3fdcf17f90a4 by Miss Islington (bot) in branch '3.7': bpo-36433: fix confusing error messages in classmethoddescr_call (GH-12556) https://github.com/python/cpython/commit/03440850e7266aa7fd531c7f281a3fdcf17f90a4

[issue34602] python3 resource.setrlimit strange behaviour under macOS

2019-03-26 Thread Inada Naoki
Inada Naoki added the comment: https://bugs.python.org/issue34602 may be relating to this. -- nosy: +inada.naoki ___ Python tracker ___

  1   2   >