[issue47152] Reorganize the re module sources

2022-04-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue47211 for removing re.TEMPLATE. -- ___ Python tracker ___ ___ Python-bugs-list

[issue21956] Doc files deleted from repo are not deleted from docs.python.org.

2022-04-05 Thread Julien Palard
Julien Palard added the comment: This is resolved since https://github.com/python/docsbuild-scripts/pull/28. It could still happen in very specific conditions, but not for a long time, see: https://github.com/python/docs-community/issues/41#issuecomment-1088462199= -- nosy: +mdk

[issue46168] Incorrect format specified for the "style" key in the configuration file format formatter example

2022-04-05 Thread Stanley
Stanley added the comment: Samriddhi, are you still working on this? -- nosy: +slateny ___ Python tracker ___ ___ Python-bugs-list

[issue47185] code.replace(co_code=new_code) no longer catch exceptions on Python 3.11

2022-04-05 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47164] [C API] Add private "CAST" macros to clean up casts in C code

2022-04-05 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12445] dict view values objects are missing tp_richcmp and tp_as_number

2022-04-05 Thread Peter Lovett
Change by Peter Lovett : -- nosy: +PeterL777 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47139] pthread_sigmask needs SIG_BLOCK behaviour explaination

2022-04-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: The irony... Documenting the caveat at least seems useful. Your workaround sounds reasonable. I don't love the idea of implementing our own mask blocked/unblocked state check, though it probably wouldn't be very complicated. Might be interesting. Another

[issue40280] Consider supporting emscripten/webassembly as a build target

2022-04-05 Thread Christian Heimes
Christian Heimes added the comment: New changeset 96e09837fb8031aebe8d823dd19ef664a34bcfad by Christian Heimes in branch 'main': bpo-40280: Add limited Emscripten REPL (GH-32284) https://github.com/python/cpython/commit/96e09837fb8031aebe8d823dd19ef664a34bcfad --

[issue44158] Clarify documentation for redirected stdout/stderr when using subprocess in Linux

2022-04-05 Thread Stanley
Stanley added the comment: Hmm, I'm not quite following - when you say that the subproccess-ed command should also inherit the redirection, which subprocess command are you referring to, and nested or unnested? I gave it a ran and everything seems to run how I'd expected it, so maybe put

[issue46890] getpath problems with framework build

2022-04-05 Thread Ned Deily
Ned Deily added the comment: New changeset 6aaf4cd866f7c8f065d30d2a3fb4fffa8461d1d8 by Ronald Oussoren in branch 'main': bpo-46890: Fix setting of sys._base_executable with framework builds on macOS (GH-31958) https://github.com/python/cpython/commit/6aaf4cd866f7c8f065d30d2a3fb4fffa8461d1d8

[issue42238] Deprecate suspicious.py?

2022-04-05 Thread Julien Palard
Change by Julien Palard : -- pull_requests: +30388 pull_request: https://github.com/python/cpython/pull/32329 ___ Python tracker ___

[issue47153] __doc__ should generally be writable

2022-04-05 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42238] Deprecate suspicious.py?

2022-04-05 Thread Julien Palard
Julien Palard added the comment: New changeset d0e696e05d4aaca1f1cde72a5c3326ca3d0f5c24 by Julien Palard in branch 'main': bpo-42238: [doc]: A make sucpicious false positive. (GH-32329) https://github.com/python/cpython/commit/d0e696e05d4aaca1f1cde72a5c3326ca3d0f5c24 --

[issue47207] Switch datetime docstrings / documentation to using "Returns" rather than "Return"?

