[issue35018] Sax parser provides no user access to lexical handlers

2020-08-09 Thread Stefan Behnel


Stefan Behnel  added the comment:


New changeset e28b8c93878072dc02b116108ef5443084290d47 by Zackery Spytz in 
branch 'master':
bpo-35018: Sax parser should provide user access to lexical handlers (GH-20958)
https://github.com/python/cpython/commit/e28b8c93878072dc02b116108ef5443084290d47


--

___
Python tracker 

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



[issue35018] Sax parser provides no user access to lexical handlers

2020-08-09 Thread Stefan Behnel


Change by Stefan Behnel :


--
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



[issue40275] test.support has way too many imports

2020-08-09 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Sorry, I forgot that for the website, 3.x means 3.8, which has only 1 x_helper 
module.  3.9 has 3 and 3.10 has 7.

--

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-08-09 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The buildbots were fixed with PR-21785.  '#' prefixes an issue on bpo, a PR on 
github.  Confusing, especially now that PR #s are catching up to issue #s.

--

___
Python tracker 

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



[issue39102] Increase Enum performance

2020-08-09 Thread Inada Naoki


Change by Inada Naoki :


--
nosy: +inada.naoki

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-08-09 Thread hai shi


hai shi  added the comment:

# Confusing, especially now that PR #s are catching up to issue #s.
Maybe we need redefine the matching rule(I am not sure about it).

--
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



[issue40740] Missing api-ms-win-core-path-l1-1.0.dll for python-3.9.0b1-amd64.exe Under Win7

2020-08-09 Thread Claudio Canepa


Claudio Canepa  added the comment:

At beta 5 the download page [0] says nothing about dropping win7 support.

The  installer, at least the one I tried ( python-3.9.0b5-amd64.exe ) will 
install on win7, and without warnings.

It would be much better if it refused to install.

--
nosy: +ccanepa

___
Python tracker 

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



[issue40740] Missing api-ms-win-core-path-l1-1.0.dll for python-3.9.0b1-amd64.exe Under Win7

2020-08-09 Thread Claudio Canepa


Claudio Canepa  added the comment:

opps, 

[0] https://www.python.org/downloads/release/python-390b5/

--

___
Python tracker 

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



[issue40740] Missing api-ms-win-core-path-l1-1.0.dll for python-3.9.0b1-amd64.exe Under Win7

2020-08-09 Thread Claudio Canepa


Claudio Canepa  added the comment:

also, no mention in

https://pythondev.readthedocs.io/platforms.html

--

___
Python tracker 

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



[issue41510] Mentions of pdb.set_trace() in library/functions and library/sys incorrectly states that set_trace expects no arguments

2020-08-09 Thread Shubham Kumar Jha


Change by Shubham Kumar Jha :


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

___
Python tracker 

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



[issue40740] Missing api-ms-win-core-path-l1-1.0.dll for python-3.9.0b1-amd64.exe Under Win7

2020-08-09 Thread Paul Moore


Paul Moore  added the comment:

https://docs.python.org/3.9/using/windows.html should probably be updated:

"""
As specified in PEP 11, a Python release only supports a Windows platform while 
Microsoft considers the platform under extended support. This means that Python 
3.9 supports Windows Vista and newer. If you require Windows XP support then 
please install Python 3.4.
"""

Technically, the link to PEP 11 is sufficient, but "Python 3.9 supports Windows 
Vista and newer" is inaccurate.

If someone wanted to submit a PR, I'm sure it would be welcome.

--

___
Python tracker 

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



[issue41501] 0x80070643, can't install any version

2020-08-09 Thread Steve Dower


Steve Dower  added the comment:

The Python 3.8 and 3.3 installers will not conflict at all, as they are 
completely different.

If that is your log file, we'll also need the file in your %TEMP% directory 
that includes "core_JustForMe" in the name, as that's the subinstaller that's 
failing.

Unfortunately, the error code is very generic, but the most common reason for 
this MSI to fail is because you've already got an install of an earlier version 
of 3.8 that was installed for all users (by an administrator), which the 
per-user installer cannot remove.

--

___
Python tracker 

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



[issue41458] Avoid overflow/underflow in math.prod()

2020-08-09 Thread Tim Peters


Tim Peters  added the comment:

