New submission from Terry J. Reedy :
.../Doc/library/exceptions.rst, lines 99-105 has
original ``SomeException`` had we allowed it to propagate to the caller.
try:
...
except SomeException:
tb = sys.exc_info()[2]
raise
Terry J. Reedy added the comment:
I am surprised for 2 reasons. First, I have seen other improved messages in
IDLE, though maybe only for syntax errors. Second, code entered through IDLE
is executed by Python, 'same' in this respect as code entered through the REPL.
In more detail, IDLE
Change by Terry J. Reedy :
--
keywords: +patch
pull_requests: +24552
pull_request: https://github.com/python/cpython/pull/25873
___
Python tracker
<https://bugs.python.org/issue44
New submission from Terry J. Reedy :
In #44010, we are trying, as best as is possible with comprehensible REs, to
identify in which circumstances occurrences of 'match', 'case' and '_' are
keywords, and should be marked as such. I was initially unsure and even wrong
about '_'.
1. Capture
Change by Terry J. Reedy :
--
assignee: terry.reedy ->
___
Python tracker
<https://bugs.python.org/issue43710>
___
___
Python-bugs-list mailing list
Un
Change by Terry J. Reedy :
--
components: +Extension Modules, Windows -IDLE
___
Python tracker
<https://bugs.python.org/issue43710>
___
___
Python-bugs-list m
Terry J. Reedy added the comment:
This person, mohansai, seems to be misbehaving on the tracker and should be
stopped or at least educated. mohansai just reassigned a closed issue about
Windows extensions to IDLE, #43710, thus assigning it to me and wasting my
time. (I reverted
Terry J. Reedy added the comment:
I agree with getting this in soon.
A related request is to to syntax highlight field expressions in f strings. I
don't think there is an existing issue. Apparently, at least some alternatives
to IDLE do this. I am not sure I would really want it, but we
Terry J. Reedy added the comment:
My plan for the next day or two is to submit followup issue for Shell and
formally code what I wrote.
The only way to handle soft keywords correctly is with a custom re. I don't
expect them to become common. They are different from builtins because
Terry J. Reedy added the comment:
New changeset b43cc31a270d0dacbc69e35d6c6fbdb5edd7e711 by Tal Einat in branch
'master':
bpo-37903: IDLE: add shell sidebar mouse interactions (GH-25708)
https://github.com/python/cpython/commit/b43cc31a270d0dacbc69e35d6c6fbdb5edd7e711
Terry J. Reedy added the comment:
Soft keywords are a huge nuisance for syntax highlighting as they need special
case regexes and tests.
Hard keywords are matched against complete words, regardless of whether the
context is syntactically valid or not. If 'for' and 'else' were the only
Terry J. Reedy added the comment:
Guido, Integer as synonym for Integral was your idea, or at least your
endorsement prompted me to file the issue. Other core devs don't think the
change is worth the trouble; I don't much care. Speak up if you want to revive
it.
--
nosy
Terry J. Reedy added the comment:
No apology needed. I don't know what has been added to the devguide, but most
OPs never submit a PR unless they either do so or say they will when opening an
issue. In any case, a week is more than a chance
Terry J. Reedy added the comment:
There is also a 'copy only code' option. Like 'copy', these two new options
require a selection. They appear on the context menu when right-clicking
either on the sidebar or within the selection. Like the format region
commands, these new options operate
Terry J. Reedy added the comment:
Marking what expression evaluated to None would be extremely helpful. So would
marking the 0 denominator when there is more than one candidate: "e = a/b +
c/d". It should be easy to revise IDLE Shell's print_exception to tag the
span. In
Terry J. Reedy added the comment:
New changeset 606bb1c77c66eca081d03374ad4b53d9e603dd9d by Miss Islington (bot)
in branch '3.8':
bpo-43971: Add spaces around annotated arg default '=' (GH-25702)
https://github.com/python/cpython/commit/606bb1c77c66eca081d03374ad4b53d9e603dd9d
Terry J. Reedy added the comment:
New changeset e48405a9be067d50d6d0d83dc22013fc68f15657 by Miss Islington (bot)
in branch '3.9':
bpo-43971: Add spaces around annotated arg default '=' (GH-25702)
https://github.com/python/cpython/commit/e48405a9be067d50d6d0d83dc22013fc68f15657
Terry J. Reedy added the comment:
New changeset e726a902b7c73a7056b7421d801e47255873 by Mohamed Moselhy in
branch 'master':
bpo-43971: Add spaces around annotated arg default '=' (GH-25702)
https://github.com/python/cpython/commit/e726a902b7c73a7056b7421d801e47255873
Terry J. Reedy added the comment:
The error message suggests somethng else is using something in an existing 3.9
directory, and that you should close everything and reboot your machine and try
again without running anything else.
--
nosy: +terry.reedy
Change by Terry J. Reedy :
--
title: Introduce mechanism to allow Python distributors to add custom site
install schemes -> Allow Python distributors to add custom site install schemes
___
Python tracker
<https://bugs.python.org/issu
Terry J. Reedy added the comment:
>From PEP 8:
right:label: str = ''
wrong:result: int=0 # No spaces around equality sign
current doc: quantity_on_hand: int=0):
--
assignee: docs@python -> terry.reedy
nosy: +terry.reedy
versions: -Python 3.11, Pyth
Terry J. Reedy added the comment:
Merge conflict in 3.9. Skipping backports.
--
resolution: not a bug -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10 -Python 3.8
___
Python tracker
<https://bug
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:
New changeset e377ecf3b496c7719e6dffe3ebf3d0ef512cfb5b by Miss Islington (bot)
in branch '3.8':
bpo-43935: Fix typo in Turtle.back() docstring (GH-25581)
https://github.com/python/cpython/commit/e377ecf3b496c7719e6dffe3ebf3d0ef512cfb5b
New submission from Terry J. Reedy :
New changeset e08c67372d62236409da296353827985a3202e8a by JT in branch 'master':
bpo-43928: Fix 'succesfully' typo in document (GH-25569)
https://github.com/python/cpython/commit/e08c67372d62236409da296353827985a3202e8a
--
nosy: +terry.reedy
Terry J. Reedy added the comment:
Unless you find documentation that says otherwise, this an enhancement proposal
for 3.11.
If no core developer (other than me) jumps on this, you might use git blame to
fine out who committed code in the area you proposed changing.
--
nosy
Terry J. Reedy added the comment:
Specific examples of current messages and proposed improvements would help
focus discussion.
If you are willing to only handle code lines up to 256 chars, only 2 bytes
should be needed. (0,0) or (255,255) could mean 'somewhere beyond the 256th
char
Change by Terry J. Reedy :
--
title: sysconfig’s osx_framework_user puts headers in different locations from
distutils -> sysconfig's osx_framework_user puts headers in different locations
from distutils
versions: -Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python
Change by Terry J. Reedy :
--
nosy: +davin, pitrou
___
Python tracker
<https://bugs.python.org/issue43944>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Terry J. Reedy :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Terry J. Reedy :
--
pull_requests: -24314
___
Python tracker
<https://bugs.python.org/issue43534>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Terry J. Reedy :
--
pull_requests: -24313
___
Python tracker
<https://bugs.python.org/issue43534>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
New changeset 0048c60f01deec4435748e851f9ec21b504d2d2f by Tarjei Bærland in
branch 'master':
bpo-43935: Fix typo in Turtle.back() docstring (GH-25581)
https://github.com/python/cpython/commit/0048c60f01deec4435748e851f9ec21b504d2d2f
--
nosy
Terry J. Reedy added the comment:
I was just about to try adding that exact cleanup close after finishing reading
emails ;-). Sorry I didn't think of it last night. Glad it worked. The
alternative would have been to skip the test case
Terry J. Reedy added the comment:
test_squeezer.ExpandingButtonTest accounts for most of the leak.
python -m test -R3:3 -v -ugui -m *zer.Expand* test_idle
test_idle leaked [576, 576, 576] references, sum=1728
test_idle leaked [282, 282, 282] memory blocks, sum=846
All 6 methods failed. I
Terry J. Reedy added the comment:
New changeset a62e424de0c394cda178a8d934d06f0559b5e28d by Terry Jan Reedy in
branch 'master':
bpo-43981: Fix error in idle-test leak test (GH-25739)
https://github.com/python/cpython/commit/a62e424de0c394cda178a8d934d06f0559b5e28d
Change by Terry J. Reedy :
--
keywords: +patch
pull_requests: +24430
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25739
___
Python tracker
<https://bugs.python.org/issu
Terry J. Reedy added the comment:
The only recently added tests are the 11 in test_sidebar.ShellSidebarTest.
Leak testing just these with
python -m test -R3:3 -ugui -m *Sidebar* test_idle
does not fail. Leak test all of test_idle with
>python -m test -R3:3 -v -ugui test_idle
ends af
Terry J. Reedy added the comment:
New changeset 8ec2f0dc0cd096b7a851b1a41e458daa23bf1ffc by Terry Jan Reedy in
branch 'master':
bpo-37892: Use space indents in IDLE Shell (GH-25678)
https://github.com/python/cpython/commit/8ec2f0dc0cd096b7a851b1a41e458daa23bf1ffc
Change by Terry J. Reedy :
--
versions: +Python 3.11 -Python 3.10, Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.org/issue41608>
___
___
Pytho
Terry J. Reedy added the comment:
Tests are needed. See review.
Thinking about tests makes me realize that we need to extract an EditorText
class that has the methods that only apply to the text component of
EditorWindow. That is most of them. This would make testing easier because
Terry J. Reedy added the comment:
New changeset 15d386185659683fc044ccaa300aa8cd7d49cc1a by Tal Einat in branch
'master':
bpo-37903: IDLE: Shell sidebar with prompts (GH-22682)
https://github.com/python/cpython/commit/15d386185659683fc044ccaa300aa8cd7d49cc1a
Terry J. Reedy added the comment:
I had a similar reaction, "weird", when I tried the isolated prompt a year or
whatever ago. I don't remember if I also changed the indent for that. But
when testing this patch, with space indents, a longer time, most of the weird
feeling dissip
Change by Terry J. Reedy :
--
versions: -Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.org/issue37903>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
The base issue #37892 is about moving the IDLE Shell prompt away from the first
line of user code input, so that code starts at the margin where continuation
lines start and we can use space indents. I said the prompt could either go
left, into a sidebar
Change by Terry J. Reedy :
--
keywords: +patch
pull_requests: +24369
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/25678
___
Python tracker
<https://bugs.python.org/issu
Terry J. Reedy added the comment:
Wait for responses
--
___
Python tracker
<https://bugs.python.org/issue43874>
___
___
Python-bugs-list mailing list
Unsub
Terry J. Reedy added the comment:
I verified the claim in 3.19.0a7 freshly compiled today.
>>> import unicodedata as ud
>>> ud.decomposition('\uac00')
''
>>> for cp in range(0xac00, 0xd7a4):
if (s := ud.decomposition(chr(cp))) != '':
print(c
Terry J. Reedy added the comment:
inspect.signature(anext) raises "ValueError: builtin
has invalid signature". Guido, is this a bug? Even if not, docstring should
have it.
--
nosy: +terry.reedy
___
Python tracker
<https://bu
Change by Terry J. Reedy :
--
pull_requests: +24302
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25582
___
Python tracker
<https://bugs.python.org/issu
Terry J. Reedy added the comment:
Great!!! I also tried
>>> try: compile("a xyzjdkjfk", '', 'single')
except SyntaxError as e:
print(e, e.msg, e.lineno, e.offset, e.end_lineno, e.end_offset)
invalid syntax. Perhaps you forgot a comma? (, line 1) invalid s
Terry J. Reedy added the comment:
import unittest
#def setUpModule(): raise Exception()
#def tearDownModule(): print('module teardown')
unittest.addModuleCleanup(print, 'module cleanup')
class Dummy(unittest.TestCase):
def test_dummy(self):
self.addCleanup(print, 'test cleanup
Change by Terry J. Reedy :
--
stage: -> needs patch
versions: +Python 3.10, Python 3.9
___
Python tracker
<https://bugs.python.org/issue43913>
___
___
Python-
Terry J. Reedy added the comment:
Terence, a 'crash' for this tracker is a core dump or equivalent with no
exception/traceback.
--
nosy: +terry.reedy
stage: -> patch review
type: crash -> behavior
versions: -Python 3.6, Python 3.7
___
Terry J. Reedy added the comment:
Previous issue, which I mistyped, was #39107. Release notes at
https://sourceforge.net/projects/tcl/files/Tcl/8.6.11/tcltk-release-notes-8.6.11.txt/view
--
___
Python tracker
<https://bugs.python.org/issue43
Terry J. Reedy added the comment:
Close this? Upgrade done, twice.
--
nosy: +terry.reedy
___
Python tracker
<https://bugs.python.org/issue42361>
___
___
Pytho
Terry J. Reedy added the comment:
This started as an extraction and revision of changes in Tal's PR, one of which
appeared to be an intended behavior change, that I requested there. Paine may
have expanded the scope more than I intended. Will look soon
Change by Terry J. Reedy :
--
versions: -Python 3.6, Python 3.7
___
Python tracker
<https://bugs.python.org/issue43866>
___
___
Python-bugs-list mailin
Change by Terry J. Reedy :
--
nosy: +pablogsal
versions: -Python 3.6, Python 3.7
___
Python tracker
<https://bugs.python.org/issue43857>
___
___
Python-bug
Terry J. Reedy added the comment:
When I looked at the table yesterday (after several years), I was initially
confused at the 'reversed' order (before I checked the text above). Besides
precedence usually (nearly always) being listed high to low*, the chapter
itself is highest to lowest
Change by Terry J. Reedy :
--
versions: -Python 3.7
___
Python tracker
<https://bugs.python.org/issue43835>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Terry J. Reedy :
--
nosy: +benjamin.peterson, stutzbach
___
Python tracker
<https://bugs.python.org/issue43834>
___
___
Python-bugs-list mailin
Change by Terry J. Reedy :
--
nosy: +rhettinger, stutzbach
type: crash -> behavior
___
Python tracker
<https://bugs.python.org/issue43827>
___
___
Python-
Change by Terry J. Reedy :
--
nosy: +asvetlov, yselivanov
versions: -Python 3.6, Python 3.7
___
Python tracker
<https://bugs.python.org/issue43821>
___
___
Pytho
Change by Terry J. Reedy :
--
nosy: +ezio.melotti, rhettinger
___
Python tracker
<https://bugs.python.org/issue43807>
___
___
Python-bugs-list mailing list
Unsub
Change by Terry J. Reedy :
--
nosy: +asvetlov, yselivanov
___
Python tracker
<https://bugs.python.org/issue43806>
___
___
Python-bugs-list mailing list
Unsub
Change by Terry J. Reedy :
--
nosy: +davin, pitrou
___
Python tracker
<https://bugs.python.org/issue43805>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Terry J. Reedy :
--
versions: -Python 3.6, Python 3.7
___
Python tracker
<https://bugs.python.org/issue43803>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
New changeset b40564727fbe85932e92862e57fc065034d98dbf by Terry Jan Reedy in
branch '3.8':
[3.8] bpo-43723: Backport IDLE doc change (GH-25174)
https://github.com/python/cpython/commit/b40564727fbe85932e92862e57fc065034d98dbf
Change by Terry J. Reedy :
--
pull_requests: +24165
pull_request: https://github.com/python/cpython/pull/25435
___
Python tracker
<https://bugs.python.org/issue43
Terry J. Reedy added the comment:
New changeset 56c76df6e861322bdff77bfb21e5cd55fbacfad2 by Terry Jan Reedy in
branch '3.9':
[3.9] bpo-43723: Revert IDLE doc change (GH-25174)
https://github.com/python/cpython/commit/56c76df6e861322bdff77bfb21e5cd55fbacfad2
Change by Terry J. Reedy :
--
nosy: +terry.reedy
nosy_count: 6.0 -> 7.0
pull_requests: +24163
pull_request: https://github.com/python/cpython/pull/25432
___
Python tracker
<https://bugs.python.org/issu
Terry J. Reedy added the comment:
I presume '^' means 'hit Tab'.
The underlying Python problem is that namespaces are conceptually mappings of
names (identifiers), a subset of strings, to objects. Python specifies that
the global namespace is a dict, which I believe could mean a dict
Terry J. Reedy added the comment:
And maybe discuss with pip people why 'pip install pip install zyx' is not
caught as an error.
--
nosy: +terry.reedy
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracke
Terry J. Reedy added the comment:
Does this issue propose a patch to python/cpython? If not, it should be closed
(and should have been posted to pydev list).
--
nosy: +terry.reedy
___
Python tracker
<https://bugs.python.org/issue43
Terry J. Reedy added the comment:
Python regexes match slices of a Python string s. The latter include the
len(s)+1 empty slices of s. An re Match gives both the slice itself as match
attribute and its slice coordinates (span) in the searched string.
https://docs.python.org/3/library
Terry J. Reedy added the comment:
You code as posted is buggy. 'settings' maps styles to dicts with possible
keys ‘configure’, ‘map’, ‘layout’ and ‘element create’. See
https://docs.python.org/3/library/tkinter.ttk.html#tkinter.ttk.Style.theme_create
I presume '.' refers to all styles
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:
New changeset 754dc353565eeb4a43a912417cc5b66959458f1b by Miss Islington (bot)
in branch '3.8':
[3.8] bpo-43087: Fix error in ctypes "Incomplete Types" doc (GH-24404)
https://github.com/python/cpython/commit/754dc353565eeb4a43a912417cc5b6
Terry J. Reedy added the comment:
New changeset 5490b49fa6646c9f48869955c12cf6af9fc3f2a4 by Miss Islington (bot)
in branch '3.9':
[3.9] bpo-43087: Fix error in ctypes "Incomplete Types" doc (GH-24404)
https://github.com/python/cpython/commit/5490b49fa6646c9f48869955c12cf6
Change by Terry J. Reedy :
--
nosy: -terry.reedy
___
Python tracker
<https://bugs.python.org/issue43307>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
I have an alternate replacement: "These lines can be confusing if the
sequences contain tab characters or other characters that result in the
indicator symbols in these lines being mislocated."
Or leave the current sentence as is.
E
Terry J. Reedy added the comment:
New changeset 14829b09eb652f457cf837836909169746a810f0 by Zackery Spytz in
branch 'master':
bpo-43087: Fix error in ctypes "Incomplete Types" doc (GH-24404)
https://github.com/python/cpython/commit/14829b09eb652f457cf837836909169746a810f0
-
Terry J. Reedy added the comment:
Thank you. I had forgotten about this. It also works as advertised in the
module docstring on Windows, 3.8 and 3.10. There has been no change to the
code, so a patch to turtle itself must have fixed the problem.
--
resolution: -> out of d
Terry J. Reedy added the comment:
Excuse me, it is the query boxes, not the search boxes, that already have the
call. Unlike the other boxes I initially tested, they do not have the traffic
lights. I believe that this, not movability, is the effect on mac of
'movableModal'. I tested
Terry J. Reedy added the comment:
I presume 'floatable' means 'can move dialog around on top of the parent
window'. On my Mac Air, with 3.8 and 8.6.8, all the dialogs I checked,
including About, are already floatable in this sense, not just the search boxes
(which already had "
Terry J. Reedy added the comment:
Epaine (or Tal?): please test PR-25187 on Mac.
--
nosy: +epaine
title: Tkinter: Not setting _NET_WM_WINDOW_TYPE on FileDialog -> Tkinter: make
X window & macOS recognize dialogs as such
___
Python tracker
Change by Terry J. Reedy :
--
priority: normal -> critical
___
Python tracker
<https://bugs.python.org/issue43719>
___
___
Python-bugs-list mailing list
Un
Terry J. Reedy added the comment:
Thanks everyone for the rapid responses. The PR fixes the build for me, with a
clean test suite pass, so I added reviewers who could merge, a blurb, and my
approval. This can be closed as out-of-date as soon as the (or a) fix is
merged
Terry J. Reedy added the comment:
The upgrade to 8.6.10 broke a Scale test. The fix for that in #41306
conv = False if get_tk_patchlevel() >= (8, 6, 10) else float_round
should still work unless there was a further Scale change.
--
stage: patch review -> needs
Change by Terry J. Reedy :
--
keywords: +patch
pull_requests: +23911
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/25170
___
Python tracker
<https://bugs.python.org/issu
Terry J. Reedy added the comment:
Did you use revision 0, and in 8.6.11.0, or a later one?
As I mentioned in #43719, I cannot currently build master, but I will upload a
PR (with .0) for CI to test.
--
___
Python tracker
<https://bugs.python.
Terry J. Reedy added the comment:
In issue 33656, we determined that tcl/tk *is* dpi aware and that telling
Windows so is needed for proper text display. IDLE now issues the same Windows
command (idlelib.pyshell, line 20). This perhaps should be done by Python
itself, but that is not my
Change by Terry J. Reedy :
--
stage: -> resolved
status: pending -> closed
___
Python tracker
<https://bugs.python.org/issue41969>
___
___
Python-bugs-
Terry J. Reedy added the comment:
Re ""f:\dev\3x\PC\validate_ucrtbase.py" ucrtbased" exited with co
de -1073741819."
f:\dev\3x>py -3.10 PC\validate_ucrtbase.py ucrtbased
C:\WINDOWS\SYSTEM32\ucrtbased.DLL is version 10.0.14393.33
so the failur
New submission from Terry J. Reedy :
After a fresh update from upstream
> PCbuild\build.bat -D (or without -D)
on my machine ends with
python.vcxproj -> f:\dev\3x\PCbuild\amd64\python_d.pdb (Full PDB)
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = 'f:\dev\
Terry J. Reedy added the comment:
After 3+ years of Github I did not remember that B diffs use lines with
change position markers and in particular that at they (often? always?) start
with ?s. IDLE also uses color to mark positions (for syntax errors). The
following would have been clearer
Terry J. Reedy added the comment:
Andre', direct issue like this to discussion forums like python-list.
--
nosy: +terry.reedy
stage: -> resolved
status: pending -> closed
___
Python tracker
<https://bugs.python.org/i
Terry J. Reedy added the comment:
The quote is in the following section.
https://docs.python.org/3/library/difflib.html#difflib.Differ
I do not really understand the previous line "Lines beginning with ‘?’ attempt
to guide the eye to intraline differences, and were not present in either
Change by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<https://bugs.python.org/issue43684>
___
___
Python-bugs-list mailing list
Unsubscribe:
801 - 900 of 12638 matches
Mail list logo