[issue38316] docs: Code object's "co_stacksize" field is described with mistake

2019-10-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.5, Python 3.6 ___ Python tracker <https://bugs.python.org/issue38316> ___ ___ Python-bugs-list mailin

[issue38324] [Windows] test_locale and test__locale failures on Windows

2019-10-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I started a report on failures on my machine a few days ago, but never finished editing. I am pasting in what I wrote so far. The same 4 tests fail today with a rebuild 12 hours ago. --- I ran the test suite on my 64-bit Win10 machine with fresh debug 32

[issue38331] Exec not recognizing global variables inside function

2019-10-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ronald is correct, and for the reason given. Python functions are lexically scoped, not dynamically scoped, and you are expecting the latter. The exec global and local namespaces are used to resolve identifier in the code you pass. Your first example

[issue38345] Add end lines to pyclbr objects

2019-10-04 Thread Terry J. Reedy
New submission from Terry J. Reedy : I am closing this for now because there is no information upon which to proceed, and because you closed your PR (without explanation). The nested dicts returned by pyclbr already constitute a tree of nesting relationships between the functions and

[issue38349] Email example using imaginary library installation error.

2019-10-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: The rest of the overly long title was "The install shows that it only supports python 2.x but is listed under python 3.6+ docs." The lines in question are from the 2nd to last example. # An imaginary module that would make this work and be sa

[issue38433] 2.7.17rc1 tcl/tk version regression on Windows

2019-10-10 Thread Terry J. Reedy
New submission from Terry J. Reedy : In my current 2.7.16+ Windows 10-64 repository build, and on at least one 8.1-64 buildbot, the tcl/tk version is 8.5.19 >>> tk.Tk().tk.call('info', 'patchlevel') '8.5.19' In my installed 2.7.17rc1, it is the old

[issue38439] Python needs higher resolution app/menu icons

2019-10-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think you misunderstood #32129. It was specific to macOS Aqua systems. On Windows and generally on Linux, window title bars have a little icon on the left end (at least on Windows). IDLE uses the tcl/tk GUI framework and by default, on these systems

[issue38440] Possible news issues with IDLE

2019-10-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume this is on macOS, with its finicky tk. Have you 'upgraded' to Catalina? I have not, that I know of. I will try 3.8.0rc1 on my MacBook Air tomorrow. 1. Jumps. All the way to before the beginning "Python 3.8..." splash line

[issue38451] Datetime definition does not work in function definition as list definition

2019-10-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Without more information, we cannot do anything with this. -- nosy: +terry.reedy status: open -> pending versions: -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <

[issue38492] Microsoft Store app IDLE (Python 3.8) needs msvcp140.dll

2019-10-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: terry.reedy -> components: +Installation title: Microsoft Store app IDLE (Python 3.8) has dependency on msvcp140.dll -> Microsoft Store app IDLE (Python 3.8) needs msvcp140.dll type: crash ->

[issue38533] v3.7.5 py script run ok with python.exe but not pythonw.exe (python silent console not working)

2019-10-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: For me, 'pyw -3.7 -m idlelib' in Command Prompt opens IDLE with 3.7.5. So does the equivalent run by clicking the IDLE icon: C:\Programs\Python37\pythonw.exe "C:\Programs\Python37\Lib\idlelib\idle.pyw" This report reminds me that

[issue38541] Performance degradation of attribute accesses in Python 3.7.4

2019-10-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I added a note to #28866 about this. The fix in #36922 is likely an enhancement that cannot be backported. Please retest with 3.7.5 if you can, though I have no expectation of any change. -- nosy: +serhiy.storchaka, terry.reedy

[issue38557] PyTuple_GetSlice docs minor inaccuracy

2019-10-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Verified from Python. >>> t = (1,2,3) >>> t2 = t[:] >>> id(t), id(t2) (1672756229504, 1672756229504) A partial slice cannot the original tuple, so I presume that the emphasis is about returning a (new) *tuple*, rather than some s

[issue28866] Type cache is not correctly invalidated on a class defining mro()

2019-10-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: #38541 reports a severe attribute access slowdown in 3.7.4 in some situations. (Fixed by the enhancement in #36922, which I presume cannot be backported.) -- nosy: +terry.reedy ___ Python tracker <ht

