[issue44817] os.path.realpath fails with WinError 161

2021-08-02 Thread Michael Förderer

Change by Michael Förderer :


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

___
Python tracker 

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



[issue44817] os.path.realpath fails with WinError 161

2021-08-02 Thread Michael Förderer

New submission from Michael Förderer :

Using os.path.realpath(...) in the MVFS of Clearcase SCM (virtual file system) 
in Windows 10 a exception occures:

X:\my_view\tools\python\3_8>python.exe
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.
>>> import os
>>> os.path.realpath('.')
Traceback (most recent call last):
  File "X:\my_view\tools\python\3_8\lib\ntpath.py", line 647, in realpath
path = _getfinalpathname(path)
OSError: [WinError 87] Falscher Parameter: 'X:\\my_view\\tools\\python\\3_8\\.'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "", line 1, in 
  File "X:\my_view\tools\python\3_8\lib\ntpath.py", line 651, in realpath
path = _getfinalpathname_nonstrict(path)
  File "X:\my_view\tools\python\3_8\lib\ntpath.py", line 601, in 
_getfinalpathname_nonstrict
path = _getfinalpathname(path)
FileNotFoundError: [WinError 161] Der angegebene Pfadname ist ungültig: 'X:\\'
>>> 

The error 161 (ERROR_BAD_PATHNAME) should also be ignored in 
_getfinalpathname_nonstrict.

--
components: Library (Lib)
messages: 398814
nosy: Spacetown
priority: normal
severity: normal
status: open
title: os.path.realpath fails with WinError 161
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



[issue39091] _PyErr_CreateException() must check that the result is an exception (CPython Segfault in 5 lines of code)

2021-08-02 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 83ca46b7784b7357d82ec47b33295e09ed7380cb by Noah in branch 'main':
closes bpo-39091: Fix segfault when Exception constructor returns non-exception 
for gen.throw. (#17658)
https://github.com/python/cpython/commit/83ca46b7784b7357d82ec47b33295e09ed7380cb


--
nosy: +benjamin.peterson
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



[issue39091] _PyErr_CreateException() must check that the result is an exception (CPython Segfault in 5 lines of code)

2021-08-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26080
pull_request: https://github.com/python/cpython/pull/27573

___
Python tracker 

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



[issue39091] _PyErr_CreateException() must check that the result is an exception (CPython Segfault in 5 lines of code)

2021-08-02 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +26079
pull_request: https://github.com/python/cpython/pull/27572

___
Python tracker 

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



[issue44808] test_inspect fails in refleak mode

2021-08-02 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

Please disregard my last comment, I think I found a good way to fix it, the PR 
is up here:
https://github.com/python/cpython/pull/27571/files

--

___
Python tracker 

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



[issue44808] test_inspect fails in refleak mode

2021-08-02 Thread Andrei Kulakov


Change by Andrei Kulakov :


--
pull_requests: +26078
pull_request: https://github.com/python/cpython/pull/27571

___
Python tracker 

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



[issue43498] "dictionary changed size during iteration" error in _ExecutorManagerThread

2021-08-02 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

It was mentioned in bpo-40327 that although copy() makes the situation much 
better, it doesn't solve the problem entirely, since the memory allocation of 
the copy() call can release the GIL. I don't know enough to know whether it 
would be worth it to add locking.

--
nosy: +Dennis Sweeney

___
Python tracker 

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



Re: argparse: delimiter for argparse list arguments

2021-08-02 Thread Dan Stromberg
Isn't -- usually used to signal the end of options?

On Mon, Aug 2, 2021 at 12:52 PM Sven R. Kunze  wrote:

> Hi everyone,
>
> maybe, I am missing something here but is it possible to specify a
> delimiter for list arguments in argparse:
>
> https://docs.python.org/3/library/argparse.html
>
> Usually, '--' is used to separate two lists (cf. git).
>
> Cheers,
> Sven
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue44816] Folded constants do not trace correctly.

2021-08-02 Thread Brandt Bucher


New submission from Brandt Bucher :

PEP 626 says that "all expressions and parts of expressions are considered to 
be executable code" for the purposes of tracing. However, folding constants at 
compile-time can lose or change tracing events.

