[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28922 pull_request: https://github.com/python/cpython/pull/30735 ___ Python tracker ___ __

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28923 pull_request: https://github.com/python/cpython/pull/30736 ___ Python tracker ___ __

[issue46427] Correct MSBuild's configuration for _freeze_module.exe

2022-01-20 Thread neonene
neonene added the comment: > + This is bad if ARM64 machine takes the blank value as not "ARM64" but "ARM", as "ARM" tools are not necessary to install. Then, I agree with the proposal of the OP (PR28491) below: > Would it be acceptable if a new host platform property is added to > t

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1781d55eb34f94029e50970232635fc5082378cb by Victor Stinner in branch 'main': bpo-46417: _curses uses PyStructSequence_NewType() (GH-30736) https://github.com/python/cpython/commit/1781d55eb34f94029e50970232635fc5082378cb -- __

[issue46071] Graphlib documentation (edge direction)

2022-01-20 Thread David Mc Dougall
David Mc Dougall added the comment: > The argument passed is the predecessor form of the graph B -> A where graph = {'A' : ['B']} This is part that I'm objecting to. The form of the graph should be A -> B, not B -> A. The issue with the current form is that you can not traverse the graph, a

[issue46449] Deep-freezed modules create inconsistency in sys.gettotalrefcount() (_Py_Reftotal)

2022-01-20 Thread STINNER Victor
New submission from STINNER Victor : Using the C program below, I see that _Py_RefTotal is decreasing at each iteration: --- #include int main(int argc, char *argv[]) { for (int i=1; i <= 100; i++) { Py_SetProgramName(L"./_testembed"); Py_Initialize(); Py_Finalize()

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-20 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-46449 "Deep-freezed modules create inconsistency in sys.gettotalrefcount() (_Py_Reftotal)". -- ___ Python tracker ___ _

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset d013b241352e902389f955f8f99d75f16c124ee2 by Victor Stinner in branch 'main': bpo-46417: signal uses PyStructSequence_NewType() (GH-30735) https://github.com/python/cpython/commit/d013b241352e902389f955f8f99d75f16c124ee2 -- ___

[issue46449] Deep-freezed modules create inconsistency in sys.gettotalrefcount() (_Py_Reftotal)

2022-01-20 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +eric.snow, gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue46071] Graphlib documentation (edge direction)

2022-01-20 Thread Tim Peters
Tim Peters added the comment: I think you should give up on this. But suit yourself ;-) Exactly the same information is conveyed whether representing a graph by successor or predecessor dicts. Some operations are more convenient in one representation than the other, but each is easily derive

[issue46450] namedtuple leaks data between instances when field's default value is empty list

2022-01-20 Thread Curtis M
New submission from Curtis M <3ed7qja...@liamekaens.com>: Example code to replicate issue on python 3.10.2 is attached. How to replicate issue: 1. Define a namedtuple where all fields have default values. At least one field's default value will be an empty list: [] 2. Instantiate 2 instances o

[issue46450] namedtuple leaks data between instances when field's default value is empty list

2022-01-20 Thread Dennis Sweeney
Dennis Sweeney added the comment: This seems to be the standard confusion people have with mutable defaults, just with namedtuple defaults rather than function defaults. Similar behavior elsewhere in Python: >>> def f(x, y=[]): ... y.append(x) ... print(y) ... ... >>> f(1) [1]

[issue46415] ipaddress.ip_{address, network, interface} raises TypeError instead of ValueError if given a tuple as address

2022-01-20 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Duplicate of issue46141. -- nosy: +Jelle Zijlstra resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46451] Possibly bad interaction with tracing and cython?

2022-01-20 Thread Sebastian Berg
New submission from Sebastian Berg : Starting here, but there could be Cython interaction or something else in theory. But, when running the following: * Python 3.10.1 (not 3.9.9, debug version or not) * Setting a tracing function (not setting a trace-function will fix the issue) * Running C

[issue46449] Deep-freezed modules create inconsistency in sys.gettotalrefcount() (_Py_Reftotal)

