[issue43664] Long computations in pdb.run() lead to segfault

2021-04-05 Thread Xinmeng Xia
Xinmeng Xia added the comment: pdb.run() seems crashing different positions of Python (Python/ast_opt.c:488 for pdb.run, Python/ast_opt.c:494 for compile()). But the commit 364d0d20f924071b749e5a889eca22628f4892a3, PR 23744, bpo-42609 for compile() also fix this bug in pdb.run(). Should we c

[issue43599] Setting long domain of locale.dgettext() crashes Python interpreter

2021-04-05 Thread Christian Heimes
Christian Heimes added the comment: The crash occurs inside glibc's dgettext() implementation. Its man page does not list any limitation for domain or msgid length. This looks like a bug in glibc. #0 0x77c57a8f in __dcigettext () from /lib64/libc.so.6 #1 0x0058a235 in _loca

[issue43739] Fixing the example code in Doc/extending/extending.rst to declare and initialize the pmodule variable to be of the right type.

2021-04-05 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 2.0 -> 3.0 pull_requests: +23946 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25207 ___ Python tracker _

[issue43739] Fixing the example code in Doc/extending/extending.rst to declare and initialize the pmodule variable to be of the right type.

2021-04-05 Thread Shreyan Avigyan
New submission from Shreyan Avigyan : In the example code of the Extending Python with C/C++ documentation the pmodule variable (that stores the return value of PyImport_ImportModule) was never declared. The PR(s) attached to this issue fixes it by declaring and initializing the pmodule varia

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-04-05 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.6, Python 3.7 ___ Python tracker

[issue43599] Setting long domain of locale.dgettext() crashes Python interpreter

2021-04-05 Thread Xinmeng Xia
Xinmeng Xia added the comment: Attached testing results of gdb and valgrind. (No error is reported for locale.dgettext('abs'*10,'')) $gdb ./python (gdb) run >>> locale.dgettext('abs'*1000,'') Program received signal SIGSEGV, Segmentation fault. __dcigettext ( domainname=domainname@e

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-04-05 Thread miss-islington
miss-islington added the comment: New changeset b132be8b43afa739b7eda271b82711d64a83da4f by Miss Islington (bot) in branch '3.8': bpo-43176: Fix processing of empty dataclasses (GH-24484) https://github.com/python/cpython/commit/b132be8b43afa739b7eda271b82711d64a83da4f -- _

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-04-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +23945 pull_request: https://github.com/python/cpython/pull/25206 ___ Python tracker ___ __

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-04-05 Thread miss-islington
Change by miss-islington : -- keywords: +patch pull_requests: +23944 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25205 ___ Python tracker ___ _

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-04-05 Thread miss-islington
miss-islington added the comment: New changeset 376ffc6ac491da74920aed1b8e35bc371cb766ac by Iurii Kemaev in branch 'master': bpo-43176: Fix processing of empty dataclasses (GH-24484) https://github.com/python/cpython/commit/376ffc6ac491da74920aed1b8e35bc371cb766ac -- nosy: +miss-isl

[issue43728] Change the exception message raised when _curses is not found.

2021-04-05 Thread Eric V. Smith
Eric V. Smith added the comment: @shreyanavigyan: Thank you for your efforts to improve Python! -- resolution: -> wont fix ___ Python tracker ___

[issue43728] Change the exception message raised when _curses is not found.

2021-04-05 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue43728] Change the exception message raised when _curses is not found.

2021-04-05 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Yeah...I agree. Therefore this issue is resolved and I will close this issue now. Thanks everyone for the advice. With Regards -- ___ Python tracker _

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

2021-04-05 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23943 pull_request: https://github.com/python/cpython/pull/25204 ___ Python tracker ___ _

[issue27815] Make SSL suppress_ragged_eofs default more secure

2021-04-05 Thread Joshua Bronson
Change by Joshua Bronson : -- nosy: +jab ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue43689] difflib: mention other "problematic" characters in documentation

2021-04-05 Thread Tim Peters
Tim Peters added the comment: Terry, your suggested replacement statement looks like an improvement to me. Perhaps the longer explanation could be placed in a footnote. Note that I'm old ;-) I grew up on plain old ASCII, decades & decades ago, and tabs are in fact the only "characters" I've

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

2021-04-05 Thread Inada Naoki
Inada Naoki added the comment: New changeset 4663e5f39e9f872dcd69545f293e832d5855d084 by Inada Naoki in branch 'master': bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25190) https://github.com/python/cpython/commit/4663e5f39e9f872dcd69545f293e832d5855d084 -- ___

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

2021-04-05 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue43689] difflib: mention other "problematic" characters in documentation