For example, these expressions (which can't be folded) generate events for two 
lines each:

[  # <--
None  # <--
]

(  # <--
foo,  # <--
)

(
1  # <--
/
0  # <--
)

(
1  # <--
/
bar  # <--
)

While these (which are folded) only generate events for one line each:

(  # <--
None,
)

(  # <--
1
/
42
)

Note that for the binary operation, a completely different line is traced in 
the optimized version.

We should correctly generate events for lines which are "folded away". This 
*might* mean refusing to fold nodes in the AST optimizer if they span multiple 
lines, or including some sort of additional line-coverage metadata on the new 
Constant nodes to fill NOPs as appropriate (which I personally prefer).

--
components: Interpreter Core
messages: 398810
nosy: Mark.Shannon, brandtbucher
priority: normal
severity: normal
status: open
title: Folded constants do not trace correctly.
type: behavior
versions: Python 3.11

___
Python tracker 

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



[issue28973] [doc] The fact that multiprocess.Queue uses serialization should be documented.

2021-08-02 Thread Irit Katriel


Irit Katriel  added the comment:

There is a note mentioning pickle in this section: 
https://docs.python.org/3/library/multiprocessing.html#pipes-and-queues

It starts with "When an object is put on a queue, the object is pickled and..."

A comment about the object ids can be added there.

--
keywords: +easy
nosy: +iritkatriel
title: The fact that multiprocess.Queue uses serialization should be 
documented. -> [doc] The fact that multiprocess.Queue uses serialization should 
be documented.
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5, 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



[issue22039] PyObject_SetAttr doesn't mention value = NULL

2021-08-02 Thread Irit Katriel


Irit Katriel  added the comment:

This behaviour is documented as deprecated all the way back to 2.7. Should we 
repurpose the issue to removing it? Otherwise it can be closed.

https://docs.python.org/2.7/c-api/object.html#c.PyObject_SetAttr

--
nosy: +iritkatriel
resolution:  -> duplicate
status: open -> pending
superseder:  -> Document that tp_setattro and tp_setattr are used for deleting 
attributes

___
Python tracker 

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



[issue18255] CPython setup.py problems

2021-08-02 Thread Irit Katriel


Irit Katriel  added the comment:

Is this still relevant now that distutils is deprecated?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue33003] [doc] urllib: Document parse_http_list

2021-08-02 Thread Irit Katriel


Change by Irit Katriel :


--
title: urllib: Document parse_http_list -> [doc] urllib: Document 
parse_http_list
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 
3.5, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue33008] urllib.request.parse_http_list incorrectly strips backslashes

2021-08-02 Thread Irit Katriel


Change by Irit Katriel :


--
type:  -> behavior
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 
3.5, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue16580] [doc] Add examples to int.to_bytes and int.from_bytes

2021-08-02 Thread Irit Katriel


Change by Irit Katriel :


--
title: Add examples to int.to_bytes and int.from_bytes -> [doc] Add examples to 
int.to_bytes and int.from_bytes
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3, Python 3.4

___
Python tracker 

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



[issue2824] zipfile to handle duplicate files in archive

2021-08-02 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.6, Python 2.7, Python 
3.2

___
Python tracker 

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



[issue34782] Pdb raises exception when code is executed in a mapping that does not define `__contains__`

2021-08-02 Thread Irit Katriel


Change by Irit Katriel :


--
nosy: +iritkatriel
nosy_count: 4.0 -> 5.0
pull_requests: +26077
pull_request: https://github.com/python/cpython/pull/27570

___
Python tracker 

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



[issue34782] Pdb raises exception when code is executed in a mapping that does not define `__contains__`

2021-08-02 Thread Irit Katriel


Change by Irit Katriel :


--
title: Pdb crashes when code is executed in a mapping that does not define 
`__contains__` -> Pdb raises exception when code is executed in a mapping that 
does not define `__contains__`
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7, Python 3.8

___
Python tracker 

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



[issue44815] asyncio.gather no DeprecationWarning if task are passed

2021-08-02 Thread Sam Bull


Change by Sam Bull :


--
pull_requests: +26076
pull_request: https://github.com/python/cpython/pull/27569

___
Python tracker 

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



[issue43498] "dictionary changed size during iteration" error in _ExecutorManagerThread

2021-08-02 Thread Thomas Petazzoni


Thomas Petazzoni  added the comment:

For the record: we're seeing this issue ~50 times a day on our build 
infrastructure.

--

___
Python tracker 

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



[issue43498] "dictionary changed size during iteration" error in _ExecutorManagerThread

2021-08-02 Thread Thomas Petazzoni


Thomas Petazzoni  added the comment:

I can confirm we are seeing the same issue when building Python 3.9 in the 
context of Buildroot. See 
http://autobuild.buildroot.net/results/ae6/ae6c4ab292589a4e4442dfb0a1286349a9bf4d29/build-end.log
 for an example build result. This happens since we have added 48-cores (96 
threads) build machines to our build farm, which dramatically increased the 
build parallelism.

--
nosy: +thomas-petazzoni

___
Python tracker 

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



[issue42698] Deadlock in pysqlite_connection_dealloc()

2021-08-02 Thread hydroflask


hydroflask  added the comment:

>> The major problem is that I don't exactly know how to provoke SQLite to
>> acquire an internal lock.

> IIRC, you can provoke the internal SQLite lock simply by using transaction 
> control: BEGIN (lock) => COMMIT / ROLLBACK (unlock).

Ah okay, so the sequence would have to be this:

thread1: pysqlite.some_operation()
thread1: release gil
thread1: sqlite3_some_procedure()
thread1: acquire sqlite lock

thread2: acquire gil
thread2: pysqlite.close()
thread2: sqlite3_close()
thread2: acquire sqlite lock

> I'll see if I can come up with a compact repro.

It should be possible, good luck!

--

___
Python tracker 

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



[issue42698] Deadlock in pysqlite_connection_dealloc()

2021-08-02 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

> In production the error was happening after 30 minutes of so.

Great, thanks.

