New submission from Terry J. Reedy :
python -m idlelib.pyshell # and
python f:/dev/3x/lib/idlelib/pyshell.py # for instance
no longer start IDLE properly. The separate subprocess startup command for
when pyshell is the main, from 2004, is obsolete and no longer needed. The
command needed
Terry J. Reedy added the comment:
The shell actually 'starts', but with an empty box and no prompt.
I am thinking of eventually deprecating and disabling starting with pyshell,
but until we do, it should work. If nothing else, we should be able to display
a deprecation noti
Change by Terry J. Reedy :
--
keywords: +patch
pull_requests: +12497
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issu
Terry J. Reedy added the comment:
One can start IDLE from python with import idlelib.idle or import
idlelib.__main__ but not by importing pyshell, as there is alread a __main__
module. I cannot think of anything else to check.
--
___
Python
Terry J. Reedy added the comment:
New changeset 6a258c88906a7e8acde455ee2acb78b6f315ea0b by Terry Jan Reedy in
branch 'master':
bpo-36429: Fix starting IDLE with pyshell (#12548)
https://github.com/python/cpython/commit/6a258c88906a7e8acde455ee2acb78
Terry J. Reedy added the comment:
3 years ago, Trey Hunter found 11 ways to merge to a new dict.
https://treyhunner.com/2016/02/how-to-merge-dictionaries-in-python/
He followed up with a performance comparison.
https://gist.github.com/treyhunner/f35292e676efa0be1728
** unpacking was nearly
Terry J. Reedy added the comment:
Several hours ago, I read the unittest.mock doc, which uses 'magic methods' to
explain MagicMock. So I decided an entry really was needed. Andrés, thanks
for sticking with this,
--
versions: -
Change by Terry J. Reedy :
--
pull_requests: +12523
___
Python tracker
<https://bugs.python.org/issue34162>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
With respect to Shell, this is a request that IDLE move further away from
strictly imitating Python running in a dumb terminal and better help users with
intelligent action and information. I want both to improve editing and make
entry of a statement in
Terry J. Reedy added the comment:
'Python 3.9' does not exist yet. This choice is for patches that should only
be applied to 3.9 when available (like future deprecations or removals).
--
nosy: +terry.reedy
versions: -Python 3.9
Terry J. Reedy added the comment:
This is not a bug; the behavior is covered in the docs. I am surprised that
this works in 2.7, as it has the same warning as 3.7:
"
locals()
Update and return a dictionary representing the current local symbol table.
Free variables are return
Terry J. Reedy added the comment:
Python 3.5 and 3.6 only get security fixes. Please test on 3.7 or even better
3.8. Your questions should be directed to python-list.
--
nosy: +terry.reedy
___
Python tracker
<https://bugs.python.org/issue36
Terry J. Reedy added the comment:
Rocco, please ask questions about Python on python-list or places like
stackoverflow.com. 1. If python behavior puzzles you, the chance that it is a
python bug is well less than 1 in 1000. 2. The answer you get will be much
more visible to others who have
Change by Terry J. Reedy :
--
type: -> enhancement
versions: +Python 3.8 -Python 3.6
___
Python tracker
<https://bugs.python.org/issue36484>
___
___
Python-
Change by Terry J. Reedy :
--
stage: -> needs patch
versions: +Python 3.8
___
Python tracker
<https://bugs.python.org/issue36486>
___
___
Python-bugs-list mai
Change by Terry J. Reedy :
--
title: os.sendfile() on BSD and macOS does not return bytes sent on EINTR ->
os.sendfile() on BSD, macOS don't return bytes sent on EINTR
type: -> behavior
___
Python tracker
<https://bugs.python.
Change by Terry J. Reedy :
--
stage: -> needs patch
title: Modernize function signature format in Archiving section of shutil doc
-> Modernize function signature in Archiving section of shutil doc
___
Python tracker
<https://bugs.p
Change by Terry J. Reedy :
--
title: The behavior of str.isspace() for U+00A0 and U+202F is different from
what is documented -> str.isspace() for U+00A0 and U+202F differs from document
versions: -Python 3.5, Python 3.6
___
Python tracker
<
Terry J. Reedy added the comment:
So we have the same issue with f.__name__ and f.__code__.co_name becoming
unsynchronized.
FWIW, I would prefer that the code docstring be co_doc, rather than hidden in
co_constants, so that 'name' and 'doc' follow the same patte
Terry J. Reedy added the comment:
Verified.
>>> import io
>>> io.IOBase.writelines.__doc__
>>>
--
nosy: +terry.reedy
title: missing docs for IOBase writelines -> Add docstring to
io.IOBase.writelines
___
Python tra
Terry J. Reedy added the comment:
I assume that this can be backported even though it touches .c rather than .rst.
--
versions: +Python 3.7
___
Python tracker
<https://bugs.python.org/issue36
Change by Terry J. Reedy :
--
nosy: +steve.dower
___
Python tracker
<https://bugs.python.org/issue36529>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
My *guess* is that you created the branch for PR 7491 when your local master
branch was months out of date. Or you branched off of the 3.7 branch.
Whatever, your patch proposed to revert recent changes to master, touching
about 1000 files. When you
Terry J. Reedy added the comment:
I agree. The Squeezed Output Viewer is an instance of
idlelib.textview.ViewWindow. The latter is for read-only text and is also used
for the text displays invoked from About IDLE. I have already thought about
making the text searchable. Seaching does
Terry J. Reedy added the comment:
After looking at the context of the patch and thinking more about whether the
patch is a good idea, I am reversing what I said before and think that this
issue and the new patch (sorry) should be closed.
1. The new example duplicates the current example
Change by Terry J. Reedy :
--
versions: +Python 3.8
___
Python tracker
<https://bugs.python.org/issue36595>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
I am willing to close it.
--
___
Python tracker
<https://bugs.python.org/issue1402289>
___
___
Python-bugs-list mailin
Change by Terry J. Reedy :
--
versions: -Python 3.6
___
Python tracker
<https://bugs.python.org/issue32780>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Terry J. Reedy :
--
title: ctypes: memoryview gives incorrect PEP3118 itemsize for array of length
zero -> memoryview gives incorrect PEP3118 itemsize for empty array
___
Python tracker
<https://bugs.python.org/issu
Terry J. Reedy added the comment:
This issue is about the itemsize attribute of instances of the built-in
memoryview class. Ctypes in only involved in providing format information.
Hence the nosy additions.
On Win10 with 3.8, ctypes has no uint attributes. Using 'c_int32' inste
Terry J. Reedy added the comment:
This is actually about memoryview.itemsize within ctypes.
--
components: +ctypes
title: memoryview gives incorrect PEP3118 itemsize for empty array ->
memoryview & ctypes: incorrect PEP3118 itemsize for empt
Terry J. Reedy added the comment:
https://docs.python.org/3/library/stdtypes.html#typememoryview
says "itemsize The size in bytes of each element of the memoryview"
Revising the code example to use an empty array:
>>> import array, struct
>>> m = memoryview(array.ar
Terry J. Reedy added the comment:
Fixing one case is better than fixing no cases.
--
nosy: +skrah, terry.reedy
___
Python tracker
<https://bugs.python.org/issue32
Change by Terry J. Reedy :
--
versions: +Python 3.8 -Python 3.5
___
Python tracker
<https://bugs.python.org/issue22454>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
To me, the failure of dir() in message 1 is surprising and possibly a bug. I
always though of a module globals = locals = dict() instance as continuous
across statements, whether in batch or interactive move. In batch mode
import sys
mod = sys.modules
Terry J. Reedy added the comment:
'crash' mean *nix coredump or Windows equivelent, rather than traceback.
--
components: +Windows
nosy: +paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
type: crash -> behavior
___
Python tr
Terry J. Reedy added the comment:
On my puzzlement above: repr(s) is a string of 3 characters -- s bracketed by
quote characters. print(repr(s)) fails. I am not sure how s gets expanded to
the full escape in IDLE. ascii(s) expands all non-ascii and adds extra quotes.
Need to check Shell
Terry J. Reedy added the comment:
You are correct about reason. This is essentially a duplicate of #22742, but I
am leaving it open for now because the behavior is worse and there is
additional information in the tracebacks. The lines for IDLE internals are
normally removed, but the
Terry J. Reedy added the comment:
I believe that this duplicates comments on other Mac issues. The download web
pages are not part of the CPython repository covered by this tracker. I will
let Ned comment further.
--
components: +macOS
nosy: +ned.deily, ronaldoussoren, terry.reedy
Terry J. Reedy added the comment:
I verified that the line in Doc/library/doctest.rst has the comment.
"
For example, this test passes::
>>> print(list(range(20))) # doctest: +NORMALIZE_WHITESPACE
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15,
Terry J. Reedy added the comment:
3.6 only gets security fixes. This appears to be an enhancement request.
SkipTest is an exception and according to the doc it should be propagated to
the caller. __unittest_skip__ is an undocumented internal name, so you
probably should not be using it
Terry J. Reedy added the comment:
1. NO SKIP utest.py with debug prints added and @skipIf initially commented out.
---
from unittest import TestCase, skipIf
#@skipIf(True, "Skip Testing")
class Tests(TestCase):
def test_skip(self):
"this test will fail - if not ski
Change by Terry J. Reedy :
--
pull_requests: +12984
___
Python tracker
<https://bugs.python.org/issue34162>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
PR 12579 started as a fixup for 3.7.4, but there seemed to be a problem of
duplicate commits. The fix, based on Ned Deily's comments, after fetching from
upstream:
cd ../37 # 3.7 workspace
git branch -D news37 # and dict37, whatever it was
git
Terry J. Reedy added the comment:
New changeset 304ca211c4912f040151e518d9d66fd2d625c5e9 by Terry Jan Reedy in
branch '3.7':
[3.7] bpo-34162: Fix idlelib/NEWS.text for 3.7.4 (#13067)
https://github.com/python/cpython/commit/304ca211c4912f040151e518d9d66f
Change by Terry J. Reedy :
--
title: Drop support of Windows Vista in Python 3.7 -> Drop support of Windows
Vista in Python 3.8
___
Python tracker
<https://bugs.python.org/issu
Terry J. Reedy added the comment:
This seems like a good idea. I am assuming that open('somename', ...) always
result in a file object with .fileno defined.
Although I am mostly not touching 2.7, this should be easy to do. It will have
to be done manually since iomenu was then
Terry J. Reedy added the comment:
OS and disk interaction is not something I know a lot about. I don't know how
long different OSes take to write things out by themselves, and therefore how
much real danger there is of loosing data. However, IDLE is used in places
where power is
Terry J. Reedy added the comment:
The io doc says for IOBase flush()
Flush the write buffers of the stream if applicable. This does nothing for
read-only and non-blocking streams.
and for BufferedWriter flush()
Force bytes held in the buffer into the raw stream. A BlockingIOError
Terry J. Reedy added the comment:
Please do not close this until at least the idlelib changes are backported.
--
nosy: +terry.reedy
versions: +Python 3.7
___
Python tracker
<https://bugs.python.org/issue36
Terry J. Reedy added the comment:
Good question. There are two issues when starting IDLE with pythonw.exe, so
that sys.__stderr__ and sys.stderr are initially None.
1. None.write is an attribute error that crashes Python. Therefore, don't do
that. Instead use print. By default, and
Terry J. Reedy added the comment:
Dustin, thank you for both patches. Some people are not annoyed by minor
typos. I am one who is. I hope you are enjoying and learning from the sprint.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -&g
Terry J. Reedy added the comment:
I watched the talk by Nina Zakharenko at
https://www.youtube.com/watch?v=35mXD40SvXM. Since I love being able to save,
compile, and run a file with one keystroke, I appreciate people wanting to do
the equivalent with CircuitExpress and Adafruit. In IDLE
Terry J. Reedy added the comment:
David, the tracker 'component' is intended to be, for bug reports, the
component of Python that you think has a bug. When you run your code with IDLE
and you get an exception displayed, that almost certainly means that IDLE is
working as intend
Terry J. Reedy added the comment:
Robert, when posting to this tracker by email, please remove the quote of the
previous post. It duplicates the post itself.
I said exactly what I said, which explained why marking the issue for IDLE was
a mistake. (The same error is a weekly occurrence
Change by Terry J. Reedy :
--
versions: +Python 3.8
___
Python tracker
<https://bugs.python.org/issue36788>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
Many modules contain translatable strings. CPython does not ship with
translations of any of them and I believe it is against policy to do so.
1. Core developers, though an international group, are not competent to create
or approve translations.
2. Core
New submission from S. J. Cunningham :
I can't Install the latest python-3.7.3-macosx10.6.pkg on my 10.6.8 system.
Error message says failure to verify. I posted on the forms as suggested
(https://python-forum.io/Thread-Cannot-Install-python-3-7-3-macosx10-6-pkg) but
have receiv
Terry J. Reedy added the comment:
New changeset 4f098b35f58e911639f8e9adc393d5cf5c792e7f by Terry Jan Reedy
(Guido van Rossum) in branch 'master':
bpo-36807: When saving a file in IDLE, call flush and fsync (#13102)
https://github.com/python/cpyt
S. J. Cunningham added the comment:
Apple's decision to support or not support their products is driven by Apple's
business considerations and is not binding on anyone else. Many people
continue to use earlier versions because of dependence on applications which do
not ru
Terry J. Reedy added the comment:
When 3.x is done, I will do 2.7.
--
___
Python tracker
<https://bugs.python.org/issue36807>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
I have gotten this too, multiple times, on both Azure Pipelines and Appveyor.
The latter is worse since required. There was also a Mac failure for Azure,
not sure is same issue.
Please disable this test. External resource problems should not be blocking
Terry J. Reedy added the comment:
New changeset 68a11b6e6a73cd2e9b49e5df9973877b2fed6277 by Terry Jan Reedy (Miss
Islington (bot)) in branch '3.7':
[3.7] bpo-36807: When saving a file in IDLE, call flush and fsync (GH-13102)
(#13288)
https://github.com/python/cpyt
Change by Terry J. Reedy :
--
pull_requests: +13204
___
Python tracker
<https://bugs.python.org/issue36807>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
PR 13102 is original patch for master; it was merged, not closed.
PR 13284 fixed blurb for master.
PR 13280 backport for 3.7 was closed trying to restart bogus failure; can't do
that for backports.
PR 13288 is second backport; only optional Azure Pipi
Terry J. Reedy added the comment:
New changeset 353f8d2282b1a48376f8813fd1170445a0cda873 by Terry Jan Reedy in
branch '2.7':
[2.7] bpo-36807: When saving a file in IDLE, call flush and fsync (GH-13102)
(GH-13293)
https://github.com/python/cpyt
Terry J. Reedy added the comment:
> Do you mean from CircuitPython?
No, I was asking about regular Python on Windows. I was not clear to me
whether any of the software that Nina ran (other than possibly Adafruit USB
drivers) was from Adafruit. I am now guessing that is was all 3rd pa
Terry J. Reedy added the comment:
As far as I can see, this issue has nothing to do with IDLE as such.
Someone else should decide if this is a bug report or an enhancement request.
--
assignee: terry.reedy ->
components: -IDLE
stage: -> test needed
versions: +Python 3.8 -
Change by Terry J. Reedy :
--
nosy: -terry.reedy
___
Python tracker
<https://bugs.python.org/issue36930>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
Doctest directives in code examples should be suppressed everywhere *except* in
the doctest.html examples showing how to use directives. The patch only
exposes them for doctest.html and not for ctypes or anywhere else.
They really should not be in the dir
Terry J. Reedy added the comment:
Syntax errors come from Python, not IDLE. Except for the pseudofile name
('' versus ''), the message is the same as the interactive
interpreter. Anytime one thinks IDLE has a bug, one should check the standard
interactive inter
Terry J. Reedy added the comment:
"Other installers work without issue?" Is this a comment about other
installers for other versions on your machine? Or a question about other
people using the same binary on other machines?
Using the same python-3.7.0a4-amd64.exe binary, I su
Terry J. Reedy added the comment:
As far as I know, Windows binaries have only been named python.exe or
pythonw.exe. Before 3.5, I believe, "C:\Pythonxy", where x,y were major,minor,
*was* the default Windows installation directory. 'Python35' must have been
the re
Terry J. Reedy added the comment:
Seems sensible to me.
--
nosy: +terry.reedy
title: allow shutil.disk_usage to take a file path -> allow shutil.disk_usage
to take a file path on Windows also
___
Python tracker
<https://bugs.python.org/issu
Change by Terry J. Reedy :
--
title: Not able to open Python IDLE -> Not able to run Python 3.6 on Windows
___
Python tracker
<https://bugs.python.org/issu
Change by Terry J. Reedy :
--
nosy: +vinay.sajip
versions: -Python 3.4, Python 3.5, Python 3.6
___
Python tracker
<https://bugs.python.org/issue32567>
___
___
Change by Terry J. Reedy :
--
nosy: +giampaolo.rodola
versions: -Python 3.6, Python 3.7
___
Python tracker
<https://bugs.python.org/issue32572>
___
___
Python-bug
Terry J. Reedy added the comment:
Pedro: David and Nick are proposing initializing sys.argv to [] rather than
[''] for embedded interpreters. This would say 'running embedded'. The .argv
entry would need an additional sentence.
I like Nick's proposal, except
Terry J. Reedy added the comment:
The message I get on Windows is
OverflowError: Python int too large to convert to C long
Given that the exception type is documented, making this a clear bug, I would
be tempted to fix in 3.6 also. But your decision.
--
nosy: +terry.reedy
Terry J. Reedy added the comment:
As written, decode_crash.py crashes on Windows also. Passing 'replace' instead
of 'w3lib_replace' results in no crash and lots of boxes and blanks.
--
nosy: +benjamin.peterson, ezio.melotti, lemburg, terry.reedy, vstinner
st
Terry J. Reedy added the comment:
As said in review, I would like to see this added unless there is a good reason
for the omission. Still needed are patches for doc and tests.
--
nosy: +serhiy.storchaka, terry.reedy
stage: patch review -> test nee
Terry J. Reedy added the comment:
I am also skeptical that this will do more good than harm (by adding time and
fostering mis-impressions). (This might better have started as a discussion on
python-ideas list.)
--
nosy: +terry.reedy, vstinner
Terry J. Reedy added the comment:
I believe that PEP 11 originally said, or should have said "3.6 supports
Windows Vista and newer." I believe 3.5 supports XP, so it should be "please
install Python 3.4".
--
nosy: +terry.reedy
__
Change by Terry J. Reedy :
--
Removed message: https://bugs.python.org/msg310295
___
Python tracker
<https://bugs.python.org/issue32592>
___
___
Python-bugs-list m
Terry J. Reedy added the comment:
I believe that PEP 11 originally said, or should have said "3.6 supports
Windows Vista and newer." I believe 3.5 supports XP, so it should be "please
install Python 3.5".
--
___
Py
Terry J. Reedy added the comment:
I personally think it was a mistake to stop being explicit about Windows
support in PEP 11. The rationale was to avoid having to update it. But it is
updated for other systems; an explicit list is needed somewhere (as illustrated
by my memory lapse; and
Terry J. Reedy added the comment:
For detecting 'embedded', it is enough that only one documented attribute value
be unique to embedded situations.
--
___
Python tracker
<https://bugs.python.o
Terry J. Reedy added the comment:
If we agree that the patch is wrong, we should reject it and close this issue.
--
___
Python tracker
<https://bugs.python.org/issue32
Terry J. Reedy added the comment:
Postscript: I read a week or so ago that a new Windows 10 font chooser will
have this feature. There was not much detail and I believe it is currently
only part of the Preview package.
--
___
Python tracker
New submission from Terry J. Reedy :
zzdummy.py is needed for properly testing the extension mechanism. It is
intended to provide an example extension for users to follow. When completed,
enabled, and invoked, it will prefix every line of a window with some text, or
remove the prefix from
Terry J. Reedy added the comment:
These patches were first released with the 3.6.3 release candidate. Nothing
was changed for 3.6.4. Rechecking the changes to autocomplete.py in PR 2494,
the only expected effect, after the followup in #31488, PR 3612, is that
changes to the popup wait time
Terry J. Reedy added the comment:
#17060 and #18444 are similar issues for Mac.
--
___
Python tracker
<https://bugs.python.org/issue31930>
___
___
Python-bug
Terry J. Reedy added the comment:
Not ready to merge.
1. We need the Appveyer test to pass or special action from the gateway gods.
2. After a month, the PR needed to be updated and retested anyway. I pulled,
updated, pushed the update (which will trigger Travis and AV), and tested on my
Terry J. Reedy added the comment:
Hold the failure comment. I forgot that I have to recompile when patch changes
.c files.
--
___
Python tracker
<https://bugs.python.org/issue18
Terry J. Reedy added the comment:
OK, test_dictviews and test_ordered_dict now pass for me, and Appveyor already
ran entire suite and says OK to all.
--
___
Python tracker
<https://bugs.python.org/issue18
Terry J. Reedy added the comment:
Thank you for checking and merging. In the future, we will be reminded to
change '#' to 'GH-' in the title. I only found out a couple of days ago that
this is desired.
David, in msg193651, and Raymond, in msg193779, already suggested ba
Terry J. Reedy added the comment:
On Win10, with 3.5.4, 3.6.4, 3.7.0a4, the pinned IDLE icons on my taskbar look
normal, with the notebook and snake icon. Running
import tkinter as tk
r = tk.Tk()
stacks the edge of a shadow icon behind the IDLE icon. When I mouse over the
pair, the
Change by Terry J. Reedy :
--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware
___
Python tracker
<https://bugs.python.org/issue32
Terry J. Reedy added the comment:
I am inclined to believe. The answer to "How do I run a Python program under
Windows?" should include how to use 'py'. 'python' will not work unless the
install directory has been added to the path. Of course, 'py
Terry J. Reedy added the comment:
Definitely. x.y code, including doc examples, should free of such warnings.
--
nosy: +terry.reedy
___
Python tracker
<https://bugs.python.org/issue32
6601 - 6700 of 13135 matches
Mail list logo