[issue41719] Why does not range() support decimals?

2020-09-11 Thread chen-y0y0


Change by chen-y0y0 :


--
resolution:  -> not a bug
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41770] Import module doesn't updated

2020-09-11 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

This is not a bug, it is working as designed. Importing takes the module from 
the cache. You can either delete the module from the cache:

del sys.modules['modulename']
import modulename  # reloads from the module file


or possibly simpler, use reload:

importlib.reload(modulename)

--
components: +Interpreter Core -Windows
nosy: +steven.daprano
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type: resource usage -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41771] bdist_wininst doesn't execute postinstall script

2020-09-11 Thread Mark Hammond


New submission from Mark Hammond :

install.c tries to dynamically load PyCFunction_New at 
https://github.com/python/cpython/blob/fb2718720346c8c7a0ad2d7477f20e9a5524ea0c/PC/bdist_wininst/install.c#L686
 - however, since 3.8 this no longer exists - PyCFunction_New is a #define 
which calls PyCFunction_NewEx

--
assignee: mhammond
messages: 376771
nosy: mhammond
priority: normal
severity: normal
status: open
title: bdist_wininst doesn't execute postinstall script
type: behavior
versions: Python 3.10, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41758] turtledemo.colormixer crashes with a stack overflow

2020-09-11 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I cannot reproduce on Win 10, 32bit repository debug builds, amd64 machine, 
with either current master or 3.8, started from command prompt in normal 
environment with same command.  I also used installed 3.9 a bit.

Are .pyenv and pyenv-win your names or do they mean something possibly 
relevant?  I presume PS is PowerShell, which should not be relevant.
Did you get the stack trace upon startup, or thereafter, without touching the 
app?  If not, what did you do, in detail?

One time crash or repeatable?  Either way, please try current release.  If we 
cannot reproduce, we cannot test a fix. 

In the stacktrace, each cycle begins with a mouse-move event, handled by 
eventfun, which wraps and calls the user function (here 'shift) with event.x, 
event.y.  The relevant code is

def shift(self, x, y):
self.sety(max(0,min(y,1)))
self._color[self.x] = self.ycor()
self.fillcolor(self._color)
setbgcolor()

def setbgcolor():
screen.bgcolor(red.ycor(), green.ycor(), blue.ycor())

Both sety (move turtle to y) and bgcolor require an update __call__ into 
tcl/tk.  These normally should return and the call stack back to eventfun 
unwound.  Instead, it appears that new event handlings get added.  I suspect 
something peculiar about your system.

The line  'File "", line 1 in coords' is extremely odd, as it looks 
like an interactive injection of a command.  However, the previous trace line 
is '...turtle.py", line 755 in _pointlist', referring to turtle line

cl = self.cv.coords(item)

where cv is a tkinter canvas, and the 2761 in the top trace is the line within 
the coords methods calling tk.  So maybe  is an anomaly related to 
stack exhaustion.

Another possible factor is the turtle _items list.  It can grow, but I am not 
familiar with turtle internals.

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41771] bdist_wininst doesn't execute postinstall script

2020-09-11 Thread Mark Hammond


Change by Mark Hammond :


--
keywords: +patch
pull_requests: +21265
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/22210

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41760] 3.8.6 rc1 documentation fails to build with sphinx 3.2.1

2020-09-11 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Two issues about Sphinx 3.2.1 failing with "duplicate token description"
(posted on both)
#41760 'sign', multiple people nosy, failed where?
#41762 'format_spec', on Travis, PR by Victor Stinner (2.2.0 okay)

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41762] Documentation job fails on CIs: duplicate token description of format_spec

2020-09-11 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Two issues about Sphinx 3.2.1 failing with "duplicate token description"
(posted on both)
#41760 'sign', multiple people nosy, failed where?
#41762 'format_spec', on Travis, PR by Victor Stinner (2.2.0 okay)

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40108] Improve error message for -m option when .py is present

2020-09-11 Thread Jay Cee Garcia


Change by Jay Cee Garcia :


--
components: +XML
type:  -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41763] IDLE: scale font to Windows' "zoom" factor