> The major problem is that I don't exactly know how to provoke SQLite to
> acquire an internal lock.

IIRC, you can provoke the internal SQLite lock simply by using transaction 
control: BEGIN (lock) => COMMIT / ROLLBACK (unlock).

> If we assume that it does acquire internal locks and other threads release
> the GIL before calling into SQLite functions that acquire an internal lock,
> then you can reason that if sqlite3_close() acquires that lock without first
> releasing the GIL a deadlock will certainly occur.

True. For the record, I'm not doubting the existence of this deadlock, nor the 
correctness of the proposed solution (allow threads around sqlite3_close()) :)

I'll see if I can come up with a compact repro.

--

___
Python tracker 

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



[issue42698] Deadlock in pysqlite_connection_dealloc()

2021-08-02 Thread hydroflask


hydroflask  added the comment:

You did the right thing in terms of editing the code.

I was not able to get a deadlock with this code which I think should be 
representative of the error. In production the error was happening after 30 
minutes of so.

The major problem is that I don't exactly know how to provoke SQLite to acquire 
an internal lock. If we assume that it does acquire internal locks and other 
threads release the GIL before calling into SQLite functions that acquire an 
internal lock, then you can reason that if sqlite3_close() acquires that lock 
without first releasing the GIL a deadlock will certainly occur.

This is the deadlock that my application was running into.

--

___
Python tracker 

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



[issue42698] Deadlock in pysqlite_connection_dealloc()

2021-08-02 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

Thanks!

I had to comment out the reg_func() call (it is not defined in test.py, and I 
don't know what it's supposed to do), and change "with lock.shared_context():" 
to "with lock:", but I'm unable get a deadlock. I've tried with Python 3.8 
though 3.11 (dev) and SQLite 3.7.15 through 3.37.0 (dev).

- How long do you normally have to run this in order to force a deadlock?
- Could you attach the output of "python -m sysconfig"?

--

___
Python tracker 

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



argparse: delimiter for argparse list arguments

2021-08-02 Thread Sven R. Kunze

Hi everyone,

maybe, I am missing something here but is it possible to specify a 
delimiter for list arguments in argparse:


https://docs.python.org/3/library/argparse.html

Usually, '--' is used to separate two lists (cf. git).

Cheers,
Sven

--
https://mail.python.org/mailman/listinfo/python-list


[issue44814] python 3.9.6 installation installs 0 modules

2021-08-02 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

Are you still able to `import heapq` or `import sys`?

`requests` and `filetype` are not part of the Python standard library, and must 
be installed separately. You can check out the tutorial here: 
https://packaging.python.org/tutorials/installing-packages/

--
nosy: +Dennis Sweeney

___
Python tracker 

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



[issue44792] Improve syntax errors for invalid if expressions

2021-08-02 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 567176249ea95c074eb80199aaf19f3a55aa3954 by Miss Islington (bot) 
in branch '3.10':
bpo-44792: Improve syntax errors for if expressions (GH-27506) (GH-27565)
https://github.com/python/cpython/commit/567176249ea95c074eb80199aaf19f3a55aa3954


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



[issue44792] Improve syntax errors for invalid if expressions

2021-08-02 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



[issue44814] python 3.9.6 installation installs 0 modules

2021-08-02 Thread Zachary Ware


Zachary Ware  added the comment:

Posting just an image link makes this look like spam. Please copy and paste 
text showing your problem into a message instead.

--
nosy: +zach.ware

___
Python tracker 

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



[issue44808] test_inspect fails in refleak mode

2021-08-02 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
priority: release blocker -> 

___
Python tracker 

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



[issue44815] asyncio.gather no DeprecationWarning if task are passed

2021-08-02 Thread Sam Bull


Sam Bull  added the comment:

There is another issue with asyncio.sleep() too, if the passed argument is 0. 
This also tripped up the tests in aiohttp (though I've also used an explicit 0 
in production code to yield back to the loop).

--

___
Python tracker 

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



[issue44782] LRU class given as example in OrderedDict docs not work on pop

2021-08-02 Thread miss-islington


miss-islington  added the comment:


New changeset c6e7c9860d5ac968c7a1073fdbfbd44e0e87f582 by Miss Islington (bot) 
in branch '3.10':
bpo-44782: Improve OrderedDict recipe for LRU cache variants (GH-27536)
https://github.com/python/cpython/commit/c6e7c9860d5ac968c7a1073fdbfbd44e0e87f582


--

___
Python tracker 

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



[issue44782] LRU class given as example in OrderedDict docs not work on pop

2021-08-02 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset c50a672eebb16cf778d9a3b22b72d506c3f54ced by Miss Islington (bot) 
in branch '3.9':
bpo-44782: Improve OrderedDict recipe for LRU cache variants (GH-27536) 
(GH-27567)
https://github.com/python/cpython/commit/c50a672eebb16cf778d9a3b22b72d506c3f54ced


--

___
Python tracker 

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



[issue44815] asyncio.gather no DeprecationWarning if task are passed

2021-08-02 Thread Sam Bull


Change by Sam Bull :


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

___
Python tracker 

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



[issue44782] LRU class given as example in OrderedDict docs not work on pop

