[issue41773] Clarify handling of infinity and nan in random.choices

2020-09-13 Thread Ram Rachum


Ram Rachum  added the comment:

Speaking of that check, the error message is 'Total of weights must be greater 
than zero', which is a bit misleading. 'All weights must be positive or zero' 
would be more accurate. Would you like a PR for that?

--

___
Python tracker 

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



[issue41773] Clarify handling of infinity and nan in random.choices

2020-09-13 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

> 'All weights must be positive or zero' would be more accurate.

That's not what the test checks.  It literally checks for "total <= 0.0".

--

___
Python tracker 

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



[issue41773] Clarify handling of infinity and nan in random.choices

2020-09-13 Thread Ram Rachum


Ram Rachum  added the comment:

Yes, but the docs say that the weights are assumed to be nonnegative. I'm 
assuming the check is done on total because it'd be expensive to do it on each 
item. A user reading that error message could understand that it's okay for 
weights to be negative as long as the total isn't, which as far as I understand 
isn't true.

--

___
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-13 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I ran turtledemo and played with colormixer a few years ago, so slightly older 
Windows should not matter.  Was Python installed with the python.org installer? 
 (The appdate path suggests so.)  Your single-user versus my all-user install 
should not matter.

Please run 'python -m turtle'.  Demo should end with 'click me' to end.

Run the test suite with 'python -m test -ugui  -j0'.  I should be under 5 min 
running in parallel.  I expect the locale tests to fail.  And test_winconsoleio 
may hang.  If/when it is the last test running, stop with control-C.  Does 
anything else fail?

--

___
Python tracker 

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



[issue41773] Clarify handling of infinity and nan in random.choices

2020-09-13 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

>  A user reading that error message could understand that it's 
> okay for weights to be negative as long as the total isn't, 
> which as far as I understand isn't true.

This seems like another made up issue.  One could also argue the opposite case 
that if the error message were changed, a user could reasonably assume that the 
function was in fact checking all the weights individually (which it isn't).

The docs already state that the function assumes non-negative inputs, which is 
in fact what it does.  The function already has reasonable error reporting for 
common missteps.  Also, it behaves gracefully if someone is nudging weights up 
and down in a way that goes slightly negative due to rounding.  Beyond that, 
we're hitting the limits of what it can or should do when fed garbage inputs 
for ill-posed problems.

It's time for this one die now.  It's already eaten an hour of my development 
time explaining how infinities and nans flow through functions and explaining 
what the Python norms are for letting them flow through versus treating them as 
errors.

--

___
Python tracker 

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



[issue41773] Clarify handling of infinity and nan in random.choices

2020-09-13 Thread Ram Rachum


Ram Rachum  added the comment:

Thanks for your time, and I accept your decision here. I'd appreciate it though 
if you wouldn't use the term "made up issue" on something that happened to me a 
couple of days ago. Our opposing positions each have their pros and cons, and 
it makes sense to me that your approach has more pros than mine. Ease up on the 
"It's time for this one die now" though.

--

___
Python tracker 

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



[issue34750] locals().update doesn't work in Enum body, even though direct assignment to locals() does

2020-09-13 Thread Antony Lee


Antony Lee  added the comment:

To be honest, I don't really remember what exact use case I had in my mind 2 
years ago (as I probably worked around it in one way or another).  However, one 
example that I can think of (and that I have actually implemented before) is 
auto-conversion of C #defines from a C header file to a Python-level enum (e.g. 
for semi-automatic generation of a ctypes wrapper):

# A general header parser (untested, just an example)
def parse_defines(header_file):
d = {}
for line in header_file:
if line.startswith("#define"):
_, k, v = line.split()
d[k] = int(v)
return d

# Now wrapping a specific C library
foo_defines = parse_defines("foo.h")

class Foo(Enum):
locals().update({k: v for k, v in foo_defines.items() if 
k.startswith("FOO_")})

def some_method(self):
...
# e.g. call a C function that takes a FOO_* as parameter.

Obviously I could always just replace the method by a free function, but that's 
true for (nearly) all methods.  In other words, it seems a bit "unfair" that it 
is easy to define methods on enums where all options are explicitly listed, but 
very hard(?) to do so on enums with programatically defined options.

--

___
Python tracker 

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



[issue41776] Revise example of "continue" in the tutorial documentation

2020-09-13 Thread AmirHossein Haji Mohammad Sadegh


New submission from AmirHossein Haji Mohammad Sadegh :

It's not wrong but in the example for "continue" in the tutorial, the code 
prints "Found an even number" for even numbers and "Found a number" for odd 
numbers. Maybe it would be better if we print "Found an odd number" for odd 
numbers. Like this:

for num in range(2, 10):
if num % 2 == 0:
print("Found an even number", num)
continue
print("Found an odd number", num)

Found an even number 2
Found an odd number 3
Found an even number 4
Found an odd number 5
Found an even number 6
Found an odd number 7
Found an even number 8
Found an odd number 9

