[issue43550] pip.exe is missing from the NuGet package

2021-03-18 Thread Georgios Petrou
New submission from Georgios Petrou : When downloading a package from https://www.nuget.org/packages/python the pip.exe is not included. As far as I understand, the recommended way to use pip from a script is to call it from subprocess. Would it be possible to include the exe in the package?

[issue43175] filecmp is not working for UTF-8 BOM file.

2021-03-18 Thread Eryk Sun
Eryk Sun added the comment: I'm closing this as not a bug. You showed that all of the criteria used in a non-shallow comparison are the same on your end, i.e. they're both regular files with the same reported size and the same contents. Something is going on, which is a mystery, but it's

[issue33030] GetLastError() may be overwritten by Py_END_ALLOW_THREADS

2021-03-18 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

[issue21130] equivalent functools.partial instances should compare equal

2021-03-18 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list

[issue29270] super call in ctypes subclass fails

2021-03-18 Thread Eryk Sun
Change by Eryk Sun : -- stage: patch review -> needs patch title: super call in ctypes sub-class fails in 3.6 -> super call in ctypes subclass fails versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker

[issue41883] ctypes pointee goes out of scope, then pointer in struct dangles and crashes

2021-03-18 Thread Eryk Sun
Eryk Sun added the comment: The ctypes issue is bpo-12836, which has a suggested solution. This issue is a third-party problem introduced by a workaround, which needs to be addressed at the source, such as with helper functions and subclasses that close the loop. -- resolution: ->

[issue32745] ctypes string pointer fields should accept embedded null characters

2021-03-18 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

[issue27274] [ctypes] Allow from_pointer creation

2021-03-18 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43549] Outdated descriptions for configuring valgrind.

2021-03-18 Thread Xinmeng Xia
New submission from Xinmeng Xia : At line 12-20, cpython/Misc/README.valgrind, the descriptions are out of date. File "Objects/obmalloc.c" does not contain Py_USING_MEMORY_DEBUGGER any more since Python 3.6. The descriptions should be modified for Python 3.6-3.10 Attached line 12-20,

[issue43548] RecursionError depth exceptions break pdb's interactive tracing.

2021-03-18 Thread behind thebrain
Change by behind thebrain : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43548] RecursionError depth exceptions break pdb's interactive tracing.

2021-03-18 Thread behind thebrain
New submission from behind thebrain : If pdb encounters most exception types, it handles them as would be expected. However, if pdb encounters a RecursionError: maximum recursion depth exceeded while calling a Python object, then it will continue to execute the code accurately, but the

[issue24823] ctypes.create_string_buffer does not add NUL if len(init) == size

2021-03-18 Thread Eryk Sun
Change by Eryk Sun : -- components: +ctypes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24823] ctypes.create_string_buffer does not add NUL if len(init) == size

2021-03-18 Thread Eryk Sun
Eryk Sun added the comment: > The Documentation component is for issues that only change the docs That's not clear in the triaging guide for the multi-select component field. (However, it is clearly stated as such for the GitHub PR label "type-documentation".) If that's really the case,

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2021-03-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't have a PR in-hand. I just ran across this when trying to explain 3.9 vs 3.10 timings and M-1 vs Intel timings. Ideally, all of these PRs should be reverted. Short of that, each change needs to be reviewed to see if it created extra work

[issue43535] Make str.join auto-convert inputs to strings.

2021-03-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: > What changed? It comes up almost every week that I teach a Python course. Eventually, I've come to see the light :-) Also, I worked though the steps and found an efficiency gain for new code with no detriment to existing code. Lastly, I used to

[issue31103] Windows Installer Product does not include micro version in display name

2021-03-18 Thread Steve Dower
Steve Dower added the comment: Eryk is correct, the displayed version number is the one that determines whether to update existing files or not, and the fourth field is (IIUC) not used for this by WiX (our installer technology). We also cannot override the displayed version using this

[issue43521] Allow `ast.unparse` to handle NaNs and empty sets

