[issue44119] Use glob.glob() to implement pathlib.Path.glob()

2021-05-12 Thread Barney Gale


New submission from Barney Gale :

I have a scratchy patch that replaces pathlib's globbing implementation with 
glob.glob(), which gained a `root_dir` argument in bpo-38144

Encouraging timings:

$ ./python -m timeit -s "from pathlib import Path; p = Path()" -- 
"list(p.glob('**/*'))"
Unpatched: 43.2 msec per loop
Patched:   4.37 msec per loop

$ ./python -m timeit -s "from pathlib import Path; p = Path('/usr/')" -- 
"list(p.glob('lib*/**/*'))"
Unpatched: 248 msec per loop
Patched:   56.8 msec per loop

$ ./python -m timeit -s "from pathlib import Path; p = Path('/usr/')" -- 
"list(p.glob('lib*/**/'))"
Unpatched: 78.3 msec per loop
Patched:   2.23 msec per loop

Patch to follow.

--
components: Library (Lib)
messages: 393556
nosy: barneygale
priority: normal
severity: normal
status: open
title: Use glob.glob() to implement pathlib.Path.glob()
type: performance
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



[issue44104] http.cookies.CookieError: Illegal key

2021-05-12 Thread ra1nb0w


ra1nb0w  added the comment:

Thank you very much jaswdr for the clarification.
Now I close this issue.

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



[issue44098] Remove ParamSpec from __parameters__ of most typing generics

2021-05-12 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue44114] Incorrect function signatures in dictobject.c

2021-05-12 Thread Ma Lin


Change by Ma Lin :


--
nosy: +methane

___
Python tracker 

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