2021-04-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have an alternate replacement: "These lines can be confusing if the sequences contain tab characters or other characters that result in the indicator symbols in these lines being mislocated." Or leave the current sentence as is. Explanation with the deta

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

2021-04-05 Thread Inada Naoki
Inada Naoki added the comment: New changeset fb78692f2ad5ee4747f13a73943fbf134b637669 by Inada Naoki in branch 'master': bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25189) https://github.com/python/cpython/commit/fb78692f2ad5ee4747f13a73943fbf134b637669 -- ___

[issue23470] OpenBSD buildbot uses wrong stdlib

2021-04-05 Thread Ned Deily
Change by Ned Deily : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue42128] Structural Pattern Matching (PEP 634)

2021-04-05 Thread Brandt Bucher
Brandt Bucher added the comment: New changeset f84d5a113680c5a6aaaf9130aed7a34d611748ff by Brandt Bucher in branch 'master': bpo-42128: __match_args__ can't be a list anymore (GH-25203) https://github.com/python/cpython/commit/f84d5a113680c5a6aaaf9130aed7a34d611748ff -- ___

[issue41486] Add _BlocksOutputBuffer for bz2/lzma/zlib module

2021-04-05 Thread Ma Lin
Ma Lin added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

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

2021-04-05 Thread Inada Naoki
Inada Naoki added the comment: New changeset 3d4af4a876e679431c6a3751667ded63cc6f66c1 by Inada Naoki in branch 'master': bpo-43651: Fix EncodingWarning in sysconfig (GH-25192) https://github.com/python/cpython/commit/3d4af4a876e679431c6a3751667ded63cc6f66c1 -- _

[issue42128] Structural Pattern Matching (PEP 634)

2021-04-05 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +23942 pull_request: https://github.com/python/cpython/pull/25203 ___ Python tracker ___ ___

[issue43728] Change the exception message raised when _curses is not found.

2021-04-05 Thread Eric V. Smith
Eric V. Smith added the comment: I agree with Ned. This is why I'm not sure it’s worth changing the message: googling gives good information, and the exact thing to do in order resolve this (if it’s even possible) is dependent on a number of factors that the code raising the exception can’t k

[issue43738] Clarify public name of curses.window

2021-04-05 Thread Ryan McCampbell
New submission from Ryan McCampbell : Until 3.8 the curses window class was not directly available in code, but now it is available as `_curses.window`. This is not explicitly stated in the documentation (although it is consistent with how the method signatures are written). It is useful to h

[issue43737] Documentation of modulo operator should document behaviour clearly when second operator is negative

2021-04-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: > the result is different from other languages which is why it can be > surprising. Maybe the other languages should be documenting their surprising result, which fails to preserve the identity? > Do we - add a warning to the [tutorial] page, or should we

[issue43737] Documentation of modulo operator should document behaviour clearly when second operator is negative

2021-04-05 Thread Anthony Flury
New submission from Anthony Flury : The behavior of a%b when a is positive and b is negative can be suprising. I understand that the behavior is so that the identity a = (a//b)*b + a%b can be preserved regardless of the signs of a or b. but the result is different from other languages whi

[issue43684] Add combined opcodes

2021-04-05 Thread Guido van Rossum
Guido van Rossum added the comment: So dynamically, I see about 0.5% of all opcodes are ADD_INT, so higher than statically (which was 0.1%) but still small enough that I'm abandoning work on ADD_INT. I've got a branch where I'm adding POP_JUMP_IF_NONE and POP_JUMP_IF_NOT_NONE (which capture

[issue43736] asyncio create_task() odd behavior

2021-04-05 Thread Zachary Ware
Zachary Ware added the comment: You missed something :) By immediately awaiting the result of `create_task`, you're synchronizing thing. It's the same as just rearranging the lines of the first example to: t0 = create_task(task("T0", 10)) print("starting tasks ...") await t0 t1 = create_tas

[issue23470] OpenBSD buildbot uses wrong stdlib

2021-04-05 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Is the OpenBSD buildbot still active? If no, this issue can be closed. (I can't find the OpenBSD buildbot on https://buildbot.python.org/all/#/) -- nosy: +erlendaasland ___ Python tracker

[issue43736] asyncio create_task() odd behavior

2021-04-05 Thread Yanghao Hua
New submission from Yanghao Hua : This code runs perfectly fine with expected behavior: two tasks created, executed in an interleaved manner: from time import time from asyncio import run, create_task, sleep async def task(name, n): for i in range(n): print(f"task-{name}: ", i, t

[issue20503] super behaviour and abstract base classes (either implementation or documentation/error message is wrong)

2021-04-05 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36470] dataclasses.replace raises an exception if InitVar with default argument is not provided.

2021-04-05 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for the fix! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue20503] super behaviour and abstract base classes (either implementation or documentation/error message is wrong)