2021-03-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43521] Allow `ast.unparse` to handle NaNs and empty sets

2021-03-18 Thread miss-islington
miss-islington added the comment: New changeset e8e341993e3f80a3c456fb8e0219530c93c13151 by Miss Islington (bot) in branch '3.9': bpo-43521: Allow ast.unparse with empty sets and NaN (GH-24897) https://github.com/python/cpython/commit/e8e341993e3f80a3c456fb8e0219530c93c13151 --

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2021-03-18 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +23690 pull_request: https://github.com/python/cpython/pull/24928 ___ Python tracker ___

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2021-03-18 Thread miss-islington
miss-islington added the comment: New changeset 50511677f59464e612cfef0cd0e139fe07e87737 by Miss Islington (bot) in branch '3.8': bpo-41561: Add workaround for Ubuntu's custom security level (GH-24915) https://github.com/python/cpython/commit/50511677f59464e612cfef0cd0e139fe07e87737

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2021-03-18 Thread miss-islington
miss-islington added the comment: New changeset 3365e684a83a6bc9e2e2198dca54b42711bd3c90 by Miss Islington (bot) in branch '3.9': bpo-41561: Add workaround for Ubuntu's custom security level (GH-24915) https://github.com/python/cpython/commit/3365e684a83a6bc9e2e2198dca54b42711bd3c90

[issue28708] Low FD_SETSIZE limit on Windows

2021-03-18 Thread Eryk Sun
Change by Eryk Sun : -- components: +Extension Modules -Build versions: +Python 3.10 -Python 3.6, Python 3.7 ___ Python tracker ___

[issue27318] Add support for symlinks to zipfile

2021-03-18 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21506] [Windows] installations should include pythonX.exe and pythonX.Y.exe executables

2021-03-18 Thread Eryk Sun
Eryk Sun added the comment: One issues with versioned "X.Y" executables is interference with normal handling of the ".exe" extension. For example, in "python3.10" the ".10" counts as an extension, so normally ".exe" won't be appended when searching for the name. This affects

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2021-03-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +23689 pull_request: https://github.com/python/cpython/pull/24926 ___ Python tracker ___

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2021-03-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +23688 pull_request: https://github.com/python/cpython/pull/24925 ___ Python tracker ___

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2021-03-18 Thread miss-islington
miss-islington added the comment: New changeset f6c6b5821bff815bdc810de53992fd1fbdb2edd4 by Christian Heimes in branch 'master': bpo-41561: Add workaround for Ubuntu's custom security level (GH-24915) https://github.com/python/cpython/commit/f6c6b5821bff815bdc810de53992fd1fbdb2edd4

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-18 Thread Hans-Christoph Steiner
Hans-Christoph Steiner added the comment: I just found another specific example in _open_to_write(). 0 is a valid value for zinfo.external_attr. But this code always forces 0 to something else: if not zinfo.external_attr: zinfo.external_attr = 0o600 << 16 #

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-18 Thread Hans-Christoph Steiner
New submission from Hans-Christoph Steiner : It is now standard for Java JARs and Android APKs (both ZIP files) to zero out lots of the fields in the ZIP header. For example: * each file entry has the date set to zero * the create_system is always set to zero on all platforms zipfile

[issue43546] "Impossible" KeyError from importlib._bootstrap acquire line 110

2021-03-18 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35056] Test leaks of memory not managed by Python allocator

2021-03-18 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > _sqlite: call sqlite3_config(SQLITE_CONFIG_MALLOC, pMem) to use > PyMem_RawMalloc() SQLite requires the xSize member of sqlite3_mem_methods to be implemented for this to work, so we'd have to implement msize(). The msize() idea seems to have been

[issue43546] "Impossible" KeyError from importlib._bootstrap acquire line 110

2021-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks like method _ModuleLock.acquire() was re-entered in the same thread. * Enter acquire() first time, set _blocking_on[tid]. * Trigger some callback (profiler, debugger, tracemalloc) which uses import and calls acquire() again from the same thread. *

[issue43546] "Impossible" KeyError from importlib._bootstrap acquire line 110

