[issue41152] IDLE: revise setting of iomenu.encoding and .errors

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

[issue41152] IDLE: revise setting of iomenu.encoding and .errors

2020-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: The PR is for 1. The *nix code is a bit clearer without the Windows code in the middle. Is there a good reason why when encoding is 'utf-8', errors should be 'surrogateescape' on Windows and 'strict' elsewhere? Surrogateesc

[issue41152] IDLE: revise setting of iomenu.encoding and .errors

2020-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: The main use for the iomenu settings is for the socket-transport file classes, in run.py. The default encoding='utf-8' and errors='strict' are not used but are overriden with the iomenu values, or for stderr, 'backslashreplace

[issue41152] IDLE: revise setting of iomenu.encoding and .errors

2020-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I got the 'within iomenu' part a bit wrong. To open a file to edit, iomenu.IOBinging('IO').open tells filelist to use IO.loadfile. This reads bytes 'so that we can handle end-of-line convention ourselves'. (I suspect that t

[issue41152] IDLE: revise setting of iomenu.encoding and .errors

2020-06-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 2515a28230b1a011205f30263da6b01c6bd167a3 by Serhiy Storchaka in branch 'master': bpo-41152: IDLE: always use UTF-8 for standard IO streams (GH-21214) https://github.com/python/cpython/commit/2515a28230b1a011205f30263da6b0

[issue41152] IDLE: make sys.stdxxx.encoding always be utf-8

2020-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you for this and the next patch. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: IDLE: revise setting of iomenu.encoding and .errors -> IDLE: make sys.stdxxx.encoding always be utf-8 versions:

[issue41158] IDLE: rewrite the code for handling file encoding

2020-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is there any reason the patch would not work with 3.9/3.8? -- ___ Python tracker <https://bugs.python.org/issue41158> ___ ___

[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2020-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: _maybe_compile currently compiles the possibly complete statement up to 3 times -- with C-coded compile. Without doing any timing tests, I wondered if 3 times is really necessary. Nick suggested that using the tokenize module to determine the number of

[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2020-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I reread Nick's comment "the C level loop simply blocks on stdin, waiting until the parser spits out a complete AST." I interpret that now as meaning that the REPL compiles user code only once per statement, which IDLE and code.Interac

[issue41184] Reconciling IDLE's Comment Out Region / Uncomment Region with PEP 8 guidelines for commenting

2020-07-01 Thread Terry J. Reedy

[issue21333] Document recommended exception for objects that shouldn't be pickled

2020-07-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.7 docs are no longer revised -- nosy: +terry.reedy resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue26205] Inconsistency concerning nested scopes

2020-07-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: At any one time, the language and interpreter sees the local scopes of enclosing functions as collectively 'nonlocal' for the purpose of accessing and rebinding. If there are bindings of a name 'x' in multiple enclosing local scopes, th

[issue26205] Inconsistency concerning nested scopes

2020-07-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Vedran: "How is that different from saying that "At any one time, the language and interpreter sees all the scopes as one scope for the purpose of accessing and rebinding."?" For access, one may bypass the default staged access by s

[issue26205] Better specify number of nested scopes

2020-07-05 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: Inconsistency concerning nested scopes -> Better specify number of nested scopes ___ Python tracker <https://bugs.python.org/issu

[issue28681] Clarify multiple function names in the tutorial

2020-07-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Vedran, thank you for the interesting cultural and linguistic perspective. In Spanish, "Como te llamas?" (familiar) "Como se llama?" (formal) literally translate as "What do you call yourself?" (want me to call you?). (I bel

[issue26205] Better specify number of nested scopes

2020-07-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I wait for backports to be merged before closing. Someone has to approve them or manually merge them before that happens, so leaving issues open until all merges are done prevents totally forgetting about them. For doc issues, the patch, if not drastically

[issue27154] Regression in file.writelines behavior

2020-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Removing 'b' and 'u', writelines([s]) and write(s) both now read as s. -- nosy: +terry.reedy resolution: -> out of date stage: -> resolved status: open -> closed ___ Python trac

[issue26212] Python with ncurses6.0 will not load _curses module on Solaris 10

2020-07-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue34154] Tkinter __init__ documentations sometimes missing valid keyword values

2020-07-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 -Python 2.7, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue34

[issue34908] netrc parsing is overly strict

2020-07-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 -Python 2.7, Python 3.7 ___ Python tracker <https://bugs.python.org/issue34908> ___ ___ Python-bugs-list m

[issue22433] Argparse considers unknown optional arguments with spaces as a known positional argument

2020-07-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 -Python 2.7 ___ Python tracker <https://bugs.python.org/issue22433> ___ ___ Python-bugs-list mailin

[issue13554] Tkinter doesn't use higher resolution app icon

2020-07-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue39189] Use io.DEFAULT_BUFFER_SIZE for filecmp BUFSIZE variable

2020-07-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue39

[issue27578] inspect.findsource raises exception with empty __init__.py

2020-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that getsource raising is a bug. I would more at the behavior and doc for getlines before I decided about that. -- nosy: +terry.reedy versions: -Python 2.7, Python 3.5, Python 3.6, Python 3.9 ___ Python

[issue24670] os.chdir breaks result of os.path.abspath(__file__) and os.path.realpath(__file__)

2020-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I interpret Serhiy's comment as 'not a bug'. In any case, the linked issue changed __file__ to an absolute path, and 2.7 is frozen. -- nosy: +terry.reedy resolution: -> not a bug stage: -> resolved s

[issue11105] Compiling evil ast crashes interpreter

2020-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: With 3.9 on Windows, using Benjamin's example, I do not get the Windows equivalent of a seg fault. However, execution stops at compile with no exception, including SystemExit. These examples amount to limited fuzz testing of compile(). I think it s

[issue23885] urllib.quote horribly mishandles unicode as second parameter

2020-07-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue20353] Hanging bug with multiprocessing + sqlite3 + tkinter (OS X 10.9 only)