2021-08-02 Thread Raymond Hettinger


Change by Raymond Hettinger :


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



[issue44815] asyncio.gather no DeprecationWarning if task are passed

2021-08-02 Thread Sam Bull


New submission from Sam Bull :

When calling asyncio.gather() a DeprecationWarning is only emitted if no tasks 
are passed (which is probably the exceptional case, rather than the standard 
one).

This has resulted in us missing this deprecated argument in aiohttp until we 
received a bug report from a user trying it out against the 3.10 beta.

For some reason the warning only appears under a `if not coros_or_futures:` 
block. I think it should be run regardless:
https://github.com/python/cpython/blob/3.9/Lib/asyncio/tasks.py#L757

--
components: asyncio
messages: 398794
nosy: asvetlov, dreamsorcerer, yselivanov
priority: normal
severity: normal
status: open
title: asyncio.gather no DeprecationWarning if task are passed
versions: 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



[issue44814] python 3.9.6 installation installs 0 modules

2021-08-02 Thread nyizel


New submission from nyizel :

https://nizel.is-inside.me/NEi7A4aM.png

--
messages: 398793
nosy: trambell
priority: normal
severity: normal
status: open
title: python 3.9.6 installation installs 0 modules
type: behavior
versions: Python 3.9

___
Python tracker 

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



[issue44782] LRU class given as example in OrderedDict docs not work on pop

2021-08-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26074
pull_request: https://github.com/python/cpython/pull/27567

___
Python tracker 

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



[issue44782] LRU class given as example in OrderedDict docs not work on pop

2021-08-02 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue44782] LRU class given as example in OrderedDict docs not work on pop

2021-08-02 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 54f185b6d321a6354aef2b2886c766677f487ecb by Raymond Hettinger in 
branch 'main':
bpo-44782: Improve OrderedDict recipe for LRU cache variants (GH-27536)
https://github.com/python/cpython/commit/54f185b6d321a6354aef2b2886c766677f487ecb


--

___
Python tracker 

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



[issue35183] os.path.splitext documentation needs typical example

2021-08-02 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Jake! ✨  ✨

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



[issue35183] os.path.splitext documentation needs typical example

2021-08-02 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 14cb669357bc30bdc235d1c32ee1b99be05ac9d8 by Miss Islington (bot) 
in branch '3.10':
bpo-35183: Add typical examples to os.path.splitext docs (GH-27286) (GH-27563)
https://github.com/python/cpython/commit/14cb669357bc30bdc235d1c32ee1b99be05ac9d8


--

___
Python tracker 

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



[issue35183] os.path.splitext documentation needs typical example

2021-08-02 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset e0d599fa48032eb7b8d837f8412bbca72b6ad820 by Miss Islington (bot) 
in branch '3.9':
bpo-35183: Add typical examples to os.path.splitext docs (GH-27286) (GH-27564)
https://github.com/python/cpython/commit/e0d599fa48032eb7b8d837f8412bbca72b6ad820


--

___
Python tracker 

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



[issue44812] [docs] Document PyMember_{Get/Set}One in C API reference

2021-08-02 Thread Łukasz Langa

Change by Łukasz Langa :


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



[issue44785] test_pickle issues "DeprecationWarning: The Tix Tk.."

2021-08-02 Thread Łukasz Langa

Change by Łukasz Langa :


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



[issue44808] test_inspect fails in refleak mode

2021-08-02 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

I've been looking into avoiding global modification of modules['__main__'], the 
options are:

 1. remove the test and leave it at that

 2. remove the test and open a new issue for re-adding a test ; and look for a 
way to do it safely

 3. create a temp script file, add code to it that creates a class, sets 
`sys.modules['__main__'].__file__ = None` and inspects the class, and run this 
module in a new interpreter, checks exception raised and does sys.exit(1); and 
check the exit code after running this script.

 4. patch inspect.sys.modules; as far as I understand, this would mean other 
modules accessing sys.modules in other threads won't be affected, and 
sys.modules['__main__'] is currently used in inspect in a very limited way, so 
it can probably be shown that this patching won't affect other tests that use 
inspect, -- but I would need to look more into this.

I'm not sure if #3 is too heavy/complex for this test.

The advantage of #1 and #2 is that it's easy to do and ensures that there won't 
be strange random test failures that are hard to track down and debug (which is 
something that I'm afraid can happen right now, caused by this test).

#4 I've added to get comments / thought.

--

___
Python tracker 

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



[issue44806] Subclassing Protocol get different __init__

2021-08-02 Thread Łukasz Langa

Change by Łukasz Langa :


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



[issue44792] Improve syntax errors for invalid if expressions

2021-08-02 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue44792] Improve syntax errors for invalid if expressions

2021-08-02 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 28b6dc9dd5d1ce6f8aff7e06d4ef9afdc2bc8332 by Miguel Brito in 
branch 'main':
bpo-44792: Improve syntax errors for if expressions (GH-27506)
https://github.com/python/cpython/commit/28b6dc9dd5d1ce6f8aff7e06d4ef9afdc2bc8332


--
nosy: +pablogsal

