[issue43746] Weird typing annotation closure behavior

2021-04-09 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I guess this is similar to the explanation at 
https://bugs.python.org/issue36363#msg338389

> The problem in the original code is that the annotation references a global 
> name that is shadowed by a local (to the class body) name, and because of the 
> initialization, the latter takes precedence.  (To see for yourself, use the 
> dis module to disassemble the code for Spam and Spaz.)

--
nosy: +gvanrossum, xtreak

___
Python tracker 

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



[issue43785] bz2 performance issue.

2021-04-09 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

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



[issue43775] JSON Parsing Alarm: Requests + Json = JSONDecodeError

2021-04-09 Thread Maria Kazakova


Maria Kazakova  added the comment:

Thank you so much for the answers!!
The problem was indeed with the data source, they have fixed it.
Sorry for bothering you! 
Wish you all the best!!!

--
nosy:  -paul.moore, steve.dower, tim.golden, zach.ware
resolution:  -> fixed
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



[issue41486] Add _BlocksOutputBuffer for bz2/lzma/zlib module

2021-04-09 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +methane

___
Python tracker 

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



[issue43784] starting a thread in __del__ hangs at interpreter shutdown

2021-04-09 Thread Eryk Sun


Eryk Sun  added the comment:

It's not a subprocess bug, per se. It's due to creating the stdout/stderr 
worker threads from the __del__ finalizer while the interpreter is shutting 
down. Minimal reproducer, confirmed in both Linux and Windows:

import threading

class C:
def __del__(self):
t = threading.Thread(target=print, args=('spam',), daemon=True)
t.start()

c = C()
#del c # uncomment to prevent hanging

--
components:  -Windows
nosy: +eryksun
title: [Windows] interpreter hangs indefinitely on subprocess.communicate 
during __del__ at script exit -> starting a thread in __del__ hangs at 
interpreter shutdown
type:  -> behavior
versions: +Python 3.10, Python 3.8

___
Python tracker 

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



[issue43785] bz2 performance issue.

2021-04-09 Thread Ma Lin


Change by Ma Lin :


--
nosy: +malin

___
Python tracker 

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



[issue43784] starting a thread in __del__ hangs at interpreter shutdown

2021-04-09 Thread Eryk Sun


Change by Eryk Sun :


--
nosy: +pitrou

___
Python tracker 

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



[issue43682] Make static methods created by @staticmethod callable

2021-04-09 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Currently pydoc on X.sm gives:
---
sm(x, y)
A static method
---


I concur with Mark Shannon. The root problem is that Python functions and 
built-in functions have different behavior when assigned as class attribute. 
The former became an instance method, but the latter is not.

If wrap builtin open with statickmethod, the repr of open will be something 
like "staticmethod()" instead of just 
"". It is confusing. It will produce a lot of 
questions why open (and only open) is so special.

--

___
Python tracker 

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



[issue43746] Weird typing annotation closure behavior

2021-04-09 Thread Joël Larose

Joël Larose  added the comment:

An easy workaround would be to alias your import or to import your class 
directly.

```
from ... import losses as l

class A:
  losses: l.Losses = l.Losses()
```

or 

```
from ...losses import Losses

class A:
  losses: Losses = Losses()
```

--
nosy: +joel.larose

___
Python tracker 

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



[issue43785] Remove RLock from BZ2File

2021-04-09 Thread Inada Naoki


Inada Naoki  added the comment:

I will create a separated issue for __iter__, because it is same to gzip and 
lzma.

--
title: bz2 performance issue. -> Remove RLock from BZ2File

___
Python tracker 

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



[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-09 Thread Bill Collins


Bill Collins  added the comment:

Confirmed, thanks!

--

___
Python tracker 

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



[issue43786] slice(None) is slice(None) is False

2021-04-09 Thread Nico Schlömer

New submission from Nico Schlömer :

I stumbled upon this when dealing with NumPy arrays:
```
slice(None) is slice(None)
```
```
False
```
This came up when trying to check if a variable `a` equals `slice(None)`. The 
comparison
```
a = slice(None)
a == slice(None)
```
```
True
```
works, but doesn't return a single Boolean if a is a NumPy array, for example.

Perhaps there's another way of finding out if a variable is exactly 
`slice(None)`, but the failure of `is` seems like a bug.

--
messages: 390598
nosy: nschloe
priority: normal
severity: normal
status: open
title: slice(None) is slice(None) is False

___
Python tracker 

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



[issue43787] Optimize BZ2File, GzipFile, and LZMAFile __iter__ method.

2021-04-09 Thread Inada Naoki


New submission from Inada Naoki :

__iter__ method of BZ2File, GzipFile, and LZMAFile is IOBase.__iter__. It calls 
`readline()` for each line.

Since `readline()` is defined as Python function, it is slower than C iterator. 
Adding custom __iter__ method that delegates to underlying buffer __iter__ 
makes `for line in file` 2x faster.

def __iter__(self):
self._check_can_read()
return self._buffer.__iter__()

---

The original issue is reported here.
https://discuss.python.org/t/non-optimal-bz2-reading-speed/6869
This issue is relating to #43785.

--
components: Library (Lib)
messages: 390599
nosy: methane
priority: normal
severity: normal
status: open
title: Optimize BZ2File, GzipFile, and LZMAFile __iter__ method.
type: performance
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



[issue43787] Optimize BZ2File, GzipFile, and LZMAFile __iter__ method.

2021-04-09 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

___
Python tracker 

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



[issue38963] multiprocessing processes seem to "bleed" user information (GID/UID/groups)

2021-04-09 Thread Bartosz Kwitniewski


Bartosz Kwitniewski  added the comment:

It works as intended - pool of 5 processes is being reused with new data:
- First, 5 processes are created as root,
- in first run of check_permission they drop their privileges to user,
- when they finish processing check_permission function, they are not killed, 
but provided with new path for processing, therefore they retain their lower 
privileges,
- when maxtasksperchild=1 is used, processes are killed after single run of 
check_permission and recreated with root permissions.

--
nosy: +zerg

___
Python tracker 

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



[issue43786] slice(None) is slice(None) is False

2021-04-09 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

The behaviour of `is` is correct.

The `is` operator tests for object identity, not equality. The reason that 
`slice(None) is slice(None)` returns False is that the two calls to the slice 
function return two different objects.

You say that using the equals operator `==` "doesn't return a single Boolean if 
a is a NumPy array", that is a design flaw in numpy, and there is nothing we 
can do about it.

You could try something like this:

def equal(a, b):
flag = (a == b)
if isinstance(flag, bool):
return flag
else:
return all(flag)

--
nosy: +steven.daprano
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



[issue43786] slice(None) is slice(None) is False

2021-04-09 Thread Nico Schlömer

Nico Schlömer  added the comment:

Thanks very much, Steven, for the feedback and the suggestion.

--

___
Python tracker 

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



[issue43788] Make ssl_data.h version specific

2021-04-09 Thread Christian Heimes


New submission from Christian Heimes :

_ssl_data.h contains static tables with OpenSSL error names and reasons. The 
stables are created by scrapping header files. The current approach has two 
issues:

- error codes are version dependent. OpenSSL 1.1.1 uses different codes and has 
a different set of error reasons as 3.0.0.
- parsing header files with regular expressions is err-prone.

I'm going to introduce version-specific data tables and re-write the current 
make_ssl_data.py script to use OpenSSL's crypto/err/openssl.txt and 
crypto/err/openssl.ec. The text files exist since OpenSSL 1.1.

--
assignee: christian.heimes
components: SSL
messages: 390603
nosy: christian.heimes
priority: normal
severity: normal
status: open
title: Make ssl_data.h version specific
type: enhancement
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



[issue43788] Make ssl_data.h version specific

2021-04-09 Thread Christian Heimes


Change by Christian Heimes :


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

___
Python tracker 

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



[issue43785] Remove RLock from BZ2File

2021-04-09 Thread Ma Lin


Ma Lin  added the comment:

This change is backwards incompatible, it may break some code silently.

If someone really needs better performance, they can write a BZ2File class 
without RLock by themselves, it should be easy.

FYI, zlib module was added in 1997, bz2 module was added in 2002, lzma module 
was added in 2011. (Just curious for these years)

--

___
Python tracker 

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



[issue43774] [Doc] Document configure options in the Python documentation

2021-04-09 Thread miss-islington


miss-islington  added the comment:


New changeset f7be26a8f2ed588df90959ae7c0fdcafe2091f76 by Victor Stinner in 
branch 'master':
bpo-43774: Doc job of Azure Pipelines uses Doc/requirements.txt (GH-25296)
https://github.com/python/cpython/commit/f7be26a8f2ed588df90959ae7c0fdcafe2091f76


--
nosy: +miss-islington

___
Python tracker 

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



[issue43774] [Doc] Document configure options in the Python documentation

2021-04-09 Thread STINNER Victor


STINNER Victor  added the comment:

Raymond:
> Thanks for adding this.

You're welcome :-) I plan to send an email to python-dev to ask for reviews. I 
hesitated to ask for a review on the PR, but honestly, it's painful to read 
plain text Sphinx. I prefer to read HTML ;-)