2021-04-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 028d5286d4255195ba6715e1aeb4bffed6b0279e by Miss Islington (bot) in branch '3.9': bpo-20503: Show how isinstance() works with ABC registered classes. (GH-25175) (GH-25202) https://github.com/python/cpython/commit/028d5286d4255195ba6715e1aeb4

[issue36470] dataclasses.replace raises an exception if InitVar with default argument is not provided.

2021-04-05 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 013c30e5fcee449cee63354d34585d6111782c82 by Miss Islington (bot) in branch '3.9': bpo-36470: Allow dataclasses.replace() to handle InitVars with default values (GH-20867) (GH-25200) https://github.com/python/cpython/commit/013c30e5fcee449cee6335

[issue36470] dataclasses.replace raises an exception if InitVar with default argument is not provided.

2021-04-05 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset bdee2a389e4b10e1c0ab65bbd4fd03defe7b2837 by Miss Islington (bot) in branch '3.8': bpo-36470: Allow dataclasses.replace() to handle InitVars with default values (GH-20867) (GH-25201) https://github.com/python/cpython/commit/bdee2a389e4b10e1c0ab65

[issue43728] Change the exception message raised when _curses is not found.

2021-04-05 Thread Ned Deily
Ned Deily added the comment: "Install a supported _curses library" That's not correct advice. _curses is the name of the support module written in C in the Python Standard Library. If it is not available to import in an installation, it's most likely because the build of the module failed be

[issue20503] super behaviour and abstract base classes (either implementation or documentation/error message is wrong)

2021-04-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 7bc25ec7276db2a81e7823671a74eeb8aa6b4542 by Raymond Hettinger in branch 'master': bpo-20503: Show how isinstance() works with ABC registered classes. (GH-25175) https://github.com/python/cpython/commit/7bc25ec7276db2a81e7823671a74eeb8aa6b4542

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-04-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue20503] super behaviour and abstract base classes (either implementation or documentation/error message is wrong)

2021-04-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +23941 pull_request: https://github.com/python/cpython/pull/25202 ___ Python tracker _

[issue36470] dataclasses.replace raises an exception if InitVar with default argument is not provided.

2021-04-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +23940 pull_request: https://github.com/python/cpython/pull/25201 ___ Python tracker ___ __

[issue36470] dataclasses.replace raises an exception if InitVar with default argument is not provided.

2021-04-05 Thread miss-islington
miss-islington added the comment: New changeset 75220674c07abfc90c2cd7862d04cfa2e2354450 by Zackery Spytz in branch 'master': bpo-36470: Allow dataclasses.replace() to handle InitVars with default values (GH-20867) https://github.com/python/cpython/commit/75220674c07abfc90c2cd7862d04cfa2e235

[issue36470] dataclasses.replace raises an exception if InitVar with default argument is not provided.

2021-04-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +23939 pull_request: https://github.com/python/cpython/pull/25200 ___ Python tracker ___ __

[issue41837] Upgrade installers to OpenSSL 1.1.1j

2021-04-05 Thread Ned Deily
Ned Deily added the comment: Now updated to OpenSSL 1.1.1k in Issue43631 -- priority: deferred blocker -> resolution: -> out of date stage: patch review -> resolved status: open -> closed superseder: -> Update to OpenSSL 1.1.1k ___ Python tracker

[issue43087] ctypes documentation error

2021-04-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 14829b09eb652f457cf837836909169746a810f0 by Zackery Spytz in branch 'master': bpo-43087: Fix error in ctypes "Incomplete Types" doc (GH-24404) https://github.com/python/cpython/commit/14829b09eb652f457cf837836909169746a810f0 -- nosy: +

[issue43087] ctypes documentation error

2021-04-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +23938 pull_request: https://github.com/python/cpython/pull/25199 ___ Python tracker ___ __

[issue43087] ctypes documentation error

2021-04-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +23937 pull_request: https://github.com/python/cpython/pull/25198 ___ Python tracker _

[issue41974] Remove complex.__float__, complex.__floordiv__, etc

2021-04-05 Thread Bartosz
Bartosz added the comment: Done so: https://github.com/python/cpython/pull/25197 Signed the CLA thing too, it seems it'll take a while to update tho. -- ___ Python tracker __

[issue43728] Change the exception message raised when _curses is not found.