2022-04-05 Thread Stanley
Stanley added the comment: Is there a bpo page or some sort that discusses why the imperative mood is used over the indicative mood other than convention of PEP 257? I found this (https://mail.python.org/pipermail/tutor/2012-May/089584.html) question and answer that seems to make sense, but

[issue47203] ImportError: DLL load failed while importing binascii: %1 is not a valid Win32 application.

2022-04-05 Thread Eryk Sun
Eryk Sun added the comment: There is something fundamentally wrong with the way modules built into the interpreter DLL (python3x.dll) are loaded if anything in sys.path or the system PATH can cause an import to fail. -- ___ Python tracker

[issue47165] [C API] Test that the Python C API is compatible with C++

2022-04-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: If we can conditionally test new things based on C++XX version, accumulating modern issue regression tests seems useful. Otherwise 11 at minimum. As for why some things trigger this and others don't, my wild _guess_ would be whether the statements appear

[issue47226] if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error

2022-04-05 Thread Kaushal Sai v
Change by Kaushal Sai v : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28951] re.flags not documented in Module Contents as promised.

2022-04-05 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.6, Python 3.7 ___ Python tracker ___

[issue44090] Add class binding to unbound super objects for allowing autosuper with class methods

2022-04-05 Thread Géry
Géry added the comment: > Anthony Sottile provided this search to showing that at least a few popular > projects are using the one argument form of super(): Thanks for the link. But it gives lots of false positives. Only two popular projects (> 1k stars) use autosuper (urwid and evennia):

[issue45774] Detect SQLite in configure.ac

2022-04-05 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue47226] if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error called unexpected indent

2022-04-05 Thread Kaushal Sai v
Kaushal Sai v added the comment: the error mesessage is tha unexpected incident -- components: +Windows -IDLE nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker

[issue47088] Implement PEP 675 (LiteralString)

2022-04-05 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset cfb849a326e52a4edc577112ebf60e1d9d0d7fdb by Jelle Zijlstra in branch 'main': bpo-47088: Add typing.LiteralString (PEP 675) (GH-32064) https://github.com/python/cpython/commit/cfb849a326e52a4edc577112ebf60e1d9d0d7fdb --

[issue47088] Implement PEP 675 (LiteralString)

2022-04-05 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue47226] if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error called unexpected indent

2022-04-05 Thread Kaushal Sai v
Change by Kaushal Sai v : -- components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47226] Unexpected indent message

2022-04-05 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: -paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware ___ Python tracker ___ ___

[issue47212] Minor issues in reported Syntax errors

2022-04-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset aa0f056a00c4bcaef83d729e042359ddae903382 by Matthieu Dartiailh in branch 'main': bpo-47212: Improve error messages for un-parenthesized generator expressions (GH-32302)

[issue47226] if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error

2022-04-05 Thread Kaushal Sai v
Change by Kaushal Sai v : -- assignee: -> terry.reedy components: +IDLE nosy: +terry.reedy status: pending -> open versions: +Python 3.10 -Python 3.11 ___ Python tracker ___

[issue47228] Document that naïve datetime objects represent local time

2022-04-05 Thread Paul Ganssle
New submission from Paul Ganssle : Currently, the `datetime` documentation has this to say about naïve datetimes: > A naive object does not contain enough information to unambiguously locate > itself relative to other date/time objects. Whether a naive object represents > Coordinated

[issue47226] if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error called unexpected indent

2022-04-05 Thread Kaushal Sai v
Change by Kaushal Sai v : -- title: if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error -> if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error called unexpected indent ___

[issue47226] if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error called unexpected indent

2022-04-05 Thread Kaushal Sai v
Change by Kaushal Sai v : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41930] Wrap sqlite3_serialize API in sqlite3 module

2022-04-05 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset a7551247e7cb7010fb4735281f1afa4abeb8a9cc by Erlend Egeberg Aasland in branch 'main': bpo-41930: Add support for SQLite serialise/deserialise API (GH-26728) https://github.com/python/cpython/commit/a7551247e7cb7010fb4735281f1afa4abeb8a9cc

[issue41930] Wrap sqlite3_serialize API in sqlite3 module

2022-04-05 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Thanks, this will be in Python 3.11. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue47226] if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error called unexpected indent