--

___
Python tracker 

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



[issue43774] [Doc] Document configure options in the Python documentation

2021-04-09 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +24033
pull_request: https://github.com/python/cpython/pull/25302

___
Python tracker 

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



[issue41486] Add _BlocksOutputBuffer for bz2/lzma/zlib module

2021-04-09 Thread STINNER Victor


Change by STINNER Victor :


--
nosy:  -vstinner

___
Python tracker 

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



[issue43682] Make static methods created by @staticmethod callable

2021-04-09 Thread STINNER Victor


STINNER Victor  added the comment:

Serhiy:
> I concur with Mark Shannon. The root problem is that Python functions and 
> built-in functions have different behavior when assigned as class attribute. 
> The former became an instance method, but the latter is not.

Do you see a way to make C functions and Python functions behave the same?

--

___
Python tracker 

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



[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-09 Thread STINNER Victor


Change by STINNER Victor :


--
nosy:  -vstinner

___
Python tracker 

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



[issue43789] OpenSSL 3.0.0: password callback called multiple times

2021-04-09 Thread Christian Heimes


New submission from Christian Heimes :

OpenSSL 3.0.0 seems to invoke the password callback multiple times under some 
circumstances. This triggers a fatal error in Python when the first invocation 
sets an exception.

test_load_cert_chain (test.test_ssl.ContextTests) ... Fatal Python error: 
_PyEval_EvalFrameDefault: a function returned a result with an exception set
Python runtime state: initialized
ValueError: password cannot be longer than 1023 bytes

Current thread 0x7fa88787f740 (most recent call first):
  File "/home/heimes/dev/python/cpython/Lib/test/test_ssl.py", line 1395 in 
getpass_huge
  File "/home/heimes/dev/python/cpython/Lib/test/test_ssl.py", line 1415 in 
test_load_cert_chain
  File "/home/heimes/dev/python/cpython/Lib/unittest/case.py", line 549 in 
_callTestMethod
  File "/home/heimes/dev/python/cpython/Lib/unittest/case.py", line 592 in run
  File "/home/heimes/dev/python/cpython/Lib/unittest/case.py", line 652 in 
__call__
  File "/home/heimes/dev/python/cpython/Lib/unittest/suite.py", line 122 in run
  File "/home/heimes/dev/python/cpython/Lib/unittest/suite.py", line 84 in 
__call__
  File "/home/heimes/dev/python/cpython/Lib/unittest/suite.py", line 122 in run
  File "/home/heimes/dev/python/cpython/Lib/unittest/suite.py", line 84 in 
__call__
  File "/home/heimes/dev/python/cpython/Lib/unittest/runner.py", line 176 in run
  File "/home/heimes/dev/python/cpython/Lib/test/support/__init__.py", line 959 
in _run_suite
  File "/home/heimes/dev/python/cpython/Lib/test/support/__init__.py", line 
1082 in run_unittest
  File "/home/heimes/dev/python/cpython/Lib/test/test_ssl.py", line 4836 in 
test_main
  File "/home/heimes/dev/python/cpython/Lib/test/libregrtest/runtest.py", line 
246 in _runtest_inner2
  File "/home/heimes/dev/python/cpython/Lib/test/libregrtest/runtest.py", line 
282 in _runtest_inner
  File "/home/heimes/dev/python/cpython/Lib/test/libregrtest/runtest.py", line 
154 in _runtest
  File "/home/heimes/dev/python/cpython/Lib/test/libregrtest/runtest.py", line 
194 in runtest
  File "/home/heimes/dev/python/cpython/Lib/test/libregrtest/main.py", line 321 
in rerun_failed_tests
  File "/home/heimes/dev/python/cpython/Lib/test/libregrtest/main.py", line 698 
in _main
  File "/home/heimes/dev/python/cpython/Lib/test/libregrtest/main.py", line 641 
in main
  File "/home/heimes/dev/python/cpython/Lib/test/libregrtest/main.py", line 719 
in main
  File "/home/heimes/dev/python/cpython/Lib/test/__main__.py", line 2 in 

  File "/home/heimes/dev/python/cpython/Lib/runpy.py", line 86 in _run_code
  File "/home/heimes/dev/python/cpython/Lib/runpy.py", line 196 in 
_run_module_as_main

Extension modules: _testcapi (total: 1)


(gdb) bt
#0  0x77c5d9d5 in raise () from /lib64/libc.so.6
#1  0x77c468a4 in abort () from /lib64/libc.so.6
#2  0x0051bb53 in fatal_error_exit (status=) at 
Python/pylifecycle.c:2522
#3  0x0051f97e in fatal_error (fd=2, header=header@entry=1, 
prefix=prefix@entry=0x6c2f60 <__func__.47> "_PyEval_EvalFrameDefault", 
msg=msg@entry=0x670aa8 "a function returned a result with an exception 
set", status=status@entry=-1) at Python/pylifecycle.c:2703
#4  0x0051f9df in _Py_FatalErrorFunc (func=func@entry=0x6c2f60 
<__func__.47> "_PyEval_EvalFrameDefault", 
msg=msg@entry=0x670aa8 "a function returned a result with an exception 
set") at Python/pylifecycle.c:2719
#5  0x004d930c in _PyEval_EvalFrameDefault (tstate=0x807060, 
f=Frame 0x7fffe950e5b0, for file 
/home/heimes/dev/python/cpython/Lib/test/test_ssl.py, line 1395, in 
getpass_huge (), throwflag=0) at Python/ceval.c:1733
#6  0x004e640f in _PyEval_EvalFrame (throwflag=0, 
f=Frame 0x7fffe950e5b0, for file 
/home/heimes/dev/python/cpython/Lib/test/test_ssl.py, line 1395, in 
getpass_huge (), tstate=0x807060)
at ./Include/internal/pycore_ceval.h:46
#7  _PyEval_Vector (tstate=0x807060, con=0x7fffe9377c30, 
locals=locals@entry=0x0, args=, argcount=, 
kwnames=)
at Python/ceval.c:5109
#8  0x0042bf08 in _PyFunction_Vectorcall (func=, 
stack=, nargsf=, kwnames=) at 
Objects/call.c:342
#9  0x7fffe9cf502c in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=0, 
args=0x0, callable=, tstate=0x807060)
at ./Include/cpython/abstract.h:114
#10 _PyObject_CallNoArg (func=) at 
./Include/cpython/abstract.h:168
#11 _password_callback (buf=0x7fff80c0 "p", size=1023, rwflag=, userdata=0x7fff9820) at 
/home/heimes/dev/python/cpython/Modules/_ssl.c:3935
#12 0x7fffe9a3bcd2 in ui_read (ui=0xc22d70, uis=0xba6190) at 
crypto/ui/ui_util.c:111
#13 0x7fffe9a3a4e0 in UI_process (ui=0xc22d70) at crypto/ui/ui_lib.c:516
#14 0x7fffe99a3d49 in do_ui_passphrase (pass=0x7fff87b0 "", 
pass_size=1024, pass_len=0x7fff8bb8, prompt_info=0x0, verify=0, 
ui_method=0xc20050, 
ui_data=0x7fff9820) at crypto/passphrase.c:173
#15 0x7fffe99a4143 in ossl_pw_get_passphrase (pass=0x7fff87b0 "", 
pass_size=1024, pass_len=0x7ff

