[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2021-03-03 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker <https://bugs.python.org/issue41561> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43347] IDLE crashes in macOS Apple chip, maybe completions

2021-02-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- priority: normal -> high ___ Python tracker <https://bugs.python.org/issue43347> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue43347] IDLE crashes in macOS Apple chip, maybe completions

2021-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Completions are in a Listbox. listboxes are used for completions, stackviewer, and a few places in the settings dialog, in particular the keys list. And maybe the drop down list for themes and keysets. The latter two are the only one normally gray. Try

[issue31030] sys.executable can be not normalized

2021-02-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue was opened with 2 related facts of 2017: a) sys.executable is not normalized b) as a result, two tests failed Serhiy then said "I don't know what is wrong: the value of sys.executable or the test." If it was the tests, they seem to have

[issue43325] Documentation should warn that 'is' is not a safe comparison operator for most values.

2021-02-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 ___ Python tracker <https://bugs.python.org/issue43325> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43324] asyncio: add socket getfqdn and gethostbyaddr functions

2021-02-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +asvetlov, yselivanov title: asyncio -> asyncio: add socket getfqdn and gethostbyaddr functions ___ Python tracker <https://bugs.python.org/issu

[issue43323] UnicodeEncodeError: surrogates not allowed when parsing invalid charset

2021-02-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue43323> ___ ___ Python-bugs-list mailin

[issue43323] UnicodeEncodeError: surrogates not allowed when parsing invalid charset

2021-02-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue43323> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue43307] Sync site.py and sysconfig.py with PyPy

2021-02-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: You marked 3.7 here, which only gets security patches, but submitted a PR for master, which is appropriate for enhancements. ('backport' here on the tracker means apply to older version after patching master.) -- nosy: +terry.reedy type

[issue43306] Error in multiprocessing.Pool's initializer doesn't stop execution

2021-02-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Can you add a minimal example with the ignore behavior? -- assignee: docs@python -> nosy: +davin, pitrou, terry.reedy ___ Python tracker <https://bugs.python.org/issu

[issue43300] "bisect" module should support reverse-sorted sequences

2021-02-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think that we should just document the use of the new key parameter (and otherwise do nothing). -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue43

[issue43289] step bug in turtle's for loop

2021-02-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yehuda, one can also ask questions like this on python-list. In the future, when responding by email, please delete the message being responded to, so it does not get repeated when posted to the web page. -- nosy: +terry.reedy resolution

[issue43281] Walrus comprehension rebind checking behavior

2021-02-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +gvanrossum ___ Python tracker <https://bugs.python.org/issue43281> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43273] Mock `_mock_wraps` is undocumented and inconsistently named

2021-02-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Private attributes are not documented because they are private and subject to change. Their use is at one's own risk. I don't know mock well enough to understand 'inconsistent' or comment on the change proposal. -- nosy: +terry.reedy

[issue41841] idlelib/NEWS.txt for 3.10.0 and backports

2021-02-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 653e17b2cb35e6cd48e2bdca0c1b27b38bed7170 by Terry Jan Reedy in branch '3.8': [3.8] bpo-41841: prepare for 3.8.9 (GH-24635) https://github.com/python/cpython/commit/653e17b2cb35e6cd48e2bdca0c1b27b38bed7170

[issue41841] idlelib/NEWS.txt for 3.10.0 and backports

2021-02-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset d81a20454eae1868059e45d54e0270e3b4d2e409 by Terry Jan Reedy in branch '3.9': [3.9] bpo-41841: revise header (GH-24634) https://github.com/python/cpython/commit/d81a20454eae1868059e45d54e0270e3b4d2e409

[issue41841] idlelib/NEWS.txt for 3.10.0 and backports

2021-02-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset b9fe16a02717e89a2141311de1e36161af4de9a9 by Terry Jan Reedy in branch 'master': bpo-41841: Revise header (GH-24633) https://github.com/python/cpython/commit/b9fe16a02717e89a2141311de1e36161af4de9a9

[issue41841] idlelib/NEWS.txt for 3.10.0 and backports

2021-02-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Everything before x.y.0 is in one section. Multiple sections thereafter are a nuisance. Idea: Put everything thereafter in one also. So file is set once header revised after 3.x.0 is released. Thought of 'x.y.z: date' separator, with one line above