[issue40938] urllib.parse.urlunsplit makes relative path to absolute (http:g -> http:///g)

2021-05-12 Thread hai shi


Change by hai shi :


--
nosy: +orsenthil

___
Python tracker 

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



[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-05-12 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



[issue44115] Improve conversions for fractions

2021-05-12 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
assignee:  -> rhettinger
nosy: +rhettinger

___
Python tracker 

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



[issue44069] pathlib.Path.glob's generator is not a real generator

2021-05-12 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
nosy: +pitrou

___
Python tracker 

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



[issue44115] Improve conversions for fractions

2021-05-12 Thread Vedran Čačić

Vedran Čačić  added the comment:

Absolutely. I think that's a big part of the reason that as_integer_ratio is 
there.

--
nosy: +veky

___
Python tracker 

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



[issue26032] Use scandir() to speed up pathlib globbing

2021-05-12 Thread Barney Gale


Change by Barney Gale :


--
nosy: +barneygale
nosy_count: 8.0 -> 9.0
pull_requests: +24730
pull_request: https://github.com/python/cpython/pull/25701

___
Python tracker 

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



[issue43757] pathlib: move 'resolve()' logic out of path flavour

2021-05-12 Thread Barney Gale


Change by Barney Gale :


--
pull_requests: +24729
pull_request: https://github.com/python/cpython/pull/26090

___
Python tracker 

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



[issue39906] pathlib.Path: add `follow_symlinks` argument to `stat()` and `chmod()`

2021-05-12 Thread Barney Gale


Change by Barney Gale :


--
pull_requests: +24728
pull_request: https://github.com/python/cpython/pull/26089

___
Python tracker 

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



[issue43757] pathlib: move 'resolve()' logic out of path flavour

2021-05-12 Thread Barney Gale


Change by Barney Gale :


--
pull_requests: +24727
pull_request: https://github.com/python/cpython/pull/26088

___
Python tracker 

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



[issue39906] pathlib.Path: add `follow_symlinks` argument to `stat()` and `chmod()`

2021-05-12 Thread Barney Gale


Change by Barney Gale :


--
pull_requests: +24726
pull_request: https://github.com/python/cpython/pull/26087

___
Python tracker 

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



[issue15003] make PyNamespace_New() public

2021-05-12 Thread STINNER Victor


Change by STINNER Victor :


--
nosy:  -vstinner
resolution:  -> rejected

___
Python tracker 

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



[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread STINNER Victor


STINNER Victor  added the comment:

commit 6cd0446ef72c6676b292d7f54b1ddb8ae5e1fb8d
Author: Victor Stinner 
Date:   Wed May 12 23:59:25 2021 +0200

bpo-44113: Deprecate old functions to config Python init (GH-26060)

Deprecate the following functions to configure the Python
initialization:

* PySys_AddWarnOption()
* PySys_AddWarnOptionUnicode()
* PySys_AddXOption()
* PySys_HasWarnOptions()
* Py_SetPath()
* Py_SetProgramName()
* Py_SetPythonHome()
* Py_SetStandardStreamEncoding()
* _Py_SetProgramFullPath()

Use the new PyConfig API of the Python Initialization Configuration
instead (PEP 587).

commit a0ccc404ca649c2a1635511a09df2454e47b4d66
Author: Dong-hee Na 
Date:   Thu May 13 08:22:18 2021 +0900

bpo-44113: Update __xxtestfuzz not to use Py_SetProgramName (GH-26083)

commit ec7c09b9bc9a8f333a0295b41ea88986c320448c
Author: Victor Stinner 
Date:   Thu May 13 02:27:56 2021 +0200

bpo-44113: Fix compiler warning in PySys_AddWarnOption() (GH-26084)

Ignore Py_DEPRECATED() warning on purpose.

--

___
Python tracker 

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



[issue44030] Markup with_traceback code example

2021-05-12 Thread Irit Katriel


Change by Irit Katriel :


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



[issue44030] Markup with_traceback code example

2021-05-12 Thread Irit Katriel


Irit Katriel  added the comment:


New changeset 6275ea02825731fd23f523058ac87aac53888740 by Miss Islington (bot) 
in branch '3.10':
bpo-44030: Fix formatting error in exceptions docs (GH-25929) (GH-26086)
https://github.com/python/cpython/commit/6275ea02825731fd23f523058ac87aac53888740


--
nosy: +iritkatriel

___
Python tracker 

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



[issue44030] Markup with_traceback code example

2021-05-12 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +24724
pull_request: https://github.com/python/cpython/pull/26085

___
Python tracker 

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



[issue15003] make PyNamespace_New() public

2021-05-12 Thread Jouke Witteveen


Change by Jouke Witteveen :


--
nosy: +joukewitteveen

___
Python tracker 

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



[issue33809] Expose `capture_locals` parameter in `traceback` convenience functions

2021-05-12 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.11 -Python 3.10

___
Python tracker 

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



[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread STINNER Victor

STINNER Victor  added the comment:

"""
Check warning on line 82 in Python/frozenmain.c
GitHub Actions / Ubuntu
‘Py_SetProgramName’ is deprecated [-Wdeprecated-declarations]
"""

Well, Py_FrozenMain() should be rewritten with PyConfig, I want to do that for 
a long time, but I don't know how to test it. It would be nice to have a very 
basic test for Py_FrozenMain().

See also:
https://mail.python.org/archives/list/capi-...@python.org/thread/5QLI3NUP3OSGLCCIBAQOTX4GEJQBWJ6F/

--

___
Python tracker 

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



[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +24723
pull_request: https://github.com/python/cpython/pull/26084

___
Python tracker 

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



[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread STINNER Victor


STINNER Victor  added the comment:

PyConfig API was added to Python 3.8, so it's now widely available. Python 3.8 
always switched to security fixes only phase. So IMO it's ok to deprecate the 
old API now.

--

___
Python tracker 

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



[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-05-12 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10
nosy_count: 3.0 -> 4.0
pull_requests: +24722
pull_request: https://github.com/python/cpython/pull/26083

___
Python tracker 

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



[issue44118] cython compiler error

2021-05-12 Thread Marc Udoff


Marc Udoff  added the comment:

Wrong forum

--
resolution:  -> third party
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



[issue44118] cython compiler error

2021-05-12 Thread Marc Udoff


New submission from Marc Udoff :

Hi,

The follow gives an unexpected error during compilation:

In [1]: %%cython  
   ...: #cython: infer_types=True 
   ...: class A: 
   ...: def f(self): 
   ...: x = max(self.a, self.a)


Removing max, or setting infer_types=False, or setting x = None first all make 
it compile.

--
components: C API
files: cpython_error.txt
messages: 393548
nosy: mlucool
priority: normal
severity: normal
status: open
title: cython compiler error
type: compile error
versions: Python 3.7
Added file: https://bugs.python.org/file50039/cpython_error.txt

___
Python tracker 

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



[issue31753] Unnecessary closure in ast.literal_eval

2021-05-12 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
resolution:  -> rejected

___
Python tracker 

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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 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



[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-12 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

I'm marking this as a 3.10 release blocker untill all converted types that are 
in 3.10 have GC support.

--
nosy: +pablogsal
priority: normal -> release blocker

___
Python tracker 

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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> I know that work with heap types have been halted by the SC, as you've 
> pointed out a couple of times already, but shouldn't this heap type issue be 
> fixed before 3.10 is released?

It should absolutely be fixed for all types that have been already converted. 
The halting is for more types.

--

___
Python tracker 

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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

Pablo, as mentioned in bpo-42972, this is an issue with all heap allocated 
types; it is not _csv specific. I know that work with heap types have been 
halted by the SC, as you've pointed out a couple of times already, but 
shouldn't this heap type issue be fixed before 3.10 is released? There's plenty 
of time in the beta phase to do this.

--

___
Python tracker 

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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 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



[issue40938] urllib.parse.urlunsplit makes relative path to absolute (http:g -> http:///g)

2021-05-12 Thread Jonathan Schweder


Jonathan Schweder  added the comment:

@op368 I don't think that this is a bug, [1] literally uses this exact example 
and shows the expected behaviour. 


[1] https://datatracker.ietf.org/doc/html/rfc3986#section-5.4.2

--
nosy: +jaswdr

___
Python tracker 

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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset ba260acb22f3a6de434dc7a159ddb94a6a8c9b7c by Miss Islington (bot) 
in branch '3.10':
bpo-44116: Add GC support to _csv heap types (GH-26074) (GH-26081)
https://github.com/python/cpython/commit/ba260acb22f3a6de434dc7a159ddb94a6a8c9b7c


--
nosy: +pablogsal

___
Python tracker 

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



[issue40645] Use OpenSSL's HMAC API

2021-05-12 Thread miss-islington


miss-islington  added the comment:


New changeset 1ee58f252454072a1c9da77999db8e6417a307a0 by Miss Islington (bot) 
in branch '3.10':
bpo-40645: Fix ref leaks in _hashopenssl (GH-26079)
https://github.com/python/cpython/commit/1ee58f252454072a1c9da77999db8e6417a307a0


--

___
Python tracker 

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



[issue40645] Use OpenSSL's HMAC API

2021-05-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +24721
pull_request: https://github.com/python/cpython/pull/26082

___
Python tracker 

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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +24720
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/26081

___
Python tracker 

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



[issue41111] [C API] Convert a few stdlib extensions to the limited C API (PEP 384)

2021-05-12 Thread hai shi


hai shi  added the comment:

> The main limitation to use the limited C API for stdlib is Argument Clinic 
> which attempts to always emit the most efficient code, like using the 
> METH_FASTCALL calling convention and use private functions like 
> _PyArg_CheckPositional() or "static _PyArg_Parser _parser".

PR-26080 adds the feature that Argument Clinic to support to use the Limited C 
API.
METH_FASTCALL is the part of the stable ABI in PR-23009.
Do we need convert METH_VARARGS and METH_KEYWORDS as the part of the stable ABI 
too(something like METH_FASTCALL)?

--

___
Python tracker 

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



[issue43813] Denial of service on http.server module with large request method.

2021-05-12 Thread Jonathan Schweder


Jonathan Schweder  added the comment:

@demonia you are more than welcome to send a PR, sent it and add a reference to 
this issue, so it could be reviewed.

--
nosy: +jaswdr

___
Python tracker 

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



[issue44104] http.cookies.CookieError: Illegal key

2021-05-12 Thread Jonathan Schweder


Jonathan Schweder  added the comment:

Simple example to reproduce the issue:

from http import cookies
C = cookies.SimpleCookie()
C["ys-api/mpegts/service"] = "blabla"
print(C.output())

@ra1nb0w so far as I have found [1][2], the "/" not a valid character for the 
Cookie name, [3] defines the list of valid characters and [4] is where the 
exception is raised, I also found that even with the RFC browsers have 
different rules for the Cookie name definitions, this could be reason why 
Python has, for example, the ":" character in the list.

My conclusion is that the rule for the cookie name is not well-defined, there 
are some ambiguities here and there, but if we consider purely this case and 
the RFC, the "/" still is not a valid character for the cookie name, so I guess 
the best option for you is to filter it out any http.cookies.CookieError that 
happen.

[1] 
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#attributes
[2] https://datatracker.ietf.org/doc/html/rfc2616#section-2.2
[3] https://github.com/python/cpython/blob/main/Lib/http/cookies.py#L162
[4] https://github.com/python/cpython/blob/main/Lib/http/cookies.py#L353

--
nosy: +jaswdr

___
Python tracker 

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



[issue41111] [C API] Convert a few stdlib extensions to the limited C API (PEP 384)

2021-05-12 Thread hai shi


Change by hai shi :


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

___
Python tracker 

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



[issue40645] Use OpenSSL's HMAC API

2021-05-12 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
nosy: +erlendaasland
nosy_count: 6.0 -> 7.0
pull_requests: +24718
pull_request: https://github.com/python/cpython/pull/26079

___
Python tracker 

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



[issue25479] Increase unit test coverage for abc.py

2021-05-12 Thread Irit Katriel


Irit Katriel  added the comment:

Thank you!

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



[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread miss-islington


miss-islington  added the comment:


New changeset 9b90ce68503f4861ce4e9ac9444d9a82b3d943a5 by Ken Jin in branch 
'3.9':
[3.9] Revert "[3.9] bpo-38908: Fix issue when non runtime_protocol does not 
raise TypeError (GH-26067)" (GH-26077)
https://github.com/python/cpython/commit/9b90ce68503f4861ce4e9ac9444d9a82b3d943a5


--

___
Python tracker 

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



[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread Ken Jin


Ken Jin  added the comment:

Yurii and Kevin, thanks for pushing the patch forward! Thanks for the review 
too Guido.

I'm closing this issue as all bugfix PRs have landed to bugfix branches. This 
will make its way into the next versions of Python for those respective 
branches.

One point of contention is whether to introduce this in 3.9.6. This will cause 
code previously working in 3.9.5 to throw an error if people were using it 
incorrectly. So it might be better to only enforce this in 3.10 onwards.

I created GH-26077 just in case the decision is made to revert. Sorry for any 
inconvenience caused everyone!

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

___
Python tracker 

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



[issue43504] Site linked in docs, effbot.org, down

2021-05-12 Thread Senthil Kumaran


Senthil Kumaran  added the comment:

Julien, we could remove them from docs.python.org instead of pointing to 
archive.org.

Users will be able to find more recent examples in the internet.

--
nosy: +orsenthil

___
Python tracker 

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



[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread Ken Jin


Change by Ken Jin :


--
pull_requests: +24717
pull_request: https://github.com/python/cpython/pull/26077

___
Python tracker 

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



[issue43504] Site linked in docs, effbot.org, down

2021-05-12 Thread E. Paine


E. Paine  added the comment:

@Mark, would it be at all possible for you to host the tkinter part content 
from Effbot on your site (as you did with the Shipman docs for #37149)? The 
docs have been down since mid-November and there is no indication of when 
they'll come back up. Since tkinter does not have very good docs on 
docs.python.org, this is (still) a very valuable resource.

--
nosy: +effbot, epaine, markroseman

___
Python tracker 

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



[issue31753] Unnecessary closure in ast.literal_eval

2021-05-12 Thread Thierry Excoffier


Thierry Excoffier  added the comment:

I assumed that the standard python library does not create circular references, 
so the GC can be disabled safely in real time application.

Each time 'literal_eval' is called, it creates a circular reference and so a 
memory leak.

The source of this leak is the recursive closure.

--
nosy: +thierry.excoffier

___
Python tracker 

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



[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread miss-islington


miss-islington  added the comment:


New changeset 88136bbd0500b688c05e914be031cd3c243e42d8 by Ken Jin in branch 
'3.9':
[3.9] bpo-38908: Fix issue when non runtime_protocol does not raise TypeError 
(GH-26067) (GH-26075)
https://github.com/python/cpython/commit/88136bbd0500b688c05e914be031cd3c243e42d8


--

___
Python tracker 

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



[issue44032] Function locals and evaluation stack should be stored in a contiguous, per-thread stack

2021-05-12 Thread Mark Shannon


Change by Mark Shannon :


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

___
Python tracker 

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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

Yeah, that helped a lot: test_csv leaked [487, 487, 487, 487] memory blocks, 
sum=1948

Thanks! :)

--

___
Python tracker 

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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

> Changes to _csv.Error should not be necessary, there everything is handled by 
> the superclass.

Got it; thanks.

--

___
Python tracker 

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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Petr Viktorin


Petr Viktorin  added the comment:

Changes to _csv.Error should not be necessary, there everything is handled by 
the superclass.

--
stage: patch review -> 

___
Python tracker 

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



[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread miss-islington


miss-islington  added the comment:


New changeset a2d94a0a9b8ae95d7d2b7fc34b501da5242ec22c by Miss Islington (bot) 
in branch '3.10':
bpo-38908: Fix issue when non runtime_protocol failed to raise TypeError 
(GH-26067)
https://github.com/python/cpython/commit/a2d94a0a9b8ae95d7d2b7fc34b501da5242ec22c


--

___
Python tracker 

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



[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread Ken Jin


Change by Ken Jin :


--
nosy: +kj
nosy_count: 5.0 -> 6.0
pull_requests: +24715
pull_request: https://github.com/python/cpython/pull/26075

___
Python tracker 

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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

Also, for some reason two first iterations of the reproducer prints 2 less ref 
counts.

--

___
Python tracker 

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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

I don't understand this. After applying PR-26074, test_csv now leaks 
memory/refs:

$ ./python.exe -m test -R : test_csv
0:00:00 load avg: 1.18 Run tests sequentially
0:00:00 load avg: 1.18 [1/1] test_csv
beginning 9 repetitions
123456789
.
test_csv leaked [3928, 3924, 3924, 3924] references, sum=15700
test_csv leaked [1666, 1664, 1664, 1664] memory blocks, sum=6658
test_csv failed

== Tests result: FAILURE ==

1 test failed:
test_csv

Total duration: 4.9 sec
Tests result: FAILURE


Any ideas?

--

___
Python tracker 

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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
pull_requests: +24714
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/26074

___
Python tracker 

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



[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Petr Viktorin


Petr Viktorin  added the comment:

The urllib.request one was caused by _hashlib, see GH-26072.

--
stage: patch review -> 

___
Python tracker 

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



[issue40645] Use OpenSSL's HMAC API

2021-05-12 Thread Petr Viktorin


Change by Petr Viktorin :


--
nosy: +petr.viktorin
nosy_count: 5.0 -> 6.0
pull_requests: +24712
pull_request: https://github.com/python/cpython/pull/26072

___
Python tracker 

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



[issue44117] [C API] Remove deprecated PyEval_InitThreads()

2021-05-12 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue44117] [C API] Remove deprecated PyEval_InitThreads()

2021-05-12 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue44117] [C API] Remove deprecated PyEval_InitThreads()

2021-05-12 Thread STINNER Victor


New submission from STINNER Victor :

Remove PyEval_InitThreads() and PyEval_ThreadsInitialized() functions. The GIL 
is created by Py_Initialize() since Python 3.7, and so calling 
PyEval_InitThreads() explicitly was useless since Python 3.7. Deprecated in 
3.9, PyEval_InitThreads() did nothing and PyEval_ThreadsInitialized() already 
returned true.

--
components: C API
messages: 393524
nosy: vstinner
priority: normal
severity: normal
status: open
title: [C API] Remove deprecated PyEval_InitThreads()
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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland

Erlend E. Aasland  added the comment:

Sure, I’ll do it after dinner :)

--

___
Python tracker 

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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Petr Viktorin


Petr Viktorin  added the comment:

*facepalm* Yes, that's it.

If you have the time now, could you send he PR?

--

___
Python tracker 

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



[issue39228] traceback.FrameSummary does not handle exceptions from `repr()`

2021-05-12 Thread Irit Katriel


Change by Irit Katriel :


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



[issue43656] StackSummary.format fails if repr(value) fails

2021-05-12 Thread Irit Katriel


Change by Irit Katriel :


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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

I created a quick-and-dirty patch. I can clean it up and make it into a PR if 
you want.

--

___
Python tracker 

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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

Adding GC to _csv types:
$ cat 
import sys
import gc

for i in range(10):
import csv
del sys.modules['_csv']
del sys.modules['csv']
del csv
gc.collect()

print(sys.gettotalrefcount())
$ ./python.exe bug.py
73164
73164
73166
73166
73166
73166
73166
73166
73166
73166

--

___
Python tracker 

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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


Added file: https://bugs.python.org/file50038/gc.diff

___
Python tracker 

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



[issue43656] StackSummary.format fails if repr(value) fails

2021-05-12 Thread Martin


Martin  added the comment:

Thanks for the explanations. I think this issue can be closed then.

--
title: StackSummary.format fails if str(value) fails -> StackSummary.format 
fails if repr(value) fails

___
Python tracker 

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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

Could it be that the _csv heap types are not garbage collected? Ref. bpo-42972.

--
nosy: +erlendaasland

___
Python tracker 

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



[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread Yurii Karabas


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

Please forget my previous msg, this bug still present at 3.11 version. PR 
contains fix proposed by Kevin.

Sorry for making to much noise.

--

___
Python tracker 

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



[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread Yurii Karabas


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

I checked and this bug is not present at 3.11 version. So I simply added test 
to cover case mentioned by Ivan.

--

___
Python tracker 

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



[issue25479] Increase unit test coverage for abc.py

2021-05-12 Thread Irit Katriel


Irit Katriel  added the comment:


New changeset bd5dfd6c8c133ccda4dddcba3a8c5a9ea1aa1d6b by Irit Katriel in 
branch '3.10':
[3.10] bpo-25479: add unit test for __subclasshook__ in test_abc.py (GH-24034) 
(GH-26065)
https://github.com/python/cpython/commit/bd5dfd6c8c133ccda4dddcba3a8c5a9ea1aa1d6b


--

___
Python tracker 

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



[issue44089] csv.Error can't be subclassed

2021-05-12 Thread Senthil Kumaran


Senthil Kumaran  added the comment:

This was also merged in 3.11 
https://github.com/python/cpython/commit/2b458c1dba4058c808fde25226bb2d91c5a909ca

--

___
Python tracker 

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



[issue44089] csv.Error can't be subclassed

2021-05-12 Thread Senthil Kumaran


Change by Senthil Kumaran :


--
assignee:  -> orsenthil
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



[issue44089] csv.Error can't be subclassed

2021-05-12 Thread Senthil Kumaran


Senthil Kumaran  added the comment:


New changeset 3e44e9af9ea4c5e82912a01f256d4abcae96f32b by Miss Islington (bot) 
in branch '3.10':
bpo-44089: Allow subclassing of ``csv.Error`` (GH-26008) (GH-26066)
https://github.com/python/cpython/commit/3e44e9af9ea4c5e82912a01f256d4abcae96f32b


--
nosy: +orsenthil

___
Python tracker 

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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Petr Viktorin


Change by Petr Viktorin :


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

___
Python tracker 

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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Petr Viktorin


Petr Viktorin  added the comment:

Hm, a similar thing apparently happens with urllib.request.

--

___
Python tracker 

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



[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread Yurii Karabas


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

Hi Guido,

I decided to help with this issue as far as Kevin did not respond.

--

___
Python tracker 

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



[issue38908] Troubles with @runtime_checkable protocols

2021-05-12 Thread Yurii Karabas


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


--
keywords: +patch
nosy: +uriyyo
nosy_count: 3.0 -> 4.0
pull_requests: +24708
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/26067

___
Python tracker 

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



[issue44089] csv.Error can't be subclassed

2021-05-12 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue25479] Increase unit test coverage for abc.py

2021-05-12 Thread Irit Katriel


Irit Katriel  added the comment:


New changeset 1be93960612b29686d42c021f842e63e5143a625 by Miss Islington (bot) 
in branch '3.9':
bpo-25479: add unit test for __subclasshook__ in test_abc.py (GH-24034) 
(GH-26063)
https://github.com/python/cpython/commit/1be93960612b29686d42c021f842e63e5143a625


--

___
Python tracker 

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



[issue44070] __file__ is now fully qualified in 3.8 and 3.9

2021-05-12 Thread Steve Dower


Change by Steve Dower :


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



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

2021-05-12 Thread Petr Viktorin


Petr Viktorin  added the comment:

I opened https://bugs.python.org/issue44116 for the leak when trying to unload 
_csv.
Looks like investigating that will take a while, so I'll send a small PR to 
unblock the buildbots.

--

___
Python tracker 

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



[issue44116] The _csv module can't be garbage-collected after _csv.register_dialect is called

2021-05-12 Thread Petr Viktorin


New submission from Petr Viktorin :

After `_csv.register_dialect` is called, the csv module is alive even after 
it's removed from sys.modules. It should be garbage-collected.
(It's not that big a deal: unloading _csv isn't something users should do. But 
it might be hiding a deeper issue.)

The following reproducer (for a debug build of Python) shows an increasing 
number of refcounts. (Importing `csv` is the easiest way to call 
_csv._register_dialect with a proper argument):


import sys
import gc

for i in range(10):
import csv
del sys.modules['_csv']
del sys.modules['csv']
del csv
gc.collect()

print(sys.gettotalrefcount())

--
components: Extension Modules
messages: 393508
nosy: petr.viktorin
priority: normal
severity: normal
status: open
title: The _csv module can't be garbage-collected after _csv.register_dialect 
is called
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



[issue25479] Increase unit test coverage for abc.py

2021-05-12 Thread Irit Katriel


Change by Irit Katriel :


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

___
Python tracker 

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



[issue44115] Improve conversions for fractions

2021-05-12 Thread Martin Teichmann


Change by Martin Teichmann :


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

___
Python tracker 

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



[issue44115] Improve conversions for fractions

2021-05-12 Thread Martin Teichmann


New submission from Martin Teichmann :

Currently, fraction.Fractions can be generated from floats via their 
as_integer_ratio method. This had been extended to also work with the Decimals 
class. It would be more generic - and IMHO more Pythonic - to just allow any 
data type, as long as it has an as_integer_ratio method.

As an example, this allows numpy floats to be converted into fractions.

--
components: Library (Lib)
messages: 393507
nosy: Martin.Teichmann
priority: normal
severity: normal
status: open
title: Improve conversions for fractions
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



[issue25479] Increase unit test coverage for abc.py

2021-05-12 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue25479] Increase unit test coverage for abc.py

2021-05-12 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +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



[issue44114] Incorrect function signatures in dictobject.c

2021-05-12 Thread Joe Marshall


Change by Joe Marshall :


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

___
Python tracker 

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



[issue44114] Incorrect function signatures in dictobject.c

2021-05-12 Thread Joe Marshall


New submission from Joe Marshall :

There's a couple of wrong function signatures in dictobject.c,

dictkeys_reversed and dictitems_reversed are defined as single arg functions 
like so: PyObject *(PyObject *), and are then passed around and called as 
PyCFunctions, which should be PyObject *(PyObject *self,PyObject *args). 
dictvalues_reversed is correct.

This works fine on most C compilers as the extra arg is just ignored, but on 
things that use strict function pointer type checking (e.g. webassembly), it 
crashes (and hence any of the tests that happen to use these functions fails, 
which is a surprising number)

I've got a fix in my pyodide repo, which I'll chuck in as a pull request on 
github.

--
components: Interpreter Core
messages: 393506
nosy: joemarshall
priority: normal
severity: normal
status: open
title: Incorrect function signatures in dictobject.c
type: behavior

___
Python tracker 

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



[issue37334] Add a cancel method to asyncio Queues

2021-05-12 Thread Martin Teichmann


Martin Teichmann  added the comment:

This is a years old issue, unfortunately it never got neither merged nor 
rejected. I just rebased it and hope somebody could finish the review.

--
versions: +Python 3.11 -Python 3.8

___
Python tracker 

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



[issue43933] Regression in python3.10 with traceback frame having lineno of -1

2021-05-12 Thread Mark Shannon


Change by Mark Shannon :


--
pull_requests: +24702
pull_request: https://github.com/python/cpython/pull/26061

___
Python tracker 

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



  1   2   >