2020-09-11 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Are you the Elisha Paine that suggested the original fix?

I am still interested in the subject, but there are a lot of factors to 
consider.

Rereading #33656, I disagree that IDLE is lying; tk scales on startup and 
others agreed with the current setting, and even thought it should be made part 
of the Python install.

I did a *lot* of testing, using a magnifier looking at IDLE, Firefox, and 
Command Prompt, and changing the properties settings.

The minimum client for GetDpiForWindow is Windows 10, version 1607, whereas the 
current solution works for all Win 10 and likely Win 8, so it cannot replace 
the latter.

Currently, when I change Settings / Display / Scale and layout, which is what I 
presume you mean by 'zoom factor' (100%, 125%, ...), IDLE 3.9 changes too, as I 
would expect.  The text window change is not exactly in proportion to the 
Display dialog change, but the difference might be the layout white space.  
This is contrary to what you report.  I have Win 10 2004 with Sept updates.

When I downscale the resolution, the type for both the dialog and IDLE 
enlarges.  I presume that this is to keep it smooth rather than becoming 
pixelated.

I have access to system with 2 4k monitors.  When I downscaled one, and moved 
Windows between them, the physical height was sometimes maintained, but 
sometimes changed.  I will probably install Python on that system to see how 
IDLE and tkinter and turtledemo (without the fix) look, and repeat the above 
experiment.

If people changes font face, they may need to adjust the 'size', and the 
physical size for a given 'size' varies between fonts.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41729] test_winconsoleio fails and hangs on Windows

2020-09-11 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 31c9828ec026e5d9b9122d55bf0aa7cb45bfecc5 by Terry Jan Reedy in 
branch 'master':
bpo-41729: Fix test_winconsole failures (3) and hang (GH-22146)
https://github.com/python/cpython/commit/31c9828ec026e5d9b9122d55bf0aa7cb45bfecc5


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41729] test_winconsoleio fails and hangs on Windows

2020-09-11 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21267
pull_request: https://github.com/python/cpython/pull/22212

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41729] test_winconsoleio fails and hangs on Windows

2020-09-11 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 6.0 -> 7.0
pull_requests: +21266
pull_request: https://github.com/python/cpython/pull/22211

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41729] test_winconsoleio fails and hangs on Windows

2020-09-11 Thread miss-islington


miss-islington  added the comment:


New changeset bbab34084e876291d96a65741f075db3adfa7733 by Miss Islington (bot) 
in branch '3.8':
bpo-41729: Fix test_winconsole failures (3) and hang (GH-22146)
https://github.com/python/cpython/commit/bbab34084e876291d96a65741f075db3adfa7733


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41745] BoundArguments.arguments used in the recommended way to call a callable silently succeeds for nonexistent arguments

2020-09-11 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I use signature for IDLE call tips, but have never used .bind and subsequent 
calls.  After understanding the behavior, my question as initial reviewer is 
whether it is an *implementation* bug.  Perhaps, but not obviously so.

Whether or not it is a design wart serious enough to warrant an design change 
is a different question, which I am not going to judge.  Maybe there is a 
reason for the current design we have not thought of.  Or maybe it is an 
accident too painful to change.

I am convinced that the doc could be better.

--
stage:  -> needs patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41729] test_winconsoleio fails and hangs on Windows

2020-09-11 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41729] test_winconsoleio fails and hangs on Windows

2020-09-11 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset c2577b9e0e2f8652f079b4ac473347c63f15e25c by Miss Islington (bot) 
in branch '3.9':
bpo-41729: Fix test_winconsole failures (3) and hang (GH-22146)
https://github.com/python/cpython/commit/c2577b9e0e2f8652f079b4ac473347c63f15e25c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41731] test_cmd_line_script fails with verbosity level more than 1

2020-09-11 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 7e711ead26fea6465e0ef2e3b8880b57ba8fc129 by Terry Jan Reedy in 
branch 'master':
bpo-41731: Make test_cmd_line_script pass with -vv (GH-22206)
https://github.com/python/cpython/commit/7e711ead26fea6465e0ef2e3b8880b57ba8fc129


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41731] test_cmd_line_script fails with verbosity level more than 1