[issue41841] idlelib/NEWS.txt for 3.10.0 and backports

2021-02-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +23419 pull_request: https://github.com/python/cpython/pull/24635 ___ Python tracker <https://bugs.python.org/issue41

[issue41841] idlelib/NEWS.txt for 3.10.0 and backports

2021-02-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +23418 pull_request: https://github.com/python/cpython/pull/24634 ___ Python tracker <https://bugs.python.org/issue41

[issue41841] idlelib/NEWS.txt for 3.10.0 and backports

2021-02-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +23417 pull_request: https://github.com/python/cpython/pull/24633 ___ Python tracker <https://bugs.python.org/issue41

[issue43283] IDLE: Explain print slowness and speedup method

2021-02-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43283] IDLE: Explain print slowness and speedup method

2021-02-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset bdf0fece5bbc2fc9fffbf0f314c7022e24e747df by Miss Islington (bot) in branch '3.8': bpo-43283: Add IDLE doc paragraph about print speed (GH-24615) (GH-24632) https://github.com/python/cpython/commit/bdf0fece5bbc2fc9fffbf0f314c7022e24e747df

[issue43209] system cannot find the file specified in subprocess.py

2021-02-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Steve, should this be closed as 'not a bug'? -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue43

[issue43283] IDLE: Explain print slowness and speedup method

2021-02-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 2827e8a177c2a6584fada594bca6829c53a2872f by Terry Jan Reedy in branch 'master': bpo-43283: Add IDLE doc paragraph about print speed (GH-24615) https://github.com/python/cpython/commit/2827e8a177c2a6584fada594bca6829c53a2872f

[issue43042] Augment tutorial sentence.

2021-02-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: -patch resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43301] Update form create for android