More extensive testing convinces me that pairing multiplication is no real help 
at all - the error distributions appear statistically indistinguishable from 
left-to-right multiplication.

I believe this has to do with the "condition numbers" of fp addition and 
multiplication, which are poor for fp addition and good for fp multiplication.  
Intuitively, fp addition systematically loses mounds of information whenever 
two addends in different binades are added (the lower bits in the addend in the 
binade closer to 0 are entirely lost).  But the accuracy of fp mult couldn't 
care which less which binades the inputs are in, provided only the result 
doesn't overflow or become subnormal.

For "random" vectors, pairing summation tends to keep addends close together in 
magnitude, which is "the real" reason it helps.  Left-to-right summation tends 
to make the difference in magnitude increase as it goes along (the running sum 
keeps getting bigger & bigger).

So, red herring.  The one thing that _can_ be done more-or-less 
straightforwardly and cheaply for fp mult is to prevent spurious overflow and 
underflow (including spurious trips into subnormal-land).

--

___
Python tracker 

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



[issue41511] Pathlib parents doesn't support slicing with negative indexes

2020-08-09 Thread Yaroslav


New submission from Yaroslav :

As I can see, pathlib path parents don't support slicing with negative indexes: 

>>> import pathlib
>>> path = pathlib.PosixPath("some/very/long/path/here")
>>> path.parents[-1]
...
raise IndexError(idx)
IndexError: -1

That's kinda weird for python. I mean, in regular list/etc if I need the last 
element, I'd normally do list[-1], but here to get the last parent, I need to 
actually know how many parents do I have. 

So now, I can do something like this:

>>> parents_count = len(path.parents) - 1
>>> path.parents[parents_count]
PosixPath('.')

So that's how I can get the last parent. But is it pythonic? No.

So, I decided to fix this, and now we can do negative slicing:

>>> path.parents[-1] == path.parents[parents_count]
True
>>> path.parents[-2] == path.parents[parents_count - 1]
True

So what do you guys think about this?

--
components: Library (Lib)
messages: 375076
nosy: ypank
priority: normal
severity: normal
status: open
title: Pathlib parents doesn't support slicing with negative indexes
type: behavior
versions: Python 3.10, Python 3.5, Python 3.6, Python 3.7, 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



[issue41468] Unrecoverable server exiting

2020-08-09 Thread Terry J. Reedy


Change by Terry J. Reedy :


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

___
Python tracker 

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



[issue41511] Pathlib parents doesn't support slicing with negative indexes

2020-08-09 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
nosy: +python-dev
nosy_count: 1.0 -> 2.0
pull_requests: +20934
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/21799

___
Python tracker 

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



[issue41511] Pathlib parents doesn't support slicing with negative indexes

2020-08-09 Thread Yaroslav


Yaroslav  added the comment:

Here's opened PR: https://github.com/python/cpython/pull/21799

--

___
Python tracker 

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



[issue41458] Avoid overflow/underflow in math.prod()

2020-08-09 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

IIRC, both Factor and Julia use pairwise multiplication.  I'm guessing that the 
reason is that if you have an associative-reduce higher order function, you 
tend to use it everywhere even in cases where the benefits are negligible ;-)

--

___
Python tracker 

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



[issue41468] Unrecoverable server exiting

2020-08-09 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset f2e161c27964a59bc5ab20d96f87ba5862c6222d by Terry Jan Reedy in 
branch 'master':
bpo-41468: Improve and test IDLE run error exit  (GH-21798)
https://github.com/python/cpython/commit/f2e161c27964a59bc5ab20d96f87ba5862c6222d


--

___
Python tracker 

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



[issue41468] Unrecoverable server exiting

2020-08-09 Thread miss-islington


Change by miss-islington :


--
pull_requests: +20936
pull_request: https://github.com/python/cpython/pull/21801

___
Python tracker 

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



[issue41468] Unrecoverable server exiting

2020-08-09 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +20935
pull_request: https://github.com/python/cpython/pull/21800

___
Python tracker 

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



[issue41468] Unrecoverable server exiting

2020-08-09 Thread miss-islington


miss-islington  added the comment:


New changeset 61f23cb62d6bdd72b61fc36abf4c1492493d71af by Miss Islington (bot) 
in branch '3.8':
bpo-41468: Improve and test IDLE run error exit  (GH-21798)
https://github.com/python/cpython/commit/61f23cb62d6bdd72b61fc36abf4c1492493d71af


--

___
Python tracker 

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



[issue41468] Unrecoverable server exiting

2020-08-09 Thread miss-islington


miss-islington  added the comment:


New changeset a9fa66377fbd9ea2fca1483345a8c27d1b32d5b4 by Miss Islington (bot) 
in branch '3.9':
bpo-41468: Improve and test IDLE run error exit  (GH-21798)
https://github.com/python/cpython/commit/a9fa66377fbd9ea2fca1483345a8c27d1b32d5b4


--

___
Python tracker 

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



[issue41511] Pathlib parents doesn't support slicing with negative indexes

2020-08-09 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

This is a duplicate of 21041, it would be better to change the title of your PR 
so that it points to this bug report and to continue the discussion there.

--
nosy: +remi.lapeyre
versions:  -Python 3.5, Python 3.6, Python 3.7, 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



[issue41511] Pathlib parents doesn't support slicing with negative indexes

2020-08-09 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

*This is a duplicate of issue 21041

--

___
Python tracker 

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