[issue38538] dictobject dictviews don't return NotImplemented for unrecognized types.

2019-10-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: -> test needed versions: -Python 3.5, Python 3.6 ___ Python tracker <https://bugs.python.org/issue38538> ___ ___ Python-

[issue38598] IDLE: Disable F5, etc, in Shell, even after saving

2019-10-26 Thread Terry J. Reedy
New submission from Terry J. Reedy : When the Shell is active, the Run menu is disabled, but its shortcuts are not. These are F5 Run Module, Shift-F5 Run ... Custom, and Alt-X Check Module. If Shell has not been saved, the shortcuts do nothing, but once Shell has been saved, they try to

[issue38598] IDLE: Disable F5, etc, in Shell and Output windows.

2019-10-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +16468 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/16939 ___ Python tracker <https://bugs.python.org/issu

[issue38598] IDLE: Disable F5, etc, in Shell and Output windows.

2019-10-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Trying to compile grep output is also bad. The ultimate fix is to subclass the specialized code editor from the general text editor, instead of vice versa as at present, but I leave that for later, and will simply check if the window about to be compiled

[issue38440] Possible new issues with IDLE

2019-10-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Given this, I reproduced the issue on Windows for both 3.7 and 3.8. The bug is trying to compile the Shell window, after it has been saved, or an Output window, with a prompt to save, for any of F5, Shift-F5, and Alt-X. There is no existing issue I know

[issue38598] IDLE: Disable F5, etc, in Shell and Output windows.

2019-10-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset e3f90b217a5152275b180b466bd503658a734462 by Terry Jan Reedy in branch 'master': bpo-38598: Do not try to compile IDLE shell or output windows (GH-16939) https://github.com/python/cpython/commit/e3f90b217a5152275b180b466bd503