2021-03-18 Thread Anentropic
Anentropic added the comment: It turns out splitting the tests across 2 nodes rather than 4 also prevents the error. So it's not a case of "too many" tests. So then I think maybe it needs to be a specific number to trigger the error? And yes, if I duplicate one of our test cases (I mean

[issue43534] turtle.textinput window is not transient

2021-03-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +23687 pull_request: https://github.com/python/cpython/pull/24923 ___ Python tracker ___

[issue43546] "Impossible" KeyError from importlib._bootstrap acquire line 110

2021-03-18 Thread Anentropic
Anentropic added the comment: https://docs.python.org/3/library/_thread.html#_thread.get_ident > Thread identifiers may be recycled when a thread exits and another thread is > created. I still don't see how we get that KeyError but it feels like it might be something to do with this

[issue43546] "Impossible" KeyError from importlib._bootstrap acquire line 110

2021-03-18 Thread Anentropic
Anentropic added the comment: FWIW... django-nose==1.4.6 nose==1.3.7 The only use of threading I can see in Nose is here: https://github.com/nose-devs/nose/blob/release_1.3.7/nose/plugins/logcapture.py But we are passing --nologcapture flag and nosetests echoes that flag back to us at the

[issue43546] "Impossible" KeyError from importlib._bootstrap acquire line 110

2021-03-18 Thread Anentropic
New submission from Anentropic : We have a Django 2.2.19 project on Python 3.9.2 on Debian (slim-buster) in Docker. A bizarre problem started happening to us this week. First I'll show the symptom, we started getting the following error: ... File

[issue43540] importlib: Document how to replace load_module() in What's New in Python 3.10

2021-03-18 Thread Brett Cannon
Brett Cannon added the comment: The documentation states in the deprecation notice for https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.load_module that create_module() and exec_module() are what are necessary. But the it isn't a direct 1:1 replacement and people are

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-03-18 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 nosy_count: 8.0 -> 9.0 pull_requests: +23686 pull_request: https://github.com/python/cpython/pull/24922 ___ Python tracker ___

[issue43521] Allow `ast.unparse` to handle NaNs and empty sets

2021-03-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +23685 pull_request: https://github.com/python/cpython/pull/24921 ___ Python tracker ___

[issue43521] Allow `ast.unparse` to handle NaNs and empty sets

2021-03-18 Thread miss-islington
miss-islington added the comment: New changeset 08ff4369afca84587b1c82034af4e9f64caddbf2 by Kodi Arfer in branch 'master': bpo-43521: Allow ast.unparse with empty sets and NaN (GH-24897) https://github.com/python/cpython/commit/08ff4369afca84587b1c82034af4e9f64caddbf2 -- nosy:

[issue40645] Use OpenSSL's HMAC API

2021-03-18 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +23684 pull_request: https://github.com/python/cpython/pull/24920 ___ Python tracker ___

[issue8704] cgitb sends a bogus HTTP header if the app crashes before finishing headers

2021-03-18 Thread coyot linden
coyot linden added the comment: Ran into this also, got: AH02429: Response header name

[issue43543] Spam

2021-03-18 Thread Zachary Ware
Change by Zachary Ware : -- components: -C API nosy: -yotabestww title: stupid download -> Spam type: resource usage -> ___ Python tracker ___

[issue43543] stupid download

2021-03-18 Thread Zachary Ware
Change by Zachary Ware : -- Removed message: https://bugs.python.org/msg389022 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43483] Loss of content in simple (but oversize) SAX parsing

2021-03-18 Thread Eric V. Smith
Eric V. Smith added the comment: I'd add a note to the docs about it, then open a feature request to change the behavior. You could turn this issue into a documentation fix. Unfortunately I don't know if there's a core dev who pays attention to the XML parsers. But I can probably find out.

[issue43512] Bug in isinstance(instance, cls) with cls being a protocol? (PEP 544)

2021-03-18 Thread Paul
Change by Paul : -- nosy: +Jukka Lehtosalo, lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43483] Loss of content in simple (but oversize) SAX parsing