[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x

2020-08-09 Thread Soumendra Ganguly


Soumendra Ganguly  added the comment:

Hi! Can anyone please take a look at

https://bugs.python.org/issue41494 [ 
https://github.com/python/cpython/pull/21752 ]?

I think these are related. I wrote a new function called wspawn, which is like 
spawn+the following differences.

1. It sets window size at the beginning.
2. It registers a SIGWINCH handler.
3. It does not depend on OSError to return. It does a clean return instead.

--
nosy: +soumendra

___
Python tracker 

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



[issue29070] Integration tests for pty.spawn on Linux and all other platforms

2020-08-09 Thread Soumendra Ganguly


Soumendra Ganguly  added the comment:

Hi! Can anyone please take a look at

https://bugs.python.org/issue41494 [ 
https://github.com/python/cpython/pull/21752 ]?

I think these are related. I wrote a new function called wspawn, which is like 
spawn+the following differences.

1. It sets window size at the beginning.
2. It registers a SIGWINCH handler.
3. It does not depend on OSError to return. It does a clean return instead.

--
nosy: +soumendra

___
Python tracker 

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



[issue41494] Adds window resizing support to Lib/pty.py [ SIGWINCH ]

2020-08-09 Thread Soumendra Ganguly


Soumendra Ganguly  added the comment:

Possibly related issues:

https://bugs.python.org/issue29070
https://bugs.python.org/issue26228

Since wspawn does not depend on OSError, it might be a possible [ not 
necessarily the only way ] of solving the above issues.

--

___
Python tracker 

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



[issue40860] Exception in multiprocessing/context.py under load

2020-08-09 Thread Irit Katriel


Irit Katriel  added the comment:

The source code for the Process class is here: 
https://github.com/python/cpython/blob/master/Lib/multiprocessing/process.py

You can see that join and start both modify the global, non thread safe 
_children set. I'm guessing this is where you're seeing interference between 
threads.

I'm not sure a lock on start is enough - I think you need to get the lock for 
the join_process(job, deadline) call as well, because join can modify _children 
too. (Or, alternatively, manage all processes from a single thread.)

--
nosy: +iritkatriel

___
Python tracker 

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



[issue41468] Unrecoverable server exiting

2020-08-09 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



[issue41512] Microsoft Store app IDLE (Python 3.8.5) cannot save files

2020-08-09 Thread evaldas


New submission from evaldas :

OS: x64 Windows 10 Professional 1903
Python: Python 3.8 package (3.8.5) installed from Microsoft Store

Steps to reproduce the bug:

1. Create empty file (right click anywhere, "New" -> "Text document", rename to 
"insert_filename_here.py"). File size is 0 bytes.

2. Open the file in IDLE

3. Type "import os" (actually content could be anything). IDLE title bar 
changes by prepending asterisk (*) to the filename, indicating file is modified 
but not saved yet.

4a. Press Ctrl+S  --> nothing happens
4b. Click "File" -> "Save"  --> nothing happens
4c. Click "File" -> "Close".  Dialog pops-up "Do you want to save 
insert_filename_here.py before closing?", click "Yes"  --> nothing happens

Tested on 2 machines, same behavior.  If file has some previuos content, 
sometimes saving in IDLE works (not always).

--
assignee: terry.reedy
components: IDLE
messages: 375088
nosy: evaldas, terry.reedy
priority: normal
severity: normal
status: open
title: Microsoft Store app IDLE (Python 3.8.5) cannot save files
versions: Python 3.8

___
Python tracker 

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



[issue41512] Microsoft Store app IDLE (Python 3.8.5) cannot save files

2020-08-09 Thread evaldas


Change by evaldas :


--
type:  -> behavior

___
Python tracker 

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



[issue41513] Scale by power of two in math.hypot()

2020-08-09 Thread Raymond Hettinger


New submission from Raymond Hettinger :

I'd like to resurrect Serhiy's idea for using power-of-two scaling in 
math.hypot() rather than dividing each coordinate by the maximum value.

I drafted a patch.  It looks to be a little faster than what we have now and is 
generally (but not always) more accurate.

For accuracy, the current approach has the advantage that for the largest 
coordinate, (x/max)**2 is exactly 1.0.   If that element is much larger than 
the others, it overpowers the 1/2 ulp error in each of the other divisions.

In contrast, scaling by a power of two is always exact, but the squaring of the 
largest scaled coordinate is no longer exact.

The two approaches each have some cases that are more accurate than the other.  
I generated 10,000 samples.  In 66% of the cases, the two results agree.  In 
26% of the cases, scaling by a power of two was more accurate.  In the 
remaining 8%, the division by max was more accurate.   The standard deviation 
of relative errors was better using power-of-two scaling.  These results were 
consistent whether using 2, 3, or 20 dimensions.

As expected, multiplying by a power of two was a bit faster than dividing by an 
arbitrary float.

--
components: Library (Lib)
messages: 375089
nosy: mark.dickinson, rhettinger, serhiy.storchaka, tim.peters
priority: low
severity: normal
status: open
title: Scale by power of two in math.hypot()
type: enhancement
versions: Python 3.10

___
Python tracker 

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



[issue41513] Scale by power of two in math.hypot()

2020-08-09 Thread Raymond Hettinger


Change by Raymond Hettinger :


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

___
Python tracker 

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



[issue41512] Microsoft Store app IDLE (Python 3.8.5) cannot save files

2020-08-09 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Already fixed, will be in 3.9.0rc1 (tomorrow) and 3.8.6 (Sept).  In meanwhile, 
create new files within IDLE with File => New.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> IDLE: edit/save files created by Windows Explorer

___
Python tracker 

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



[issue41513] Scale by power of two in math.hypot()

2020-08-09 Thread Raymond Hettinger


Change by Raymond Hettinger :


Added file: https://bugs.python.org/file49378/test_hypot.py

___
Python tracker 

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



[issue41458] Avoid overflow/underflow in math.prod()

2020-08-09 Thread Tim Peters


Tim Peters  added the comment:

Or, like I did, they succumbed to an untested "seemingly plausible" illusion ;-)

I generated 1,000 random vectors (in [0.0, 10.0)) of length 100, and for each 
generated 10,000 permutations.  So that's 10 million 100-element products 
overall.  The convert-to-decimal method was 100% insensitive to permutations, 
generating the same product (default decimal prec result rounded to float) for 
each of the 10,000 permutations all 1,000 times.

The distributions of errors for the left-to-right and pairing products were 
truly indistinguishable.  They ranged from -20 to +20 ulp (taking the decimal 
result as being correct).  When I plotted them on the same graph, I thought I 
had made an error, because I couldn't see _any_ difference on a 32-inch 
monitor!  I only saw a single curve.  At each ulp the counts almost always 
rounded to the same pixel on the monitor, so the color of the second curve 
plotted almost utterly overwrote the first curve.

As a sanity check, on the same vectors using the same driver code I compared 
sum() to a pairing sum. Pairing sum was dramatically better, with a much 
tighter error distribution with a much higher peak at the center ("no error"). 
That's what I erroneously expected to see for products too - although, in 
hindsight, I can't imagine why ;-)

--

___
Python tracker 

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



[issue40860] Exception in multiprocessing/context.py under load