2022-04-05 Thread Kaushal Sai v
Change by Kaushal Sai v : -- status: pending -> open Added file: https://bugs.python.org/file50719/python problem.PNG ___ Python tracker ___

[issue47226] Unexpected indent message

2022-04-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: " keys = pygame.key.get_pressed() is showing error called unexpected indent" The problem is that the keys line in indented one less space than the line above. A shorter example below. if True: a = 1 b = 2 SyntaxError: unindent does not match any

[issue47009] Streamline list.append for the common case

2022-04-05 Thread Christian Heimes
Christian Heimes added the comment: New changeset 9e88b572fb904b172f9e344069fb7118f1cee517 by Christian Heimes in branch 'main': bpo-47009: Fix assert on big endian (GH-32332) https://github.com/python/cpython/commit/9e88b572fb904b172f9e344069fb7118f1cee517 --

[issue47212] Minor issues in reported Syntax errors

2022-04-05 Thread miss-islington
miss-islington added the comment: New changeset 94609e3192f15636c760a48c4c1c2c236fac3217 by Matthieu Dartiailh in branch '3.10': [3.10] Backport bpo-47212 (GH-32302) to Python 3.10 (GH-32334) https://github.com/python/cpython/commit/94609e3192f15636c760a48c4c1c2c236fac3217 -- nosy:

[issue47027] subprocess.run(), subprocess.Popen() should accept file descriptor as cwd parameter

2022-04-05 Thread Yann Droneaud
Yann Droneaud added the comment: I looked at posixmodule: os.chdir() accepts a file descriptor. Maybe it can be possible to invoke it from _posixsubprocess.c instead of calling chdir(). -- ___ Python tracker

[issue47212] Minor issues in reported Syntax errors

2022-04-05 Thread Alex Waygood
Change by Alex Waygood : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue17004] Expand zipimport to include other compression methods

2022-04-05 Thread Christian Heimes
Change by Christian Heimes : -- versions: +Python 3.11 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue47009] Streamline list.append for the common case

2022-04-05 Thread Mark Shannon
Mark Shannon added the comment: New changeset 6c6e0408a663c1f53dad403f54a18d444da39cb7 by Dennis Sweeney in branch 'main': bpo-47009: Let PRECALL_NO_KW_LIST_APPEND do its own POP_TOP (GH-32239) https://github.com/python/cpython/commit/6c6e0408a663c1f53dad403f54a18d444da39cb7 --

[issue47210] './configure --help' causes infinite loop

2022-04-05 Thread ripspin
ripspin added the comment: Bug closed because I get the same loop with python-3.10.4 -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue47050] Cannot install Python 3.10.3 on Windows

2022-04-05 Thread Alex Waygood
Alex Waygood added the comment: (My solution for now has been to install python on my other laptop. Thanks for the help Steve!) -- stage: -> resolved status: open -> closed ___ Python tracker

[issue47227] Suppress expression chaining for RE parsing errors

2022-04-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The EAFP principle is widely used in the regular expressions parsing code. Exceptions like KeyError, IndexError, ValueError or OverflowError raised during parsing are converted into a helpful re.error. Expression chaining is usually suppressed in such

[issue45774] Detect SQLite in configure.ac

2022-04-05 Thread Christian Heimes
Christian Heimes added the comment: New changeset f1606a5ba50bdc4e7d335d62297b4b4043a25e6e by Erlend Egeberg Aasland in branch 'main': bpo-45774: Harden SQLite detection (GH-30016) https://github.com/python/cpython/commit/f1606a5ba50bdc4e7d335d62297b4b4043a25e6e --

[issue47227] Suppress expression chaining for RE parsing errors

2022-04-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +30390 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32333 ___ Python tracker

[issue41395] pickle and pickletools cli interface doesn't close input and output file.

