[issue43510] PEP 597: Implemente encoding="locale" option and EncodingWarning

2021-03-30 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23851 pull_request: https://github.com/python/cpython/pull/25107 ___ Python tracker ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2021-03-30 Thread miss-islington
miss-islington added the comment: New changeset 84694c3e7adadc97d7d8cee938fe84bbeb961387 by Miss Islington (bot) in branch '3.9': bpo-42225: IDLE - document two unix-related problems. (GH-25078) https://github.com/python/cpython/commit/84694c3e7adadc97d7d8cee938fe84bbeb961387 --

[issue42225] Tkinter hangs or crashes when displaying astral chars

2021-03-30 Thread miss-islington
miss-islington added the comment: New changeset e92923b028024290a0e621b6b90e3221767d14d4 by Miss Islington (bot) in branch '3.8': bpo-42225: IDLE - document two unix-related problems. (GH-25078) https://github.com/python/cpython/commit/e92923b028024290a0e621b6b90e3221767d14d4 --

[issue43676] Doctest ELLIPSIS explanation hard to follow when they're missing

2021-03-30 Thread Tim Hatch
New submission from Tim Hatch : The doctest docs try to explain directives like ELLIPSIS but those directives are absent from the rendered html. Where? Most of the code blocks in the Directives section, and https://docs.python.org/3/library/doctest.html#directives and the one introduced by

[issue43510] PEP 597: Implemente encoding="locale" option and EncodingWarning

2021-03-30 Thread Inada Naoki
Inada Naoki added the comment: New changeset ff3c9739bd69aa8b58007e63c9e40e6708b4761e by Inada Naoki in branch 'master': bpo-43510: PEP 597: Accept `encoding="locale"` in binary mode (GH-25103) https://github.com/python/cpython/commit/ff3c9739bd69aa8b58007e63c9e40e6708b4761e --

[issue42225] Tkinter hangs or crashes when displaying astral chars

2021-03-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: On macOS with 3.10.0a, 8.6.11 appears to fix this issue. >>> chr(128516) "" For IDLE, I am adding a paragraph to the doc. I will then close this issue as 'fixed' (insofar as we can for what is a 3rd party failure). -- stage: patch review -> test

[issue42225] Tkinter hangs or crashes when displaying astral chars

2021-03-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +23850 pull_request: https://github.com/python/cpython/pull/25106 ___ Python tracker ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2021-03-30 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +23849 pull_request: https://github.com/python/cpython/pull/25105 ___ Python tracker

[issue42225] Tkinter hangs or crashes when displaying astral chars