--
assignee: docs@python
components: Documentation
messages: 376834
nosy: amirrossein, docs@python
priority: normal
severity: normal
status: open
title: Revise example of "continue" in the tutorial documentation
type: performance

___
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-13 Thread Tushar Sadhwani

Tushar Sadhwani  added the comment:

Ran the following tests on Python 3.8.5 32bit

colormixer crashed with the same error,
python -m  turtle did not crash

Here's the output of the test suite:

PS C:\Users\tusha\AppData\Local\Programs\Python\Python38-32> .\python.exe -m 
test -ugui -j0
== CPython 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:43:08) [MSC v.1926 32 
bit (Intel)]
== Windows-10-10.0.19041-SP0 little-endian
== cwd: C:\Users\tusha\AppData\Local\Temp\test_python_5700
== CPU count: 4
== encodings: locale=cp1252, FS=utf-8
0:00:00 Run tests in parallel using 6 child processes
0:00:00 [  1/423] test_types passed
0:00:01 [  2/423] test_opcodes passed
0:00:01 [  3/423] test_grammar passed
0:00:01 [  4/423] test_dict passed
0:00:01 [  5/423] test_builtin passed
0:00:02 [  6/423] test_exceptions passed
0:00:02 [  7/423] test___future__ passed
0:00:03 [  8/423/1] test__locale failed
test test__locale failed -- multiple errors occurred; run in verbose mode for 
details
0:00:03 [  9/423/1] test__opcode passed
0:00:03 [ 10/423/1] test___all__ passed
0:00:04 [ 11/423/1] test__osx_support passed
0:00:04 [ 12/423/1] test_abc passed
0:00:04 [ 13/423/1] test_abstract_numbers passed
0:00:04 [ 14/423/1] test_doctest2 passed
0:00:04 [ 15/423/1] test_doctest passed
0:00:05 [ 16/423/1] test_aifc passed
0:00:06 [ 17/423/1] test_array passed
0:00:06 [ 18/423/1] test_asdl_parser skipped
test_asdl_parser skipped -- test irrelevant for an installed Python
0:00:07 [ 19/423/1] test_argparse passed
0:00:07 [ 20/423/1] test_unittest passed
0:00:08 load avg: 27.20 [ 21/423/1] test_asyncgen passed
0:00:08 load avg: 27.11 [ 22/423/1] test_ast passed
0:00:09 load avg: 27.11 [ 23/423/1] test_atexit passed
0:00:09 load avg: 27.11 [ 24/423/1] test_audioop passed
0:00:09 load avg: 26.88 [ 25/423/1] test_asyncore passed
0:00:09 load avg: 26.88 [ 26/423/1] test_augassign passed
0:00:10 load avg: 26.88 [ 27/423/1] test_support passed
0:00:10 load avg: 26.88 [ 28/423/1] test__xxsubinterpreters passed
0:00:10 load avg: 26.88 [ 29/423/1] test_baseexception passed
0:00:10 load avg: 26.90 [ 30/423/1] test_bigaddrspace passed
0:00:10 load avg: 26.90 [ 31/423/1] test_base64 passed
0:00:10 load avg: 26.90 [ 32/423/1] test_bdb passed
0:00:11 load avg: 26.90 [ 33/423/1] test_bigmem passed
0:00:11 load avg: 26.90 [ 34/423/1] test_binhex passed
0:00:11 load avg: 26.90 [ 35/423/1] test_binascii passed
0:00:11 load avg: 26.90 [ 36/423/1] test_binop passed
0:00:11 load avg: 27.00 [ 37/423/1] test_bool passed
0:00:11 load avg: 27.00 [ 38/423/1] test_bisect passed
0:00:11 load avg: 27.00 [ 39/423/2] test_buffer failed
test test_buffer crashed -- Traceback (most recent call last):
  File 
"C:\Users\tusha\AppData\Local\Programs\Python\Python38-32\lib\test\libregrtest\runtest.py",
 line 270, in _runtest_inner
refleak = _runtest_inner2(ns, test_name)
  File 
"C:\Users\tusha\AppData\Local\Programs\Python\Python38-32\lib\test\libregrtest\runtest.py",
 line 221, in _runtest_inner2
the_module = importlib.import_module(abstest)
  File 
"C:\Users\tusha\AppData\Local\Programs\Python\Python38-32\lib\importlib\__init__.py",
 line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1014, in _gcd_import
  File "", line 991, in _find_and_load
  File "", line 975, in _find_and_load_unlocked
  File "", line 671, in _load_unlocked
  File "", line 783, in exec_module
  File "", line 219, in _call_with_frames_removed
  File 
"C:\Users\tusha\AppData\Local\Programs\Python\Python38-32\lib\test\test_buffer.py",
 line 44, in 
from numpy import ndarray as numpy_array
  File 
"C:\Users\tusha\AppData\Roaming\Python\Python38\site-packages\numpy\__init__.py",
 line 138, in 
from . import _distributor_init
  File 