2022-04-05 Thread Adam
Adam added the comment: Hi, First-time contributor here, I've made a patch in follow-up to the discussions that happened in Amir's patch in regards to this. I'd appreciate it if someone would be able to take a look and review it! https://github.com/python/cpython/pull/32257 --

[issue47136] The variable __module__ in the class body getting an undesirable value from __prepare__ of the metaclass

2022-04-05 Thread Takuo Matsuoka
Takuo Matsuoka added the comment: Thank you Ethan for reopening this issue and closing the other one. Here is a description of a more specific issue, containing a more reasonable example. I've changed the title of the issue to a more appropriate one accordingly. Context --- Some classes

[issue47186] split JUMP_IF_NOT_EXC/EG_MATCH into CHECK_EXC/EG_MATCH + jump

2022-04-05 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___

[issue47120] Make all jump opcodes relative

2022-04-05 Thread Irit Katriel
Irit Katriel added the comment: New changeset 0aa8d5cbd89cf3b61d7e8626f3a7b9c4881dfd70 by Irit Katriel in branch 'main': bpo-47120: make JUMP_NO_INTERRUPT relative (GH-32221) https://github.com/python/cpython/commit/0aa8d5cbd89cf3b61d7e8626f3a7b9c4881dfd70 --

[issue47009] Streamline list.append for the common case

2022-04-05 Thread Christian Heimes
Change by Christian Heimes : -- nosy: +christian.heimes nosy_count: 3.0 -> 4.0 pull_requests: +30389 pull_request: https://github.com/python/cpython/pull/32332 ___ Python tracker

[issue36207] robotsparser deny all with some rules

2022-04-05 Thread adiboo adib
adiboo adib added the comment: I can't find a documentation about it, but all of the robots.txt checkers I find behave like this. You can test on this site: https://www.st-info.fr/robots.txt, I believe that this is how it's implemented now in most parsers ? -- nosy: +adiboo67

[issue47186] split JUMP_IF_NOT_EXC/EG_MATCH into CHECK_EXC/EG_MATCH + jump

2022-04-05 Thread Irit Katriel
Irit Katriel added the comment: New changeset 32091df41ce6e3a71df2cf37dc74b728c0d885f2 by Irit Katriel in branch 'main': bpo-47186: Replace JUMP_IF_NOT_EG_MATCH by CHECK_EG_MATCH + jump (GH-32309) https://github.com/python/cpython/commit/32091df41ce6e3a71df2cf37dc74b728c0d885f2 --

[issue47203] ImportError: DLL load failed while importing binascii: %1 is not a valid Win32 application.

2022-04-05 Thread Steve Dower
Steve Dower added the comment: > There is something fundamentally wrong with the way modules built into the > interpreter DLL (python3x.dll) are loaded if anything in sys.path or the > system PATH can cause an import to fail. Probably there was also shadowing involved, since the built-in

[issue42012] typing support in wsgiref

2022-04-05 Thread Sebastian Rittau
Change by Sebastian Rittau : -- keywords: +patch pull_requests: +30392 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32335 ___ Python tracker

[issue47212] Minor issues in reported Syntax errors

2022-04-05 Thread Matthieu Dartiailh
Change by Matthieu Dartiailh : -- pull_requests: +30391 pull_request: https://github.com/python/cpython/pull/32334 ___ Python tracker ___

[issue42012] typing support in wsgiref

2022-04-05 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46607] Add DeprecationWarning to configparser's LegacyInterpolation

2022-04-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 75280944e5ca957eec7f814b9d0608fc84fc5811 by Hugo van Kemenade in branch 'main': bpo-46607: Add DeprecationWarning for LegacyInterpolation, deprecated in docs since 3.2 (GH-30927)

[issue47136] The variable __module__ in the class body getting an undesirable value from __prepare__ of the metaclass

2022-04-05 Thread Ethan Furman
Ethan Furman added the comment: You are using the same generic example -- it does show the issue you are concerned with, but offers no rational for why we should "fix" it -- in other words, we cannot tell if it's actually broken. Please provide an example of code you are actually using -- a