2020-07-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2020-07-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10, Python 3.9 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker <https://bugs.python.org/issue17

[issue34689] Lib/sysconfig.py expands non-variables

2020-07-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +berker.peksag, serhiy.storchaka versions: +Python 3.10 -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue34

[issue34938] Fix mimetype.init() to account for from import

2020-07-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 -Python 2.7, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue34

[issue28681] Clarify multiple function names in the tutorial

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

[issue26205] Better specify number of nested scopes

2020-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since you ask, here is a extended summary of namespaces. There is one built-in namespace. There is one global namespace for each module, which is also the local namespace for top level code in that module. There is one local namespace for each class and

[issue26205] Better specify number of nested scopes

2020-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Besides the sentence now revised, the initial post referenced confusion with 'middle scope' in "If a name is declared global, then all references and assignments go directly to the middle scope containing the module's global names.

[issue17238] IDLE: Add import statement completion

2020-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: +1 for import completion. Above, I misspelled 'rlcompleter' as 'rlcomplete'. When I just tried to import it as part of responding to #41230, the wrong name did not work. I wish I could have stopped with 'import rl'. To

[issue37765] IDLE: Include longer keywords in __main__ autocomplete list

2020-07-07 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: IDLE: Include 'long' keywords in __main__ autocomplete list -> IDLE: Include longer keywords in __main__ autocomplete list ___ Python tracker <https://bugs.pytho

[issue37765] IDLE: Include 'long' keywords in __main__ autocomplete list

2020-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Cheryl said "This looks good" on the PR." while noting that True should not be added as After trying out REPL completions in macOS Terminal, I *really* want to be able to type 'im' and have 'import' appear. (When there

[issue41230] IDLE intellisense

2020-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE already has autocomplete of names, attributes, and string paths. This is documented in the Completion subsection of the Editing and Navigation section of the doc, easily accessible on the Help menu. Please read the doc before suggesting enhancements

[issue27609] IDLE completions: format, factor, and fix