___
Python tracker 

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



[issue44785] test_pickle issues "DeprecationWarning: The Tix Tk.."

2021-08-02 Thread miss-islington


miss-islington  added the comment:


New changeset aa7266854abc63524b4be40a3a83977b8ad166c6 by Miss Islington (bot) 
in branch '3.10':
bpo-44785: Silence deprecation warnings in test_pickle (GH-27538)
https://github.com/python/cpython/commit/aa7266854abc63524b4be40a3a83977b8ad166c6


--

___
Python tracker 

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



[issue44806] Subclassing Protocol get different __init__

2021-08-02 Thread miss-islington


miss-islington  added the comment:


New changeset 2cc19a5463c804b2f39b94de896d55dcb57a364c by Miss Islington (bot) 
in branch '3.10':
bpo-44806: Fix __init__ in subclasses of protocols (GH-27545)
https://github.com/python/cpython/commit/2cc19a5463c804b2f39b94de896d55dcb57a364c


--

___
Python tracker 

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



[issue35183] os.path.splitext documentation needs typical example

2021-08-02 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 5.0 -> 6.0
pull_requests: +26070
pull_request: https://github.com/python/cpython/pull/27563

___
Python tracker 

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



[issue35183] os.path.splitext documentation needs typical example

2021-08-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26071
pull_request: https://github.com/python/cpython/pull/27564

___
Python tracker 

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



[issue35183] os.path.splitext documentation needs typical example

2021-08-02 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset aa0894b3792901adb91e5f6d049154b7bcb980ec by Jake Stockwin in 
branch 'main':
bpo-35183: Add typical examples to os.path.splitext docs (GH-27286)
https://github.com/python/cpython/commit/aa0894b3792901adb91e5f6d049154b7bcb980ec


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue44809] Changelog missing removal of StrEnum etc.

2021-08-02 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

There was a revert of enum related changes in Python 3.10. Since the news file 
is generated I guess this is probably missed.

--
nosy: +ethan.furman, xtreak

___
Python tracker 

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



[issue44806] Subclassing Protocol get different __init__

2021-08-02 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 0f6a7739df0055b5c6abe2180f1be97ea4da87b7 by Miss Islington (bot) 
in branch '3.9':
bpo-44806: Fix __init__ in subclasses of protocols (GH-27545) (GH-27559)
https://github.com/python/cpython/commit/0f6a7739df0055b5c6abe2180f1be97ea4da87b7


--

___
Python tracker 

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



[issue44785] test_pickle issues "DeprecationWarning: The Tix Tk.."

2021-08-02 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 4817c1439519081d7bd9b396bb18b0f4124613be by Miss Islington (bot) 
in branch '3.9':
bpo-44785: Silence deprecation warnings in test_pickle (GH-27538) (#27557)
https://github.com/python/cpython/commit/4817c1439519081d7bd9b396bb18b0f4124613be


--

___
Python tracker 

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



[issue44813] generate specialization stat names list into opcode.h

2021-08-02 Thread Irit Katriel


Change by Irit Katriel :


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

___
Python tracker 

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



[issue44806] Subclassing Protocol get different __init__

2021-08-02 Thread Yurii Karabas


Change by Yurii Karabas <1998uri...@gmail.com>:


--
pull_requests: +26068
pull_request: https://github.com/python/cpython/pull/27543

___
Python tracker 

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



[issue44812] [docs] Document PyMember_{Get/Set}One in C API reference

2021-08-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26067
pull_request: https://github.com/python/cpython/pull/27560

___
Python tracker 

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



[issue44812] [docs] Document PyMember_{Get/Set}One in C API reference

2021-08-02 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue44806] Subclassing Protocol get different __init__

2021-08-02 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 043cd60abed09edddc7185bcf7d039771acc734d by Serhiy Storchaka in 
branch 'main':
bpo-44806: Fix __init__ in subclasses of protocols (GH-27545)
https://github.com/python/cpython/commit/043cd60abed09edddc7185bcf7d039771acc734d


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue44806] Subclassing Protocol get different __init__

2021-08-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26065
pull_request: https://github.com/python/cpython/pull/27559

___
Python tracker 

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



[issue44806] Subclassing Protocol get different __init__

2021-08-02 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue44813] generate specialization stat names list into opcode.h

2021-08-02 Thread Irit Katriel


New submission from Irit Katriel :

The stat names are repeated in several places in the code, refactor to have 
this list appear only once in opcode.py.

--
messages: 398779
nosy: iritkatriel
priority: normal
severity: normal
status: open
title: generate specialization stat names list into opcode.h
type: enhancement
versions: Python 3.11

___
Python tracker 

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



[issue44785] test_pickle issues "DeprecationWarning: The Tix Tk.."

2021-08-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26063
pull_request: https://github.com/python/cpython/pull/27557

___
Python tracker 

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



[issue44785] test_pickle issues "DeprecationWarning: The Tix Tk.."

2021-08-02 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +26062
pull_request: https://github.com/python/cpython/pull/27556

___
Python tracker 

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



[issue44785] test_pickle issues "DeprecationWarning: The Tix Tk.."