[issue47229] IDLE / Thonny UI crashes on Chromebook Linux/Bullseye

2022-04-05 Thread Doug Bates
New submission from Doug Bates : Having installed IDLE on Chromebbok/Linux Bullseye, on startup the UI crashes as soon as a menu item is selected. Also when trying to use Thonny. Other packages seem OK. Used to work fine under Buster, but not since fresh install to Bullseye. Apologies from

[issue47131] Speedup test_unparse

2022-04-05 Thread Jeremy Kloth
Change by Jeremy Kloth : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue47131] Speedup test_unparse

2022-04-05 Thread Jeremy Kloth
Jeremy Kloth added the comment: Resolved with merged PR. -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list

[issue45354] test_winconsoleio fails on Windows 11

2022-04-05 Thread Jeremy Kloth
Change by Jeremy Kloth : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue47230] New compiler warnings with latest zlib

2022-04-05 Thread Jeremy Kloth
New submission from Jeremy Kloth : The latest zlib (1.2.12) introduces 3 new compiler warnings. Now being an external library, I do not think we generally patch them, so I propose to simply silence the warnings for the offending file. For reference, the problem comes from: ---

[issue47230] New compiler warnings with latest zlib

2022-04-05 Thread Jeremy Kloth
Change by Jeremy Kloth : -- keywords: +patch pull_requests: +30393 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32337 ___ Python tracker ___

[issue28540] math.degrees(sys.float_info.max) should throw an OverflowError exception

2022-04-05 Thread Mark Dickinson
Mark Dickinson added the comment: FWIW, I do consider this a bug, albeit a minor one. I may find time to fix it at some point (but it's fine to leave it closed until that time comes). -- ___ Python tracker

[issue47234] PEP-484 "numeric tower" approach makes it hard/impossible to specify contracts in documentation

2022-04-05 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Thanks for your report, but I would appreciate a more concise explanation. Let me try to rephrase the problem. Given this function: def mean(x: list[float]) -> float: return sum(x) / len(x) We want to provide a guarantee that if x is a nonempty list

[issue47185] code.replace(co_code=new_code) no longer catch exceptions on Python 3.11

2022-04-05 Thread Guido van Rossum
Guido van Rossum added the comment: This idea just cannot work. Take these two functions: def f(): foo() try: bar() except: pass def g(): try: foo() bar() except: pass Using dis to look at their disassembly, the only hint that in

[issue47233] show_caches option affects code positions reported by dis.get_instructions(...)

2022-04-05 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47185] code.replace(co_code=new_code) no longer catch exceptions on Python 3.11

2022-04-05 Thread STINNER Victor
STINNER Victor added the comment: >>> def f(): ... foo() ... try: ... bar() ... except: ... pass ... >>> def g(): ... try: ... foo() ... bar() ... except: ... pass ... >>> dis.dis(f) 1 0 RESUME 0 2

[issue47230] New compiler warnings with latest zlib

2022-04-05 Thread Jeremy Kloth
Change by Jeremy Kloth : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue47235] Clarify that `assret_called_once_with` sample code is intended typo

2022-04-05 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +30401 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32348 ___ Python tracker

[issue47231] TarFile.getmember cannot work on tar sourced directory over 100 characters

2022-04-05 Thread Chris Fernald
New submission from Chris Fernald : A fix was made to unify handling of the trailing slash in TarFile.getmember related to https://bugs.python.org/issue21987. This change fixed the <100 character case, but made it so directories over 100 character which come from a tar file can no longer be

[issue47006] PEP 646: Decide on substitution behavior

2022-04-05 Thread Matthew Rahtz
Matthew Rahtz added the comment: [Guido] > 1. Some edge case seems to be that if *tuple[...] is involved on either side > we will never simplify. Alright, let me think this through with some examples to get my head round it. It would prohibit the following difficult case: class

[issue28540] math.degrees(sys.float_info.max) should throw an OverflowError exception