2021-03-18 Thread Larry Trammell
Larry Trammell added the comment: Eric, now that you know as much as I do about the nature and scope of the peculiar parsing behavior, do you have any suggestions about how to proceed from here? -- ___ Python tracker

[issue43512] Bug in isinstance(instance, cls) with cls being a protocol? (PEP 544)

2021-03-18 Thread Paul
Paul added the comment: @kj Thank you, Ken! I'll try it on the list as advised by you! -- ___ Python tracker ___ ___

[issue40645] Use OpenSSL's HMAC API

2021-03-18 Thread Christian Heimes
Christian Heimes added the comment: memo to me: switch to new C implementation of HMAC. -- priority: normal -> critical versions: +Python 3.10 ___ Python tracker ___

[issue43512] Bug in isinstance(instance, cls) with cls being a protocol? (PEP 544)

2021-03-18 Thread Ken Jin
Ken Jin added the comment: @paul-dest Anyone can add them using the bug tracker Web interface in the "Nosy List" field above the message box. Yes they will receive a notification. Adding people sends them an email and subscribes them to this issue (even if closed). I don't know if Jukka is

[issue43545] Use LOAD_GLOBAL to set __module__ in class def

2021-03-18 Thread Dan Snider
New submission from Dan Snider : Other than obvious performance implications this has, usage of LOAD_NAME makes defining cls.__name__ from within metaclass.__prepare__ difficult. -- messages: 389026 nosy: bup priority: normal severity: normal status: open title: Use LOAD_GLOBAL to set

[issue23767] Library and include paths not added when cross-compiling on localized system

2021-03-18 Thread Matthias Klose
Matthias Klose added the comment: that looks fine. Maybe also set LANG=C ? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43544] mimetype default list make a wrong guess for illustrator file

2021-03-18 Thread Guénaël Muller
New submission from Guénaël Muller : mimetypes lib consider illustrator file ('.ai') as 'application/postscript' type. This is correct... but also wrong. Old illustrator file (illustrator 9) are real postscript file but modern one are technically pdf. So guessing .ai as postscript lead to

[issue43543] stupid download

2021-03-18 Thread Petr Viktorin
Change by Petr Viktorin : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43543] stupid download

2021-03-18 Thread Йота : 3
New submission from Йота :3 : fucking retards, how to new or default people can download old versions of python? Maybe you can made better and easy desing? Stupud idiots -- components: C API messages: 389022 nosy: yotabestww priority: normal severity: normal status: open title: stupid

[issue43512] Bug in isinstance(instance, cls) with cls being a protocol? (PEP 544)

2021-03-18 Thread Paul
Paul added the comment: The authors of PEP 544 are Ivan Levkivskyi, Jukka Lehtosalo, and Łukasz Langa. I think their opinion should count. I can see "levkivskyi" in the noisy list, but not the other two. And don't see any possibility to add them. Who can add them? And if added: will they

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2021-03-18 Thread Christian Heimes
Christian Heimes added the comment: Dimitri John Ledkov from Canonical has opened a feature request for a context validation feature on the OpenSSL issue tracker, https://github.com/openssl/openssl/issues/14607 -- ___ Python tracker

[issue43512] Bug in isinstance(instance, cls) with cls being a protocol? (PEP 544)

2021-03-18 Thread Guido van Rossum
Guido van Rossum added the comment: To be honest, I just don’t have time to deal,with this, so I’m hoping some other core dev has an opinion. But I can’t help you find one either. Sorry, but that’s the reality of open source development. -- --Guido (mobile) --

[issue43244] Move PyArena C API to the internal C API

2021-03-18 Thread STINNER Victor
STINNER Victor added the comment: The work on this issue started in Python 3.9 with bpo-21120 which excluded Python-ast.h, ast.h and asdl.h from the limited C API: commit 421a72af4deaec96a49a79951b9c2546a2faa13d. -- ___ Python tracker

[issue12575] add a AST validator