"C:\Users\tusha\AppData\Roaming\Python\Python38\site-packages\numpy\_distributor_init.py",
 line 26, in 
WinDLL(os.path.abspath(filename))
  File 
"C:\Users\tusha\AppData\Local\Programs\Python\Python38-32\lib\ctypes\__init__.py",
 line 373, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 is not a valid Win32 application
0:00:13 load avg: 27.05 [ 40/423/2] test_audit passed
0:00:13 load avg: 27.05 [ 41/423/2] test_bytes passed
0:00:14 load avg: 27.21 [ 42/423/2] test_c_locale_coercion passed
0:00:14 load avg: 27.21 [ 43/423/2] test_call passed
0:00:19 load avg: 27.26 [ 44/423/2] test_calendar passed
0:00:19 load avg: 27.26 [ 45/423/2] test_bz2 passed
0:00:19 load avg: 27.26 [ 46/423/2] test_cgi passed
0:00:19 load avg: 26.88 [ 47/423/2] test_charmapcodec passed
0:00:19 load avg: 26.88 [ 48/423/2] test_cgitb passed
0:00:20 load avg: 26.88 [ 49/423/2] test_class passed
0:00:20 load avg: 26.88 [ 50/423/2] test_clinic skipped
test_clinic skipped -- 
'C:\\Users\\tusha\\AppData\\Local\\Programs\\Python\\Python38-32\\Tools\\clinic'
 path does not exist
0:00:20 load avg: 26.88 [ 51/423/2] test_cmath passed
0:00:20 load avg: 26.88 [ 52/423/2] test_cmd passed
0:00:20 load avg: 26.60

[issue41777] When using `python -bb`, `struct.calcsize` raises a warning when used with str argument after being used with bytes (might be a larger problem with dicts)

2020-09-13 Thread Edson Tadeu M. Manoel


New submission from Edson Tadeu M. Manoel :

Here is the inconsistent behavior, when running with `python -bb` (or just 
`python -b`), caused by an internal cache:

>>> import struct
>>> struct.calcsize(b'!d')  # cache for '!d' uses bytes
8
>>> struct.calcsize('!d')  # so there's a warning when trying to use str
Traceback (most recent call last):
  File "", line 1, in 
BytesWarning: Comparison between bytes and string
>>> struct.calcsize('>d')  # cache for '>d' uses str
8
>>> struct.calcsize(b'>d')  # so now the warning is inverted, it shows up 
when trying to use bytes
Traceback (most recent call last):
  File "", line 1, in 
BytesWarning: Comparison between bytes and string
>>> struct.calcsize('>d')  # no problem when using str
8

Note that this might be caused by a possible larger problem when dealing with 
keys of different string types in dicts under `python -b` (or `python -bb`):

$ python
Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> d={}
>>> d['a']=1
>>> d[b'a']=2
>>> d['a']
1
>>> d[b'a']
2


$ python -bb
Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> d={}
>>> d['a']=1
>>> d[b'a']=2
Traceback (most recent call last):
  File "", line 1, in 

I'm not sure if this warning is intentional, since in Python 3 there seems to 
be no special reason for dicts to try to compare 'a' with b'a' (other than 
possible implementation details).


Note: this is from an issue found here: 
https://github.com/pytest-dev/pytest-xdist/issues/596

--
components: Interpreter Core, Library (Lib)
messages: 376836
nosy: tadeu
priority: normal
severity: normal
status: open
title: When using `python -bb`, `struct.calcsize` raises a warning when used 
with str argument after being used with bytes (might be a larger problem with 
dicts)
type: behavior
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



[issue41777] When using `python -bb`, `struct.calcsize` raises a warning when used with str argument after being used with bytes (might be a larger problem with dicts)

2020-09-13 Thread Florian Bruhin


Florian Bruhin  added the comment:

Taking the freedom of adding people involved in the `struct` module to the nosy 
list.

--
nosy: +The Compiler, mark.dickinson, meador.inge

___
Python tracker 

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



[issue41777] When using `python -bb`, `struct.calcsize` raises a warning when used with str argument after being used with bytes (might be a larger problem with dicts)

2020-09-13 Thread Edson Tadeu M. Manoel


Edson Tadeu M. Manoel  added the comment:

> I'm not sure if this warning is intentional, since in Python 3 there seems to 
> be no special reason for dicts to try to compare 'a' with b'a' (other than 
> possible implementation details).

Okay, there's one special reason, it's the fact that 'a' and b'a' have the same 
hash. I'm not sure about the expected behavior, though.

--

___
Python tracker 

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



[issue41777] When using `python -bb`, `struct.calcsize` raises a warning when used with str argument after being used with bytes (might be a larger problem with dicts)

2020-09-13 Thread Florian Bruhin


Florian Bruhin  added the comment:

Ah, also see https://bugs.python.org/issue21071#msg292409 where the same thing 
was mentioned as part of another issue as well.