2022-04-05 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy -patch type: -> enhancement versions: +Python 3.11 ___ Python tracker ___ ___

[issue47232] Difficulties building tip of tree Python for emscripten

2022-04-05 Thread Hood Chatham
New submission from Hood Chatham : I am trying to build tot Python for Emscripten to test recent changes and having trouble. The problem is caused by recent changes since 3.11.0a6 to `sre`. I build a build Python 3.11 from tot, and provided it to `./configure

[issue47232] Difficulties building tip of tree Python for emscripten

2022-04-05 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46607] Add DeprecationWarning to configparser's LegacyInterpolation

2022-04-05 Thread STINNER Victor
STINNER Victor added the comment: Thanks Hugo for the your contribution. I close the issue. > Searching the top 5,000 PyPI sdists, there's very little (if any "real") use > of LegacyInterpolation. Details: https://bugs.python.org/issue45173#msg409685 You can offer them a PR to avoid the

[issue47231] TarFile.getmember cannot work on tar sourced directory over 100 characters

2022-04-05 Thread Ethan Furman
Ethan Furman added the comment: Nosied others from issue21987. -- nosy: +andrei.avk, ethan.furman, r.david.murray, vstinner ___ Python tracker ___

[issue47203] ImportError: DLL load failed while importing binascii: %1 is not a valid Win32 application.

2022-04-05 Thread Matthew
Matthew added the comment: > Probably there was also shadowing involved, since the built-in module doesn't > try to load anything else. Would be nice to know for sure (@Matthew) to make > sure we don't have some other issue here, but you're right, I don't see any > way for this to happen

[issue47234] PEP-484 "numeric tower" approach makes it hard/impossible to specify contracts in documentation

2022-04-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is a partial duplicate of an issue you already filed: https://bugs.python.org/issue47121 where math.isfinite(10**1000) raises an OverflowError even though it type checks. Here was one of the comments: """ Types relationships are useful for verifying

[issue44090] Add class binding to unbound super objects for allowing autosuper with class methods

2022-04-05 Thread Guido van Rossum
Guido van Rossum added the comment: At this point I think it's worth filing a new bug proposing to deprecate 1-arg super(), pointing out the broken usages that search found. -- ___ Python tracker

[issue47232] Difficulties building tip of tree Python for emscripten

2022-04-05 Thread Hood Chatham
Hood Chatham added the comment: Okay I got it working. I was making several mistakes that each caused the same symptoms so it was hard to track them all down. Thanks again for your help! -- status: open -> closed ___ Python tracker

[issue47236] Document types.CodeType.replace() changes about co_exceptiontable

2022-04-05 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47230] New compiler warnings with latest zlib

2022-04-05 Thread Steve Dower
Steve Dower added the comment: New changeset a4c7752f3e00b75fd1e4603458b8c77a9fa3d4cb by Jeremy Kloth in branch '3.9': bpo-47230: Silence compiler warnings on Windows from zlib 1.2.12 (GH-32337) https://github.com/python/cpython/commit/a4c7752f3e00b75fd1e4603458b8c77a9fa3d4cb --

[issue47232] Difficulties building tip of tree Python for emscripten

2022-04-05 Thread Hood Chatham
Hood Chatham added the comment: config.log is apparently 1.7 MB and when I try to upload I get "Error 413: Entity Too Large". I've attached the Makefile. -- Added file: https://bugs.python.org/file50723/Makefile ___ Python tracker

[issue47185] code.replace(co_code=new_code) no longer catch exceptions on Python 3.11

2022-04-05 Thread Guido van Rossum
Guido van Rossum added the comment: If you think the changes to .replace() should be documented just open a new bpo. You made this issue about your various proposals to change .replace(). -- ___ Python tracker

[issue47230] New compiler warnings with latest zlib

2022-04-05 Thread Steve Dower
Steve Dower added the comment: Do we need to backport this? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue47230] New compiler warnings with latest zlib

2022-04-05 Thread Steve Dower
Steve Dower added the comment: New changeset 944f09adfcc59f54432ac2947cf95f3465d90e1e by Jeremy Kloth in branch 'main': bpo-47230: Silence compiler warnings on Windows from zlib 1.2.12 (GH-32337) https://github.com/python/cpython/commit/944f09adfcc59f54432ac2947cf95f3465d90e1e --

[issue47232] Difficulties building tip of tree Python for emscripten

2022-04-05 Thread Hood Chatham
Hood Chatham added the comment: Okay I found the problem. Elsewhere in my Makefiles `PYTHON_FOR_BUILD` was getting overwritten. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue46850] [C API] Move _PyEval_EvalFrameDefault() to the internal C API

2022-04-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +30397 pull_request: https://github.com/python/cpython/pull/32343 ___ Python tracker ___

[issue47232] Difficulties building tip of tree Python for emscripten

2022-04-05 Thread Hood Chatham
Hood Chatham added the comment: There is still a pretty good change I am making some dumb mistake. -- ___ Python tracker ___ ___

[issue47231] TarFile.getmember cannot work on tar sourced directory over 100 characters

2022-04-05 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47061] Deprecate modules listed in PEP 594

2022-04-05 Thread Brett Cannon
Brett Cannon added the comment: New changeset c1d93b6411f975d67e43942f1a2745a22983c18c by Brett Cannon in branch 'main': bpo-47061: deprecate the `aifc` module (GH-32134) https://github.com/python/cpython/commit/c1d93b6411f975d67e43942f1a2745a22983c18c --

[issue47184] multiprocessing.set_start_method force argument is not documented

2022-04-05 Thread Sam Ezeh
Change by Sam Ezeh : -- keywords: +patch nosy: +sam_ezeh nosy_count: 2.0 -> 3.0 pull_requests: +30395 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32339 ___ Python tracker

[issue47233] show_caches option affects code positions reported by dis.get_instructions(...)

2022-04-05 Thread 15r10nk
New submission from 15r10nk <15r10nk-python-iss...@polarbit.de>: The Instructions reported by dis.get_instructions(...) and dis.Bytecode(...) have different positions depending on the value of their show_caches argument. test2.py reproduces the problem. -- files: test2.py messages:

[issue47232] Difficulties building tip of tree Python for emscripten

2022-04-05 Thread Hood Chatham
Hood Chatham added the comment: I take it back, I am still having this problem. -- status: closed -> open ___ Python tracker ___

[issue47222] subprocess.Popen() should allow capturing output and sending it to stdout and stderr

2022-04-05 Thread Philip Prindeville
Change by Philip Prindeville : -- keywords: +patch pull_requests: +30398 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32344 ___ Python tracker

[issue47232] Difficulties building tip of tree Python for emscripten

2022-04-05 Thread Christian Heimes
Christian Heimes added the comment: You are building a cross-build with "--with-build-python=/usr/local/bin/python3.11". Is the interpreter up to date? During alpha and beta phase, the build Python interpreter should be built from the exact same git commit as the sources in "../..". If the

[issue47235] Clarify that `assret_called_once_with` sample code is intended typo

2022-04-05 Thread Mariatta
New submission from Mariatta : In unittest.mock documentation, there is an example code which intentionally contains typo. Source: https://github.com/python/cpython/blame/main/Doc/library/unittest.mock.rst#L2553 We've received quite a number of false "bug report" regarding this text.

[issue47233] show_caches option affects code positions reported by dis.get_instructions(...)

2022-04-05 Thread Brandt Bucher
Brandt Bucher added the comment: Nice catch. The fix should be pretty simple: just move this line... https://github.com/python/cpython/blob/c1d93b6411f975d67e43942f1a2745a22983c18c/Lib/dis.py#L425 ...up to the top of the for loop. Are you interested in working on this? --

  1   2   >