Terry J. Reedy added the comment:
I would go with the first suggestion as that was the intent of adding
next() as a builtin function.
--
nosy: +tjreedy
___
Python tracker
<http://bugs.python.org/issue4
Terry J. Reedy added the comment:
LOL. That doc was apparently last revised in 2000 for the IDLE released
with 1.5.2 (see screenshot). Other needed updates I see are: 'Shell'
and 'Options' have been added to the menu line; we now have unicode
text; screenshots look diff
New submission from Terry J. Reedy :
Language / Execution Model / Naming & Binding
just before example that does not work,
class A:
a = 42
b = list(a + i for i in range(10))
says :
"The scope of names defined in a class block is limited to the class
block; it does not exte
Terry J. Reedy added the comment:
Is there an HTML to acceptable RST converter?
___
Python tracker
<http://bugs.python.org/issue5066>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
If you semi-optimize the implementation by pre-cancelling out the larger
of the denominators, then these functions would be justified as more
efficient than the naive use of the factorial function indicated by the
formulas.
Possible shorter names:
ncombos
Terry J. Reedy added the comment:
If the interactive interpreter did not require blank lines within blocks
to have at least one 'trailing' space to avoid prematurely ending the
block (as when copy from editor window and paste), IDLE could
automatically rstrip lines. Given that that
Terry J. Reedy added the comment:
On IDLE 3.0, win xp, cntl-space brings up a selection box with known
names to select. What was your actual input?
--
nosy: +tjreedy
___
Python tracker
<http://bugs.python.org/issue5
John J Lee added the comment:
Why?
___
Python tracker
<http://bugs.python.org/issue1660009>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/m
John J Lee added the comment:
This bug refers to urllib. Issue 1153027 refers to urllib2. It's the
same problem in each case, though.
--
nosy: +jjlee
___
Python tracker
<http://bugs.python.org/iss
John J Lee added the comment:
This bug refers to urllib2. Issue 918368 refers to urllib. It's the
same problem in each case, though.
___
Python tracker
<http://bugs.python.org/issu
John J Lee added the comment:
Mike's list is missing one more character, "%" itself. So, the
replacement should be:
quote(newurl, safe="%/:=&?~#+!$,;'@()*[]")
The replacement should be done in the .open() method, not
John J Lee added the comment:
A suitable test would be to derive a urllib.URLOpener subclass that has
an open_spam(url) method which records the URL. Then call
.open("spam://") in the test and verify that the URL has been quoted.
___
Python trac
John J Lee added the comment:
Uh, that should have beeen something like
.open("spam://example.com/%2E/") of course.
___
Python tracker
<http://bugs.python.or
New submission from Terry J. Reedy :
3.x str.format() format strings denote replacement fields with braces
{}. Currently, replacement fields *must* contain "either the numeric
index of a positional argument, or the name of a keyword argument". [lib
ref / builtin types / sequence type
Terry J. Reedy added the comment:
All I am requesting is that
'{} {} {}'.format(3, 'pi', 3.14) work as
>>> '%s %s %s' % (3, 'pi', 3.14)
'3 pi 3.14'
>>> '{0} {1} {2}'.format(3, 'pi', 3.14)
'3 pi 3.14&
New submission from Terry J. Reedy :
http://www.python.org/dev/peps/pep-3119/#overloading-isinstance-and-issubclass
(GvR and Talin)
"The primary mechanism proposed here is to allow overloading the
built-in functions isinstance() and issubclass(). The overloading works
as follows: The
New submission from Stephen J. Turnbull :
It should also try to convert stuff like
from statvfs import F_BAVAIL, F_FRSIZE
status = os.statvfs(directory)
available = status[F_BAVAIL]/((1024*1024)/status[F_FRSIZE]
--
components: 2to3 (2.x to 3.0 conversion tool)
messages: 81959
nosy: sjt
Stephen J. Turnbull added the comment:
Maybe 2to3 could get a --pedantic or even an --annoying option? I agree
that it should be noisy about removed features even if actually fixing
this kind of thing would be hard to do reliably.
--
nosy: +sjt
Terry J. Reedy added the comment:
Chema, thank you for bringing this semi-conscious assumption to light.
Intentionally breaking it significantly speeds up set and dict creation.
--
nosy: +tjreedy
resolution: -> invalid
status: open -> closed
superseder: -> Reduce hash colli
John J Lee added the comment:
A patch for this bug is attached to issue1375011.
___
Python tracker
<http://bugs.python.org/issue1372650>
___
___
Python-bugs-list mailin
Changes by John J Lee :
--
nosy: -jjlee
___
Python tracker
<http://bugs.python.org/issue1172011>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by John J Lee :
--
nosy: -jjlee
___
Python tracker
<http://bugs.python.org/issue991266>
___
___
Python-bugs-list mailing list
Unsubscribe:
Stephen J. Turnbull added the comment:
Benjamin Peterson writes:
> Hmm. 2to3 doesn't currently mess with the stat module and os.stat the
> more common function. Also the new interface (attributes on the objects
> returned) has been around since 2.2.
So what? You *c
Terry J. Reedy added the comment:
Hallvard, do you still consider this a live issue?
___
Python tracker
<http://bugs.python.org/issue960325>
___
___
Python-bugs-list m
Terry J. Reedy added the comment:
I suspect this can be closed either as "won't fix" or "out of date".
While only Irix 4 and not Irix 6 is listed in
Removing support for little used platforms
http://www.python.org/dev/peps/pep-0011/
I suspect Irix 6 may be close t
Terry J. Reedy added the comment:
Guido's answer: "Irix is long dead and we don't support it in any form
or version."
--
resolution: -> out of date
status: open -> closed
___
Python tracker
<http:
Changes by Terry J. Reedy :
--
nosy: -tjreedy
___
Python tracker
<http://bugs.python.org/issue3871>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
I should have closed this years ago due to lack of response.
Anyone with code that hangs CPython 2.6+ can reopen and post said code.
--
resolution: -> invalid
status: open -> closed
___
Python tracker
Terry J. Reedy added the comment:
I think this should be closed as rejected. It is a vague wish that
Python change its scoping rules in a way that is extremely unlikely and
which would require a PEP in any case. I might sometime recheck my
suggested doc changes versus the current versions
New submission from Terry J. Reedy :
3.11 apparently builds without error, and 'python' and 'python -m idlelib'
appears to start normally, but there is a new problem.
python -m test
raises OS box with 'Debug Assertion Failed!', program python_d.exe,
Fil
Terry J. Reedy added the comment:
Re the 3.9/3.10 warnings: I have not intentionally touched my C install in
years. I don't know what Windows' updates do (most recently yesterday) . I
presume vcruntime140.dll is on my C: ssd, which has shown no problems. Debug
runs w/o -j0 nor
Terry J. Reedy added the comment:
Ronald: According to a page (which I cannot find, E. Paine should know) Centos
7 has the oldest tcl among current *nix distributions.
https://centos.pkgs.org/7/centos-x86_64/tcl-8.5.13-8.el7.x86_64.rpm.html
says it is 8.5.13, which is what I remember from
Terry J. Reedy added the comment:
tk release availability is a bit confusing.
https://wiki.tcl-lang.org/page/Changes+in+Tcl%2FTk+8%2E6
appears to lists things 'new' in 3.6.1, but that seems to mean new since 8.5.1,
as it includes thing introduced in 8.5.n, where n > 1. For
Terry J. Reedy added the comment:
I recompiled, retested, and all tests are ok, with no unexpected box. Thank
you all.
The vcruntime warnings are also gone, so I will chalk them up to a onetime
glitch.
--
___
Python tracker
<ht
Terry J. Reedy added the comment:
3. continued. As noted in #22628, idlelib.tree has line spacing and other stuff
hardcoded so it will not work properly on all monitors.
--
___
Python tracker
<https://bugs.python.org/issue31
Terry J. Reedy added the comment:
We started using ttk widgets in 3.6. As I said above, the real solution should
be to use ttk.Treeview. This is issue 31552.
--
resolution: -> fixed
status: open -> closed
superseder: -> IDLE: Convert browswers to use ttk
Terry J. Reedy added the comment:
Current message same in 3.11 and 3.9, but I am not sure about backporting to
old parser. However merges a change, if any, can decide.
--
nosy: +pablogsal, terry.reedy
stage: -> needs patch
type: -> behavior
versions: +Python 3.11 -Pyth
Change by Terry J. Reedy :
--
title: "SyntaxError: non-default argument follows default argument" should be
"parameter" -> "SyntaxError: non-default argument follows default argument"
confuses
___
Python
Terry J. Reedy added the comment:
On Win10, running 3.11.0a5+ from command line, upper ABC and boxes flicker when
strings are displayed. (When run with from IDLE editor, there is no flicker
except sometimes when moving mouse over or off title bar buttons.) (3.8 only
gets security fixes
Terry J. Reedy added the comment:
ttk.Treeview also has problems, at least on some systems and versions.
https://mail.python.org/pipermail/tkinter-discuss/2022-March/004226.html
HiDPI displays and tkinter [cont]
https://mail.python.org/pipermail/tkinter-discuss/attachments/20220316/843e7076
Terry J. Reedy added the comment:
In the IDLE Help menu, 'Python Docs', default hotkey 'F1', invokes
'<>', which is handled by EditorWindow.help_docs. For Windows,
line 599, is 'os.startfile(self.help_url)'. (Otherwise, webbrowser is
Stephen J. Turnbull added the comment:
I'm not going to have time to look at the PR for a couple days.
I don't understand what the use case is for writing or appending with filenames
in a non-UTF-8 encoding. At least in my experience, reading such files is
rare, but I have never
Terry J. Reedy added the comment:
3.8 only gets security patches. If you can, please test with a newer version.
--
nosy: +terry.reedy
___
Python tracker
<https://bugs.python.org/issue47
Terry J. Reedy added the comment:
Raymond and Serhiy, you were the last two active devs to touch numbers.py.
--
nosy: +rhettinger, serhiy.storchaka, terry.reedy
___
Python tracker
<https://bugs.python.org/issue47
New submission from Terry J. Reedy :
In 3.10 and 3.11:
>>> while s := input.read(MAXBINSIZE):
... while len(s) < MAXBINSIZE and ns := input.read(MAXBINSIZE-len(s)):
File "", line 2
while len(s) < MAXBINSIZE and ns := in
Terry J. Reedy added the comment:
I think that this should be closed as rejected, and that Patrick should remove
the 'return's that are in front of 'yield from ...'. Then 'yield from x' will
be a statement, not an expression, and the ()s will not b
Terry J. Reedy added the comment:
I did some somewhat similar experiments a few years ago. I will try to find
the code sometime.
--
nosy: +terry.reedy
___
Python tracker
<https://bugs.python.org/issue47
Terry J. Reedy added the comment:
I am writing a PR with an internal link. I decided that linking to Standard
Encodings is sufficient. The Python Text Encodings section follows that.
Anyone wanting to use any of those can experiment to see which work
Change by Terry J. Reedy :
--
pull_requests: +30337
pull_request: https://github.com/python/cpython/pull/32274
___
Python tracker
<https://bugs.python.org/issue24
Terry J. Reedy added the comment:
New changeset 01be5d6446abbdd95d0c18bd19a58a62b05568d8 by Terry Jan Reedy in
branch 'main':
bpo-24563: Link encoding names to encoding declarations (GH-32274)
https://github.com/python/cpython/commit/01be5d6446abbdd95d0c18bd19a58a
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 281f980d354d1709018a2dc77f79388faf3e56c0 by MichaĆ D in branch
'main':
bpo-46033: Clarify for-statement execution (GH-30025)
https://github.com/python/cpython/commit/281f980d354d1709018a2dc77f79388faf3e56c0
--
nosy: +t
Change by Terry J. Reedy :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
type: -> enhancement
___
Python tracker
<https://bugs.python
Terry J. Reedy added the comment:
That issue has my previous experiments. Thank you Serhiy for finding it ;-).
--
resolution: -> duplicate
superseder: -> Integrate tkinter and asyncio (and async)
___
Python tracker
<https://bugs.p
Terry J. Reedy added the comment:
" keys = pygame.key.get_pressed() is showing error called unexpected indent"
The problem is that the keys line in indented one less space than the line
above. A shorter example below.
if True:
a = 1
b = 2
SyntaxError: unindent does not
Change by Terry J. Reedy :
--
nosy: -paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
___
Python tracker
<https://bugs.python.org/issue47226>
___
___
Terry J. Reedy added the comment:
This issue tracker is for improving the CPython distribution. It is not a
tracker for other software, or for general help with running Python. For the
latter, try
https://mail.python.org/mailman/listinfo/python-list
Thonny is 3rd party software with its
Change by Terry J. Reedy :
--
title: IDLE / Thonny UI crashes on Chromebook Linux/Bullseye -> IDLE crashes on
Chromebook Linux/Bullseye
___
Python tracker
<https://bugs.python.org/issu
Terry J. Reedy added the comment:
I posted look_tk3, I believe, as an answer to an SO question.
https://stackoverflow.com/questions/47895765/use-asyncio-and-tkinter-or-another-gui-lib-together-without-freezing-the-gui/47896365#47896365
Terry J. Reedy added the comment:
"Thonny GUI uses the same as IDLE": I presume this means that Thonny also uses
tkinter and both fail, which means that tkinter is not working right. Your
test run indicates that python is not running correctly either. It only tried
to run
Change by Terry J. Reedy :
--
components: +Tests -IDLE
title: IDLE UI crashes on Chromebook Linux/Bullseye -> Python tests fail on
Chromebook Linux/Bullseye
type: crash -> behavior
___
Python tracker
<https://bugs.python.org/i
Terry J. Reedy added the comment:
Christian: IDLE and test_idle require threading. I once tested for threading in
test_idle (not sure about IDLE itself) but removed the test when threading was
made supposedly non-optional. Test_idle still tests for tkinter and idlelib.
For PR 32352. did
Terry J. Reedy added the comment:
The current behavior is the quick and easy/dirty solution that we have, not
what we especially want. #27609 has multiple issues and ideas for completion
improvements. I made testing and improving the code priorities before worrying
about most of the
Terry J. Reedy added the comment:
There are two ways to navigate history.
1. Shell menu, Previous History and Next History, which show the hot keys on
your system. The hot keys can be customized with Options, Settings, Keys tab,
history_prev, history_next.
This is easily found by looking
Terry J. Reedy added the comment:
What I reported is that it is too low on my Windows system, with my size and
font, mostly covering the line. Anyway, misplaced before, now perfectly placed.
Now that I see the patch, I seem to remember another place what an update call
is needed before
Terry J. Reedy added the comment:
New changeset 71662dc2f12a7e77e5e1dfe64ec87c1b459c3f59 by Terry Jan Reedy (Tal
Einat) in branch 'master':
bpo-37849: IDLE: fix completion window positioning above line (GH-15267)
https://github.com/python/cpyt
Change by Terry J. Reedy :
--
nosy: +rhettinger, taleinat
title: IDLE: DeprecationWarning not handled properly -> IDLE: Handle Shell
input warnings properly.
___
Python tracker
<https://bugs.python.org/issu
Terry J. Reedy added the comment:
I moved leaving SyntaxWarnings as warnings to #37824, as that is mostly about
editing pyshell.
Changing the ordering of warnings and RESTART involves run.show_warnings. I
believe the latter should collect lines in a warnings list and print
''.joi
Change by Terry J. Reedy :
--
keywords: +patch
pull_requests: +15030
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/15311
___
Python tracker
<https://bugs.python.org/issu
Terry J. Reedy added the comment:
I am combining the trivial 'leave Shell input SyntaxWarnings alone (instead of
making them SyntaxErrors)' part of #34857 with this issue, 'print Shell input
(and the very rare internal IDLE Warnings occurring after Shell exists) in
Shell, a
Terry J. Reedy added the comment:
The triple (or double, see below) printing seems like a pure bug to be fixed.
A fix could be a separate PR to be merged 'immediately'.
But there is a complication with insertion location. My bug claim was based on
a one line statement, whe
Terry J. Reedy added the comment:
My first post described master at the time, when SyntaxWarnings were converted
to SyntexErrors and shell input warnings, in particular, Deprecation warnings
were sent to the console or nowhere. My third post describes the situation
with the PR, where
Terry J. Reedy added the comment:
I am familiar with the feature in Notepad++ on Windows. But I never use its +-
code folding. IDLE already has two different and, to me, generally better code
folding features.
To get an outline view of a file's classes and functions, use File =>
Terry J. Reedy added the comment:
The search page is the last thing one should use. There is the index
https://docs.python.org/3/genindex-Z.html
and for builtin function, chapter 2 of the library manual.
https://docs.python.org/3/library/functions.html#built-in-functions
I don't know i
Terry J. Reedy added the comment:
test.regrtest has a -j option. Perhaps some of the Python coding for that
could be used for unitest also.
--
nosy: +terry.reedy
___
Python tracker
<https://bugs.python.org/issue37
Change by Terry J. Reedy :
--
nosy: +ezio.melotti, michael.foord
___
Python tracker
<https://bugs.python.org/issue37873>
___
___
Python-bugs-list mailin
Change by Terry J. Reedy :
--
resolution: -> rejected
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue37882>
___
___
New submission from Terry J. Reedy :
The main operational difference between the standard Python REPL and IDLE's
Shell is that the latter operates with complete Python statements rather than
physical lines. Shell keeps the '>>>' prompt, but with the expanded meani
Terry J. Reedy added the comment:
I think that using tabs for Shell indents is IDLE's current worst design wart.
But I agree with KBK (#1196946) that merely replacing tabs with spaces does not
really solve the problem, which is the jagged physical margin consequent on
physically inde
Terry J. Reedy added the comment:
I agree. We added mousewheel scrolling to editor just over a year ago and
later added it to text views. But for the browsers, I want to factor out the
common code. It is a bit tricky since the 3 major systems each send different
events for the same
Terry J. Reedy added the comment:
#31461 is the index issue for class browser. Mousewheel scrolling was listed
without an issue. Now there is, and this has been added as a dependency.
--
___
Python tracker
<https://bugs.python.org/issue37
Terry J. Reedy added the comment:
#37902 Add mousewheel scrolling.
--
dependencies: +Add scrolling for IDLE browsers
___
Python tracker
<https://bugs.python.org/issue31
New submission from Terry J. Reedy :
This issue proposes to add a shell-specific sidebar to Shell. It follows-up
#17535, which added a line-number sidebar to module editors and implements the
first phase of #37892, which proposes that the single statement editing area of
Shell should be
Terry J. Reedy added the comment:
Adding a Shell sidebar is #37903.
--
___
Python tracker
<https://bugs.python.org/issue37892>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
I won't merge with mousescroll duplicated, or worse, triplicated. If
'self.text/canvas' is replaced with 'event.widget', then the 'self' parameter
can be deleted and the function made a standalone module function. For no
Terry J. Reedy added the comment:
Even if click 'Library Reference', click '2. Built-in...', click name in the
index at the top of the page to go to the entry I know I want to read is
sometimes slower that 'click search box', enter word, hit Return, wait for
Terry J. Reedy added the comment:
'mousescroll' was not exact because the mouse is also used to scroll with the
scrollbar. 'handlescroll' is worse. 'wheelscroll' seems awkward.
'scrollwheel' (scroll with the mouse wheel) is specific. At least i
Terry J. Reedy added the comment:
Don't worry more about tests until I look at what you have done already.
--
___
Python tracker
<https://bugs.python.org/is
New submission from Terry J. Reedy :
If one opens configdialog when there is no Shell and then hits OK, the dialog
fails to close. The following Squeezer-related traceback appears in associated
console when there is one.
Exception in Tkinter callback
Traceback (most recent call last
Terry J. Reedy added the comment:
I want this too, and part of it should be simple. Given that I have had a
never empty backlog of PRs to review for 2 1/2 years, it got forgotten. There
was also a tk problem that seemed to block implementation.
Specification for hotkey: Cntl/Cmd
Terry J. Reedy added the comment:
With /like/link/ I agree.
--
___
Python tracker
<https://bugs.python.org/issue14112>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
At least some idlelib imports are delayed to avoid circular import errors, as
described by Nick.
The patch adds 'Module level' before 'imports'.
Pro: techinically correct as only module level imports can be put at the top.
Com: might b
Change by Terry J. Reedy :
--
pull_requests: +15189
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/15500
___
Python tracker
<https://bugs.python.org/issu
Terry J. Reedy added the comment:
I pulled the part of PR 15311 that works, stop turning Shell SyntaxWarnings
into SyntaxErrors, into PR-15500, to get it into b4. I will update the former
after merging the latter.
--
stage: patch review
Terry J. Reedy added the comment:
New changeset 1039f39c9c6edb4c185856c19316d3a4eb561c38 by Terry Jan Reedy in
branch 'master':
bpo-37824: Properly handle user input warnings in IDLE shell. (GH-15500)
https://github.com/python/cpython/commit/1039f39c9c6edb4c185856c19316d3
Terry J. Reedy added the comment:
New changeset 077887059a5b3d38161dfd74b160c701445a1ef0 by Terry Jan Reedy (Miss
Islington (bot)) in branch '3.8':
bpo-37824: Properly handle user input warnings in IDLE shell. (GH-15500)
https://github.com/python/cpyt
Terry J. Reedy added the comment:
In this post, I slightly expand the terminal mode proposal and define the
context in which I will accept it. The context will be the subject of other
issues. In the next post (tomorrow) I will try to define a reviewable
specification for the terminal mode
Terry J. Reedy added the comment:
PR-11952 was written by Serhiy and reviewed by Victor (and Mark). They are
better qualified to comment on its intended side effects than I am.
In the case of sorting, the exception for, say, "reverse='a'", says the flag
must be an
Terry J. Reedy added the comment:
3.5 (and 3.6) only gets security fixes. From the report, the bug is fixed in
3.7.
FWIW, I agree about the 9-bit octal thing. There is another issue about this.
--
nosy: +terry.reedy
resolution: -> out of date
stage: -> resolved
status
Change by Terry J. Reedy :
--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware
___
Python tracker
<https://bugs.python.org/issue37
1801 - 1900 of 13130 matches
Mail list logo