2021-03-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset eec8e61992fb654d4cf58de4d727c18622b8303e by Victor Stinner in branch 'master': bpo-43244: Remove the PyAST_Validate() function (GH-24911) https://github.com/python/cpython/commit/eec8e61992fb654d4cf58de4d727c18622b8303e --

[issue43244] Move PyArena C API to the internal C API

2021-03-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset eec8e61992fb654d4cf58de4d727c18622b8303e by Victor Stinner in branch 'master': bpo-43244: Remove the PyAST_Validate() function (GH-24911) https://github.com/python/cpython/commit/eec8e61992fb654d4cf58de4d727c18622b8303e --

[issue43541] PyEval_EvalCodeEx() can no longer be called with code which has (CO_NEWLOCALS | CO_OPTIMIZED) flags

2021-03-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset fc980e0be19776ee05dfc5380eb5d6a8092935cb by Victor Stinner in branch 'master': bpo-43541: Fix PyEval_EvalCodeEx() regression (GH-24918) https://github.com/python/cpython/commit/fc980e0be19776ee05dfc5380eb5d6a8092935cb --

[issue43541] PyEval_EvalCodeEx() can no longer be called with code which has (CO_NEWLOCALS | CO_OPTIMIZED) flags

2021-03-18 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43493] EmailMessage mis-folding headers of a certain length

2021-03-18 Thread R. David Murray
R. David Murray added the comment: Parsing and newlines have nothing to do with this bug, actually. I don't think your foldfix post-processing is going to do what you want in the general case. The source of the bug here is in the folding algorithm in _header_value_parser. It has checks to

[issue23767] Library and include paths not added when cross-compiling on localized system

2021-03-18 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz nosy_count: 4.0 -> 5.0 pull_requests: +23683 pull_request: https://github.com/python/cpython/pull/24919 ___ Python tracker ___

[issue43541] PyEval_EvalCodeEx() can no longer be called with code which has (CO_NEWLOCALS | CO_OPTIMIZED) flags

2021-03-18 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +23681 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24918 ___ Python tracker ___

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2021-03-18 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43542] Add image/heif(heic) to list of media types in mimetypes.py

2021-03-18 Thread Ilya
Change by Ilya : -- keywords: +patch pull_requests: +23680 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24917 ___ Python tracker ___

[issue43541] PyEval_EvalCodeEx() can no longer be called with code which has (CO_NEWLOCALS | CO_OPTIMIZED) flags

2021-03-18 Thread STINNER Victor
STINNER Victor added the comment: In commit 46496f9d12582bf11f4911ad0f23315d6f277907, I modified _PyEval_BuiltinsFromGlobals() to return a borrowed reference rather than a strong reference. It seems like I forgot to remove a Py_DECREF() in PyEval_EvalCodeEx()! I'm working on a fix.

[issue43542] Add image/heif(heic) to list of media types in mimetypes.py

2021-03-18 Thread Ilya
New submission from Ilya : Add HEIF and HEIC format to list of media types. It has IANA registration. IANA: https://www.iana.org/assignments/media-types/image/heic HEIF Github: https://github.com/nokiatech/heif -- components: Library (Lib) messages: 389012 nosy: martbln priority:

[issue43534] turtle.textinput window is not transient

2021-03-18 Thread E. Paine
Change by E. Paine : -- versions: +Python 3.10, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43534] turtle.textinput window is not transient

2021-03-18 Thread E. Paine
Change by E. Paine : -- keywords: +patch pull_requests: +23679 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24916 ___ Python tracker ___

[issue43541] PyEval_EvalCodeEx() can no longer be called with code which has (CO_NEWLOCALS | CO_OPTIMIZED) flags

2021-03-18 Thread STINNER Victor
STINNER Victor added the comment: If I the comment the following assertion in PyEval_EvalCodeEx(): assert PyCodeObject *)_co)->co_flags & (CO_NEWLOCALS | CO_OPTIMIZED)) == 0); The garbage collector fails while visiting builtins of the function with func_traverse(), at line:

[issue43534] turtle.textinput window is not transient

2021-03-18 Thread E. Paine
E. Paine added the comment: Thank you for reporting this. The problem appears to be a regression with https://github.com/python/cpython/commit/3d569fd6 where the dialog tries to be transient to the user-passed parent rather than the default root. I will create a PR to hopefully rectify

[issue43541] PyEval_EvalCodeEx() can no longer be called with code which has (CO_NEWLOCALS | CO_OPTIMIZED) flags

2021-03-18 Thread STINNER Victor
New submission from STINNER Victor : Cython generates a __Pyx_PyFunction_FastCallDict() function which calls PyEval_EvalCodeEx(). With Python 3.9, it worked well. With Python 3.10 in debug mode, it fails with an assertion error: python3.10: Python/ceval.c:5148: PyEval_EvalCodeEx: Assertion

[issue43512] Bug in isinstance(instance, cls) with cls being a protocol? (PEP 544)

2021-03-18 Thread Paul
Paul added the comment: Regarding "At runtime, protocol classes will be simple ABCs." (PEP 544): Unfortunately, this is currently not the case. Actually, there is an extra metaclass for protocols, solely to provide an __instancecheck__.

[issue43540] importlib: Document how to replace load_module() in What's New in Python 3.10

2021-03-18 Thread STINNER Victor
New submission from STINNER Victor : The load_module() method of importlib loaders is deprecated which cause test failures in multiple projects. It is not easy to guess how to replace it. Examples: * pkg_resources fix adding create_module() and exec_module() methods:

[issue43535] Make str.join auto-convert inputs to strings.

2021-03-18 Thread Vedran Čačić
Vedran Čačić added the comment: Does strong typing mean you should write if bool(condition): ... or for element in iter(sequence): ... or (more similar to this) my_set.symmetric_difference_update(set(some_iterable)) ? As Eric has said, if there's only one possible thing you

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2021-03-18 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +23678 stage: commit review -> patch review pull_request: https://github.com/python/cpython/pull/24915 ___ Python tracker ___

[issue37945] [Windows] test_locale.TestMiscellaneous.test_getsetlocale_issue1813() fails

2021-03-18 Thread STINNER Victor
STINNER Victor added the comment: "ERROR: test_getsetlocale_issue1813 (test.test_locale.TestMiscellaneous)" fails on the Windows x64 job of GitHub Actions when Python is built in debug mode: https://github.com/python/cpython/pull/24914 -- nosy: +vstinner

[issue43492] Upgrade to SQLite 3.35.2 in macOS and Windows

2021-03-18 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Bug-fix release 3.35.2 is out: https://www.sqlite.org/releaselog/3_35_2.html Let's wait until end of March before updating the installers. -- title: Upgrade to SQLite 3.35.1 in macOS and Windows -> Upgrade to SQLite 3.35.2 in macOS and

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2021-03-18 Thread Christian Heimes
Christian Heimes added the comment: I have discussed the problem with downstream engineers on the two issues - https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/1899878 - https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/1917625 The gist of the issue is: Canonical has taken a

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2021-03-18 Thread STINNER Victor
STINNER Victor added the comment: Since it seems like you have already a ready patch to optimize the code, so go ahead and merge it. -- ___ Python tracker ___

[issue43244] Move PyArena C API to the internal C API

2021-03-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6af528b4ab342805534c0bfe61d84ed7bb519468 by Victor Stinner in branch 'master': bpo-43244: Fix test_peg_generators on Windows (GH-24913) https://github.com/python/cpython/commit/6af528b4ab342805534c0bfe61d84ed7bb519468 --

[issue43537] interpreter crashes when handling long text in input()

2021-03-18 Thread STINNER Victor
STINNER Victor added the comment: It looks like a bug in libreadline. Python only calls rl_callback_handler_install (prompt, rlhandler); where prompt is a byte string of 60,000 bytes: len(repr([1,2]*1)). $ gdb ./python (gdb) run Python 3.10.0a6+ (heads/pycore_symtable-dirty:27700e0c8b,

[issue43382] github CI blocked by the Ubuntu CI with an SSL error

2021-03-18 Thread Christian Heimes
Christian Heimes added the comment: CI is passing again. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43165] Support the same files with new param in shutil.copyfile