2020-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: fetch_completions code could stand some refactoring. The test should be split at least between attrs and files. -- ___ Python tracker <https://bugs.python.org/issue27

[issue27609] IDLE completions: format, factor, and fix

2020-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Normally, tab completion works for attributes (after '.' and a possible prefix) and files (after os.sep and a possible prefix). Unique matches to prefixes are immediately selected, as for undotted module names. After changing the completion wai

[issue37765] IDLE: Include keywords in module-level autocomplete list

2020-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tal, I suggested the compromise because of your original objection. Since you think half is worse than all, I will revert the change. It did get me to do a needed rewrite of the Completions section of the IDLE doc. -- title: IDLE: Include longer

[issue37765] IDLE: Include keywords in module-level autocomplete list

2020-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset bce2eb4646021910aa4074d86f44a09b32d0b2b2 by Terry Jan Reedy in branch 'master': bpo-37765: Add keywords to IDLE tab completions (GH-15138) https://github.com/python/cpython/commit/bce2eb4646021910aa4074d86f44a0

[issue27609] IDLE completions: format, factor, and fix

2020-07-09 Thread Terry J. Reedy
Change by Terry J. Reedy : -- Removed message: https://bugs.python.org/msg373259 ___ Python tracker <https://bugs.python.org/issue27609> ___ ___ Python-bug

[issue37765] IDLE: Include keywords in module-level autocomplete list

2020-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: PR 15138 always adds keywords to the big list for the current module. They are also normally present in the small list, when it only excludes '_' names. But if the module being edited contains '__all__', the small list, which is the

[issue27609] IDLE completions: format, factor, and fix

2020-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: The removed post duplicates the content of #37766. Another bug is reported and will be fixed there. -- ___ Python tracker <https://bugs.python.org/issue27

[issue37766] IDLE autocomplete: revise fetch_completions, add htest