2020-09-11 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +21268
pull_request: https://github.com/python/cpython/pull/22213

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41731] test_cmd_line_script fails with verbosity level more than 1

2020-09-11 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21269
pull_request: https://github.com/python/cpython/pull/22214

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41772] Zipfile.testzip considers wrong password as correct

2020-09-11 Thread Amir Mohamadi


Change by Amir Mohamadi :


--
components: Library (Lib)
nosy: Amir
priority: normal
severity: normal
status: open
title: Zipfile.testzip considers wrong password as correct
type: behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41731] test_cmd_line_script fails with verbosity level more than 1

2020-09-11 Thread miss-islington


miss-islington  added the comment:


New changeset 77901dc6c3d06dd31f6c84b2d3cb21dc26b1e351 by Miss Islington (bot) 
in branch '3.8':
bpo-41731: Make test_cmd_line_script pass with -vv (GH-22206)
https://github.com/python/cpython/commit/77901dc6c3d06dd31f6c84b2d3cb21dc26b1e351


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41731] test_cmd_line_script fails with verbosity level more than 1

2020-09-11 Thread miss-islington


miss-islington  added the comment:


New changeset 34e3c7592be70f652c293eb179593bf2928adeb4 by Miss Islington (bot) 
in branch '3.9':
bpo-41731: Make test_cmd_line_script pass with -vv (GH-22206)
https://github.com/python/cpython/commit/34e3c7592be70f652c293eb179593bf2928adeb4


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41772] Zipfile.testzip considers wrong password as correct

2020-09-11 Thread Amir Mohamadi


Change by Amir Mohamadi :


Added file: https://bugs.python.org/file49453/encrypted.zip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39651] Exceptions raised by EventLoop.call_soon_threadsafe

2020-09-11 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 7.0 -> 8.0
pull_requests: +21270
pull_request: https://github.com/python/cpython/pull/22215

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39651] Exceptions raised by EventLoop.call_soon_threadsafe

2020-09-11 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21271
pull_request: https://github.com/python/cpython/pull/22216

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39651] Exceptions raised by EventLoop.call_soon_threadsafe

2020-09-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 1b0f0e3d7d03155da1cf9769a847874d559e57e3 by Victor Stinner in 
branch 'master':
bpo-39651: Fix asyncio proactor _write_to_self() (GH-22197)
https://github.com/python/cpython/commit/1b0f0e3d7d03155da1cf9769a847874d559e57e3


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41772] Zipfile.testzip considers wrong password as correct

2020-09-11 Thread Amir Mohamadi


New submission from Amir Mohamadi :

Zipfile.testzip sometimes works perfectly with wrong password. refer to poc.py 
I've a zip file with password '76453' and when I try a wrong password with 
extractall:

myzip.setpassword('10006050')
myzip.extractall()

it raises a Bad CRC-32 exception. but when I try testzip instead of extractall:

myzip.setpassword('10006050')
myzip.testzip()

no exception is raised

--
Added file: https://bugs.python.org/file49452/poc.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39651] Exceptions raised by EventLoop.call_soon_threadsafe

2020-09-11 Thread STINNER Victor


STINNER Victor  added the comment:

Thanks for the bug report Ben Darnell, it's now fixed.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41760] 3.8.6 rc1 documentation fails to build with sphinx 3.2.1

2020-09-11 Thread STINNER Victor


STINNER Victor  added the comment:

I close this issue as a duplicate of bpo-41762.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Documentation job fails on CIs: duplicate token description of 
format_spec

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41762] Documentation job fails on CIs: duplicate token description of format_spec

2020-09-11 Thread STINNER Victor


STINNER Victor  added the comment:

I closed bpo-41760 as a duplicate of this issue.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41762] Documentation job fails on CIs: duplicate token description of format_spec

2020-09-11 Thread STINNER Victor


STINNER Victor  added the comment:

> I closed bpo-41760 as a duplicate of this issue.

The error message was different but similar:

Warning, treated as error:
/<>/Doc/library/string.rst:311:duplicate token description of 
sign, other instance in library/functions

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



<    1   2