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
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
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
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
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
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:
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>
___
___
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
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
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
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
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
Change by Terry J. Reedy :
--
title: Inconsistency concerning nested scopes -> Better specify number of
nested scopes
___
Python tracker
<https://bugs.python.org/issu
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
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
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
Change by Terry J. Reedy :
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
Change by Terry J. Reedy :
--
versions: +Python 3.10 -Python 2.7
___
Python tracker
<https://bugs.python.org/issue22433>
___
___
Python-bugs-list mailin
Change by Terry J. Reedy :
--
resolution: -> third party
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
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
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
Change by Terry J. Reedy :
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Terry J. Reedy :
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
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
Change by Terry J. Reedy :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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.
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
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
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
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
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
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
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
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
Change by Terry J. Reedy :
--
Removed message: https://bugs.python.org/msg373259
___
Python tracker
<https://bugs.python.org/issue27609>
___
___
Python-bug
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
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
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(&
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
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
-
Change by Terry J. Reedy :
--
versions: -Python 3.6, Python 3.7
___
Python tracker
<https://bugs.python.org/issue41229>
___
___
Python-bugs-list mailin
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
Terry J. Reedy added the comment:
Only 3.8+ for bug fixes.
--
nosy: +terry.reedy
___
Python tracker
<https://bugs.python.org/issue41229>
___
___
Python-bug
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
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
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
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
Change by Terry J. Reedy :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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.
--
__
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
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
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
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
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
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
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
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
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
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
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 ->
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
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
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
Terry J. Reedy added the comment:
Problem also reported on #41319
--
___
Python tracker
<https://bugs.python.org/issue41300>
___
___
Python-bugs-list mailin
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
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
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>
___
___
Terry J. Reedy added the comment:
宋嘉腾 put 'import io' at the top of idlelib/iomenu.py
--
___
Python tracker
<https://bugs.python.org/issue41319>
___
___
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
___
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
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
Change by Terry J. Reedy :
--
versions: -Python 3.9
___
Python tracker
<https://bugs.python.org/issue41282>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
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
Change by Terry J. Reedy :
--
nosy: -lukasz.langa
___
Python tracker
<https://bugs.python.org/issue41300>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
Change by Terry J. Reedy :
--
pull_requests: +20738
pull_request: https://github.com/python/cpython/pull/21599
___
Python tracker
<https://bugs.python.org/issue4
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
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
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
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
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
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
3801 - 3900 of 13135 matches
Mail list logo