After some discussions in the Python IRC channel, I guess it's acceptable for 
dicts to raise a ByteWarning here - after all, there *is* a comparison between 
str/bytes going on here. It might be an implementation detail, but so is e.g.   
b'a' in ['a']   and I'd certainly expect that to give me a warning/error with 
-b/-bb.

So I guess if struct continues to accept bytes as format string, it should 
probably decode them to ASCII or something before interacting with the cache?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue33239] tempfile module: functions with the 'buffering' option are incorrectly documented

2020-09-13 Thread Sergey Fedoseev


Change by Sergey Fedoseev :


--
nosy: +sir-sigurd
nosy_count: 4.0 -> 5.0
pull_requests: +21279
pull_request: https://github.com/python/cpython/pull/21763

___
Python tracker 

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



[issue33239] tempfile module: functions with the 'buffering' option are incorrectly documented

2020-09-13 Thread miss-islington


miss-islington  added the comment:


New changeset b48389d95093c3f912549add8da339edc164bf0d by Sergey Fedoseev in 
branch 'master':
bpo-33239: Fix default value of 'buffering' parameter in docs of tempfile.* 
functions (GH-21763)
https://github.com/python/cpython/commit/b48389d95093c3f912549add8da339edc164bf0d


--
nosy: +miss-islington

___
Python tracker 

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



[issue33239] tempfile module: functions with the 'buffering' option are incorrectly documented

2020-09-13 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21280
pull_request: https://github.com/python/cpython/pull/5

___
Python tracker 

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



[issue33239] tempfile module: functions with the 'buffering' option are incorrectly documented

2020-09-13 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21281
pull_request: https://github.com/python/cpython/pull/6

___
Python tracker 

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



[issue33239] tempfile module: functions with the 'buffering' option are incorrectly documented

2020-09-13 Thread Vinay Sajip


Change by Vinay Sajip :


--
versions: +Python 3.10, Python 3.9 -Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue31369] re.RegexFlag is not included in __all__, makes type inference less useful

2020-09-13 Thread Guido van Rossum


Guido van Rossum  added the comment:

What it prints is irrelevant to static checking.

Currently the typeshed stub for the code already exports RegexFlag, so that the 
following passes mypy but fails at runtime:
```
from re import *

def foo(flag: RegexFlag):
return match("[a-z]+", "ABC", flag)

print(foo(IGNORECASE))
print(foo(VERBOSE))
```
I think it's good to add it to `__all__` so this code will not put the type 
checker to shame, and it would be good to document it.

One thing I discovered when developing this example: there doesn't seem to be a 
flag to represent 0 (zero), i.e. "no flags".  And foo(0) is a type error (even 
though it works fine at runtime).

--

___
Python tracker 

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



[issue33239] tempfile module: functions with the 'buffering' option are incorrectly documented

2020-09-13 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset bf50b0e80a8a0d651af2f953b662eeadd27c7c93 by Miss Islington (bot) 
in branch '3.8':
bpo-33239: Fix default value of 'buffering' parameter in docs of tempfile.* 
functions (GH-21763) (GH-6)
https://github.com/python/cpython/commit/bf50b0e80a8a0d651af2f953b662eeadd27c7c93


--
nosy: +vinay.sajip

___
Python tracker 

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



[issue33239] tempfile module: functions with the 'buffering' option are incorrectly documented

2020-09-13 Thread Vinay Sajip


Change by Vinay Sajip :


--
versions:  -Python 3.7

___
Python tracker 

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



[issue33239] tempfile module: functions with the 'buffering' option are incorrectly documented

2020-09-13 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset c978be283db768743d995f04414c65439a632bdd by Miss Islington (bot) 
in branch '3.9':
bpo-33239: Fix default value of 'buffering' parameter in docs of tempfile.* 
functions (GH-21763) (GH-5)
https://github.com/python/cpython/commit/c978be283db768743d995f04414c65439a632bdd


--

___
Python tracker 

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



[issue33239] tempfile module: functions with the 'buffering' option are incorrectly documented

2020-09-13 Thread Vinay Sajip


Change by Vinay Sajip :


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



[issue37479] IntEnum __format__ behavior can't be overridden through __str__

2020-09-13 Thread Ethan Furman


Change by Ethan Furman :


--
pull_requests: +21282
pull_request: https://github.com/python/cpython/pull/7

___
Python tracker 

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



[issue37479] IntEnum __format__ behavior can't be overridden through __str__

2020-09-13 Thread Ethan Furman


Change by Ethan Furman :


--
pull_requests: +21283
pull_request: https://github.com/python/cpython/pull/8

___
Python tracker 

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



[issue40352] SocketHandler silently drops log messages on re-connect

2020-09-13 Thread Vinay Sajip


Vinay Sajip  added the comment:

@Oleg In the interests of clarity, can you please give more detail about the 
network topology and sequence of events in your use case? Where the machine 
with the SocketHandler is, where the socket server is that it's sending to, 
where the TCP balancer comes into it, what exactly the timeout is for, and what 
is the precise cause of the socket errors {e.g. whether a failure occurs after 
a connection has been made and some events have been successfully logged - if 
so, what exactly causes the failure)?