[issue43777] Remove description of "pip search" command from tutorial

2021-04-09 Thread Bob Kline


Bob Kline  added the comment:

Thanks for the clarification. I submitted a PR, but I'm unable to remove the 
"CLA not signed" tag from it (even though I have signed the CLA) and form at 
https://check-python-cla.herokuapp.com/ ("You can check yourself to see if the 
CLA has been received.") blows up with a 500 ("Server got itself in trouble"). 
Submitting patches for the Python documentation never used to be this hard. :-)

--

___
Python tracker 

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



[issue43789] OpenSSL 3.0.0: password callback called multiple times

2021-04-09 Thread Christian Heimes


Change by Christian Heimes :


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

___
Python tracker 

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



[issue43774] [Doc] Document configure options in the Python documentation

2021-04-09 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset bd88ccb943c0ea672c14a87e76157fade4feae11 by Victor Stinner in 
branch 'master':
bpo-43774: Document the Python Build System (GH-25302)
https://github.com/python/cpython/commit/bd88ccb943c0ea672c14a87e76157fade4feae11


--

___
Python tracker 

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



[issue43790] CLA check fails with a 500 error

2021-04-09 Thread Bob Kline


New submission from Bob Kline :

The tool to check whether the CLA has been received fails with a 500 error.

Steps to reproduce:
1. Add your GitHub name to your b.p.o. record.
2. Navigate to https://check-python-cla.herokuapp.com/
3. Enter your GitHub name and press the "Check" button
4. "500 Internal server error / Server got itself in trouble"

--
components: Demos and Tools
messages: 390612
nosy: bkline
priority: normal
severity: normal
status: open
title: CLA check fails with a 500 error

___
Python tracker 

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



[issue43753] [C API] Add Py_Is(x, y) and Py_IsNone(x) functions

2021-04-09 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

I'd also prefer a Py_IsNotNone() because it's more explicit than !Py_IsNone(); 
the exclamation mark can be easily missed when reading/writing code, IMO.

Just my 2 cents.

--
nosy: +erlendaasland

___
Python tracker 

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



[issue43753] [C API] Add Py_Is(x, y) and Py_IsNone(x) functions

2021-04-09 Thread STINNER Victor


STINNER Victor  added the comment:

> I'd also prefer a Py_IsNotNone() because it's more explicit than !Py_IsNone()

I would prefer keep the C API small. I don't think that we need to duplicate 
all functions testing for something. We provide PyTuple_Check(obj) but we don't 
provide PyTuple_NotCheck(obj) for example.

IMO !Py_IsNone(obj) makes perfectly sense in Python.

Also, "x == Py_None" is more common than "x != Py_None".

--

___
Python tracker 

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



[issue43777] Remove description of "pip search" command from tutorial

2021-04-09 Thread Bob Kline


Bob Kline  added the comment:

I have reported the failure of the CLA check tool.

https://bugs.python.org/issue43790

--

___
Python tracker 

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



[issue43753] [C API] Add Py_Is(x, y) and Py_IsNone(x) functions

2021-04-09 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

> I would prefer keep the C API small.

Yes, I see the value of that as well.

I tried applying this API on an extension, and I found the code to be slightly 
less readable for the "is not" cases.

--

___
Python tracker 

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



[issue37712] Exception frames from unittest.TestCase.fail dependent on nesting

2021-04-09 Thread Chris Jerdonek


Chris Jerdonek  added the comment:

> I think this is the same as issue37712.

This issue was first reported as issue24959. It would be better to close the 
newer issues as duplicates of the first one, instead of keeping all the 
duplicates open. Otherwise, the history and discussion gets fragmented across 
multiple locations.

--
nosy: +chris.jerdonek

___
Python tracker 

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



[issue43791] OpenSSL 3.0.0: TLS 1.0 / 1.1 connections fail with TLSV1_ALERT_INTERNAL_ERROR

2021-04-09 Thread Christian Heimes


New submission from Christian Heimes :

With OpenSSL 3.0.0-alpha14 several tests for TLS 1.0 and 1.1 connections are 
failing handshake with "[SSL: TLSV1_ALERT_INTERNAL_ERROR] tlsv1 alert internal 
error". OpenSSL is configured with default security level "1". Tests are only 
passing with @SECLEVEL=0.

I think the security default callback refuses NID_sha1 and NID_sha1_md5 
SSL_SECOP_SIGALG_SUPPORTED because their security bits are lower than minimum 
of 80 bits.

ssl_security_default_callback (s=0x7fffdc001840, ctx=0x0, op=327691, bits=67, 
nid=114, other=0x7fffe8ab194a, ex=0x0) at ssl/ssl_cert.c:969
ssl_security_default_callback (s=0x7fffdc001840, ctx=0x0, op=327691, bits=64, 
nid=64, other=0x7fffe8ab188a, ex=0x0) at ssl/ssl_cert.c:969