2020-08-09 Thread Arkady


Arkady  added the comment:

I have switched to os.fork() I am doing something like this 
https://gist.github.com/larytet/3ca9f9a32b1dc089a24cb7011455141f

--

___
Python tracker 

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



[issue41511] Pathlib parents doesn't support slicing with negative indexes

2020-08-09 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Closing it as duplicate of issue21041. Thanks Remi. Yaroslav, feel free to 
discuss it in the other issue.

--
nosy: +xtreak
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> pathlib.PurePath.parents rejects negative indexes

___
Python tracker 

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



[issue27477] IDLE: Switch search dialogs to ttk widgets, and other refinement

2020-08-09 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

5.0 History list? 1 for all boxes; start fresh each session

--

___
Python tracker 

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



[issue41513] Scale by power of two in math.hypot()

2020-08-09 Thread Raymond Hettinger


Change by Raymond Hettinger :


Removed file: https://bugs.python.org/file49378/test_hypot.py

___
Python tracker 

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



[issue41513] Scale by power of two in math.hypot()

2020-08-09 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Added a revised script for testing accuracy measured in ULPs.

--
Added file: https://bugs.python.org/file49379/test_hypot.py

___
Python tracker 

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



[issue41513] Scale by power of two in math.hypot()

2020-08-09 Thread Raymond Hettinger


Change by Raymond Hettinger :


Added file: https://bugs.python.org/file49380/test_hypot.py

___
Python tracker 

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



[issue41513] Scale by power of two in math.hypot()

2020-08-09 Thread Raymond Hettinger


Change by Raymond Hettinger :


Removed file: https://bugs.python.org/file49379/test_hypot.py

___
Python tracker 

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



[issue41513] Scale by power of two in math.hypot()

2020-08-09 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
Removed message: https://bugs.python.org/msg375095

___
Python tracker 

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



[issue41513] Scale by power of two in math.hypot()

2020-08-09 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Added a revised script for testing accuracy measured in ULPs.  It shows an 
improvement for all dimensions tested, with the best for 2 dimensions.  Also, 
the maximum error is now 1 ulp; formerly, it was 2 ulps.

 2 dimensions 
div-by-max: [(-2.0, 14), (-1.0, 1721), (0.0, 6533), (1.0, 1722), (2.0, 10)]
scaled-by-2:[(-1.0, 841), (0.0, 8339), (1.0, 820)]

 3 dimensions 
div-by-max: [(-2.0, 3), (-1.0, 1525), (0.0, 6933), (1.0, 1535), (2.0, 4)]
scaled-by-2:[(-1.0, 739), (0.0, 8515), (1.0, 746)]

 5 dimensions 
div-by-max: [(-2.0, 2), (-1.0, 1377), (0.0, 7263), (1.0, 1358)]
scaled-by-2:[(-1.0, 695), (0.0, 8607), (1.0, 698)]

 10 dimensions 
div-by-max: [(-2.0, 13), (-1.0, 1520), (0.0, 6873), (1.0, 1580), (2.0, 14)]
scaled-by-2:[(-1.0, 692), (0.0, 8605), (1.0, 703)]

 20 dimensions 
div-by-max: [(-1.0, 1285), (0.0, 7310), (1.0, 1405)]
scaled-by-2:[(-1.0, 555), (0.0, 8822), (1.0, 623)]

--

___
Python tracker 

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



[issue41261] 3.9-dev SEGV in object_recursive_isinstance in ast.literal_eval

2020-08-09 Thread Arcadiy Ivanov


Arcadiy Ivanov  added the comment:

>From what I understand an RC1 is being released for 3.9. This is a gentle 
>reminder that there is no fix for this yet.

--

___
Python tracker 

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



[issue41261] 3.9-dev SEGV in object_recursive_isinstance in ast.literal_eval

2020-08-09 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue41500] InterpolationSyntaxError reading the (windows) environment with unresolved environment variables

2020-08-09 Thread Pauser


Pauser  added the comment:

Thanks a lot for the fast response ... did not expect this ;)
I have looked into many threads and I will try to implement my own 
interpolation to use the current basic interpolation and process the current 
environment.

So thanks a lot, stay healthy and have a nice day!

--

___
Python tracker 

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