--

___
Python tracker 

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



[issue38967] Improve error message in enum for member name surrounded by underscore.

2020-09-13 Thread miss-islington


miss-islington  added the comment:


New changeset 2ec67526a6ed3312f4fac22b527ca0ff161531b8 by Zackery Spytz in 
branch 'master':
bpo-38967: Improve the error msg for reserved _sunder_ names in enum (GH-18370)
https://github.com/python/cpython/commit/2ec67526a6ed3312f4fac22b527ca0ff161531b8


--
nosy: +miss-islington

___
Python tracker 

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



[issue38967] Improve error message in enum for member name surrounded by underscore.

2020-09-13 Thread Ethan Furman

Ethan Furman  added the comment:

Thank you, Rubén, for the patch.

Thank you, Karthikeyan, for not making me backport it.  :-)

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



[issue19968] Python does not play well with 'stow'.

2020-09-13 Thread Vinay Sajip


Vinay Sajip  added the comment:

Closing, as the OP said "Since I can work around it easily enough, I'm set for 
now."

--
resolution:  -> not a bug
stage:  -> 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



[issue37479] IntEnum __format__ behavior can't be overridden through __str__

2020-09-13 Thread Ethan Furman


Ethan Furman  added the comment:


New changeset 38c8d3930eb872258a82339bcba3bce1d0e3ac2c by Ethan Furman in 
branch '3.8':
[3.8] bpo-37479: Enum - use correct __format__ (GH-14545)
https://github.com/python/cpython/commit/38c8d3930eb872258a82339bcba3bce1d0e3ac2c


--

___
Python tracker 

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



[issue41778] Change a punctuation on documentation

2020-09-13 Thread Emmanuel Arias


Change by Emmanuel Arias :


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

___
Python tracker 

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



[issue41778] Change a punctuation on documentation

2020-09-13 Thread Emmanuel Arias


New submission from Emmanuel Arias :

On this paragrapah the clarification about IIS7 seems there's not
connection beacuase is in other sentence. Move the punctuation
to connect both the last sentence with the information in the
parenthesis.

I think the NEWS is not necessary here.

--
components: email
messages: 376850
nosy: barry, eamanu, r.david.murray
priority: normal
severity: normal
status: open
title: Change a punctuation on documentation
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



[issue37479] IntEnum __format__ behavior can't be overridden through __str__

2020-09-13 Thread Ethan Furman


Ethan Furman  added the comment:

Thank you, Jason!

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

___
Python tracker 

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



[issue22256] pyvenv should display a progress indicator while creating an environment

2020-09-13 Thread Vinay Sajip


Vinay Sajip  added the comment:

Can we close this? I guess this enhancement is no longer needed.

--

___
Python tracker 

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



[issue12174] Multiprocessing logging levels unclear

2020-09-13 Thread Vinay Sajip


Vinay Sajip  added the comment:

I'd like to close this issue as out of date - anyone object?

--

___
Python tracker 

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



[issue28499] Logging module documentation needs a rework.

2020-09-13 Thread Vinay Sajip


Vinay Sajip  added the comment:

As there's (AFAIK) been no progress on this, I'd like to close this issue. Any 
objections?

--

___
Python tracker 

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



[issue40721] PEP0435 (enums) -- there is no standard on enum item letters case

2020-09-13 Thread Ethan Furman


Ethan Furman  added the comment:

For Python code at least, Guido has proclaimed:

https://mail.python.org/pipermail/python-ideas/2016-September/042340.html

I recommend naming all enums UPPER_CASE. They're constants (within a
namespace) and that's the rule for constants. It's helpful for the
reader of the code to realize what they are when passed around -- they
have a similar status to literal constants, you know they stand for a
unique value and not for some computed quantity.

--

___
Python tracker 

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



[issue30842] pyenv activate for bash and tcsh

2020-09-13 Thread Vinay Sajip


Vinay Sajip  added the comment:

If no PR is forthcoming for this, I'd like to close this issue as out of date. 
Any objections?

--

___
Python tracker 

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



[issue41778] Change a punctuation on documentation

2020-09-13 Thread miss-islington


miss-islington  added the comment:


New changeset 94bfdee25db31941b187591ae5ae9bf3ed431090 by Emmanuel Arias in 
branch 'master':
bpo-41778: Change a punctuation on documentation. (GH-9)
https://github.com/python/cpython/commit/94bfdee25db31941b187591ae5ae9bf3ed431090


--
nosy: +miss-islington

___
Python tracker 

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



[issue41778] Change a punctuation on documentation

2020-09-13 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21285
pull_request: https://github.com/python/cpython/pull/22230

___
Python tracker 

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



[issue40721] PEP0435 (enums) -- there is no standard on enum item letters case

2020-09-13 Thread Ethan Furman


Change by Ethan Furman :


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

___
Python tracker 

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



[issue41776] Revise example of "continue" in the tutorial documentation