#0  tls_choose_sigalg (s=0x7fffdc001840, fatalerrs=1) at ssl/t1_lib.c:3307
#1  0x7fffe9cb00f4 in tls_post_process_client_hello (s=0x7fffdc001840, 
wst=WORK_MORE_B) at ssl/statem/statem_srvr.c:2223
#2  0x7fffe9cad560 in ossl_statem_server_post_process_message 
(s=0x7fffdc001840, wst=WORK_MORE_A) at ssl/statem/statem_srvr.c:1236
#3  0x7fffe9c97e3d in read_state_machine (s=0x7fffdc001840) at 
ssl/statem/statem.c:670
#4  0x7fffe9c97723 in state_machine (s=0x7fffdc001840, server=1) at 
ssl/statem/statem.c:442
#5  0x7fffe9c971db in ossl_statem_accept (s=0x7fffdc001840) at 
ssl/statem/statem.c:270
#6  0x7fffe9c5f5ac in SSL_do_handshake (s=0x7fffdc001840) at 
ssl/ssl_lib.c:3852

if ((lu = tls1_get_legacy_sigalg(s, -1)) == NULL) {
if (!fatalerrs)
return 1;
SSLfatal(s, SSL_AD_INTERNAL_ERROR,
 SSL_R_NO_SUITABLE_SIGNATURE_ALGORITHM);
return 0;
}

--
assignee: christian.heimes
components: SSL
messages: 390618
nosy: christian.heimes
priority: normal
severity: normal
status: open
title: OpenSSL 3.0.0: TLS 1.0 / 1.1 connections fail with 
TLSV1_ALERT_INTERNAL_ERROR
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



[issue4379] Py_SAFE_DOWNCAST in FILE_TIME_to_time_t_nsec failing

2021-04-09 Thread Christian Heimes


Change by Christian Heimes :


--
nosy: +christian.heimes
nosy_count: 5.0 -> 6.0
pull_requests: +24036
pull_request: https://github.com/python/cpython/pull/25304

___
Python tracker 

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



[issue43789] OpenSSL 3.0.0: password callback called multiple times

2021-04-09 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset d3b73f32ef7c693a6ae8c54eb0e62df3b5315caf by Christian Heimes in 
branch 'master':
bpo-43789: OpenSSL 3.0.0 Don't call passwd callback again in error case 
(GH-25303)
https://github.com/python/cpython/commit/d3b73f32ef7c693a6ae8c54eb0e62df3b5315caf


--

___
Python tracker 

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



[issue43789] OpenSSL 3.0.0: password callback called multiple times

2021-04-09 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 1.0 -> 2.0
pull_requests: +24037
pull_request: https://github.com/python/cpython/pull/25305

___
Python tracker 

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



[issue43789] OpenSSL 3.0.0: password callback called multiple times

2021-04-09 Thread miss-islington


Change by miss-islington :


--
pull_requests: +24038
pull_request: https://github.com/python/cpython/pull/25306

___
Python tracker 

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



[issue37712] Exception frames from unittest.TestCase.fail dependent on nesting

2021-04-09 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> unittest swallows part of stack trace when raising 
AssertionError in a TestCase

___
Python tracker 

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



[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-04-09 Thread Christian Heimes


Change by Christian Heimes :


--
dependencies: +OpenSSL 3.0.0: TLS 1.0 / 1.1 connections fail with 
TLSV1_ALERT_INTERNAL_ERROR, OpenSSL 3.0.0: password callback called multiple 
times
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



[issue24959] unittest swallows part of stack trace when raising AssertionError in a TestCase

2021-04-09 Thread Irit Katriel


Change by Irit Katriel :


--
keywords: +patch
pull_requests: +24039
stage: test needed -> patch review
pull_request: https://github.com/python/cpython/pull/23688

___
Python tracker 

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



[issue42247] unittest hides traceback frames in chained exceptions

2021-04-09 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> unittest swallows part of stack trace when raising 
AssertionError in a TestCase

___
Python tracker 

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



[issue4379] Py_SAFE_DOWNCAST in FILE_TIME_to_time_t_nsec failing

2021-04-09 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset 5151d642004c59cce58d669be85d9a5e987f51d3 by Christian Heimes in 
branch 'master':
bpo-4379: Skip TLS 1.0/1.1 tests under OpenSSL 3.0.0 (GH-25304)
https://github.com/python/cpython/commit/5151d642004c59cce58d669be85d9a5e987f51d3


--

___
Python tracker 

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



[issue4379] Py_SAFE_DOWNCAST in FILE_TIME_to_time_t_nsec failing

2021-04-09 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue4379] Py_SAFE_DOWNCAST in FILE_TIME_to_time_t_nsec failing

2021-04-09 Thread miss-islington


Change by miss-islington :


--
pull_requests: +24041
pull_request: https://github.com/python/cpython/pull/25308

___
Python tracker 

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



[issue43791] OpenSSL 3.0.0: TLS 1.0 / 1.1 connections fail with TLSV1_ALERT_INTERNAL_ERROR

2021-04-09 Thread miss-islington


Change by miss-islington :


--
pull_requests: +24043
pull_request: https://github.com/python/cpython/pull/25308

___
Python tracker 

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



[issue43791] OpenSSL 3.0.0: TLS 1.0 / 1.1 connections fail with TLSV1_ALERT_INTERNAL_ERROR

2021-04-09 Thread miss-islington


Change by miss-islington :


--
keywords: +patch
nosy: +miss-islington
nosy_count: 1.0 -> 2.0
pull_requests: +24042
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/25307

___
Python tracker 

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



[issue43792] "bad argument to internal function" in cython

2021-04-09 Thread Dmitry Marakasov


New submission from Dmitry Marakasov :

I'm playing with adding python3.10a7 port to FreeBSD ports collection, and have 
run into similar problem with building multiple third party modules (for 
instance, yaml, yarl and pystemmer). Here's log from yaml:

running build_ext
cythoning yaml/_yaml.pyx to yaml/_yaml.c
Traceback (most recent call last):
  File "", line 1, in 
  File "setup.py", line 271, in 