2020-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: The attached tem4.py validates a refactoring of the mode ATTRS, what '' computation of bigl. The removal of dict 'namespace' invalidates if "__all__" in bigl: smalll = sorted(eval(&

[issue41212] Emoji Unicode failing in standard release of Python 3.8.3 / tkinter 8.6.8

2020-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Python internally uses an encoding system that represents all unicode chars efficiently, including O(1) indexing. It is not utf-8, which does not do O(1) indexing. There is already an issue about upgrading (separately) the Python Windows and macOS

[issue41228] Fix the typo in the description of calendar.monthcalendar(year, month)

2020-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 344dce312a0cf86d5a5772d54843cc179acaf6e3 by Nima Dini in branch 'master': bpo-41228: Fix /a/are/ in monthcalendar() descripton (GH-21372) https://github.com/python/cpython/commit/344dce312a0cf86d5a5772d54843cc179acaf6e3 -

[issue41229] Asynchronous generator memory leak

2020-07-10 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue41229> ___ ___ Python-bugs-list mailin

[issue41231] Type annotations lost when using wraps by default

2020-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Only 3.8+ for bug fixes. -- nosy: +terry.reedy versions: -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue41

[issue41229] Asynchronous generator memory leak

2020-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Only 3.8+ for bug fixes. -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue41229> ___ ___ Python-bug

[issue41232] Python `functools.wraps` doesn't deal with defaults correctly

2020-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is this actually a bugfix? -- nosy: +terry.reedy versions: +Python 3.10 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue41

[issue41233] Missing links to errnos on Built-in Exceptions page

2020-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Only 3.8+ for bug fixes. -- nosy: +terry.reedy versions: -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue41

[issue41234] Remove symbol.sym_name

2020-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified that import symbol works in 3.9 and raises in 3.10. So yes, doc and its reference should have gone too. Good catch. -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue41

[issue41236] "about" button in MacOS caused an error

2020-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Messages like this are an occasional nuisance when shutting down a tkinter app started in a terminal/console window. I have gone to a lot of effort to suppress than in IDLE GUI tests so that other developers do not suffer the noise or puzzlement of

[issue41228] Fix the typo in the description of calendar.monthcalendar(year, month)

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

[issue41236] "about" button in MacOS caused an error

2020-07-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: You're right. "python3.9 -m tkinter" runs the tkinter widget demo. And python >= About python brings up 'about tkinter' window. I just deleted 3.7 so I cannot easily test. 3.8 works also. -- __

[issue41278] Wrong Completion on Editing Mode of IDLE

2020-07-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Windows, with 3.8.4rc1 and 3.8 repository, ^space brings up proper list. Give more details. -- ___ Python tracker <https://bugs.python.org/issue41

[issue41266] IDLE call hints and completions confused by ints and floats

2020-07-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Neither '1 .bit_length()' (space required) nor '1.3.hex()', both legal syntax, get either proper completions or call hints. Neither does the erroneous syntax '1.bit_length'. This suggests that the backwards parsing from th

[issue41233] Missing links to errnos on Built-in Exceptions page

2020-07-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Near the bottom of the opening page: https://devguide.python.org/#status-of-python-branches The meaning of 'status' is explained elsewhere. -- ___ Python tracker <https://bugs.python.o

[issue41276] Min / Max returns different values depending on parameter order

2020-07-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Calvin, min and max are builtin functions and part of 'Interpreter Core'. Confusing IDLE with Python is common for beginners who use IDLE. Do you think I could reduce the confusion by somehow changing the message printed at the top of She

[issue41278] Wrong Completion on Editing Mode of IDLE

2020-07-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: We cannot do anything with this report unless you give exact keystroke-by-keystroke details and we are able to reproduce the issue. Also, what OS? If *nix, which? How did you start IDLE? Unless you start IDLE with -n or explicitly import idlelib, it

[issue40734] /usr/bin surprisingly in sys.path under IDLE

2020-07-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Lib/idlelib contains a startup file 'idle.py' (and 'idle.bat' and 'idle.pyw' on Windows). IDLE, and I, have no control over the installation of IDLE, including the addition of system-specific auxiliary startup files and entries

[issue41278] IDLE: Clarify some completion details in doc

2020-07-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Although a few keystrokes are omitted, I reproduced the examples and can explain the results by elaborating on my claims above. 0. Python starts execution in module '__main__', which initially contains only double underscore names (now 7). 1. I

[issue41158] IDLE: rewrite the code for handling file encoding

2020-07-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: #41300 reports that the new iomenu line 291 enc, _ = tokenize.detect_encoding(io.BytesIO(encoded).readline) fails without 'import io' added. I should have tested more thoroughly. I will fix and add t

[issue41300] IDLE: add missing import io in iomenu.py

2020-07-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Your suggestion is correct. A side issue is that the line numbers in the traceback are correct but the quoted text lines from iomenu (and only iomenu) are wrong, being from the line previous. I will have to investigate this discrepancy. After the patch

[issue41300] IDLE: add missing import io in iomenu.py

2020-07-16 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +20647 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/21512 ___ Python tracker <https://bugs.python.org/issu

[issue41300] IDLE: add missing import io in iomenu.py

2020-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Łukasz, please pull this simple fix to a 3.9.0b4 and 3.8.4 regression into 3.8.5. It disabled saving files with non-ascii chars. -- keywords: +3.8regression -patch nosy: +lukasz.langa priority: normal -> release blocker stage: patch review ->

[issue41300] IDLE: add missing import io in iomenu.py

2020-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 38d3864efe914fda64553e2ec75c9ec15574483f by Terry Jan Reedy in branch 'master': bpo-41300: IDLE - save files with non-ascii chars (GH-21512) https://github.com/python/cpython/commit/38d3864efe914fda64553e2ec75c9e

[issue41300] IDLE: add missing import io in iomenu.py

2020-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset ffeb9202540c07d384f82ff3ab86c37c1433283a by Miss Islington (bot) in branch '3.8': [3.8] bpo-41300: IDLE - save files with non-ascii chars (GH-21512) https://github.com/python/cpython/commit/ffeb9202540c07d384f82ff3ab86c3

[issue41300] IDLE: add missing import io in iomenu.py

2020-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Łukasz, Please cherry-pick the 3.8 backport, ffeb920, as it has a 3.8-specific fixup to idlelib/NEWS.txt. I verified the bug and fix on Windows. I am leaving this open to add automated tests. -- keywords: -patch stage: patch review -> test nee

[issue41300] IDLE: add missing import io in iomenu.py

2020-07-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Problem also reported on #41319 -- ___ Python tracker <https://bugs.python.org/issue41300> ___ ___ Python-bugs-list mailin

[issue41300] IDLE: add missing import io in iomenu.py

2020-07-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: #41319 should be closed as a duplicate, but site will not currently allow me to do so. -- ___ Python tracker <https://bugs.python.org/issue41

[issue41319] IDLE 3.8 can not save and run this file

2020-07-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> IDLE: add missing import io in iomenu.py ___ Python tracker <https://bugs.python

[issue41319] IDLE 3.8 can not save and run this file

2020-07-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Already fixed. I have asked the fix go in 3.8.5 on Monday. -- ___ Python tracker <https://bugs.python.org/issue41319> ___ ___

[issue41319] IDLE 3.8 can not save and run this file

2020-07-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: 宋嘉腾 put 'import io' at the top of idlelib/iomenu.py -- ___ Python tracker <https://bugs.python.org/issue41319> ___ ___

[issue41329] IDLE not saving .py files

2020-07-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Add 'import io' to the top of /Lib/idlelib/iomenu.py. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> IDLE: add missing import io in iomenu.py ___

[issue41329] IDLE not saving .py files

2020-07-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: In calling this a duplicate, and suggesting the fix above, I am assuming that a) you are using the new 3.8.4 and b) you have a non-ascii character in the .py file or files you tested. Since several years ago, the is the only case of save failing that I