2021-08-02 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 36d952d228582b0ffc7a86c520d4ddbe8943d803 by Serhiy Storchaka in 
branch 'main':
bpo-44785: Silence deprecation warnings in test_pickle (#27538)
https://github.com/python/cpython/commit/36d952d228582b0ffc7a86c520d4ddbe8943d803


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue44812] [docs] Document PyMember_{Get/Set}One in C API reference

2021-08-02 Thread Ken Jin


Change by Ken Jin :


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

___
Python tracker 

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



[issue44812] [docs] Document PyMember_{Get/Set}One in C API reference

2021-08-02 Thread Ken Jin


New submission from Ken Jin :

I can't seem to find PyMember_GetOne or PyMember_SetOne in C API docs, yet they 
are in stable_abi.txt.

Sending a PR shortly, please tell me if these were accidentally exposed and not 
supposed to be documented (I will close the PR if so).

--
assignee: docs@python
components: Documentation
messages: 398777
nosy: docs@python, kj, petr.viktorin
priority: normal
severity: normal
status: open
title: [docs] Document PyMember_{Get/Set}One in C API reference
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

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



[issue15870] PyType_FromSpec should take metaclass as an argument

2021-08-02 Thread Josh Haberman


Josh Haberman  added the comment:

> You can also call (PyObject_Call*) the metaclass with (name, bases, 
> namespace);

But won't that just call my metaclass's tp_new?  I'm trying to do this from my 
metaclass's tp_new, so I can customize the class creation process. Then Python 
code can use my metaclass to construct classes normally.

> I wouldn't recommend [setting ob_type] after PyType_Ready is called.

Why not?  What bad things will happen?  It seems to be working so far.

Setting ob_type directly actually solves another problem that I had been having 
with the limited API.  I want to implement tp_getattro on the metaclass, but I 
want to first delegate to PyType.tp_getattro to return any entry that may be 
present in the type's tp_dict.  With the full API I could call 
self->ob_type->tp_base->tp_getattro() do to the equivalent of super(), but with 
the limited API I can't access type->tp_getattro (and PyType_GetSlot() can't be 
used on non-heap types).

I find that this does what I want:

  PyTypeObject *saved_type = self->ob_type;
  self->ob_type = _Type;
  PyObject *ret = PyObject_GetAttr(self, name);
  self->ob_type = saved_type;

Previously I had tried:

   PyObject *super = PyObject_CallFunction((PyObject *)_Type, "OO",
   self->ob_type, self);
   PyObject *ret = PyObject_GetAttr(super, name);
   Py_DECREF(super);

But for some reason this didn't work.

--

___
Python tracker 

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



[issue44799] typing.get_type_hints() raises TypeError for a variable annotated by dataclasses.InitVar

2021-08-02 Thread Eric V. Smith


Change by Eric V. Smith :


--
assignee:  -> eric.smith

___
Python tracker 

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



[issue44725] Expose specialization stats in python

2021-08-02 Thread Irit Katriel


Irit Katriel  added the comment:

Closing as the stats we added. I'll create a new issue for the refactor we 
discussed on the PR.

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



[issue44799] typing.get_type_hints() raises TypeError for a variable annotated by dataclasses.InitVar

2021-08-02 Thread Eric V. Smith


Change by Eric V. Smith :


--
nosy: +eric.smith

___
Python tracker 

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



[issue34422] __name__ not available for classes in typing module

2021-08-02 Thread Ken Jin


Ken Jin  added the comment:

Agree with Yurii. This is no longer an issue in 3.10 onwards. Thanks to Yurii 
for providing the fix in the other issue.

--
nosy: +kj
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



[issue44660] email.feedparser: support RFC 6532 section 3.5

2021-08-02 Thread Francis Johnson

Francis Johnson  added the comment:

As requested, I’ve started testing and writing changes for the generator and 
content manager.  I’m assuming there is no rush since the scope is now widened. 
 Will have some follow-on questions about the design.

--

___
Python tracker 

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



[issue44811] Change default signature algorithms for context in the ssl library

2021-08-02 Thread Anis Gandoura


Anis Gandoura  added the comment:

Hello, thank you for your message.

The default signatures list is very different from what a usual Internet 
Browser (like Chrome or Firefox) displays.

Here is an example:

With Chrome I have: 
SHA256/ECDSA, RSA_PSS_SHA256, SHA256/RSA, SHA384/ECDSA, RSA_PSS_SHA384, 
SHA384/RSA, RSA_PSS_SHA512, SHA512/RSA 

With default SSL settings: 
SHA256/ECDSA, SHA384/ECDSA, SHA512/ECDSA, Ed25519, Ed448, Unknown (0x8)/Unknown 
(0x9), Unknown (0x8)/Unknown (0xa), Unknown (0x8)/Unknown (0xb), 
RSA_PSS_SHA256, RSA_PSS_SHA384, RSA_PSS_SHA512, SHA256/RSA, SHA384/RSA, 
SHA512/RSA, SHA224/ECDSA, SHA1/ECDSA, SHA224/RSA, SHA1/RSA, SHA224/DSA, 
SHA1/DSA, SHA256/DSA, SHA384/DSA, SHA512/DSA