2020-09-13 Thread Eric V. Smith


Eric V. Smith  added the comment:

I think that's a good change. It makes it clear when reading the source that 
the print statement at the end of the loop is only executed for odd numbers.

Sure, you know this if you execute the code, or if you know how python for 
loops and continue work. But since this is a tutorial, I think being more 
explicit is clearer.

--
keywords: +easy, newcomer friendly
nosy: +eric.smith

___
Python tracker 

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



[issue41778] Change a punctuation on documentation

2020-09-13 Thread Eric V. Smith


Eric V. Smith  added the comment:


New changeset d09bead93990eed26ecb8fcd02a8a3f6e8fa73b7 by Miss Islington (bot) 
in branch '3.8':
bpo-41778: Change a punctuation on documentation. (GH-9) (GH-22230)
https://github.com/python/cpython/commit/d09bead93990eed26ecb8fcd02a8a3f6e8fa73b7


--
nosy: +eric.smith

___
Python tracker 

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



[issue41778] Change a punctuation on documentation

2020-09-13 Thread Emmanuel Arias


Change by Emmanuel Arias :


--
pull_requests: +21287
pull_request: https://github.com/python/cpython/pull/22232

___
Python tracker 

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



[issue41778] Change a punctuation on documentation

2020-09-13 Thread Eric V. Smith


Eric V. Smith  added the comment:


New changeset b3d11abcbc0fcf794f9be29aa78bb3d100a54960 by Emmanuel Arias in 
branch '3.9':
[3.9] bpo-41778: Change a punctuation on documentation. (GH-9) (GH-22232)
https://github.com/python/cpython/commit/b3d11abcbc0fcf794f9be29aa78bb3d100a54960


--

___
Python tracker 

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



[issue41778] Change a punctuation on documentation

2020-09-13 Thread Eric V. Smith


Change by Eric V. Smith :


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



[issue41776] Revise example of "continue" in the tutorial documentation

2020-09-13 Thread Neeraj


Change by Neeraj :


--
keywords: +patch
nosy: +neerajsamtani
nosy_count: 3.0 -> 4.0
pull_requests: +21288
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/22234