[issue41271] Add support for io_uring to cpython

2020-07-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think that the answer is maybe, eventually, and if so, an ioring module that any event framework can use and a separate asyncio module for its use with asyncio. I say maybe because the lwn article suggests that additions and revisions might continue for

[issue41282] Deprecate and remove distutils

2020-07-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.9 ___ Python tracker <https://bugs.python.org/issue41282> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41314] PEP 563 and annotations __future__ mandatory version

2020-07-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: The PEP was accepted apparently by Guido sometime after the second posting 21-Nov-2017. Guido added the annotations entry to __future__ on 1/26/2018 with the 'mandatory' version changed to 4.0, which means 'some indefinite undecided futu

[issue41315] Add mathematical functions as wrappers to decimal.Decimal methods

2020-07-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Jean, I sympathize a bit with your wish, but decimal was designed for business, not science. Sqrt, exp, and 3 versions of log are the only math methods, and they happen to be the ones with some use in business calculations and statistics. Extended math

[issue41322] unittest: deprecate test methods returning non-None values

2020-07-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: The current behavior is not a bug as it follows documented behavior. In the absence of any use for returning values from test functions, I agree that we should do the simple thing and raise ValueError (I checked and did not find anything like a

[issue41272] New clause in FOR and WHILE instead of ELSE

2020-07-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think this should be closed as 'rejected'. 1. I am strongly opposed to giving keywords strongly context-dependent alternate meanings. I also don't think that the proposal could be parsed. Currently, 'if' introduces a new, i

[issue41349] idle not going full screen when I rotate screen 90° on mac

2020-07-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Windows, right clicking on the desktop produces a context menu with Display Settings. The dialog has an Orientation pulldown menu with the 4 choices. Without actually rotating my screen, I clicked Portrait and managed to start IDLE and click the full

[issue41351] IDLE does not close the brackets and does not insert the closing quotes

2020-07-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please don't state opinions as facts. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Idle: Auto insertion of the closing parens, brackets, and braces versions: -Python 3.5, Python 3.6, Pytho

[issue18875] Idle: Auto insertion of the closing parens, brackets, and braces

2020-07-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I found this in Notepad++ under Settings -> Preferences -> Auto-completion -> Auto-insert with separate checkboxes for (, {, [, ', ", html/xml tags, and up to 3 custom pairs. Way too elaborate for IDLE. The only question to me is wheth

[issue41300] IDLE: add missing import io in iomenu.py

2020-07-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: The fix is in both 3.8.5 and 3.9.0b5, both released today. "print('eyes ∢∢ snake 🐍')", for instance, in the editor, can be saved and run. (Note that astral chars like the snake disrupt editing a bit, but once there, can be saved and

[issue41300] IDLE: add missing import io in iomenu.py

2020-07-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: -lukasz.langa ___ Python tracker <https://bugs.python.org/issue41300> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41349] idle not going full screen when I rotate screen 90° on mac

2020-07-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I meant to run 'import tkinter; tkinter.Tk()' directly in python, without IDLE involved, in your portrait window. Do that by running terminal in the portrait window. Then try to maximize. Yes we need more volunteers, but #38946 is an issue bet

[issue41373] IDLE: edit/save files created by Windows Explorer

2020-07-22 Thread Terry J. Reedy
New submission from Terry J. Reedy : #41300 fixed one bug in the patch for #41158. A user reported another on on idle-dev list. Create a file in Windows Explorer. Leave as .txt or rename to .py. Right click and Edit with IDLE 3.8 (.4/.5 or 3.9.0b4 or 5). Edit works, Save (or Run) does

[issue4630] IDLE: add cursor noblink option

2020-07-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 592527f3ee59616eca2bd1da771f7c14cee808d5 by Zackery Spytz in branch 'master': bpo-4630: Fix errors in Lib/idlelib/NEWS.txt (GH-21594) https://github.com/python/cpython/commit/592527f3ee59616eca2bd1da771f7c

[issue41300] IDLE: add missing import io in iomenu.py

2020-07-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: #41373 is about another issue with the new iomenu code. I will close this and add tests there. -- resolution: -> fixed stage: test needed -> resolved status: open -> closed versions: +Python 3.5 -Python 3.10, Python 3.8, P

[issue4630] IDLE: add cursor noblink option

2020-07-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +20738 pull_request: https://github.com/python/cpython/pull/21599 ___ Python tracker <https://bugs.python.org/issue4

[issue41373] IDLE: edit/save files created by Windows Explorer

2020-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: So loading an externally created blank file (on any system) results in None. File=>New must set eol_convention, I presume to the same default. Before I got the traceback, I though it might be an issue with the Windows utf-8 BOM being added. 3.9.0rc1

[issue4630] IDLE: add cursor noblink option

2020-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 29df301a9236cbae06762d9569e56197d3f5e6ee by Terry Jan Reedy in branch '3.8': [3.8] bpo-4630: Fix errors in Lib/idlelib/NEWS.txt (GH-21594) https://github.com/python/cpython/commit/29df301a9236cbae06762d9569e561

[issue4630] IDLE: add cursor noblink option

2020-07-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.o

[issue41373] IDLE: edit/save files created by Windows Explorer

2020-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Raymond, I tested patch today and expect to apply it (without unittests yet) tomorrow, so will be in 3.9.0rc1 abd 3.8.6. In the meanwhile, either create new files within IDLE (File=>NEW) or add "isinstance(self.eol_convention, str) and " after

[issue41388] IDLE fails to detect corresponding opening parenthesis

2020-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: (While I wrote the following, Lewis Ball posted some of the same conclusions.) 0. I verified the failure with 3.8.5 and current master. 1. I reduced the failing example to a minimum of 7 chars on 2 lines. ( else) 1a. Deleting '\n' or any lette

[issue41388] IDLE fails to detect corresponding opening parenthesis

2020-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Without rereading hyperparser and pyparse, I don't understand why a previous _synchre match prevents subsequent failures. It does suggest that when matching parentheses, a fix would be to temporarily prepend 'else\n' to the text, or other

<    34   35   36   37   38   39   40   41   42   43   >