2022-01-20 Thread Guido van Rossum
Guido van Rossum added the comment: Hm, the deep-frozen objects are statically initialized with a very large refcount that isn't accounted for (they are intended to be immortal). It seems that Py_Finalize() somehow decrefs those objects. I guess this means we need some kind of flag indicatin

[issue46451] Possibly bad interaction with tracing and cython?

2022-01-20 Thread Sebastian Berg
Sebastian Berg added the comment: Ahh, a further data-point. The name from the module scope that is overwritten IS a parameter name used in the function locals. Strangly, if I modify the tracing to print more: stop = 0 def trace(frame, event, arg): global stop if stop > 10:

[issue46071] Graphlib documentation (edge direction)

2022-01-20 Thread David Mc Dougall
David Mc Dougall added the comment: > you're not actually confused. I was when I first read it! > the meanings of "predecessor" and "successor" are universally agreed upon I disagree. The universally agreed upon terms are "directed edge u -> v". It's not obvious if the "predecessor" should

[issue46071] Graphlib documentation (edge direction)

2022-01-20 Thread Dennis Sweeney
Dennis Sweeney added the comment: > It's not obvious if the "predecessor" should be the start or the end point of > the edge https://en.wikipedia.org/wiki/Directed_graph#Basic_terminology : """If a path leads from x to y, then y is said to be a successor of x and reachable from x, and x is s

[issue46071] Graphlib documentation (edge direction)

2022-01-20 Thread Tim Peters
Tim Peters added the comment: >> the meanings of "predecessor" and "successor" are >> universally agreed upon > I disagree. I can post literally hundreds of citations that all agree: in u -> v, u is a direct predecessor of v, and v is a direct successor of u. Here's one: http://pages.cs.wi

[issue46448] TypedDict inspect.signature error

2022-01-20 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- nosy: +Jelle Zijlstra ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue46436] Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler

2022-01-20 Thread Géry
Change by Géry : -- versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue19479] textwrap.dedent doesn't work properly with strings containing CRLF

2022-01-20 Thread Georg Brandl
Change by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 22f73bd9f1fc573d5c998f345b66c29f7ca6614d by Nikita Sobolev in branch 'main': bpo-46425: Fix direct invocation of `test_contextlib` (GH-30681) https://github.com/python/cpython/commit/22f73bd9f1fc573d5c998f345b66c29f7ca6614d -- _

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2022-01-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset cfadcc31ea84617b1c73022ce54d4ae831333e8d by andrei kulakov in branch 'main': bpo-21987: Fix TarFile.getmember getting a dir with a trailing slash (GH-30283) https://github.com/python/cpython/commit/cfadcc31ea84617b1c73022ce54d4ae831333e8d --

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2022-01-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +28925 pull_request: https://github.com/python/cpython/pull/30738 ___ Python tracker ___ __

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2022-01-20 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 9.0 -> 10.0 pull_requests: +28924 pull_request: https://github.com/python/cpython/pull/30737 ___ Python tracker

[issue30512] CAN Socket support for NetBSD

2022-01-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 40fcd16889028bd3cd2289e0f8a2af43f17a5824 by Thomas Klausner in branch 'main': bpo-30512: Add CAN Socket support for NetBSD (GH-30066) https://github.com/python/cpython/commit/40fcd16889028bd3cd2289e0f8a2af43f17a5824 -- _

[issue30512] CAN Socket support for NetBSD

2022-01-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 -Python 3.7 ___ Python tracker ___ _

[issue46426] Improve tests for the dir_fd argument

2022-01-20 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +28926 pull_request: https://github.com/python/cpython/pull/30739 ___ Python tracker _

[issue46426] Improve tests for the dir_fd argument

2022-01-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 54610bb448a9cf5be77d53b66169fca4c11be6cb by Serhiy Storchaka in branch 'main': bpo-46426: Improve tests for the dir_fd argument (GH-30668) https://github.com/python/cpython/commit/54610bb448a9cf5be77d53b66169fca4c11be6cb --

<    1   2