2021-04-05 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Is this issue ready for a PR? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-04-05 Thread Guido van Rossum
Guido van Rossum added the comment: To me it looks simpler though. The locals and cells are already stored in a single array, f_localsplus (which also contains the evaluation stack). There are various complications in ceval.c to translate cell indexes to indexes in this array (ein particular

[issue41974] Remove complex.__float__, complex.__floordiv__, etc

2021-04-05 Thread Bartosz
Change by Bartosz : -- pull_requests: +23936 pull_request: https://github.com/python/cpython/pull/25197 ___ Python tracker ___ ___ P

[issue17305] IDNA2008 encoding is missing

2021-04-05 Thread Christian Heimes
Christian Heimes added the comment: The issue has been waiting for contributions for 8 years now. So far nobody has shown an interested to address the problem and contribute an IDNA 2008 codec to Python's standard library. -- ___ Python tracker <

[issue43728] Change the exception message raised when _curses is not found.

2021-04-05 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- title: Change the exception type and message raised when _curses is not found. -> Change the exception message raised when _curses is not found. ___ Python tracker

[issue38794] Setup: support linking openssl statically

2021-04-05 Thread Lukas Vacek
Lukas Vacek added the comment: Thanks for the explanation of the secret workings behind the scenes. What a productive and polite response. -- ___ Python tracker ___ _

[issue43728] Change the exception type and message raised when _curses is not found.

2021-04-05 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Is this confirmed? If yes then I'll open a PR on https://github.com/python/cpython -- ___ Python tracker ___ __

[issue22538] turtledemo two_canvases reversion

2021-04-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you. I had forgotten about this. It also works as advertised in the module docstring on Windows, 3.8 and 3.10. There has been no change to the code, so a patch to turtle itself must have fixed the problem. -- resolution: -> out of date stag

[issue27129] Wordcode, part 2

2021-04-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Closing as this is fixed. Feel free to reopen if there is something missing -- nosy: +pablogsal resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue43728] Change the exception type and message raised when _curses is not found.

2021-04-05 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue42135] [importlib] Deprecate find_module() & find_loader() mplementations

2021-04-05 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +23935 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25169 ___ Python tracker ___ ___

[issue43728] Change the exception type and message raised when _curses is not found.

2021-04-05 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: > "migrate to a supported platform" is almost never practical advice. If we > make any change, I'd just say it's not supported on this platform. Or maybe > "you may be running on platform that is not supported by curses". Ok...So what about a message like t

[issue43728] Change the exception type and message raised when _curses is not found.

2021-04-05 Thread Eric V. Smith
Eric V. Smith added the comment: While I wouldn't object to tweaking the message associated with the exception, I'm not sure it's necessary. Googling "curses modulenotfound" gives a number of hits that have good information about the issue. Is there really a practical problem that's being so

[issue43728] Change the exception type and message raised when _curses is not found.

2021-04-05 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: > Is installing _curses possible, on any supported platform? Or would a better > message say that curses is not supported on this platform? No _curses can't be installed on any platform. I don't know about macOS but _curses can be installed on Windows and L

[issue43728] Change the exception type and message raised when _curses is not found.

2021-04-05 Thread Eric V. Smith
Eric V. Smith added the comment: > ModuleNotFoundError: _curses library not found. Install a supported _curses > library to use the curses module. Is installing _curses possible, on any supported platform? Or would a better message say that curses is not supported on this platform?

[issue2889] curses for windows (alternative patch)

2021-04-05 Thread Jeremy Kloth
Change by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue43729] Tutorial Documentation for 3.1.1. Numbers missing "result"

2021-04-05 Thread Thomas Cavalli
Change by Thomas Cavalli : -- resolution: -> works for me stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41570] Add DearPyGui to faq/gui.rst

2021-04-05 Thread Irit Katriel
Irit Katriel added the comment: Did you have someone in mind? If you want a stranger to pick it up it might help if you explain on the issue what you are suggesting to change and why you closed the PR. -- ___ Python tracker

[issue41570] Add DearPyGui to faq/gui.rst

2021-04-05 Thread Jonathan Hoffstadt
Jonathan Hoffstadt added the comment: I hoped someone else could complete it it. Sent from my iPhone > On Apr 4, 2021, at 10:03 AM, Irit Katriel wrote: > >  > New submission from Irit Katriel : > > Jonathan, I see you closed the PR. Did you intend to close this issue as well? > > ---

[issue43084] curses.window.enclose() should return bool

2021-04-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43084] curses.window.enclose() should return bool

2021-04-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b1dc1aacf8b0f319024a1a3ce91d395956537c11 by Serhiy Storchaka in branch 'master': bpo-43084: Return bool instead of int from curses.window.enclose() (GH-24398) https://github.com/python/cpython/commit/b1dc1aacf8b0f319024a1a3ce91d395956537c11