setup(
  File "/usr/local/lib/python3.10/site-packages/setuptools/__init__.py", line 
153, in setup
return distutils.core.setup(**attrs)
  File "/usr/local/lib/python3.10/distutils/core.py", line 148, in setup
dist.run_commands()
  File "/usr/local/lib/python3.10/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
  File "/usr/local/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
  File "setup.py", line 187, in run
_build_ext.run(self)
  File 
"/usr/local/lib/python3.10/site-packages/Cython/Distutils/old_build_ext.py", 
line 186, in run
_build_ext.build_ext.run(self)
  File "/usr/local/lib/python3.10/distutils/command/build_ext.py", line 340, in 
run
self.build_extensions()
  File "setup.py", line 229, in build_extensions
ext.sources = self.cython_sources(ext.sources, ext)
  File 
"/usr/local/lib/python3.10/site-packages/Cython/Distutils/old_build_ext.py", 
line 346, in cython_sources
result = cython_compile(source, options=options,
  File "/usr/local/lib/python3.10/site-packages/Cython/Compiler/Main.py", line 
778, in compile
return compile_single(source, options, full_module_name)
  File "/usr/local/lib/python3.10/site-packages/Cython/Compiler/Main.py", line 
727, in compile_single
return run_pipeline(source, options, full_module_name)
  File "/usr/local/lib/python3.10/site-packages/Cython/Compiler/Main.py", line 
479, in run_pipeline
context = options.create_context()
  File "/usr/local/lib/python3.10/site-packages/Cython/Compiler/Main.py", line 
596, in create_context
return Context(self.include_path, self.compiler_directives,
  File "/usr/local/lib/python3.10/site-packages/Cython/Compiler/Main.py", line 
80, in __init__
from . import Builtin, CythonScope
  File 
"/usr/local/lib/python3.10/site-packages/Cython/Compiler/CythonScope.py", line 
5, in 
from .UtilityCode import CythonUtilityCode
  File 
"/usr/local/lib/python3.10/site-packages/Cython/Compiler/UtilityCode.py", line 
3, in 
from .TreeFragment import parse_from_strings, StringParseContext
  File 
"/usr/local/lib/python3.10/site-packages/Cython/Compiler/TreeFragment.py", line 
17, in 
from .Visitor import VisitorTransform
  File "Cython/Compiler/Visitor.py", line 17, in init Cython.Compiler.Visitor
  File "/usr/local/lib/python3.10/site-packages/Cython/Compiler/ExprNodes.py", 
line 4742, in 
class SliceIndexNode(ExprNode):
  File "/usr/local/lib/python3.10/site-packages/Cython/Compiler/ExprNodes.py", 
line 4939, in SliceIndexNode
get_slice_utility_code = TempitaUtilityCode.load(
  File "/usr/local/lib/python3.10/site-packages/Cython/Compiler/Code.py", line 
404, in load
return cls(**kwargs)
  File "/usr/local/lib/python3.10/site-packages/Cython/Compiler/Code.py", line 
645, in __init__
proto = sub_tempita(proto, context, file, name)
  File "/usr/local/lib/python3.10/site-packages/Cython/Compiler/Code.py", line 
638, in sub_tempita
return sub(s, **context)
  File "Cython/Tempita/_tempita.py", line 376, in Cython.Tempita._tempita.sub
  File "Cython/Tempita/_tempita.py", line 137, in 
Cython.Tempita._tempita.Template.__init__
  File "Cython/Tempita/_tempita.py", line 819, in Cython.Tempita._tempita.parse
  File "Cython/Tempita/_tempita.py", line 661, in Cython.Tempita._tempita.lex
SystemError: Python/getargs.c:2038: bad argument to internal function
*** Error code 1

--
components: Extension Modules, FreeBSD
messages: 390621
nosy: AMDmi3, koobs
priority: normal
severity: normal
status: open
title: "bad argument to internal function" in cython
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



[issue43789] OpenSSL 3.0.0: password callback called multiple times

2021-04-09 Thread miss-islington


miss-islington  added the comment:


New changeset a188bd44ac3c54dc3bf927f1b10464ab80f37549 by Miss Islington (bot) 
in branch '3.9':
bpo-43789: OpenSSL 3.0.0 Don't call passwd callback again in error case 
(GH-25303)
https://github.com/python/cpython/commit/a188bd44ac3c54dc3bf927f1b10464ab80f37549


--

___
Python tracker 

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



[issue43791] OpenSSL 3.0.0: TLS 1.0 / 1.1 connections fail with TLSV1_ALERT_INTERNAL_ERROR

2021-04-09 Thread Christian Heimes


Christian Heimes  added the comment:

https://github.com/python/cpython/pull/25304 is merged PR to master.

--

___
Python tracker 

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



[issue43792] "bad argument to internal function" in cython

2021-04-09 Thread STINNER Victor


STINNER Victor  added the comment:

Sadly, there is Cython release supporting Python 3.10 yet:
https://github.com/cython/cython/issues/4046

By the way, I propose two PRs to fix Cython tests on Python 3.10:
https://github.com/cython/cython/issues/4100

I suggest you waiting until there a new Cython release supporting Python 3.10.

In Fedora, we have downstream patches on Cython, we backported the Python 3.10 
fixes:
https://src.fedoraproject.org/rpms/Cython/pull-request/28

--
nosy: +vstinner

___
Python tracker 

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



[issue43792] Cython is not compatible with Python 3.10 yet: "SystemError: bad argument to internal function"

2021-04-09 Thread STINNER Victor


Change by STINNER Victor :


--
title: "bad argument to internal function" in cython -> Cython is not 
compatible with Python 3.10 yet: "SystemError: bad argument to internal 
function"

___
Python tracker 

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



[issue39125] Type signature of @property not shown in help()

2021-04-09 Thread brenthuisman


brenthuisman  added the comment:

Is there any activity on this issue? The way Pybind11 generates accessors for 
attributes makes (as properties with getter and setter) makes it currently 
impossible to view the type info, which Pybind does provide.

Thanks for any update.

--
nosy: +brenthuisman

___
Python tracker 

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



[issue43793] [C API] Py_NewInterpreter() cannot be called from a thread which has no Python thread state

2021-04-09 Thread STINNER Victor


New submission from STINNER Victor :

Build attached newinter.c C extension. Example:

$ gcc -shared newinter.c $(pkg-config python-3.10 --cflags --libs) -o 
newinter.so -fPIC


Trying to load the C extension crashs in various ways. Crashes on a Python 
debug build:

(1)

$ PYTHONPATH=$PWD ./python -c 'import newinter'
create new thread
Modules/gcmodule.c:113: gc_decref: Assertion "gc_get_refs(g) > 0" failed: 
refcount is too small
Enable tracemalloc to get the memory block allocation traceback

object address  : 0x7f1a1163c8f0
object refcount : 1
object type : 0x871020
object type name: dict
object repr : {}

Fatal Python error: _PyObject_AssertFailed: _PyObject_AssertFailed
Python runtime state: finalizing (tstate=0x01e0d390)

Current thread 0x7f1a115a0640 (most recent call first):
  File "", line 241 in _call_with_frames_removed
  File "", line 855 in exec_module
  File Exception ignored deletion of interned string failed"", line 688 in _load_unlocked
  File "", line 1006 in _find_and_load_unlocked
  File "", line 1027 in _find_and_load
  File "", line 1207 in _install_external_importers
Segmentation fault (core dumped)

(2)

$ PYTHONPATH=$PWD ./python -c 'import newinter'
create new thread
Objects/unicodeobject.c:15769: _Py_NegativeRefcount: Assertion failed: object 
has negative ref count
Enable tracemalloc to get the memory block allocation traceback

object address  : 0x7fe124af08e0
object refcount : -1
object type : 0x8797e0
object type name: str
object repr : Debug memory block at address p=0x7fe124af08e0: API 'o'
60 bytes originally requested
The 7 pad bytes at p-7 are FORBIDDENBYTE, as expected.
The 8 pad bytes at tail=0x7fe124af091c are not all FORBIDDENBYTE (0xfd):
at tail+0: 0x72 *** OUCH
at tail+1: 0x5f *** OUCH
at tail+2: 0x63 *** OUCH
at tail+3: 0x61 *** OUCH
at tail+4: 0x63 *** OUCH
at tail+5: 0x68 *** OUCH
at tail+6: 0x65 *** OUCH
at tail+7: 0xfd
Data at p: ff ff ff ff ff ff ff ff ... 61 6b 72 65 66 5f 5f 65

Enable tracemalloc to get the memory block allocation traceback

Fatal Python error: _PyMem_DebugRawFree: bad trailing pad byte
Python runtime state: finalizing (tstate=0x01564390)

Current thread 0x7fe1321ff740 (most recent call first):


Extension modules: newinter (total: 1)
Aborted (core dumped)

(3)

$ PYTHONPATH=$PWD ./python -c 'import newinter'
create new thread
Exception ignored deletion of interned string failedFatal Python error: 
_PyInterpreterState_GET: the function must be called with the GIL held, but the 
GIL is released (the current Python thread state is NULL)
Python runtime state: finalizing (tstate=0x00c51390)

Current thread 0x7f329308a640 (most recent call first):
  File "", line 241 in _call_with_frames_removed
  File "", line 855 in exec_module
  File "", line 688 in _load_unlocked
  File "", line 1006 in _find_and_load_unlocked
  File "", line 1027 in _find_and_load
  File "", line 1207 in _install_external_importers
Aborted (core dumped)

(4)

$ PYTHONPATH=$PWD ./python -c 'import newinter'
create new thread
Fatal Python error: _Py_CheckSlotResult: Slot __setitem__ of type dict 
succeeded with an exception set
Python runtime state: finalizing (tstate=0x00f0e390)

Thread 0xTraceback (most recent call last):
7fb4a331b640 (most recent call first):

Aborted (core dumped)

--
components: C API
files: newinter.c
messages: 390626
nosy: vstinner
priority: normal
severity: normal
status: open
title: [C API] Py_NewInterpreter() cannot be called from a thread which has no 
Python thread state
versions: Python 3.10
Added file: https://bugs.python.org/file49950/newinter.c

___
Python tracker 

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



[issue43746] Weird typing annotation closure behavior

2021-04-09 Thread conchylicultor


conchylicultor  added the comment:

Yes, I know I can rename the closure, or wrap the annotation in 'quote'.

I just wanted to point this out as it felt confusing to me.
For instance, it feels inconsistent with:

```
def fn(datetime: datetime.Time):  # Works as expected
```

Or:

```
@dataclass
class A:
  datetime: datetime.Time = field(default_factory=datetime.Time.now)
```

The `datetime.Time.now` and the `datetime.Time` of the same statement refer to 
different objects.

This might be the expected behavior, but this is confusing nonetheless.

--

___
Python tracker 

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



[issue43753] [C API] Add Py_Is(x, y) and Py_IsNone(x) functions

2021-04-09 Thread STINNER Victor


STINNER Victor  added the comment:

> I tried applying this API on an extension, and I found the code to be 
> slightly less readable for the "is not" cases.

FYI you can try upgrade_pythoncapi.py on your project using the following PR to 
update code to use Py_IsNone/Py_IsTrue/Py_IsFalse:
https://github.com/pythoncapi/pythoncapi_compat/pull/8

For example, use "upgrade_pythoncapi.py -o Py_Is directory/" or 
"upgrade_pythoncapi.py -o Py_Is file.c".

--

___
Python tracker 

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



[issue43791] OpenSSL 3.0.0: TLS 1.0 / 1.1 connections fail with TLSV1_ALERT_INTERNAL_ERROR

2021-04-09 Thread miss-islington


miss-islington  added the comment:


New changeset 4e710d1c88cbebdb17578de00997457b3b26874d by Miss Islington (bot) 
in branch '3.8':
[3.8] bpo-43791: Skip TLS 1.0/1.1 tests under OpenSSL 3.0.0 (GH-25304) 
(GH-25308)
https://github.com/python/cpython/commit/4e710d1c88cbebdb17578de00997457b3b26874d


--

___
Python tracker 

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



[issue43783] Make ParamSpec.args/kwargs more useful objects

2021-04-09 Thread Ken Jin


Change by Ken Jin :


--
nosy: +kj

___
Python tracker 

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



[issue4379] Py_SAFE_DOWNCAST in FILE_TIME_to_time_t_nsec failing

2021-04-09 Thread miss-islington


miss-islington  added the comment:


New changeset 4a5c101936900d11d723b59508464f73e4ab3a36 by Miss Islington (bot) 
in branch '3.9':
bpo-4379: Skip TLS 1.0/1.1 tests under OpenSSL 3.0.0 (GH-25304)
https://github.com/python/cpython/commit/4a5c101936900d11d723b59508464f73e4ab3a36


--

___
Python tracker 

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



[issue43746] Weird typing annotation closure behavior

2021-04-09 Thread Guido van Rossum


Guido van Rossum  added the comment:

Just Don't Do This.

--
resolution:  -> wont fix
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



[issue43794] OpenSSL 3.0.0: Handle UNEXPECTED_EOF_WHILE_READING / wrap SSL_OP_IGNORE_UNEXPECTED_EOF

2021-04-09 Thread Christian Heimes


New submission from Christian Heimes :

OpenSSL 3.0.0 state machine handles unexpected EOFs more strict and requires 
peers to properly shut down connections. The old OpenSSL 1.1.1 behavior can be 
get back with SSL_OP_IGNORE_UNEXPECTED_EOF.

I propose to add the option by default until Python's ssl module has better 
ways to perform one-way shutdown of connections.

https://www.openssl.org/docs/manmaster/man3/SSL_CTX_set_options.html

> Some TLS implementations do not send the mandatory close_notify alert on 
> shutdown. If the application tries to wait for the close_notify alert but the 
> peer closes the connection without sending it, an error is generated. When 
> this option is enabled the peer does not need to send the close_notify alert 
> and a closed connection will be treated as if the close_notify alert was 
> received.

> You should only enable this option if the protocol running over TLS can 
> detect a truncation attack itself, and that the application is checking for 
> that truncation attack.

--
assignee: christian.heimes
components: SSL
messages: 390632
nosy: christian.heimes
priority: normal
severity: normal
status: open
title: OpenSSL 3.0.0: Handle UNEXPECTED_EOF_WHILE_READING / wrap 
SSL_OP_IGNORE_UNEXPECTED_EOF
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



[issue43772] Minor repr error in typing.TypeVar.__ror__()

2021-04-09 Thread Ken Jin


Change by Ken Jin :


--
nosy: +kj

___
Python tracker 

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



[issue43794] OpenSSL 3.0.0: Handle UNEXPECTED_EOF_WHILE_READING / wrap SSL_OP_IGNORE_UNEXPECTED_EOF

2021-04-09 Thread Christian Heimes


Change by Christian Heimes :


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

___
Python tracker 

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



[issue43789] OpenSSL 3.0.0: password callback called multiple times

2021-04-09 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset a28398e9c60848fc291c83dac44e5212694fb0b2 by Miss Islington (bot) 
in branch '3.8':
[3.8] bpo-43789: OpenSSL 3.0.0 Don't call passwd callback again in error case 
(GH-25303) (GH-25306)
https://github.com/python/cpython/commit/a28398e9c60848fc291c83dac44e5212694fb0b2


--

___
Python tracker 

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



[issue43789] OpenSSL 3.0.0: password callback called multiple times

2021-04-09 Thread Christian Heimes


Christian Heimes  added the comment:

I'm keeping the bug open as a reminder to investigate the change of behavior 
more carefully.

--

___
Python tracker 

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



[issue40485] Provide an abstraction for a select-able Event

2021-04-09 Thread Faidon Liambotis


Faidon Liambotis  added the comment:

Thanks so much for all the work on os.eventfd(), it's exciting to see it come 
to fruition.

An eventfd variant of Event (compatible with the threading & multiprocessing 
APIs) is now as simple as:

class Event:
_ONE = (1).to_bytes(8, byteorder=sys.byteorder)

def __init__(self):
self._event_fd = os.eventfd(0, os.EFD_NONBLOCK)
self._selector = selectors.DefaultSelector()
self._selector.register(self._event_fd, selectors.EVENT_READ)

def is_set(self):
return self.wait(timeout=0)

def set(self):
try:
os.write(self._event_fd, self._ONE)
except BlockingIOError:
pass

def clear(self):
try:
os.read(self._event_fd, 8)
except BlockingIOError:
pass

def wait(self, timeout=None):
return bool(self._selector.select(timeout=timeout))

def fileno(self):
return self._event_fd

Given this now has a fileno() method, it is now possible to wait for the event 
as part of a broader selector, among other events (e.g. a file or socket 
becoming available to read or write).

I don't know where (or how) such a variant would fit into stdlib. It's simpler 
and more lightweight (less fds) than both threading's and multiprocessing's, 
and could be used from both threads and processes. I'd love some guidance here. 
(If a maintainer or anyone else reading this wants to use the above code in a 
PR, feel free -- no copyright claimed or expected for this trivial piece of 
code above)

--

___
Python tracker 

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



[issue43788] Make ssl_data.h version specific

2021-04-09 Thread miss-islington


miss-islington  added the comment:


New changeset 150af7543214e1541fa582374502ac1cd70e8eb4 by Christian Heimes in 
branch 'master':
bpo-43788: Generate version specific _ssl_data.h (GH-25300)
https://github.com/python/cpython/commit/150af7543214e1541fa582374502ac1cd70e8eb4


--
nosy: +miss-islington

___
Python tracker 

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



[issue43788] Make ssl_data.h version specific

2021-04-09 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +24045
pull_request: https://github.com/python/cpython/pull/25310

___
Python tracker 

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



[issue43626] SIGSEV in PyErr_SetObject

2021-04-09 Thread Shane Harvey


Shane Harvey  added the comment:

This issue was resolved in https://jira.mongodb.org/browse/PYTHON-2621

The cause of the segfault was determined to be gevent 1.3.4 (2018) and/or 
greenlet 0.4.13 (2018). When the reporter upgraded to gevent==21.1.2 and 
greenlet==1.0 the segfault went away.

--
nosy: +ShaneHarvey

___
Python tracker 

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



[issue43788] Make ssl_data.h version specific

2021-04-09 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +24046
pull_request: https://github.com/python/cpython/pull/25311

___
Python tracker 

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



[issue43788] OpenSSL 3.0.0: Make ssl_data.h version specific

2021-04-09 Thread Christian Heimes


Change by Christian Heimes :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
title: Make ssl_data.h version specific -> OpenSSL 3.0.0: Make ssl_data.h 
version specific

___
Python tracker 

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



[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-04-09 Thread Christian Heimes


Change by Christian Heimes :


--
dependencies: +OpenSSL 3.0.0: Handle UNEXPECTED_EOF_WHILE_READING / wrap 
SSL_OP_IGNORE_UNEXPECTED_EOF, OpenSSL 3.0.0: Make ssl_data.h version specific

___
Python tracker 

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



[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-04-09 Thread Petr Viktorin


New submission from Petr Viktorin :

This issue tracks implementation of PEP 652.

CPython's Limited C-API and Stable ABI, introduced in PEP 384, will be 
formalized in a single definitive file, tested, and documented.

--
messages: 390638
nosy: petr.viktorin
priority: normal
severity: normal
status: open
title: Implement PEP 652 -- Maintaining the Stable ABI
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



[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-04-09 Thread Petr Viktorin


Change by Petr Viktorin :


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

___
Python tracker 

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



[issue43682] Make static methods created by @staticmethod callable

2021-04-09 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 507a574de31a1bd7fed8ba4f04afa285d985109b by Victor Stinner in 
branch 'master':
bpo-43682: @staticmethod inherits attributes (GH-25268)
https://github.com/python/cpython/commit/507a574de31a1bd7fed8ba4f04afa285d985109b


--

___
Python tracker 

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



[issue43794] OpenSSL 3.0.0: Handle UNEXPECTED_EOF_WHILE_READING / wrap SSL_OP_IGNORE_UNEXPECTED_EOF

2021-04-09 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 1.0 -> 2.0
pull_requests: +24048
pull_request: https://github.com/python/cpython/pull/25313

___
Python tracker 

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



[issue43794] OpenSSL 3.0.0: Handle UNEXPECTED_EOF_WHILE_READING / wrap SSL_OP_IGNORE_UNEXPECTED_EOF

2021-04-09 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset 6f37ebc61e9e0d13bcb1a2ddb7fc9723c04b6372 by Christian Heimes in 
branch 'master':
bpo-43794: OpenSSL 3.0.0: set OP_IGNORE_UNEXPECTED_EOF by default (GH-25309)
https://github.com/python/cpython/commit/6f37ebc61e9e0d13bcb1a2ddb7fc9723c04b6372


--

___
Python tracker 

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



[issue43794] OpenSSL 3.0.0: Handle UNEXPECTED_EOF_WHILE_READING / wrap SSL_OP_IGNORE_UNEXPECTED_EOF

2021-04-09 Thread miss-islington


Change by miss-islington :


--
pull_requests: +24049
pull_request: https://github.com/python/cpython/pull/25314

___
Python tracker 

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



[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-04-09 Thread Petr Viktorin


Change by Petr Viktorin :


--
pull_requests: +24050
pull_request: https://github.com/python/cpython/pull/25315

___
Python tracker 

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



[issue43793] [C API] Py_NewInterpreter() cannot be called from a thread which has no Python thread state

2021-04-09 Thread Samuel Thibault


Change by Samuel Thibault :


--
nosy: +samuel-thibault

___
Python tracker 

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



[issue43747] Can't create new interpreter in multi thread

2021-04-09 Thread Samuel Thibault


Samuel Thibault  added the comment:

I don't see how to reopen this, we'd probably want to mark it as a duplicate of 
the newly-opened https://bugs.python.org/issue43793 , see 
https://mail.python.org/archives/list/capi-...@python.org/thread/7FI6V2KFBFZIXC6LZLKHY4Z7TUJ6YWTX/

--

___
Python tracker 

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



[issue43794] OpenSSL 3.0.0: Handle UNEXPECTED_EOF_WHILE_READING / wrap SSL_OP_IGNORE_UNEXPECTED_EOF

2021-04-09 Thread miss-islington


miss-islington  added the comment:


New changeset e18ebd9ec546a3647a57c282735350f60a26d66d by Miss Islington (bot) 
in branch '3.8':
bpo-43794: OpenSSL 3.0.0: set OP_IGNORE_UNEXPECTED_EOF by default (GH-25309)
https://github.com/python/cpython/commit/e18ebd9ec546a3647a57c282735350f60a26d66d


--

___
Python tracker 

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



[issue43794] OpenSSL 3.0.0: Handle UNEXPECTED_EOF_WHILE_READING / wrap SSL_OP_IGNORE_UNEXPECTED_EOF

2021-04-09 Thread miss-islington


miss-islington  added the comment:


New changeset 54d89a33e0d1b854fd5a72889d6554aeeb4170f0 by Miss Islington (bot) 
in branch '3.9':
bpo-43794: OpenSSL 3.0.0: set OP_IGNORE_UNEXPECTED_EOF by default (GH-25309)
https://github.com/python/cpython/commit/54d89a33e0d1b854fd5a72889d6554aeeb4170f0


--

___
Python tracker 

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



[issue40485] Provide an abstraction for a select-able Event

2021-04-09 Thread Faidon Liambotis


Faidon Liambotis  added the comment:

I missed that there is now also an os.eventfd_{write,read}(), so in the above
os.write(self._event_fd, self._ONE)
can become
os.eventfd_write(self._event_fd, 1)

and:
os.read(self._event_fd, 8)
can become:
os.eventfd_read(self._event_fd)

(the _ONE declaration will then be unnecessary and can be removed)

--

___
Python tracker 

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



[issue43788] OpenSSL 3.0.0: Make ssl_data.h version specific

2021-04-09 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset 299ae9c7a2a169d54921815b9bb41a8f9277a3aa by Christian Heimes in 
branch '3.9':
[3.9] bpo-43788: Generate version specific _ssl_data.h (GH-25300) (GH-25310)
https://github.com/python/cpython/commit/299ae9c7a2a169d54921815b9bb41a8f9277a3aa


--

___
Python tracker 

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



[issue43788] OpenSSL 3.0.0: Make ssl_data.h version specific

2021-04-09 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset 70f2ca7ea46ac15d05c7b422a10b18aa3fe4a140 by Christian Heimes in 
branch '3.8':
[3.8] bpo-43788: Generate version specific _ssl_data.h (GH-25300) (GH-25311)
https://github.com/python/cpython/commit/70f2ca7ea46ac15d05c7b422a10b18aa3fe4a140


--

___
Python tracker 

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



[issue43796] "install" package on PyPI

2021-04-09 Thread Jared Ondricek


New submission from Jared Ondricek :

I recently accidentally typed "pip install pip install " and it installed a package called "install" that has 1 star on GitHub. 
It is also in use by 2.3k repositories according to the GitHub dependency graph 
view. I don't think it's malicious, but it does seem a bit sketchy. I just know 
this sort of thing has been in the news lately, and maybe this is that sort of 
thing that ought to be looked at by someone smarter than me about security 
stuff.

The way Perl deals with this specific issue is by using a specific dummy module 
so no one can do this on accident.

Is this worth the time to discuss? Or am I just being paranoid about a third 
party library called install?

PyPI entry: https://pypi.org/project/install/
GitHub page: https://github.com/eugenekolo/pip-install
GitHub projects that depend on it: 
https://github.com/eugenekolo/pip-install/network/dependents?package_id=UGFja2FnZS0xMjU0NTI3MDI5
Perl dummy install module: https://metacpan.org/pod/install

--
messages: 390647
nosy: flamableconcrete
priority: normal
severity: normal
status: open
title: "install" package on PyPI
type: security

___
Python tracker 

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



[issue43737] Documentation of modulo operator should document behaviour clearly when second operator is negative

2021-04-09 Thread Anthony Flury


Anthony Flury  added the comment:

I fundamentally disagree with closing this - I know that this and many other 
'quirks' catch beginners out, and the tutorial is what they use to learn.They 
don't look in the reference document - it is too dense in BNF definitions which 
turns a lot of people off from any other useful information - When I was 
researching this issue I didn't even think to look in the reference section.

Looking in the library section for information about the built-in types is also 
non-obvious to beginners. 

If the tutorial doesn't contain the detail, and doesn't link to the detail then 
beginners are left entirely puzzled by the behavior.

Given how difficult it is to search the documentation if you don't know exactly 
what you are looking for, then how beginners would know to look at the FAQ is 
beyond me. Having communicated with a number of beginners on a number of issues 
they had no idea that the FAQ even existed.

The change didn't 'bury the tutorial in detail' - it added once sentence which 
linked to the FAQ. In fact all the change did was expand the FAQ entry by a few 
lines and link to the FAQ from the three places that are relevant.

I think this is a small change and it should be the start of making the 
tutorial beginner friendly.

--
resolution: not a bug -> 
status: closed -> open

___
Python tracker 

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



[issue43790] CLA check fails with a 500 error

2021-04-09 Thread Shreyan Avigyan


Shreyan Avigyan  added the comment:

I agree with you. I've faced the same problem. The server sometimes fails with 
a 500 error and sometimes it works fine. I'm attaching a screenshot of the 
problem.

--
nosy: +shreyanavigyan
Added file: https://bugs.python.org/file49951/Server Error 500.png

___
Python tracker 

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



[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-04-09 Thread Christian Heimes


Christian Heimes  added the comment:

Miro,

I have pushed several fixes for OpenSSL 3.0.0

* bpo-43788 addresses wrong library and error reason codes (e.g. KRB5_S_TKT_NYV)
* bpo-43789 fixes an issue with exception state in password callbacks 
(_PyEval_EvalFrameDefault returned a result with an exception set)
* bpo-43791 disables TLS 1.0 and 1.1 testing with OpenSSL 3.0.0. I'll have to 
talk to upstream and figure out a better solution.
* bpo-43794 adds OP_IGNORE_UNEXPECTED_EOF and sets it by default. This makes 
the code behave like OpenSSL 1.1.0 and 1.0.2.

I'll look into the other issues next week.

--

___
Python tracker 

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



[issue40485] Provide an abstraction for a select-able Event

2021-04-09 Thread Christian Heimes


Christian Heimes  added the comment:

Do you want to work on a feature for 3.10? Feature freeze is in less than 4 
weeks.

--
components: +Library (Lib) -Extension Modules
stage:  -> needs patch

___
Python tracker 

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



[issue43796] "install" package on PyPI

2021-04-09 Thread Christian Heimes


Christian Heimes  added the comment:

BPO is just for CPython bugs. Packaging and PyPI are handled by different teams 
and trackers. Please use https://github.com/pypa/pypi-support

--
nosy: +christian.heimes

___
Python tracker 

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



[issue43779] Fix possible parser/AST ref leaks

2021-04-09 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 76d270ec2b776cc5331935cc58c2d63622f1c0e9 by Erlend Egeberg 
Aasland in branch '3.9':
[3.9] bpo-43779: Fix possible refleak involving _PyArena_AddPyObject 
(GH-25289). (GH-25294)
https://github.com/python/cpython/commit/76d270ec2b776cc5331935cc58c2d63622f1c0e9


--

___
Python tracker 

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



[issue43779] Fix possible parser/AST ref leaks

2021-04-09 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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



[issue43796] "install" package on PyPI

2021-04-09 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

This seems to have been discussed : 
https://github.com/pypa/pypi-support/issues/451

--
nosy: +xtreak

___
Python tracker 

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



[issue24959] unittest swallows part of stack trace when raising AssertionError in a TestCase

2021-04-09 Thread David Mandelberg


Change by David Mandelberg :


--
nosy: +dseomn

___
Python tracker 

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



[issue37609] support "UNC" device paths in ntpath.splitdrive

2021-04-09 Thread Steve Dower


Change by Steve Dower :


--
assignee: steve.dower -> 

___
Python tracker 

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



  1   2   >