2021-02-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Candra: This is neither a help forum nor a free programming service. It is a workspace for improving the CPython distribution of Python. CPython does not run on Android. Anything to do with Android is off-topic here. Please do not reopen this again

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2021-02-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: >From the merge: +++ b/Doc/library/unittest.rst @@ -330,7 +330,9 @@ Test modules and packages can customize test loading and discovery by through the `load_tests protocol`_. .. versionchanged:: 3.4 - Test discovery supports :term:`namespace packa

[issue43283] IDLE: Explain print slowness and speedup method

2021-02-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +23396 pull_request: https://github.com/python/cpython/pull/24615 ___ Python tracker <https://bugs.python.org/issue43

[issue43283] IDLE: Explain print slowness and speedup method

2021-02-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 4cf7bb8e22bf37e6d65bf4cb5618d09c4a8ad612 by Terry Jan Reedy in branch 'master': bpo-43283: Rearrange some IDLE doc paragraphs. (GH-24604) https://github.com/python/cpython/commit/4cf7bb8e22bf37e6d65bf4cb5618d09c4a8ad612

[issue43283] IDLE: Explain print slowness and speedup method

2021-02-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +23382 pull_request: https://github.com/python/cpython/pull/24604 ___ Python tracker <https://bugs.python.org/issue43

[issue43283] IDLE: Explain print slowness and speedup method

2021-02-20 Thread Terry J. Reedy
New submission from Terry J. Reedy : https://stackoverflow.com/questions/66286367/why-is-my-function-faster-than-pythons-print-function-in-idle had some tests of printing speed that showed that print in IDLE can be much slower than in REPL. I did further tests that showed than combining

[issue43283] IDLE: Explain print slowness and speedup method

2021-02-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: docs@python components: Documentation, IDLE nosy: docs@python, terry.reedy priority: normal severity: normal stage: patch review status: open title: IDLE: Explain print slowness and speedup method type: enhancement versions: Python 3.10, Python

[issue27646] doc: yield from expression can be any iterable

2021-02-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.or

[issue27646] doc: yield from expression can be any iterable

2021-02-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 2f9ef514fb24b6a95bd3272885f197752810c107 by Terry Jan Reedy in branch 'master': bpo-27646: Say that 'yield from' expression can be any iterable (GH-24595) https://github.com/python/cpython/commit/2f9ef514fb24b6a95bd3272885f197752810c107

[issue41859] IDLE: ValueError; Completions not working right on macOS

2021-02-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: This seemingly random error involved completions and there is already an issue about them not working right on macOS. It was also opened by Raymond as a result of another 'random' error in an all day session. -- components: +macOS nosy: +ned.deily

[issue27646] doc: yield from expression can be any iterable

2021-02-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +23373 pull_request: https://github.com/python/cpython/pull/24595 ___ Python tracker <https://bugs.python.org/issue27

[issue43202] Cleanup codeop._maybe_compile

2021-02-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Second patch: "Add comment, end others with period, remove unused variables, initialize others only when needed, and add explicit return." -- resolution: -> fixed stage: patch review -> resolved status

[issue43042] Augment tutorial sentence.

2021-02-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset b30fcba3a8abaabd1087f2392ae8aec4c1b1f210 by Terry Jan Reedy in branch 'master': bpo-43042: Augment tutorial sentence (GH-24514) https://github.com/python/cpython/commit/b30fcba3a8abaabd1087f2392ae8aec4c1b1f210

[issue34013] Inconsistent SyntaxError for print

2021-02-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'Consistency' is in the eye of the beholder in that it is relative to some ideal. 'Inconsistent' has too much baggage as bad'. I would prefer to call the current rule 'restricted' or 'limited' and judge any expansion on its own merits. The arguments

[issue43240] IDLE Classic Unix keyboard shortcuts broken

2021-02-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE just tells tcl/tk via tkinter what function to call when particular UI events happen. Recognizing UI events is handled between the OS window manager and tcl/tk. So I am sure this is not an IDLE issue. For another application to affect the Linux-tcl

[issue43236] Windows IDLE taskbar icon jump list fails to open recent files

2021-02-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Eryk, thank you for the research. Our macOS installer already adds an 'idlex.y' executable. Ned, do you have any comments, pro or con, about doing so. (I worry a bit about reinforcing the beginner delusion that IDLE is Python or that IDLE executes

[issue43236] Windows IDLE taskbar icon jump list fails to open recent files

2021-02-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I will just note that the IDLE File menu has a Recent Files list, which is the same thing. (Notepad++ does also, in addition to a working icon jump list.) -- ___ Python tracker <https://bugs.python.

[issue43236] Windows IDLE taskbar icon jump list fails to open recent files

2021-02-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is a Windows installer code issue rather than an IDLE code issue. On Win10, I do not see jump lists for IDLE icons but do for several others. Perhaps the installer was changed to disable the non-functional lists. I will let the installer people

[issue43202] Cleanup codeop._maybe_compile

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset b676f5f809007533db3e3fdd01243959dd233d57 by Terry Jan Reedy in branch 'master': bpo-43202: More codeop._maybe_compile clean-ups (GH-24512) https://github.com/python/cpython/commit/b676f5f809007533db3e3fdd01243959dd233d57

[issue43142] Do not add duplicate FDs to list in duplicate_for_child()

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I can't (lacking multiprocessing knowledge), but someone else might. PS: when replying via email, please delete post you are responding to. When added to the web page, the copy is redundant noise. -- ___ Python

[issue43205] Python Turtle Colour

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Python consistently uses American (USA) vocabulary and spellings for its English. Anyone over, say, 14, should learn them to the extent used in Python. Kids under 10 are different. Issue 24990 was rejected because it proposed to hardcode translation

[issue43200] link to copy module in shutil document, not to shutil.copy

2021-02-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: docs@python -> terry.reedy resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 3.9 ___ Python tracker <https://bugs.python

[issue43200] link to copy module in shutil document, not to shutil.copy

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 242f6c9ffe3dd8f613942d5364b816cc89c384be by Miss Islington (bot) in branch '3.9': bpo-43200: Fix link to shutil.copy() in the shutil doc (GH-24505) https://github.com/python/cpython/commit/242f6c9ffe3dd8f613942d5364b816cc89c384be

[issue43185] AssertRaises() causes core dump in handling recursion

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: #43186, #43187 also have recursive code that fails in 3.9 and recovers in 3.10. Am closing them in favor of this. Also suspect #43188, #43189, #43190 are duplicates. Yang, recheck after Mark does the backport here

[issue43190] < test.support > check_free_after_iterating( ) causes core dump in handling iteration.

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I suspect this is another duplicate of #43185 -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue43

[issue43188] multiple operations of dict causes core dump of Python interpreter.

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Like the code in #43185, #43186, #43187, this works better in 3.10.0a5, so I suspect it is another duplicate. -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue43

[issue43200] link to copy module in shutil document, not to shutil.copy

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 762fe7deed34a1d5294bf82071d318c8427b4893 by Zackery Spytz in branch 'master': bpo-43200: Fix link to shutil.copy() in the shutil doc (GH-24505) https://github.com/python/cpython/commit/762fe7deed34a1d5294bf82071d318c8427b4893 -- nosy

[issue43186] Recursive call causes core dump in assertRaises

2021-02-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- superseder: Recursive call causes core dump in assertRaises -> AssertRaises() causes core dump in handling recursion ___ Python tracker <https://bugs.python.org/issu

[issue43186] Recursive call causes core dump in assertRaises

2021-02-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Recursive call causes core dump in assertRaises ___ Python tracker <https://bugs.python

[issue43185] AssertRaises() causes core dump in handling recursion

2021-02-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- Removed message: https://bugs.python.org/msg386896 ___ Python tracker <https://bugs.python.org/issue43185> ___ ___ Python-bug

[issue43185] AssertRaises() causes core dump in handling recursion

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: #43185 has other recursive code that has a 'fatal Python error' in 3.9 and recovers in 3.10. Am closing it in favor of this. -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue43

[issue43182] TURTLE: Default values for basic Turtle commands

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Enhancements only go in future versions. -- nosy: +terry.reedy versions: -Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue43

[issue43177] How to use `long double` as a PyObject?

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: You immediate questions are answered. Adding 128 bit floats to Python itself need a discussion on python-ideas and very likely a PEP. Maybe a decade? -- nosy: +terry.reedy resolution: -> postponed stage: -> resolved status: open -&g

[issue43154] code.InteractiveConsole can crash if sys.excepthook is broken

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: unraiseable hook is not needed. The REPL does: >>> sys.excepthook = lambda: None >>> 1/0 Error in sys.excepthook: TypeError: () takes 0 positional arguments but 3 were given Original exception was: Traceback (most recent call last):

[issue43146] 3.10a5 regression: AttributeError: 'NoneType' object has no attribute '__suppress_context__' in traceback.py

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: It seems to me that print_exception(None), etc, *should* raise something. Printing "NoneType: None\n" makes no sense to me since NoneType is not an exception. In 3.9, it raised TypeError for # of arguments. I do note t

[issue26389] Expand traceback module API to accept just an exception as an argument

2021-02-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 -Python 3.9 ___ Python tracker <https://bugs.python.org/issue26389> ___ ___ Python-bugs-list mailin

[issue43145] Leak of locks from multiprocessing.Process

2021-02-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +davin, pitrou ___ Python tracker <https://bugs.python.org/issue43145> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43144] test_unicodedata: test_normalization uses network but doesn't depend on network resource

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: After a week without response, I consider making a PR open to anyone. Whoever should add "Original patch by ..." in the message part. The patch is obvious enough that I would be willing to merge if no one else. -- keywords: +easy nosy: +t

[issue43141] `asdict` fails with frozen dataclass keys, using raw dict form

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: On freshly compiled master on Win10, the example code gives "TypeError: unhashable type: 'dict'". -- nosy: +terry.reedy title: `asdict` fails with frozen dataclass keys; tries to use raw dict form as key -> `asdict` fails with frozen d

[issue43142] Do not add duplicate FDs to list in duplicate_for_child()

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.7 and before only get security fixes. -- nosy: +davin, pitrou, terry.reedy versions: -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue43

[issue43140] built-in open() doesn't use locale.getpreferredencoding() as the default encoding

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Eryk, are you suggesting that this should be closed as 'Not a bug'? -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue43

[issue43139] test_ttk test_compound and test_tk test_type fails with Tk 8.6.11.1

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: When system? It appears to be some *nix. Is this a buildbot? Whose tcl/tk? Distributed with system or locally compiled? -- nosy: +serhiy.storchaka, terry.reedy ___ Python tracker <https://bugs.python.

[issue43139] test_ttk test_compound and test_tk test_type fails with Tk 8.6.11.1

2021-02-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Tkinter ___ Python tracker <https://bugs.python.org/issue43139> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43042] Augment tutorial sentence.

2021-02-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +23300 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24514 ___ Python tracker <https://bugs.python.org/issu

[issue43042] Augment tutorial sentence.

2021-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://docs.python.org/3/tutorial/controlflow.html#defining-functions I decided to augment the sentence as suggested by Jesse, and see what any reviewers think. -- assignee: docs@python -> terry.reedy nosy: -rhettinger title: Delete or me

[issue43202] Cleanup codeop._maybe_compile

2021-02-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +23298 pull_request: https://github.com/python/cpython/pull/24512 ___ Python tracker <https://bugs.python.org/issue43

[issue43202] Cleanup codeop._maybe_compile

2021-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 2068b261e95e9fe9c4041f0102c9e931692dd5aa by Terry Jan Reedy in branch 'master': bpo-43202: Immediately return code object in codeop._maybe_compile (GH-24508) https://github.com/python/cpython/commit/2068b261e95e9fe9c4041f0102c9e931692dd5aa

[issue43202] Cleanup codeop._maybe_compile

2021-02-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +23296 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24508 ___ Python tracker <https://bugs.python.org/issu

[issue43202] Cleanup codeop._maybe_compile

2021-02-11 Thread Terry J. Reedy
New submission from Terry J. Reedy : Following-up on discussion in #43163 and PR-24483, this issue is limited to changes that are expected to not affect the return value. Therefore, do not backport unless and until needed as part of a bugfix. First is moving the code return to immediately

[issue43163] codeop prematurely raises on 2nd line when closer is needed

2021-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue is for 3.10 only since the never-closed message was only added for 3.10.0a5 and not backported. Pablo, Is there any sane possibility that the compiler could, at least sometimes, raise an IncompleteSyntax subclass of SyntaxError when code

[issue43001] python3.9.1 test_embed test_tabnanny failed

2021-02-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: A 300 KB file of unknown type that has to be downloaded and opened with an unknown program is pretty useless. Please state system/OS, exact Python release, command run, and copy-paste the errors here on the web page. I do not see test_embed

[issue38946] IDLE on macOS 10.15 Catalina does not open double-clicked files if app already launched

2021-02-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, the program title depends on what 'app' you start. I presume that this is normal for Mac. -- ___ Python tracker <https://bugs.python.org/issue38

[issue43156] Python windows installer has a confusing name - add setup to its name

2021-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with the idea and Matthew's version. This continuing problem is worth doing experiments. I marked this as 'enhancement' and 3.10 only because this might break code that hardcodes the complete name. This might also, unfortunately, be a reason

[issue43156] Python windows installer has a confusing name - add setup to its name

2021-02-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Installation, Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware stage: -> needs patch versions: +Python 3.10 ___ Python tracker <https://bugs.python.org/issu

[issue43163] codeop prematurely raises on 2nd line when closer is needed

2021-02-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: codeop prematurely raises SyntaxError when closer is needed -> codeop prematurely raises on 2nd line when closer is needed ___ Python tracker <https://bugs.python.org/issu

[issue43163] codeop prematurely raises SyntaxError when closer is needed

2021-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: test.test_codeop's test_incomplete is incomplete in that it tests several missing-closer single lines, like the above and "[x for x in (", all of which pass, but no corresponding multiple line snippets, like the above. The only multiple lin

[issue43163] codeop prematurely raises SyntaxError when closer is needed

2021-02-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: codeop prematurely raises SyntaxError when ']' is needed -> codeop prematurely raises SyntaxError when closer is needed ___ Python tracker <https://bugs.python.org/issu

[issue43163] codeop prematurely raises SyntaxError when ']' is needed

2021-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE is a Python program that wraps the Python interpreter. Before blaming IDLE for how code is executed, one should first execute the same code directly in Python. The example above shows that one should also try code.interact, especially

[issue43111] webbrowser.py triggers unwanted XQuartz startup

2021-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: webbrowser is 'generous' at to what browsers it will open, some of which are not what hardly anyone would want. So I would call this an 'enhancement' (really 'disenchantment', like all removals;-) unless there were a technical reason other than those given

[issue37824] IDLE: Handle Shell input SyntaxWarning & DeprecationWarning

2021-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: #43151 asked about 'is ' syntax warnings in REPL. Discussion noted that IDLE Shell does note print it for "x is 'a'" (known here) and that for "if x is 'a': print('executed')" there is a syntax error and no execution. The conve

[issue43151] SyntaxWarning for 'is '

2021-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified that there are two discrepancies in IDLE versus the standard REPL on Windows with 3.10.0a5. The latter first (which does not converted warnings to errors). Python 3.10.0a4+ (heads/master:0332e569c1, Feb 1 2021, 09:19:58) [MSC v.1900 64 bit

[issue16781] execfile/exec execution in other than global scope uses locals(), leading to undefined behavior

2021-02-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 863eb7170b3017399fb2b786a1e3feb6457e54c2 by Miss Islington (bot) in branch '3.9': bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446) https://github.com/python/cpython/commit/863eb7170b3017399fb2b786a1e3feb6457e54c2

[issue16781] execfile/exec execution in other than global scope uses locals(), leading to undefined behavior

2021-02-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: PR is based on 'Note:...' directly above. I am still thinking about a patch for the namespace paragraph. -- nosy: -miss-islington stage: patch review -> needs patch ___ Python tracker <https://bugs.pyth

[issue16781] execfile/exec execution in other than global scope uses locals(), leading to undefined behavior

2021-02-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 0ec57e25c918b859b9f8d464e34e0ac859c2f8b3 by Terry Jan Reedy in branch 'master': bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446) https://github.com/python/cpython/commit/0ec57e25c918b859b9f8d464e34e0ac859c2f8b3

[issue16781] execfile/exec execution in other than global scope uses locals(), leading to undefined behavior

2021-02-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +23263 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24469 ___ Python tracker <https://bugs.python.org/issu

[issue43071] IDLE: Windows 7 - Trackpad two-finger vertical scrolling is not recognized

2021-02-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue appears to be quite different from #34047. The latter partly involved two then recent tcl/tk versions known to still be buggy on Mac. It then determined to be directly a matter of how IDLE was interpreting the delta attribute of tk mousewheel

[issue43127] Unable to install Python 3.9.1 - Windows 10

2021-02-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Installation, Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker <https://bugs.python.org/issue43

[issue43111] webbrowser.py triggers unwanted XQuartz startup

2021-02-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.7 is a few years old and only gets security fixes. Can you either test on current releases or whether code is still same? -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue43

[issue43071] IDLE: Windows 7 - Trackpad two-finger vertical scrolling is not recognized

2021-02-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Python has nothing to do with interpreting finger movements. -- resolution: -> third party stage: -> resolved status: open -> closed versions: -Python 3.7 ___ Python tracker <https://bugs.python.or

[issue43135] Can't input Japanese on idle (MacOS).

2021-02-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: The change in 3.10 is installing tk 8.6.11 instead of 8.6.8. This would have been or would be backported if and only if Ned and Ronald think it both possible and wise. As with most tkinter issues, this affects IDLE but is not an IDLE issue

[issue43008] IDLE ignores sys.excepthook in normal, subprocess mode

2021-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE also caches shell input. Off topic here, I sent Andre an email about how FT could access it. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43042] Delete or merge redundant tutorial sentence.

2021-02-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ramond, any opinion on this? We could just close this, but I consider either alternative enough of an improvement to write a PR and merge it. -- nosy: +rhettinger ___ Python tracker <https://bugs.python.

[issue38078] IDLE: Don't run internal code in user namespace.

2021-02-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Zachery, thank you for the PR to test. It turns out that the proposed change is more dangerous the the possible error it prevent. I could have easily missed the problem (not setting __file__, see PR). Before considering this again, I need to list ways

[issue38307] Add .end_lineno attribute to pyclbr _Objects

2021-02-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 000cde59847beaf5fa7b73633e1f3c898fe5bf90 by Aviral Srivastava in branch 'master': bpo-38307: Add end_lineno attribute to pyclbr Objects (GH-24348) https://github.com/python/cpython/commit/000cde59847beaf5fa7b73633e1f3c898fe5bf90

<    6   7   8   9   10   11   12   13   14   15   >