[issue43734] PEP 597: pdb uses locale encoding for pdbrc file

2021-04-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> pdb uses the locale encoding for .pdbrc ___ Python tracker

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

2021-04-05 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23934 pull_request: https://github.com/python/cpython/pull/25192 ___ Python tracker ___ _

[issue43735] PEP 597: os.popen() and pipes uses locale encoding

2021-04-05 Thread Inada Naoki
Change by Inada Naoki : -- title: os.popen() and pipes uses locale encoding -> PEP 597: os.popen() and pipes uses locale encoding ___ Python tracker ___ __

[issue43735] os.popen() and pipes uses locale encoding

2021-04-05 Thread Inada Naoki
New submission from Inada Naoki : os.popen() and pipes module doesn't have `encoding` parameter. They use the default (locale) encoding implicitly. As PEP 597, subprocess module won't emit EncodingWarning for PIPEs in Python 3.10. Like that, we should just add `encoding=None` parameter but do

[issue43734] PEP 597: pdb uses locale encoding for pdbrc file

2021-04-05 Thread Inada Naoki
New submission from Inada Naoki : I think we should use UTF-8 for pdbrc files because the default encoding of Python source files is UTF-8. -- components: Library (Lib) messages: 390233 nosy: methane priority: normal severity: normal status: open title: PEP 597: pdb uses locale encodin

[issue43733] PEP 597: netrc uses locale encoding.

2021-04-05 Thread Inada Naoki
New submission from Inada Naoki : https://github.com/python/cpython/blob/c8e5eb904e12010d2302364e1037c24a30f5e241/Lib/netrc.py#L29 Can we change the encoding="utf-8" and errors="replace"? IMHO, comments are source of UnicodeDecodeError. So we can open file with binary mode and skip comments w

[issue43732] PEP 597: mailcap uses locale encoding

2021-04-05 Thread Inada Naoki
New submission from Inada Naoki : mailcap.getcaps() uses locale encoding. https://github.com/python/cpython/blob/c8e5eb904e12010d2302364e1037c24a30f5e241/Lib/mailcap.py#L33 As my understanding, RFC 1524 uses only ASCII characters. Can we change the encoding to ASCII or UTF-8? -- compon

[issue22538] turtledemo two_canvases reversion

2021-04-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue43728] Change the exception type and message raised when _curses is not found.

2021-04-05 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: What about only changing the error message to make it a little bit informational? Something like :- ModuleNotFoundError: _curses library not found. Install a supported _curses library to use the curses module. -- __

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

2021-04-05 Thread Jesvi Jonathan
Jesvi Jonathan added the comment: File "c:/Users/jesvi/Documents/GitHub/Jesvi-Bot-Telegram/scripts/main.py", line 144, in thread_test p.start() File "C:\Users\jesvi\AppData\Local\Programs\Python\Python38\lib\multiprocessing\process.py", line 121, in start self._popen = self._Popen(

[issue22538] turtledemo two_canvases reversion

2021-04-05 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: FYI, the running the two_canvases example from turtledemo works fine with Python 3.10 on macOS. -- nosy: +erlendaasland ___ Python tracker _

[issue43728] Change the exception type and message raised when _curses is not found.

2021-04-05 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: The curses module is not supported on all platforms is very clear. But beginners may seem to think that their python was not installed properly and then they would go around looking for answer. To make it clear I was thinking of how about changing just the

[issue43729] Tutorial Documentation for 3.1.1. Numbers missing "result"

2021-04-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ezio.melotti, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue43731] PEP 597: logging.basicConfig() uses locale encoding.

2021-04-05 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue43729] Tutorial Documentation for 3.1.1. Numbers missing "result"

2021-04-05 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch nosy: +erlendaasland nosy_count: 2.0 -> 3.0 pull_requests: +23933 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25191 ___ Python tracker

[issue43728] Change the exception type and message raised when _curses is not found.

2021-04-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: ModuleNotFoundError is the correct exception. Its purpose is to be raised for missed modules. I do not know about macOS, but the curses module is not supported on Windows, so it is expected to get ModuleNotFoundError. Some distributions can provide some s

[issue43730] Tutorial Documentation for 4.7.3.2. Positional-Only Parameters, no "/" question?

2021-04-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue43730] Tutorial Documentation for 4.7.3.2. Positional-Only Parameters, no "/" question?

2021-04-05 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Quoting https://docs.python.org/3.10/tutorial/controlflow.html#positional-only-parameters: "Positional-only parameters are placed before a / (forward-slash). The / is used to logically separate the positional-only parameters from the rest of the para