You can use this website for testing: 
https://clienttest.ssllabs.com:8443/ssltest/viewMyClient.html

We are building a security suite in Python to protect websites from DDOS 
attacks and we are not able to run "Chrome like" tests due to this limitation.

--

___
Python tracker 

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



[issue44206] Add a version number to dict keys.

2021-08-02 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Closing for now unless we see the error again

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue44206] Add a version number to dict keys.

2021-08-02 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset e06ae75e16dbf46b6626b6a41b62391ea1fdb319 by Mark Shannon in 
branch 'main':
bpo-44206: Make sure that dict-keys's version is set to zero when value is 
popped (GH-27542)
https://github.com/python/cpython/commit/e06ae75e16dbf46b6626b6a41b62391ea1fdb319


--

___
Python tracker 

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



[issue44811] Change default signature algorithms for context in the ssl library

2021-08-02 Thread Christian Heimes


Christian Heimes  added the comment:

Thanks for your PR. Before we move forward, let's discuss reasoning and API 
design first.

Why should a Python application be able to modify the signature algorithms? The 
default settings are safe and sane. Security properties should rather be set 
system-wide with a crypto policy in OpenSSL's global config file. Application 
specific settings can cause security or compatibility issues.

**If** there is a solid reason to expose the feature, then

- the API should be modeled after SSLContext.set_alpn_protocols() and accept a 
sequence of strings.
- the API should also be able to return currently enabled and perhaps currently 
available algorithms.
- the ssl module should get an enum of common algorithms with names based on 
IANA's TLS parameter list.
- the PR needs tests and documentation

--
type:  -> enhancement

___
Python tracker 

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



[issue20703] RuntimeError caused by lazy imports in pdb

2021-08-02 Thread Irit Katriel


Irit Katriel  added the comment:

I think option 2 changes the current behaviour, because cmd.Cmd.cmdloop will 
import readline later, and the set_completer_delims() call would never happen 
even though readline is used. I'll update the patch to do option 1.

--

___
Python tracker 

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



[issue44808] test_inspect fails in refleak mode

2021-08-02 Thread miss-islington


miss-islington  added the comment:


New changeset a1eaa74d9dcd973ec278cefc22aac7f514faee4b by Miss Islington (bot) 
in branch '3.10':
bpo-44808: Fix test_inspect in refleak mode (GH-27544)
https://github.com/python/cpython/commit/a1eaa74d9dcd973ec278cefc22aac7f514faee4b


--

___
Python tracker 

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