___
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-13 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I should have suggested that you upload the test results as a file.  Anyway, 8 
errors: the two locale failures I expected (failures #1, #6), test_distutils 
(#5, multiple failures), test_compileall (#4), and failures for buffer (#2), 
copy_reg (#3), pickle (#7), and pickletools (#8) due to an OSError trying to 
import numpy.
  ...
  File 
"C:\Users\tusha\AppData\Local\Programs\Python\Python38-32\lib\test\test_buffer.py",
 line 44, in 
from numpy import ndarray as numpy_array
  File 
"C:\Users\tusha\AppData\Roaming\Python\Python38\site-packages\numpy\__init__.py",
 line 138, in 
from . import _distributor_init
  File 
"C:\Users\tusha\AppData\Roaming\Python\Python38\site-packages\numpy\_distributor_init.py",
 line 26, in 
WinDLL(os.path.abspath(filename))
  File 
"C:\Users\tusha\AppData\Local\Programs\Python\Python38-32\lib\ctypes\__init__.py",
 line 373, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 is not a valid Win32 application

The buffer test catches ImportError but not OSError; I suspect the others are 
similar.  I consider this a bug in the tests and will try to open another issue.

Just curious: do commands 'python -c "import numpy"' and 'python -c "from numpy 
import ndarray as numpy_array"' work?

I may ask on python-list for other users to run/test colormixer on installed 
python.

--

___
Python tracker 

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



[issue19081] zipimport behaves badly when the zip file changes while the process is running

2020-09-13 Thread Daniel Jewell


Daniel Jewell  added the comment:

In playing with Lib/zipfile.py and Lib/zipimport.py, I noticed that zipfile has 
supported opportunistic loading of bz2/lzma for ~9 years. However, zipimport 
assumes only zlib will be used. (Yet, zipfile.PyZipFile will happily create 
zlib/bz2/lzma ZIP archives ... zipfile.PyZipFile('mod.zip', 'w', 
compression=zipfile.ZIP_LZMA) for example.)

At first I wondered why zipimport essentially duplicates a lot from zipfile but 
then realized (after reading some of the commit messages around the pure-python 
rewrite of zipimport a few years ago) that since zipimport is called as part of 
startup, there's a need to avoid importing certain modules. 

I'm wondering if this specific issue with zipimport is possibly more of an 
indicator of a larger issue? 

Specifically:

* The duplication of code between zipfile and zipimport seems like a potential 
source of bugs - I get the rationale but perhaps the "base" ZIP functionality 
ought to be refactored out of both zipimport and zipfile so they can share... 
And I mean the low-level stuff (compressor, checksum, etc.). Zipfile definitely 
imports more than zipimport but I haven't looked at what those imports are 
doing extensively. 

Ultimately: the behavior of the new ZipImport appears to be, essentially, the 
same as zipimport.c:

Per PEP-302 [https://www.python.org/dev/peps/pep-0302/], zipimport.zipimporter 
gets registered into sys.path_hooks. When you import anything in a zip file, 
all of the paths get cached into sys.path_importer_cache as 
zipimport.zipimporter objects.

The zipimporter objects, when instantiated, run zipimport._read_directory() 
which returns a low level dict with each key being a filename (module) and each 
value being a tuple of low-level metadata about that file including the byte 
offset into the zip file, time last modified, CRC, etc. (See zipimport.py:330 
or so). This is then stored in zipimporter._files.

Critically, the contents of the zip file are not decompressed at this stage: 
only the metadata of what is in the zip file and (most importantly) where it 
is, is stored in memory: only when a module is actually called for loading is 
the data read utilizing the cached metadata. There appears to be no provision 
for (a) verifying that the zip file itself hasn't changed or (b) refreshing the 
metadata. So it's no surprise really that this error is happening: the cached 
file contents metadata instructs zipimporter to decompress a specific byte 
offset in the zip file *when an import is called*. If the zip file changes on 
disk between the metadata scan (e.g. first read of the zip file) and actual 
loading, bam: error.

There appear to be several ways to fix this ... I'm not sure of the best:

* Possibly lock the ZIP file on first import so it doesn't change (this 
presents many new issues)
* Rescan the ZIP before each import; but the point of caching the contents 
appears to be the avoidance of this
* Hash the entire file and compare (expensive CPU-wise)
* Rely on modified time? e.g. cache the whole zip modified time at read and 
then if that's not the same invalidate the cache and rescan
* Cache the entire zip file into memory at first load - this has some 
advantages (can store the ZIP data compressed; would make the import all or 
nothing; faster?) But then there would need to be some kind of variable to 
limit the size/total size - it becomes a memory hog...

--
nosy: +danieljewell

___
Python tracker 

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



[issue37149] link to John Shipman's Tkinter 8.5 documentation fails: website no longer available

2020-09-13 Thread Ned Deily


Ned Deily  added the comment:

In general, we do not backport documentation changes to branches in the 
security-fix phase of their life cycles and their online versions are only 
updated for a release.

--
status: open -> closed
versions:  -Python 3.6, Python 3.7

___
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-13 Thread Jeremy Kloth


Jeremy Kloth  added the comment:

The error from importing numpy comes from attempting to load a 64-bit DLL in a 
32-bit process.  This stems from the shared user install directory (now fixed 
in 3.9, I believe).

There is most likely a mix of 32- and 64-bit extensions in the user install 
directory that are causing issues.  To test this, Tushar, please rename/move 
the '%APPDATA%\Python\Python38' directory.

--
nosy: +jkloth

___
Python tracker 

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



[issue39883] Use BSD0 license for code in docs

2020-09-13 Thread Ned Deily


Change by Ned Deily :


--
nosy: +ned.deily
nosy_count: 6.0 -> 7.0
pull_requests: +21290
pull_request: https://github.com/python/cpython/pull/22235

___
Python tracker 

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



[issue39883] Use BSD0 license for code in docs

2020-09-13 Thread Ned Deily


Ned Deily  added the comment:


New changeset 7dbbea75cec27a48b68cc07c23f3f317cacf4a16 by Ned Deily in branch 
'master':
bpo-39883: Update macOS installer copy of LICENSE. (GH-22235)
https://github.com/python/cpython/commit/7dbbea75cec27a48b68cc07c23f3f317cacf4a16


--

___
Python tracker 

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



[issue39883] Use BSD0 license for code in docs

2020-09-13 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21292
pull_request: https://github.com/python/cpython/pull/22237

___
Python tracker 

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



[issue39883] Use BSD0 license for code in docs

2020-09-13 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21291
pull_request: https://github.com/python/cpython/pull/22236

___
Python tracker 

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



[issue41513] High accuracy math.hypot()

2020-09-13 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
pull_requests: +21293
pull_request: https://github.com/python/cpython/pull/22238

___
Python tracker 

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



[issue39883] Use BSD0 license for code in docs

2020-09-13 Thread miss-islington


miss-islington  added the comment:


New changeset 3c618d0a073ea6863d1b4e2616e284308fbc12fc by Miss Islington (bot) 
in branch '3.8':
bpo-39883: Update macOS installer copy of LICENSE. (GH-22235)
https://github.com/python/cpython/commit/3c618d0a073ea6863d1b4e2616e284308fbc12fc


--

___
Python tracker 

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



[issue38486] Dead links in mailbox doc

2020-09-13 Thread Zackery Spytz


Change by Zackery Spytz :


--
keywords: +patch
nosy: +ZackerySpytz
nosy_count: 6.0 -> 7.0
pull_requests: +21294
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/22239

___
Python tracker 

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



[issue39883] Use BSD0 license for code in docs

2020-09-13 Thread Ned Deily


Ned Deily  added the comment:


New changeset bf7d4d039c46232262a0f736f12761b085a6e7a8 by Miss Islington (bot) 
in branch '3.9':
bpo-39883: Update macOS installer copy of LICENSE. (GH-22235) (GH-22236)
https://github.com/python/cpython/commit/bf7d4d039c46232262a0f736f12761b085a6e7a8


--

___
Python tracker 

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



[issue41757] weakmethod's ref is deleted before weakref's garbage-collect callback is executed

2020-09-13 Thread Ned Deily


Change by Ned Deily :


--
nosy: +fdrake, nascheme -ned.deily, ronaldoussoren

___
Python tracker 

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



[issue41757] weakmethod's ref is deleted before weakref's garbage-collect callback is executed

2020-09-13 Thread Ned Deily


Change by Ned Deily :


--
components: +Library (Lib) -macOS

___
Python tracker 

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



[issue41779] add BLOB photo to sqlite3 python

2020-09-13 Thread Ali Zaeri


New submission from Ali Zaeri :

Hi this is my problem that I share it in stackowerflow hope you can help me:

https://stackoverflow.com/q/63763089/14168432

--
messages: 376868
nosy: alizaerialora
priority: normal
severity: normal
status: open
title: add BLOB photo to sqlite3 python

___
Python tracker 

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



[issue41757] weakmethod's ref is deleted before weakref's garbage-collect callback is executed

2020-09-13 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +pablogsal

___
Python tracker 

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



[issue41513] High accuracy math.hypot()

2020-09-13 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 457d4e97de0369bc786e363cb53c7ef3276fdfcd by Raymond Hettinger in 
branch 'master':
bpo-41513: Add docs and tests for hypot() (GH-22238)
https://github.com/python/cpython/commit/457d4e97de0369bc786e363cb53c7ef3276fdfcd


--

___
Python tracker 

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



[issue41757] weakmethod's ref is deleted before weakref's garbage-collect callback is executed

2020-09-13 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Hi Giordon and thanks for your issue.

Could you please check if you can reproduce this behaviour with Python3.8 and 
with the current master? We have some new
code that may be preventing this to happen:

https://github.com/python/cpython/blob/master/Modules/gcmodule.c#L780

Unfortunately, without a simpler reproducer is difficult to tell what's going 
on so is not possible for me to say
that this is fixed in current master.

--

___
Python tracker 

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



[issue41779] add BLOB photo to sqlite3 python

2020-09-13 Thread Eric V. Smith


Eric V. Smith  added the comment:

The bug tracker is not the correct place to request help on using Python. You 
might try the python-list mailing list. You can find information on it at 
https://mail.python.org/mailman/listinfo/python-list. Or you might wait until 
someone answers your Stack Overflow question.

I'm going to leave this open for a while on the off chance that there's 
actually some bug in Python related to your problem.

--
nosy: +eric.smith

___
Python tracker 

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



[issue41757] weakmethod's ref is deleted before weakref's garbage-collect callback is executed

2020-09-13 Thread Pablo Galindo Salgado

Pablo Galindo Salgado  added the comment:

Indeed, I cannot reproduce this with Pyhon3.8:

(vev) ❯ python -m pytest tests/test_validation.py - -k 
"test_optimizer_stitching" -v
=
 test session starts 
==
platform darwin -- Python 3.8.2, pytest-3.10.1, py-1.9.0, pluggy-0.13.1 -- 
/Users/pgalindo3/github/python/master/vev/bin/python

 cachedir: .pytest_cache
Matplotlib: 3.3.1
Freetype: 2.6.1 


benchmark: 3.2.3 (defaults: timer=time.perf_counter disable_gc=False 
min_rounds=5 min_time=0.05 max_time=1.0 calibration_precision=10 
warmup=False warmup_iterations=10)
rootdir: /Users/pgalindo3/github/python/master/pyhf, inifile: pytest.ini
plugins: mpl-0.11, mock-3.3.1, cov-2.10.1, console-scripts-0.2.0, 
benchmark-3.2.3 

  collected 26 items / 18 deselected

tests/test_validation.py::test_optimizer_stitching[scipy-numpy_backend] PASSED  

 [ 12%] 
tests/test_validation.py::test_optimizer_stitching[scipy-jax_backend] PASSED

 [ 25%]
tests/test_validation.py::test_optimizer_stitching[scipy-tensorflow_backend] 
PASSED  
[ 
37%]
tests/test_validation.py::test_optimizer_stitching[scipy-pytorch_backend] 
PASSED  
   
[ 50%]
tests/test_validation.py::test_optimizer_stitching[minuit-numpy_backend] PASSED 

 [ 62%]
tests/test_validation.py::test_optimizer_stitching[minuit-jax_backend] PASSED   

 [ 75%]
tests/test_validation.py::test_optimizer_stitching[minuit-tensorflow_backend] 
PASSED  
   [ 
87%]
tests/test_validation.py::test_optimizer_stitching[minuit-pytorch_backend] 
PASSED

=
 8 passed, 18 deselected, 50 warnings in 3.29 seconds 
=

--

___
Python tracker 

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