2021-03-18 Thread Milan Balazs
Milan Balazs added the comment: Could you somebody review the PR for this ticket, please? -- ___ Python tracker ___ ___

[issue43539] test_asyncio: test_sendfile_close_peer_in_the_middle_of_receiving() fails randomly

2021-03-18 Thread STINNER Victor
New submission from STINNER Victor : Seen on the Windows x64 job of GitHub Actions: https://github.com/python/cpython/pull/24913/checks?check_run_id=2137800313 == FAIL: test_sendfile_close_peer_in_the_middle_of_receiving

[issue39342] Expose X509_V_FLAG_ALLOW_PROXY_CERTS in ssl

2021-03-18 Thread Christian Heimes
Christian Heimes added the comment: Thanks for the PR! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39342] Expose X509_V_FLAG_ALLOW_PROXY_CERTS in ssl

2021-03-18 Thread miss-islington
miss-islington added the comment: New changeset e0b4aa0f5c3c2b2c60f5d8b20cf291442a8df8a5 by Chris Burr in branch 'master': bpo-39342: Expose X509_V_FLAG_ALLOW_PROXY_CERTS in ssl module (GH-18011) https://github.com/python/cpython/commit/e0b4aa0f5c3c2b2c60f5d8b20cf291442a8df8a5 --

[issue43244] Move PyArena C API to the internal C API

2021-03-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23677 pull_request: https://github.com/python/cpython/pull/24914 ___ Python tracker ___

[issue43535] Make str.join auto-convert inputs to strings.

2021-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was proposed by newbies several times before. It was rejected because it would make errors to hide unnoticed. Python is dynamically but strongly typed, and it is its advantage. I am -1. -- nosy: +serhiy.storchaka

[issue8232] webbrowser.open incomplete on Windows

2021-03-18 Thread Eryk Sun
Eryk Sun added the comment: Windows Vista is no longer a concern, so find_windows_browsers() doesn't have to worry about the KEY_WOW64_* flags. IMO, it should get the browser's real name (the default value of the key) and the fully-qualified path of the executable, instead of depending

[issue43535] Make str.join auto-convert inputs to strings.

2021-03-18 Thread Eric V. Smith
Eric V. Smith added the comment: I'm +0.5. Every time this bites me, I apply the same solution, so you're probably right that str.join should just do the work itself. And it's no doubt more performant that way, anyway. And I've probably got some code that's just waiting for the current

[issue8232] webbrowser.open incomplete on Windows

2021-03-18 Thread Eryk Sun
Change by Eryk Sun : -- components: +Windows dependencies: +[Windows] support args and cwd in os.startfile() nosy: +paul.moore, tim.golden, zach.ware versions: +Python 3.10 -Python 3.6 ___ Python tracker

[issue43538] [Windows] support args and cwd in os.startfile()

2021-03-18 Thread Eryk Sun
New submission from Eryk Sun : bpo-8232 has a patch to add an `arguments` parameter to os.startfile(). This improvement is needlessly tied to that issue. It's useful in general as a safer way to execute applications and scripts compared to using subprocess.Popen() with shell=True. It also

[issue43537] interpreter crashes when handling long text in input()

2021-03-18 Thread Xinmeng Xia
Change by Xinmeng Xia : -- title: nterpreter crashes when handling long text in input() -> interpreter crashes when handling long text in input() ___ Python tracker ___

[issue43537] nterpreter crashes when handling long text in input()

2021-03-18 Thread Xinmeng Xia
New submission from Xinmeng Xia : When the argument of input() is very long text, the interpreter crashes. This bug can be reproduced Python 3.9.2 and Python 2.7.18 on Ubuntu 3.9.2 with GCC7.5.0. I try to reproduce this bug on other version of Python and Operating System, but it fails.