[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-08-02 Thread hai shi


hai shi  added the comment:

> - for the qualified name you can use `PyObject_GetAttrString(t, 
> "__qualname__")`

After PR-27551 merged, we can use PyType_GetQualName() to get type's 
`__qualname__`.

--

___
Python tracker 

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



[issue34422] __name__ not available for classes in typing module

2021-08-02 Thread Yurii Karabas


Yurii Karabas <1998uri...@gmail.com> added the comment:

I believe we can close this issue.

It has been fixed in scope of this issue - https://bugs.python.org/issue44524

--
nosy: +uriyyo

___
Python tracker 

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



[issue44799] typing.get_type_hints() raises TypeError for a variable annotated by dataclasses.InitVar

2021-08-02 Thread Yurii Karabas


Change by Yurii Karabas <1998uri...@gmail.com>:


--
keywords: +patch
nosy: +uriyyo
nosy_count: 1.0 -> 2.0
pull_requests: +26060
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/27553

___
Python tracker 

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



[issue44810] nturl2path: drive definition

2021-08-02 Thread Nick


Nick  added the comment:

For the visualization I created a PR with a possible fix. (The link is set into 
the corresponding field.)

If everything is OK, I will perform all the required things like the CLA, news 
entry...

--

___
Python tracker 

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



[issue44810] nturl2path: drive definition

2021-08-02 Thread Nick


Change by Nick :


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

___
Python tracker 

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



[issue28356] [easy doc] Document os.rename() behavior on Windows when src and dst are on different filesystems

2021-08-02 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



[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-08-02 Thread hai shi


Change by hai shi :


--
pull_requests: +26057
pull_request: https://github.com/python/cpython/pull/27551

___
Python tracker 

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



[issue44811] Change default signature algorithms for context in the ssl library

2021-08-02 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
nosy: +python-dev
nosy_count: 2.0 -> 3.0
pull_requests: +26056
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/27550

___
Python tracker 

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



PyCon India 2021: The Workshop & Talk schedule is out!

2021-08-02 Thread Chandan Kumar
Hello Everyone,

The PyCon India 2021 workshop & talk schedule is out[0].

We thank everyone who submitted their proposals for talks, workshops,
Bird of Feathers (Bofs), and poster sessions being organized this
year.
The call for proposals is a critical aspect of the conference, and we
got over 150 submissions! The review committee, along with all the
volunteers,
worked quite hard to make the deadlines work.
All these efforts go on to accomplish one outcome. An incredible PyCon
India keeping you at its epicenter!

As we are releasing the workshop, talk, and keynotes schedule, be sure to look
out for the release of poster presentations, panel discussions, and
information about many more events in the coming days on Twitter and
on our mailing list.

Our Mentorship working group is working double-time to get all the
speakers on top
shape for making this year's PyCon India experience amazing for
everyone.

To check the schedule you can visit the schedule page[1].

Links:
[0]. https://in.pycon.org/blog/2021/announce-2021-schedule.html
[1]. https://in.pycon.org/2020/#schedule

See you all in 45 days!

Quick Summary:
--

PyCon India 2021 is happening online from 17th Sep, 2021 to 20th Sep, 2021.

* WorkShop Days: 17th Sep, 2021
* Conference Days: 18th-19th Sep, 2021
* DevSprints Days: 20th Sep, 2021

Conference tickets are open now, Grab it from here:
https://in.pycon.org/2021/#tickets
Conference Schedule: https://in.pycon.org/2020/#schedule

Have any questions or suggestions, Do reach out to us on Zulip:
https://pyconindia.zulipchat.com/

Please help us spread this message by sharing it on your social
networks as widely as possible. Thank you!

Tweet Link: https://twitter.com/pyconindia/status/1422177552777375746

With Regards,

Chandan Kumar
On behalf of PyCon India 2021
___
Python-announce-list mailing list -- python-announce-list@python.org
To unsubscribe send an email to python-announce-list-le...@python.org
https://mail.python.org/mailman3/lists/python-announce-list.python.org/
Member address: arch...@mail-archive.com


[issue44808] test_inspect fails in refleak mode

2021-08-02 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +26055
pull_request: https://github.com/python/cpython/pull/27546

___
Python tracker 

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



[issue44811] Change default signature algorithms for context in the ssl library

2021-08-02 Thread Anis Gandoura


Change by Anis Gandoura :


--
assignee:  -> christian.heimes
components: +SSL
nosy: +christian.heimes
versions: +Python 3.11

___
Python tracker 

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



[issue44811] Change default signature algorithms for context in the ssl library

2021-08-02 Thread Anis Gandoura


New submission from Anis Gandoura :

Expose the OpenSSL function SSL_CTX_set1_sigalgs_list to allow the user to 
modify the supported signature algorithms for a given SSL Context.
OpenSSL documentation: 
https://www.openssl.org/docs/man1.1.0/man3/SSL_CTX_set1_sigalgs_list.html

--
messages: 398762
nosy: anis.gandoura
priority: normal
severity: normal
status: open
title: Change default signature algorithms for context in the ssl library

___
Python tracker 

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



[issue44810] nturl2path: drive definition

2021-08-02 Thread Nick


New submission from Nick :

Due some problem in a third-party package the `url2path` function from 
`nturl2path` got `a/"https://b"` (without `, `a`,`b` are just masks ) as the 
first and only argument.

In the function there is the following code ( 
https://github.com/python/cpython/blob/414dcb13aaa4fd42f264fdee47782dede5c83d6c/Lib/nturl2path.py#L30
 ; current state of the `main` branch):
```
comp = url.split('|')
if len(comp) != 2 or comp[0][-1] not in string.ascii_letters:
error = 'Bad URL: ' + url
raise OSError(error)
drive = comp[0][-1].upper()
```

As a result, the function decided that the file was located on the `S:` drive 
and returned the `S:\b` path without a warning.
To my mind, it is not right to take just the last letter as a drive letter 
because the returned path must be only for the specified URL and the 
unsupported ones must be marked as "bad" without any silent transformations.

--
components: Windows
messages: 398761
nosy: NickVeld, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: nturl2path: drive definition
type: behavior
versions: Python 3.11

___
Python tracker 

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



[issue44809] Changelog missing removal of StrEnum etc.

2021-08-02 Thread Sebastian Rittau


New submission from Sebastian Rittau :

It seems that at some point StrEnum and a few other members were added to 
Python 3.10. I think they were present in 3.10 beta 2, but it seems they were 
removed by beta 4. While the Changelog at 
https://docs.python.org/3.10/whatsnew/changelog.html mentions that they were 
added, there is no note about their removal again.

--
assignee: docs@python
components: Documentation
messages: 398760
nosy: docs@python, srittau
priority: normal
severity: normal
status: open
title: Changelog missing removal of StrEnum etc.
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



[issue44808] test_inspect fails in refleak mode

2021-08-02 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

Pablo: thanks for investigating and fixing this, I will look for examples of 
changing or patching sys.modules in the testsuite to see how to avoid global 
effects. I think we can keep this issue open for the follow-up discussion / fix?

--
nosy: +andrei.avk

___
Python tracker 

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



[issue39927] IDLE.app fails on macOS 10.15 if denied access to Documents

2021-08-02 Thread Van Warren


Van Warren  added the comment:

If you are running from a conda python library and don't want the weight of 
Jupyter for a quick python hack, add this to your .bashrc file (or equivalent 
shell startup)

alias idle='python -m idlelib'

This will bypass faulty default MacOS installs in /usr/local/bin

Ref: https://www.urbandictionary.com/define.php?term=hack

--
nosy: +lvwarren

___
Python tracker 

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



  1   2   >