2021-03-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 1b4a9c7956d5dc64f8002f62bf0faae2d1892f90 by Terry Jan Reedy in branch 'master': bpo-42225: IDLE - document two unix-related problems. (#25078) https://github.com/python/cpython/commit/1b4a9c7956d5dc64f8002f62bf0faae2d1892f90 --

[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-03-30 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +pablogsal, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-03-30 Thread Jiaxin Peng
Jiaxin Peng added the comment: The regen.vcxproj was modified but not test well. In the first version of regen.vcxproj there were such build targets: _RegenGrammar(BeforeTargets="Build") -> _RegenAST_H -> _RegenAST_C -> _RegenOpcodes -> _RegenTokens -> _RegenKeywords -> _RegenSymbols In

[issue43510] PEP 597: Implemente encoding="locale" option and EncodingWarning

2021-03-30 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23848 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/25103 ___ Python tracker ___

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-03-30 Thread Inada Naoki
Change by Inada Naoki : -- superseder: -> PEP 597: Implemente encoding="locale" option and EncodingWarning ___ Python tracker ___

[issue40066] Enum: modify __repr__, __str__; update docs

2021-03-30 Thread Ethan Furman
Ethan Furman added the comment: New changeset b775106d940e3d77c8af7967545bb9a5b7b162df by Ethan Furman in branch 'master': bpo-40066: Enum: modify `repr()` and `str()` (GH-22392) https://github.com/python/cpython/commit/b775106d940e3d77c8af7967545bb9a5b7b162df --

[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-03-30 Thread Guido van Rossum
Guido van Rossum added the comment: So is there a bug in regen.vcxproj, or in https://devguide.python.org/setup/#windows-compiling ? The latter says VS 2017. @pjx206: please stop clearing out the nosy list. You've done that twice now. If you do it again, I'll close this issue. --

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

2021-03-30 Thread David Bolen
David Bolen added the comment: In lieu of the patch in #25191, what about a pair of skips to deal with the issues at hand without killing the test entirely? I'm including OpenBSD since those issues were closed in favor of this one, and am assuming that skipping there is also appropriate.

[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-03-30 Thread Jiaxin Peng
Jiaxin Peng added the comment: `build.bat --regen` produces such error because it uses build tool from visual studio to build regen.vcxproj, and you do not have v142 toolset. I'm using vs2019 and have v142 toolset installed and regen.vcxproj workd, just cannot actually regenerate files

[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-03-30 Thread Jiaxin Peng
Change by Jiaxin Peng : -- nosy: -anthonypjshaw, lys.nikolaou, pablogsal, paul.moore, pjx206, steve.dower, tim.golden, vstinner, zach.ware ___ Python tracker ___

[issue43674] strange effect at recursion limit

2021-03-30 Thread Eryk Sun
Eryk Sun added the comment: > Why is there no 2nd 995 after the recursion error? print(s) calls sys.stdout.write(s) and sys.stdout.write("\n"). The I/O stack consists of a text I/O wrapper, buffered writer, and a raw file object. What happens in this case is that writing "\n" causes the

[issue43631] Update to OpenSSL 1.1.1k

2021-03-30 Thread Brad Warren
Brad Warren added the comment: To be fair, I doubt my project is affected by the CVEs. I was just looking to upgrade instead of trying to verify that. -- ___ Python tracker

[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-03-30 Thread Guido van Rossum
Guido van Rossum added the comment: FWIW, could this issue recently merged by Victor be related? bpo-43244: Remove ast.h, asdl.h, Python-ast.h headers (GH-24933) -- ___ Python tracker

[issue43655] Tkinter: Not setting _NET_WM_WINDOW_TYPE on FileDialog

2021-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, it is not ready for publishing yet. I'll try to work on it on the next weekend. Since it is a large change, there is a risk of breaking user code, so perhaps it would be worth to separate changes related to this issue which can be backported.

[issue39228] traceback.FrameSummary does not handle exceptions from `repr()`

2021-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue43656. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41461] test_pathlib assumes underlying filesystem permits creation with world-write permissions

2021-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: umask(0o002) looks good idea (and perhaps umask(0o026) instead of umask(0o022)). Please add also a short explanation comment. -- nosy: +serhiy.storchaka ___ Python tracker

[issue39228] traceback.FrameSummary does not handle exceptions from `repr()`

2021-03-30 Thread Irit Katriel
Irit Katriel added the comment: If we decide to reject this then we should add unit tests that show this state of affairs is deliberate. -- nosy: +iritkatriel ___ Python tracker

[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-30 Thread miss-islington
miss-islington added the comment: New changeset b500bd8e672d15c6dfa24568a3264fdc0f3e0c01 by Miss Islington (bot) in branch '3.9': bpo-43399: Fix ElementTree.extend not working on iterators (GH-24751) https://github.com/python/cpython/commit/b500bd8e672d15c6dfa24568a3264fdc0f3e0c01

[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-30 Thread miss-islington
miss-islington added the comment: New changeset c1079cde2a7676892a9b98703903206b7d26ed1f by Miss Islington (bot) in branch '3.8': bpo-43399: Fix ElementTree.extend not working on iterators (GH-24751) https://github.com/python/cpython/commit/c1079cde2a7676892a9b98703903206b7d26ed1f

[issue43675] test

2021-03-30 Thread Eric V. Smith
Change by Eric V. Smith : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Pinging us was the only action needed. Thank you for your contribution Alex. -- ___ Python tracker ___

[issue43675] test

2021-03-30 Thread Aysal Marandian
New submission from Aysal Marandian : test out python -- resolution: -> not a bug versions: +Python 3.10 ___ Python tracker ___

[issue28276] test_loading.py - false positive result for "def test_find" when find_library() is not functional or the (shared) library does not exist

2021-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Concur. Also you can add "ssl" to the list of tested names if both "c" and "m" fail on AIX. -- nosy: +serhiy.storchaka ___ Python tracker

[issue43675] test

2021-03-30 Thread Aysal Marandian
Change by Aysal Marandian : -- nosy: aysal.marandian priority: normal severity: normal status: open title: test ___ Python tracker ___

[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +23847 pull_request: https://github.com/python/cpython/pull/25102 ___ Python tracker ___

[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-30 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +23846 pull_request: https://github.com/python/cpython/pull/25101 ___ Python tracker

[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 51a85ddce8b336addcb61b96f04c9c5edef07296 by Alex Prengère in branch 'master': bpo-43399: Fix ElementTree.extend not working on iterators (GH-24751) https://github.com/python/cpython/commit/51a85ddce8b336addcb61b96f04c9c5edef07296 --

[issue39228] traceback.FrameSummary does not handle exceptions from `repr()`

2021-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: __repr__() and repr() can raise exceptions. Silencing arbitrary exception is usually a bad idea. Even correctly raised code can raise exceptions such as MemoryError, RecursionError and KeybordInterrupt. For this reason I think that the proposed change

[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-30 Thread Zveinn
Zveinn added the comment: No problem, Hopefully this will improve the performance on some network devices and proxy services. -- ___ Python tracker ___

[issue37368] test_asyncio: test_create_server_ssl_match_failed() failed on s390x SLES 3.x and logged an unraisable exception

2021-03-30 Thread Neil Schemenauer
Neil Schemenauer added the comment: It seems to not be specific to S390, same kind of failure on the PPC64LE RHEL8 LTO + PGE 3.x tester: Exception ignored in: Traceback (most recent call last): File

[issue30511] shutil.make_archive should not need to chdir (alternatively: make shutil.make_archive thread-safe)

2021-03-30 Thread Michael Osipov
Michael Osipov <1983-01...@gmx.net> added the comment: Just wasted two hours for this. Can someone really update the documentation of it if this is not going to change. -- nosy: +michael-o ___ Python tracker

[issue43674] strange effect at recursion limit

2021-03-30 Thread TW
New submission from TW : user@development:~$ python3 Python 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. def recurse(n): print(n) try: recurse(n+1) except RecursionError:

[issue36534] tarfile and zipfile: handling Windows (path) illegal characters in archive member names

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

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

2021-03-30 Thread STINNER Victor
STINNER Victor added the comment: > The patch should not have landed in 3.8. At a bare minimum the patch should > have been postponed until documentation was updated. Since 3.8 the ipaddresss > does not behave as documented. A similar security issue in NPM was published > two days ago,

[issue43671] segfault when using tkinter + pygame for ~5 minutes

2021-03-30 Thread Pycrytor10
Pycrytor10 added the comment: My original script has tkinter used as well. I wasn't entirely sure where it was when I filed the bug at first and just saw a tk/tcl mentioned in the logs. It does look now I've managed to investigate further to be something in pygame. I've never had to debug a

[issue43671] segfault when using tkinter + pygame for ~5 minutes

2021-03-30 Thread E. Paine
E. Paine added the comment: Not sure why this was marked as a problem with tkinter (neither Pygame nor the example use it). I would be very surprised if this wasn't an issue with Pygame, as the Python is just requesting a dictionary deallocation which is then handled by Pygame's

[issue39228] traceback.FrameSummary does not handle exceptions from `repr()`

2021-03-30 Thread Martin
Martin added the comment: > As is true for most special methods, it is a bug for __repr__ methods to > raise. Is this codified anywhere? I only learned about that in this bug report. -- nosy: +moi90 ___ Python tracker

[issue32671] redesign Windows os.getlogin, and add os.getuser

2021-03-30 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> rejected stage: test needed -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42134] Raise ImportWarning when falling back to find_module()

2021-03-30 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43431] Subprocess timeout causes output to be returned as bytes in text mode

2021-03-30 Thread Eryk Sun
Change by Eryk Sun : -- versions: -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43673] Missing stub for logging attribute manager

2021-03-30 Thread William (David) Wilcox
Change by William (David) Wilcox : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29753] [Linux] ctypes packs bitfields Incorrectly

2021-03-30 Thread Eryk Sun
Change by Eryk Sun : -- title: Ctypes Packing Bitfields Incorrectly - Linux -> [Linux] ctypes packs bitfields Incorrectly versions: +Python 3.10 -Python 3.7 ___ Python tracker

[issue43105] [Windows] Can't import extension modules resolved via relative paths in sys.path

2021-03-30 Thread Eryk Sun
Change by Eryk Sun : -- components: +Interpreter Core, Library (Lib) -Extension Modules title: Can't import extension modules resolved via relative paths in sys.path on Windows -> [Windows] Can't import extension modules resolved via relative paths in sys.path versions: -Python 3.7

[issue38822] [Windows] Inconsistent os.stat behavior for directory with Access Denied

2021-03-30 Thread Eryk Sun
Change by Eryk Sun : -- components: +Extension Modules title: Inconsistent os.stat behavior for directory with Access Denied -> [Windows] Inconsistent os.stat behavior for directory with Access Denied versions: +Python 3.10 -Python 3.7 ___ Python

[issue42968] [Windows] multiprocessing handle leak when child process is killed during startup/unpickling

2021-03-30 Thread Eryk Sun
Change by Eryk Sun : -- title: multiprocessing handle leak on Windows when child process is killed during startup/unpickling -> [Windows] multiprocessing handle leak when child process is killed during startup/unpickling versions: -Python 3.7 ___

[issue36534] tarfile and zipfile: handling Windows (path) illegal characters in archive member names

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

[issue19124] os.execv executes in background on Windows

2021-03-30 Thread Eryk Sun
Eryk Sun added the comment: > Even if that's just swapping the execv call for spawnv(_P_WAIT) > and then exiting, that's fine by me Maybe call SuspendThread() on other threads, at least the ones that can be enumerated with the threading module. > I don't see how its behaviour would change

[issue43673] Missing stub for logging attribute manager

2021-03-30 Thread William (David) Wilcox
Change by William (David) Wilcox : -- components: Library (Lib) nosy: wdwilcox priority: normal severity: normal status: open title: Missing stub for logging attribute manager type: enhancement versions: Python 3.10 ___ Python tracker

[issue43656] StackSummary.format fails if str(value) fails

2021-03-30 Thread Martin
Martin added the comment: I can't find any mention of this in the documentation: https://docs.python.org/3/reference/datamodel.html#object.__repr__ https://docs.python.org/3/library/functions.html#repr I think this should be mentioned somewhere. --

[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-03-30 Thread Guido van Rossum
Guido van Rossum added the comment: @Steve, Anthony: I am now in a state where I have *no* changes anywhere, build.bat completes without errors, but build.bat --regen produces this error (after first doing a regular build): C:\Program Files (x86)\Microsoft Visual

[issue43656] StackSummary.format fails if str(value) fails

2021-03-30 Thread Martin
Martin added the comment: I didn't know repr is supposed to always succeed. Does the documentation mention this? -- ___ Python tracker ___

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

2021-03-30 Thread Steve Dower
Steve Dower added the comment: This is now holding up some security releases (due to a couple of CVEs). Can we get the test skipped or fixed asap, please? -- nosy: +lukasz.langa, ned.deily priority: normal -> release blocker ___ Python tracker

[issue19124] os.execv executes in background on Windows

2021-03-30 Thread Steve Dower
Steve Dower added the comment: > emulating exec() is probably good enough for most cases, especially if code > expects to work in Windows. I think good-enough emulation is fine, but we should update the docs to clarify that non-Unix platforms may create a subprocess with a new PID, and

[issue33125] Windows 10 ARM64 platform support

2021-03-30 Thread Steve Dower
Steve Dower added the comment: Our builds are fine, so there's no need for an issue on our side. The decision to release is based on the ecosystem catching up. If you're able to help projects like setuptools, pip, and the core parts of the data science stack (which will need the most help)

[issue41369] Update to libmpdec-2.5.1

2021-03-30 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41369] Update to libmpdec-2.5.1

2021-03-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 73b20ae2fb7a5c1374aa5c3719f64c53d29fa0d2 by Antoine Pitrou in branch 'master': bpo-41369: Finish updating the vendored libmpdec to version 2.5.1 (GH-24962) https://github.com/python/cpython/commit/73b20ae2fb7a5c1374aa5c3719f64c53d29fa0d2

[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-03-30 Thread Guido van Rossum
Guido van Rossum added the comment: Can you past the full output from your command? Also, try making a dummy change (e.g. add a blank line) to each of the input files -- this will trigger the rebuild. PS. Please don't remove nosy folks unless they request so. -- nosy:

[issue38263] [Windows] multiprocessing: DupHandle.detach() race condition on DuplicateHandle(DUPLICATE_CLOSE_SOURCE)

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

[issue43672] Raise ImportWarning when calling find_loader()

2021-03-30 Thread Brett Cannon
New submission from Brett Cannon : Using find_loader() in the import system should raise ImportWarning to start transitioning people over to find_spec() who haven't migrated since Python 3.4. -- assignee: brett.cannon components: Interpreter Core messages: 389834 nosy: brett.cannon

[issue42134] Raise ImportWarning when falling back to find_module()

2021-03-30 Thread Brett Cannon
Brett Cannon added the comment: New changeset a7ff6df60c05e1b69fca743573b1e118bebf121d by Brett Cannon in branch 'master': bpo-42134: Raise ImportWarning when calling find_module() in the import system (GH-25044)

[issue38263] [Windows] multiprocessing: DupHandle.detach() race condition on DuplicateHandle(DUPLICATE_CLOSE_SOURCE)

2021-03-30 Thread Eryk Sun
Eryk Sun added the comment: spawn_main() could handle a PermissionError by checking the exit code. If the parent has terminated already, then simply exit quietly. _winapi.PROCESS_QUERY_LIMITED_INFORMATION would need to be defined. For example: def spawn_main(pipe_handle,

[issue43671] segfault when using tkinter + pygame for ~5 minutes

2021-03-30 Thread Pycrytor10
Pycrytor10 added the comment: Also filed https://github.com/pygame/pygame/issues/2543 as not sure where issue comes from -- ___ Python tracker ___

[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-30 Thread Alex
Alex added the comment: Is there anything else I should be doing, in order to get this merged in time for 3.10? (the PR is "awaiting merge") For the record, the equivalent PR for PyPy is now merged in the py3.7 branch: https://foss.heptapod.net/pypy/pypy/-/merge_requests/807. Regarding the

[issue43671] segfault when using tkinter + pygame for ~5 minutes

2021-03-30 Thread Pycrytor10
Change by Pycrytor10 : Added file: https://bugs.python.org/file49921/segfaultpygame.txt ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43671] segfault when using tkinter + pygame for ~5 minutes

2021-03-30 Thread Pycrytor10
Pycrytor10 added the comment: Can reproduce with a modified pygame.examples.alien to run in a loop after a similar time. -- Added file: https://bugs.python.org/file49920/aliens.py ___ Python tracker

[issue43666] AIX: Lib/_aix_support.py may break in a WPAR environment

2021-03-30 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +23845 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25095 ___ Python tracker ___

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

2021-03-30 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +23844 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25099 ___ Python tracker

[issue31956] Add start and stop parameters to the array.index()

2021-03-30 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43510] PEP 597: Implemente encoding="locale" option and EncodingWarning

2021-03-30 Thread Eryk Sun
Eryk Sun added the comment: > I think we should accept `encoding="locale"` even in binary mode. That's a good idea. It means the same as passing None, except it avoids a warning. -- nosy: +eryksun ___ Python tracker

[issue43671] segfault when using tkinter + pygame for ~5 minutes

2021-03-30 Thread Samuel Kirwin
New submission from Samuel Kirwin : Per the attached file, when testing an adapted version of pygame's alien script as part of research. Python segfaulted. This has occured twice about 5 minutes in. I had console running all messages at the time if more logs needed. MacOS Big Sur 11.2.3 on

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

2021-03-30 Thread Christian Heimes
Christian Heimes added the comment: Serhiy was right, this is a security issue. The patch should not have landed in 3.8. At a bare minimum the patch should have been postponed until documentation was updated. Since 3.8 the ipaddresss does not behave as documented. A similar security issue

[issue43670] Typo in 3.10 changelog

2021-03-30 Thread Ilya Gruzinov
New submission from Ilya Gruzinov : In next lines typo in function `load`: # BUG: "rb" mode or encoding="utf-8" should be used. with open("data.json") as f: data = json.laod(f) -- assignee: docs@python components: Documentation messages: 389825 nosy: docs@python, shagren priority:

[issue43668] Segfault with for fresh ubuntu 20.04 install

2021-03-30 Thread STINNER Victor
STINNER Victor added the comment: > Thanks for the reply, I don't know exactly what you mean by making a simpler > reproducer Script with less lines and less imports. > just using pip will cause this issue to happen from time to time, which is > why I find it unlikely to be caused by third

[issue43669] PEP 644: Require OpenSSL 1.1.1 or newer

2021-03-30 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +23842 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23014 ___ Python tracker

[issue43669] PEP 644: Require OpenSSL 1.1.1 or newer

2021-03-30 Thread Christian Heimes
New submission from Christian Heimes : Tracker ticket for PEP 644, https://www.python.org/dev/peps/pep-0644/ This PEP proposes for CPython’s standard library to support only OpenSSL 1.1.1 LTS or newer. Support for OpenSSL versions past end-of-lifetime, incompatible forks, and other TLS

[issue43510] PEP 597: Implemente encoding="locale" option and EncodingWarning

2021-03-30 Thread Inada Naoki
Inada Naoki added the comment: In bpo-43651, I found code pattern that it's difficult to use io.text_encoding(): class OpenWrapper: def __new__(cls, *args, **kwargs): return open(*args, **kwargs) `kwargs["encoding"] = text_encoding(kwargs.get("encoding)` doesn't work

[issue43668] Segfault with for fresh ubuntu 20.04 install

2021-03-30 Thread axel
axel added the comment: Thanks for the reply, I don't know exactly what you mean by making a simpler reproducer, but as I wrote in the original post, just using pip will cause this issue to happen from time to time, which is why I find it unlikely to be caused by third party libs. I will

[issue43668] Segfault with for fresh ubuntu 20.04 install

2021-03-30 Thread STINNER Victor
STINNER Victor added the comment: > Also, it would help a lot to use a Python built in debug mode. See: https://pythondev.readthedocs.io/builds.html#pydebug -- ___ Python tracker

[issue43656] StackSummary.format fails if str(value) fails

2021-03-30 Thread Irit Katriel
Irit Katriel added the comment: See issue39228. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43668] Segfault with for fresh ubuntu 20.04 install

2021-03-30 Thread STINNER Victor
STINNER Victor added the comment: Also, it would help a lot to use a Python built in debug mode. -- ___ Python tracker ___ ___

[issue43668] Segfault with for fresh ubuntu 20.04 install

2021-03-30 Thread STINNER Victor
STINNER Victor added the comment: This is very likely a crash in a 3rd party C extensions. You should try to write a simpler reproducer and report it to the C extensions causing the crash. You can try to enable the Python Development Mode to see if it provides you more information:

[issue43668] Segfault with for fresh ubuntu 20.04 install

2021-03-30 Thread axel
New submission from axel : The python interpreter segfaults when running in a miniconda environment on a fresh install of ubuntu 20.04.2. This seems to happen intermittently, both while running "pip" during the conda setup of an environment and during the execution of code like below. The

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-03-30 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +23841 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25097 ___ Python tracker ___

[issue43656] StackSummary.format fails if str(value) fails

2021-03-30 Thread Martin
Martin added the comment: Yes, it is repr in FrameSummary.__init__. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43667] Solaris: Fix broken Unicode encoding in non-UTF locales

2021-03-30 Thread Jakub Kulik
Jakub Kulik added the comment: I forgot to mention: this affects Oracle Solaris. I tested this on SmartOS, and I cannot reproduce it there as it seems that they are using Unicode representation for all locales. Based on the documentation, this might also affect other systems as well (e.g.

[issue43667] Solaris: Fix broken Unicode encoding in non-UTF locales

2021-03-30 Thread Jakub Kulik
Change by Jakub Kulik : -- keywords: +patch pull_requests: +23840 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25096 ___ Python tracker ___

[issue43667] Solaris: Fix broken Unicode encoding in non-UTF locales

2021-03-30 Thread Jakub Kulik
New submission from Jakub Kulik : On Linux, wchar_t values are mapped to their UTF-8 counterparts; however, that does not have to be the case as the standard allows any arbitrary representation to be used, and this is the case for Solaris. In Oracle Solaris, the internal form of wchar_t is

[issue43622] TLS 1.3, client polling returns event without data

2021-03-30 Thread gchauvel
gchauvel added the comment: err: second item: copy/paste error, the exception is PySSLWantReadErrorObject -- ___ Python tracker ___

[issue37745] 3.8b3 - windows install gui/ inconsistent options

2021-03-30 Thread Dimitri Merejkowsky
Dimitri Merejkowsky added the comment: > the inevitable confusion when multiple PATH updates do not play well together > (which they don't). Oh I see. Did not think about that. I can see a scenario where you install 3.9, PATH is set, you install 3.10, the PATH update fails for some reason

[issue43631] Update to OpenSSL 1.1.1k

2021-03-30 Thread miss-islington
miss-islington added the comment: New changeset cd82d592063aa03dcc238dcc5222bd47ee0eb438 by Christian Heimes in branch '3.9': [3.9] bpo-43631: Update to OpenSSL 1.1.1k (GH-25024) (GH-25088) https://github.com/python/cpython/commit/cd82d592063aa03dcc238dcc5222bd47ee0eb438 --

[issue43631] Update to OpenSSL 1.1.1k

2021-03-30 Thread miss-islington
miss-islington added the comment: New changeset 9ac263091db4a8c7dedb577d01f544622a448744 by Christian Heimes in branch '3.8': [3.8] bpo-43631: Update to OpenSSL 1.1.1k (GH-25024) (GH-25089) https://github.com/python/cpython/commit/9ac263091db4a8c7dedb577d01f544622a448744 --

[issue43659] AIX: test_curses crashes buildbot

2021-03-30 Thread Michael Felt
Michael Felt added the comment: ./python -m test -vuall -i test_output_string -i test_insert_delete test_curses 2>test.err 1>test.out returns four failures: see attached '-i test_output_string' stops the crash -- Added file: https://bugs.python.org/file49918/test.out

  1   2   >