[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2019-10-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +16472 pull_request: https://github.com/python/cpython/pull/16943 ___ Python tracker <https://bugs.python.org/issue34

[issue38598] IDLE: Disable F5, etc, in Shell and Output windows.

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

[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2019-10-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset e31a79a5b44357b409d71949dc5308889970f9ab by Terry Jan Reedy in branch 'master': bpo-34162: Last idlelib/NEWS.txt items for 3.8.0. (GH-16943) https://github.com/python/cpython/commit/e31a79a5b44357b409d71949dc5308

[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2019-10-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue34162> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

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

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2019-10-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +16475 stage: commit review -> patch review pull_request: https://github.com/python/cpython/pull/16947 ___ Python tracker <https://bugs.python.org/issu

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2019-10-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +16476 pull_request: https://github.com/python/cpython/pull/16948 ___ Python tracker <https://bugs.python.org/issue37

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2019-10-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +16477 pull_request: https://github.com/python/cpython/pull/16949 ___ Python tracker <https://bugs.python.org/issue37

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2019-10-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset a8fb9327fb9387b404d4b6ce55c608125f66b9ae by Terry Jan Reedy in branch 'master': bpo-37309: First idlelib/NEWS.txt for 3.9.0 (GH-16947) https://github.com/python/cpython/commit/a8fb9327fb9387b404d4b6ce55c608

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2019-10-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 6d6418a075f272aeab93c6f2ec15c10257b94e1d by Terry Jan Reedy in branch '3.8': [3.8] bpo-37309: First idlelib/NEWS.txt for 3.8.1 (GH-16947) https://github.com/python/cpython/commit/6d6418a075f272aeab93c6f2ec15c1

[issue37309] idlelib/NEWS.txt for 3.9.0 and backports

2019-10-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset baf2657eff82f5c33ae8194499d97ba963871655 by Terry Jan Reedy in branch '3.7': [3.7] bpo-37309: First idlelib/NEWS.txt for 3.7.6 (GH-) (#16949) https://github.com/python/cpython/commit/baf2657eff82f5c33ae8194499d97b

[issue35448] ConfigParser .read() - handling of nonexistent files

2019-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: FWIW, I agree with closing this. I already changed my mind from my earlier comment and decided that IDLE should maybe switch to using open and read_file in different places, for the reasons given above. It might make testing without depending on a local

[issue14196] Unhandled exceptions in pdb return value display

2019-10-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Batuhan, thanks for the nudge. For the record ... If __new__ were a normal instance method, then 'some_class.__new__()' would be a correct call, as 'some_class' would be passed to '__new__' as its first and perhaps only a

[issue38636] IDLE regression: toggle tabs and change indent width functions

2019-10-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Both the menu items and the short cuts for these two functions on the Format menu give these call errors. They are only visible if IDLE is started from a console. They work in 3.6; the regression is due to #36390. These 2 functions were moved separately

[issue38636] IDLE regression: toggle tabs and change indent width functions

2019-10-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Interesting. The result of making these changes is legal code looking like >>> if a: if b: c = 3 This has been proposed as the way Shell should work, but rejected as likely too confusing to beginners as the indented code does not look

[issue38636] IDLE regression: toggle tabs and change indent width functions

2019-10-30 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +16533 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/17008 ___ Python tracker <https://bugs.python.org/issu

[issue38636] IDLE regression: toggle tabs and change indent width functions

2019-10-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: The old, long discussion of Shell indents is #7676 and a preceding issue reference therein. My replacement is #37892. The PR patch is simple enough to apply by to existing 3.7.5 and 3.8.0 installs. -- stage: patch review -> test nee

[issue37903] IDLE Shell sidebar.

2019-11-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: As stated in my second opening sentence, this issue "implements the first phase of #37892", which gives the context and specific rationale. There are 3 separate parts to a Python Shell. 1. Code entry, indentation, display, and copying. This i

[issue37892] IDLE Shell: isolate user code input

2019-11-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: One of the related changes is to add multiple options for saving the shell history. For editing, one wants code without prompts and output either omitting or commented out. For doctests, one wants code with '>>> ' and '... '

[issue37903] IDLE Shell sidebar.

2019-11-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: My previous response was to comments up to msg355812. To answer Raymond's subsequent questions: The user will enter python code the same as before. Currently, the indents and resulting appearance of the code on Shell screen is different from (and

[issue38601] Couldn't able to install multiple python minor version in windows due to EXE script

2019-11-02 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware versions: -Python 3.5, Python 3.6 ___ Python tracker <https://bugs.python.org/issue38

[issue37903] IDLE Shell sidebar.

2019-11-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes. -- ___ Python tracker <https://bugs.python.org/issue37903> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38663] Untokenize does not round-trip ws before bs-nl

2019-11-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since these posts were more or less copied to pydev list, I am copying my response on the list here. --- > **tl;dr:** Various posts, linked below, discuss a much better replacement for > untokenize. If that were true, I would be interested.

[issue38689] IDLE crashes when KeyError is raised during calltip generation

2019-11-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since isinstance(Object.__call__, types.MethodType) is False, the 'fob' in 'inspect.signature(fob)' is Object. (See the initial get_argspec code.) Indeed, 'inspect.signature(Object)' results in the traceback followi

[issue38695] IDLE should restart instead of hanging when subprocess exits

2019-11-04 Thread Terry J. Reedy
New submission from Terry J. Reedy : This is a spinoff from #38689, about 'strange_callable(' in Shell hanging, because there is an uncaught exception is the run process. (See issue for 'strange_callable'.) Running IDLE from Windows Command Prompt, Windows eventua

[issue38689] IDLE crashes when KeyError is raised during calltip generation

2019-11-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Further experiments suggest a fix for the hang, which is not specific to this example. See new issue #38695. -- stage: -> test needed type: -> behavior versions: +Python 3.7, Python 3.9 ___ Python t

[issue38706] What should the error message in the exception raised by assertTrue and assertFalse be?

2019-11-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I pretty strongly dislike 'truthy' and 'falsey'. They look slangy and https://en.wiktionary.org/wiki/truthy gives the main meaning as (US, colloquial) Only superficially true; ... The computer language usage is credited to Javascript

[issue38440] Possible new issues with IDLE

2019-11-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Quick summary and opinions so far: * Jump to top: general IDLE bug, fixed. * Repeated quit message: never seen by me, likely IDLE bug. I need to check code where message emitted. * Arrow keys emit ? replacement char: never seen by me, likely tcl bug. IDLE

[issue43198] One operation on sets < 1/100th as efficient in 3.9 than before

2021-03-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: Operations on sets more than hundred times less efficient with python3.9 than with previous versions -> One operation on sets < 1/100th as efficient in 3.9 than before ___ Python tracker

[issue43411] wm_manage fails with ttk.Frame

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: You are confusing the widget path component, an arbitrary string of chars other than the separator '.', with the English word 'frame', which is also a tk command. In tk docs, 'a *frame*' is a widget (tk window) created with the

[issue43412] object.h -Wcast-qual warning

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Victor, the apparent 3.10 regression is from your commit. -- nosy: +terry.reedy, vstinner ___ Python tracker <https://bugs.python.org/issue43

[issue43418] FTPLib module crashes when server returns byte message instead of string

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.7 only gets security fixes. Please verify that this is an issue with 3.10, or at least 3.9, and give a reproducible test case. -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue43

[issue43418] FTPLib error when server returns byte message instead of string

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: An exception exit is not a 'crash' for this tracker. The latter is an indefinite hang or a no-exception stackoverflow or the Windows equivalent error box (or worse). The linked issue appears to show an exception exit. -- title: FTP

[issue43420] Optimize rational arithmetics

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: A possible resolution to this issue might be augmenting https://docs.python.org/3/library/fractions.html#module-fractions with a short paragraph or section on alternative implementations noting that there is a tradeoff between speed and complexity (and

[issue43422] Revert _decimal C API changes

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: skrah is still a bpo user with an CLA-signed account linked to his github account. So he can post here and, I believe, open a PR as a contributor. But if, under the current circumstances, he feels more comfortable using Antoine as a go between, then I

[issue43425] test_peg_generator.test_c_parser emits DeprecationWarning due to distutils

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Steve, PEP 632 lacks a reference to the SC acceptance thereof. Could you add one? https://mail.python.org/archives/list/python-...@python.org/thread/TXU6TVOMBLQU3SV57DMMOA5Y2E67AW7P/ And can you verify my interpretation below? The warning is correct as to

[issue43461] Tottime column for cprofile output does not add up

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: An actual example might help get an answer. -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue43

[issue43462] canvas.bbox returns None on 'hidden' items while coords doesn't

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: (You don't use coords('tunnel') above because it only reports on the 'first' tagged object.) tkinter widget methods are generally thin wrappers around tk functions that translate between python objects and tk strings. I believe t

[issue43473] Junks in difflib

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Currently return tuple (i, j, n), means that a[i:i+n] == b[j:j+n], where both matching blocks are the same length. https://docs.python.org/3/library/difflib.html#difflib.SequenceMatcher.get_matching_blocks This would not be the case if a has an ignored space

[issue43411] wm_manage fails with ttk.Frame

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: As an IDLE maintainer, I am a tkinter user also and that is my involvement in tkinter changes. One of my projects for IDLE has been to switch to ttk widgets, including ttk.Frame, wherever possible, for the reasons you gave. It is known the tkinter docs we

[issue43199] FAQ about goto lacks answer

2021-03-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch nosy: +terry.reedy nosy_count: 2.0 -> 3.0 pull_requests: +23613 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24852 ___ Python tracker <https://bugs.python.org/i

[issue18232] running a suite with no tests is not an error

2021-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: With more experience, I agree that 0/0 tests passing should not be a pass. -- ___ Python tracker <https://bugs.python.org/issue18

[issue43422] Revert _decimal C API changes

2021-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: OK. I see no structural difference between his page and yours, https://bugs.python.org/user2040. No 'Roles' field, no 'User' entry, on either page, nor on mine. So you must be an admin who sees extra info. In any case, the last part

[issue43199] FAQ about goto lacks answer

2021-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 5e29021a5eb10baa9147fd977cab82fa3f652bf0 by Terry Jan Reedy in branch 'master': bpo-43199: Briefly explain why no goto (GH-24852) https://github.com/python/cpython/commit/5e29021a5eb10baa9147fd977cab82

[issue43199] FAQ about goto lacks answer

2021-03-14 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.or

[issue43496] Save As dialog in IDLE doesn't accept keyboard shortcuts on MacOS

2021-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: The menu items and Windows shortcuts work on Windows 10. Several shortcuts and some menu items do not work on macOS. The latter is true for the undo and clipboard items at the top of the Edit menu. The shortcuts do cause 'Edit' to flash, indic

[issue43496] macOS tkinter Save As doesn't accept keyboard shortcuts

2021-03-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you, EP, for being 'someone'. I should remember that you are the one who can current do these tests. I presume the reproducible 'this' is the non-response to cmd-A, cmd-Z, and so on. So closing as 3rd party, tcl/tk, issue. I co

[issue43477] from x import * behavior inconsistent between module types.

2021-03-15 Thread Thomas J. Gallen
Thomas J. Gallen added the comment: Yes, a package. There isn't actually that much in the txz. Most of the files are ostensibly empty. As an example, let's say we have the following files: test.py test_module/__init__.py test_module/test_submodule.py test.py contains: ```pyt

[issue43477] from x import * behavior inconsistent between module types.

2021-03-15 Thread Thomas J. Gallen
Thomas J. Gallen added the comment: parent module* rather. Just saw that typo. -- ___ Python tracker <https://bugs.python.org/issue43477> ___ ___ Python-bug

[issue43477] from x import * behavior inconsistent between module types.

2021-03-16 Thread Thomas J. Gallen
Thomas J. Gallen added the comment: Given the previous example, in test.py, replace: ``` print(test_module.test_submodule) ``` ...with: ``` assert(not hasattr(test_module, "test_submodule")) ``` ...because the issue is only the bottom half of `_find_and_load_unlocked`. Specifi

[issue43531] Turtle module does not work

2021-03-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: For next time, the turtle module is not part of IDLE. -- assignee: terry.reedy -> components: +Library (Lib) -IDLE ___ Python tracker <https://bugs.python.org/issu

[issue43481] PyEval_EvalCode() namespace issue not observed in Python 2.7.

2021-03-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I cannot reproduce in Python with either 3.8 or 3.10. (Please try with latter if you can.) I thought the issue might possibly be passing two different dicts, which results in the code being executed as if in a class statement, but it is not. code

[issue43484] valid datetimes can become invalid if the timezone is changed

2021-03-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: This tracker is for patching CPython, including the docs. Questions for discussion should be posted to python-list. Perhaps such a discussion would lead to a concrete change proposal. In the meanwhile, I think that this should be closed as 'not

[issue43487] Rename __unicode__ methods to __str__ in 2to3 conversion

2021-03-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +benjamin.peterson ___ Python tracker <https://bugs.python.org/issue43487> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43490] IDLE freezes at random

2021-03-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: How are you starting IDLE? How are you using the turtle module? What does "can't get the window open" mean exactly? Does the menu item Shell => Restart Shell work? -- nosy: +terry.reedy

[issue43494] Minor changes to Objects/lnotab_notes.txt

2021-03-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 7cb033c423b65def1632d6c3c747111543b342a2 by Skip Montanaro in branch 'master': bpo-43494: Make some minor changes to lnotab notes (GH-24861) https://github.com/python/cpython/commit/7cb033c423b65def1632d6c3c747111543b342a2 -

[issue43494] Minor changes to Objects/lnotab_notes.txt

2021-03-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Skip, if you do not make a backport, you can close this. -- ___ Python tracker <https://bugs.python.org/issue43494> ___ ___

[issue43504] Site linked in docs, effbot.org, down

2021-03-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> docs@python components: +Documentation nosy: +docs@python stage: -> needs patch title: effbot.org down -> Site linked in docs, effbot.org, down versions: +Python 3.10, Python 3.8, Python 3.9 _

[issue43518] textwrap.shorten does not always respect word boundaries

2021-03-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Verified in 3.10.0a6 that change is at 3 !s. I agree that is is a bug relative to the doc. The issue is that 'world!!!' is 8 chars, and by default, wrap splits that into 'w' and 'orld!!!' and add ' w' to 'hello&

[issue43520] Make Fraction(string) handle non-ascii slashes

2021-03-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with Raymond, at least for now. I would expect the string argument to Fraction to be quoted legal Python code. Without a lot of thought and discussion leading to a change in python design with respect to unicode and operators, this limits '

[issue43526] Programmatic management of BytesWarning doesn't work for native triggers.

2021-03-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue43526> ___ ___ Python-bugs-list m

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

2021-03-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am sympathetic to the 'hiding bugs' argument in general, but what bugs would this proposal hide? What bugs does print hide by auto-converting non-strings to strings? I recently had the same thought as Raymond's: "it would be nice if

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

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

[issue43481] PyEval_EvalCode() namespace issue not observed in Python 2.7.

2021-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Foolish me. Commenting out the first exec results in the 2nd exec raising. Commenting out the 2nd exec also results in the class code raising, which is what I expected. The point of the class code is to partially explain the exception, which is not a bug

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

2021-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I read all the responses as of this timestamp. They left me more persuaded that joining objects with a string (or bytes) is explicit enough that the objects *must* be coerced to strings. A problem with coercion in "1 + '2'" is that ther

[issue40813] Line number of SyntaxError

2021-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Whatever the situation was last May, current 3.10 now results in a correct and improved traceback ending in File "F:\Python\a\tem4.py", line 2 print("hello world" ^ SyntaxError: '(' was never closed Same if \n

[issue43555] Location of SyntaxError with new parser missing (after continuation character)

2021-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Before the patch, IDLE highlighted the \n endline with a red background, which tk displays as red background from the blank space after the 4 to the right edge of the text widget, including in 3.8.8. The 3.8 result, different from REPL, is due the the

[issue10572] Move test sub-packages to Lib/test

2021-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I added idlelib.idletest in May 2013 with the concurrence of Nick Coughlin, who also suggested 'idle_test' rather than just 'test'. It currently has 72 files (66 test_xyz files for idlelib modules). Foord's opening justification

[issue43600] IDLE: fix highlight locationfor f-string field errors

2021-03-22 Thread Terry J. Reedy
New submission from Terry J. Reedy : Spinoff from #41064. In current python, the f'{*x}' traceback ends with (*x) ^ SyntaxError: f-string: can't use starred expression here. For f'{**x}', the message is "f-string: invalid syntax" and the ^ is a

[issue41064] Specialise syntax error of **dict in f-string field

2021-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Cressey noted both a compile and IDLE Shell issue. They must be handled separately by different people in separate bpo issues. The first is about the helpful versus less helpful SyntaxError messages in the following (master compiled today). >>&

[issue25130] Make tests more PyPy compatible

2021-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: With 2.7 EOL, is this still relevant? -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue25130> ___ ___

[issue20608] 'SyntaxError: invalid token' is unfriendly

2021-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Fixed elsewhere. >>> 04208 File "", line 1 04208 ^ SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers >>> 0o38 File "", line 1 0o38

[issue1634034] Show "expected" token on syntax error

2021-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think that this issue should be closed as 'out of date' as it was pretty open-ended and it is unclear what request remains. For the specific case "for a in (8,9)", the suggested "expected ':'" has been added on

[issue43481] PyEval_EvalCode() namespace issue not observed in Python 2.7.

2021-03-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Perhaps both. If you want more discussion, please post to python-list. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43564] ftp tests in test_urllib2net fail instead of skipping on unreachable network

2021-03-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +giampaolo.rodola, orsenthil ___ Python tracker <https://bugs.python.org/issue43564> ___ ___ Python-bugs-list mailin

[issue43564] ftp tests in test_urllib2net should skip on unreachable network

2021-03-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: ftp tests in test_urllib2net fail instead of skipping on unreachable network -> ftp tests in test_urllib2net should skip on unreachable network ___ Python tracker <https://bugs.python.org/issu

[issue43565] PyUnicode_KIND macro does not has specified return type

2021-03-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +benjamin.peterson, ezio.melotti, lemburg ___ Python tracker <https://bugs.python.org/issue43565> ___ ___ Python-bugs-list m

[issue43568] Drop support for Mac OS X < 10.3 module linking

2021-03-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue43568> ___ ___ Pytho

[issue43576] python3.6.4 os.environ error when write chinese to file

2021-03-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.6 only gets security patches. You or someone needs to show an unfixed bug in master. Your code runs for me on Windows, whereas you appear to be using *nix. Replacing job_name.encode() should have the same behavior. Do you see the same with job_name=&qu

[issue43585] perf_counter() returns computers uptime

2021-03-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Eryk, if I understand correctly, this should be closed as 'not a bug'. Correct? -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.o

<    16   17   18   19   20   21   22   23   24   25   >