[issue40077] Convert static types to heap types: use PyType_FromSpec()

2020-11-03 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +22040 pull_request: https://github.com/python/cpython/pull/23124 ___ Python tracker ___

[issue41832] PyType_FromSpec() should accept tp_doc=NULL

2020-11-03 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +22039 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23123 ___ Python tracker ___

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-11-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22038 pull_request: https://github.com/python/cpython/pull/23122 ___ Python tracker ___

[issue42250] test_ast leaked [23640, 23636, 23640] references

2020-11-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- components: +Tests nosy: +BTaskaya, vstinner -pablogsal versions: +Python 3.10 ___ Python tracker ___

[issue42250] test_ast leaked [23640, 23636, 23640] references

2020-11-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- assignee: -> vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41796] _ast module state should be made per interpreter

2020-11-03 Thread STINNER Victor
STINNER Victor added the comment: There is a leak (I just marked bpo-42250 as duplicate of this issue): https://buildbot.python.org/all/#/builders/205/builds/83 OK .. test_ast leaked [23640, 23636, 23640] references, sum=70916 test_ast leaked [7932, 7930, 7932] memory blocks, sum=23794 1

[issue42250] test_ast leaked [23640, 23636, 23640] references

2020-11-03 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : https://buildbot.python.org/all/#/builders/205/builds/83 OK .. test_ast leaked [23640, 23636, 23640] references, sum=70916 test_ast leaked [7932, 7930, 7932] memory blocks, sum=23794 1 test failed again: test_ast -- messages: 380269

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-11-03 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: I've converted _sre to multi-phase init in this branch: https://github.com/erlend-aasland/cpython/tree/bpo-1635741/sre I'm waiting for GH-23101 to be merged (or rejected) before I submit the PR. It's a fairly large PR (1 file changed, 259

[issue40077] Convert static types to heap types: use PyType_FromSpec()

2020-11-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 74b4eda98b650245216292ace8d7e30d3997baa7 by Erlend Egeberg Aasland in branch 'master': bpo-40077: Convert mmap.mmap static type to a heap type (GH-23108) https://github.com/python/cpython/commit/74b4eda98b650245216292ace8d7e30d3997baa7

[issue42246] Implement PEP 626

2020-11-03 Thread Mark Shannon
Mark Shannon added the comment: The following code is completely eliminated by the macros. 1. if 0: 2. secret_debugging_code() PEP 626 says that all executed lines of code must generate trace events, so we need to emit an instruction for line 1. Dead code elimination will remove the

[issue42249] Plistlib cannot create binary Plist file larger than 4GiB

2020-11-03 Thread miss-islington
miss-islington added the comment: New changeset ac70175fc038e0f06034c4d61c577ef4b923464a by Miss Skeleton (bot) in branch '3.8': bpo-42249: Fix writing binary Plist files larger than 4 GiB. (GH-23121) https://github.com/python/cpython/commit/ac70175fc038e0f06034c4d61c577ef4b923464a

[issue42249] Plistlib cannot create binary Plist file larger than 4GiB

2020-11-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +22045 pull_request: https://github.com/python/cpython/pull/23129 ___ Python tracker ___

[issue42246] Implement PEP 626

2020-11-03 Thread Mark Shannon
Change by Mark Shannon : -- nosy: +nedbat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41796] _ast module state should be made per interpreter

2020-11-03 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35455] Solaris: thread_time doesn't work with current implementation

2020-11-03 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +22046 pull_request: https://github.com/python/cpython/pull/23130 ___ Python tracker

[issue42246] Implement PEP 626

2020-11-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Dead code elimination will remove the `secret_debugging_code()`, but leave > the test. The peephole optimiser can then reduce it to a NOP, but won't > eliminate it as it is the only instruction for line 1. Gotcha. I am pretty sure that this will

[issue37193] Memory leak while running TCP/UDPServer with socketserver.ThreadingMixIn

2020-11-03 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +22043 pull_request: https://github.com/python/cpython/pull/23127 ___ Python tracker ___

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-11-03 Thread STINNER Victor
STINNER Victor added the comment: In PR 23131, I added a comment to _PyInterpreter_Clear() to remind me that trying to destroy a Python type after the last GC collection doesn't work as expected: // All Python types must be destroyed before the last GC collection. Python // types

[issue41796] _ast module state should be made per interpreter

2020-11-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22047 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/23131 ___ Python tracker ___

[issue42251] Add threading.gettrace and threading.getprofile

2020-11-03 Thread Mario Corchero
Change by Mario Corchero : -- keywords: +patch pull_requests: +22041 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23125 ___ Python tracker ___

[issue40511] IDLE: properly handle '(' and ')' within calls

2020-11-03 Thread wyz23x2
wyz23x2 added the comment: Thanks! :D -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42252] Embeddable Python indicates that it uses PYTHONPATH

2020-11-03 Thread Tom Kent
New submission from Tom Kent : According to the documentation https://docs.python.org/3/using/windows.html#windows-embeddable > When extracted, the embedded distribution is (almost) fully isolated > from the user’s system, including environment variables, system registry > settings, and

[issue42253] xml.dom.minidom.rst missed informations

2020-11-03 Thread Jens Diemer
New submission from Jens Diemer : The standalone arguments was added in Python 3.9. This information is missed in the docu. -- messages: 380277 nosy: jedie2 priority: normal pull_requests: 22042 severity: normal status: open title: xml.dom.minidom.rst missed informations versions:

[issue42250] test_ast leaked [23640, 23636, 23640] references

2020-11-03 Thread STINNER Victor
STINNER Victor added the comment: I prefer to track the regression in bpo-41796. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> _ast module state should be made per interpreter ___ Python tracker

[issue42251] Add threading.gettrace and threading.getprofile

2020-11-03 Thread Mario Corchero
New submission from Mario Corchero : When working in a C extension from a non-python created thread which calls PyGILState_Ensure as it later calls a Python callback on user code, I wished there was a way to set the trace function similar to what a native Python thread would do. We could

[issue42249] Plistlib cannot create binary Plist file larger than 4GiB

2020-11-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 212d32f45c91849c17a82750df1ac498d63976be by Serhiy Storchaka in branch 'master': bpo-42249: Fix writing binary Plist files larger than 4 GiB. (GH-23121) https://github.com/python/cpython/commit/212d32f45c91849c17a82750df1ac498d63976be

[issue42249] Plistlib cannot create binary Plist file larger than 4GiB

2020-11-03 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +22044 pull_request: https://github.com/python/cpython/pull/23128 ___ Python tracker

[issue42035] [C API] PyType_GetSlot cannot get tp_name

2020-11-03 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41796] _ast module state should be made per interpreter

2020-11-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset fd957c124c1d9c5eaf61f7af8cf266bafcb1 by Victor Stinner in branch 'master': bpo-41796: Call _PyAST_Fini() earlier to fix a leak (GH-23131) https://github.com/python/cpython/commit/fd957c124c1d9c5eaf61f7af8cf266bafcb1 --

[issue42254] inspect.getmembers iterator version

2020-11-03 Thread signing_agreement
New submission from signing_agreement : inspect.getmembers should have a generator version. -- components: Library (Lib) messages: 380287 nosy: signing_agreement priority: normal severity: normal status: open title: inspect.getmembers iterator version type: enhancement versions: Python

[issue38647] Why only the MacOSXOSAScript in webbrowser does not have the name property?

2020-11-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've created a PR for adding the attribute. -- ___ Python tracker ___ ___ Python-bugs-list

[issue38647] Why only the MacOSXOSAScript in webbrowser does not have the name property?

2020-11-03 Thread Ronald Oussoren
Change by Ronald Oussoren : -- keywords: +patch pull_requests: +22048 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23134 ___ Python tracker ___

[issue42254] inspect.getmembers iterator version

2020-11-03 Thread signing_agreement
signing_agreement added the comment: The object it deals with is already loaded, but in cases I see online, users tend to examine one member at a time. -- ___ Python tracker

[issue17852] Built-in module _io can lose data from buffered files in reference cycles

2020-11-03 Thread Volker Weißmann
Change by Volker Weißmann : -- nosy: +Volker Weißmann nosy_count: 12.0 -> 13.0 pull_requests: +22049 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/23135 ___ Python tracker

[issue41796] _ast module state should be made per interpreter

2020-11-03 Thread STINNER Victor
STINNER Victor added the comment: The leak is fixed, I close again the issue. Thanks for the report Pablo. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue42100] Add _PyType_GetModuleByDef

2020-11-03 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42256] BaseCookie.__parse_string() doesn't work with expires= between cookies

2020-11-03 Thread Paulie Pena
Paulie Pena added the comment: whoops, the first string should also be a raw string, i.e. `r'...'` -- ___ Python tracker ___ ___

[issue42252] Embeddable Python indicates that it uses PYTHONPATH

2020-11-03 Thread Eryk Sun
Eryk Sun added the comment: The embeddable distribution isn't intended for end users to run Python scripts from the command line, so I don't think the CLI help needs to be special cased. The documentation you quoted should be clarified as something like "isolated from user and system Python

[issue42252] Embeddable Python indicates that it uses PYTHONPATH

2020-11-03 Thread Tom Kent
Tom Kent added the comment: I'm not sure I agree with that. One possible use-case is to package it along with another program to use the interpreter. In this case they could use the other program's native language features (e.g. .Net's Process.Start(), Win32 API's CreateProcess(), Even

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: @Kevin Walzer: Is the problem were seeing a known issue with Tk? -- nosy: +wordtech ___ Python tracker ___

[issue42158] http.server doesn't guess n-quads, n-triples, notation3 and TriG MIME types

2020-11-03 Thread Éric Araujo
Éric Araujo added the comment: Editing /etc/mime.types is one way of customizing the types returned; another one is to make a pull request to add them to the list inside the mimetypes module. -- nosy: +eric.araujo stage: -> needs patch versions: -Python 3.6, Python 3.7, Python 3.8

[issue42256] BaseCookie.__parse_string() doesn't work with expires= between cookies

2020-11-03 Thread Paulie Pena
New submission from Paulie Pena : Since `requests` creates a comma-separated list for any duplicated headers, this causes a problem when `expires=...` is between two `Set-Cookie` header values. `BaseCookie.__parse_string()` in

[issue42255] webbrowser.MacOSX is unused, untested and undocumented

2020-11-03 Thread Ronald Oussoren
New submission from Ronald Oussoren : class webbrower.MacOSX is untested and undocumented. It is also not used by webbrowser itself (webbrowser.MacOSXOSAScript is used to launch browsers). It's probably safe to just remove the class, otherwise deprecate in 3.10 for removal in 3.11.

[issue42205] Add image/webp to list of non-standard mimetypes

2020-11-03 Thread Éric Araujo
Éric Araujo added the comment: Hello! Why open a second ticket? -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list

[issue42254] inspect.getmembers iterator version

2020-11-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: I personally don't think it is worthwhile to add another API for this without a good use case. The memory overhead of eagerly creating a list should be fairly small. -- ___ Python tracker

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-03 Thread STINNER Victor
STINNER Victor added the comment: > This version catches exceptions and reports them separately and runs directly > with tkinter, in about a second. The X Error is displayed and then the process exit. Python cannot catch this fatal X Error. --

[issue42254] inspect.getmembers iterator version

2020-11-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: why? -- nosy: +ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue7175] Define a standard location and API for configuration files

2020-11-03 Thread Éric Araujo
Éric Araujo added the comment: This ticket did not reach a consensus. It seems there would be little value in changing the existing scheme for IDLE and such; external tools can (and often do) already use appdirs; I suggest closing this. -- ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-03 Thread STINNER Victor
STINNER Victor added the comment: The following program fails with: --- X Error of failed request: BadLength (poly request too large or internal Xlib length error) Major opcode of failed request: 138 (RENDER) Minor opcode of failed request: 20 (RenderAddGlyphs) Serial number of

[issue40077] Convert static types to heap types: use PyType_FromSpec()

2020-11-03 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +22050 pull_request: https://github.com/python/cpython/pull/23136 ___ Python tracker ___

[issue41832] PyType_FromSpec() should accept tp_doc=NULL

2020-11-03 Thread Petr Viktorin
Petr Viktorin added the comment: The PyType_Slot documentation says that the pointer may not be NULL: https://docs.python.org/3/c-api/type.html?highlight=pytype_fromspec#c.PyType_Slot.PyType_Slot.pfunc If you change this, why do it only for tp_doc, but for all the slots? NULL should

[issue41618] [C API] How many slots of static types should be exposed in PyType_GetSlot()

2020-11-03 Thread Petr Viktorin
Petr Viktorin added the comment: > Can we write those info to docs? In case some developer want to exposing slot > in future. Do you mean something like "only expose a slot if you have a reason for exposing it"? That sounds like a tautology. Where in the docs would this go? > nb_inserved

[issue42254] inspect.getmembers iterator version

2020-11-03 Thread signing_agreement
signing_agreement added the comment: That is a fair point. I selected a few popular python libraries to test, and they all return a small list. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2020-11-03 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: FYI, rebased https://github.com/erlend-aasland/cpython/tree/bpo-42064/all onto master, added Petr Viktorin's _PyType_GetModuleByDef() for use in item 7 (module state). I still run into problems in item 8, but I haven't devoted much time for this

[issue42249] Plistlib cannot create binary Plist file larger than 4GiB

2020-11-03 Thread miss-islington
miss-islington added the comment: New changeset 9bc07874e34930d4e816a9a3330aab009404991e by Miss Skeleton (bot) in branch '3.9': bpo-42249: Fix writing binary Plist files larger than 4 GiB. (GH-23121) https://github.com/python/cpython/commit/9bc07874e34930d4e816a9a3330aab009404991e

[issue42100] Add _PyType_GetModuleByDef

2020-11-03 Thread Petr Viktorin
Change by Petr Viktorin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2020-11-03 Thread Irit Katriel
Irit Katriel added the comment: Since this is a python 2 only issue, should this issue be closed as out of date? -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue17344] checking size of size_t... configure: error:

2020-11-03 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-03 Thread Kevin Walzer
Kevin Walzer added the comment: Some work has been done this year on expanding support for these types of glyphs in Tk, but I'm not sure of its current state--it's not my area of expertise. Can you open a ticket at https://core.tcl-lang.org/tk/ so one of the folks working on this can take a

[issue5537] LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms

2020-11-03 Thread Irit Katriel
Change by Irit Katriel : -- keywords: -patch versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.6 ___ Python tracker ___ ___

[issue42252] Embeddable Python indicates that it uses PYTHONPATH

2020-11-03 Thread Steve Dower
Steve Dower added the comment: Updating the documentation link on the download page is being discussed as we speak. > One possible use-case is to package it along with another program to use the > interpreter. This is the primary use case. If you're doing something else with it, you're

[issue42252] Embeddable Python indicates that it uses PYTHONPATH

2020-11-03 Thread Tom Kent
Tom Kent added the comment: A couple things... >> One possible use-case is to package it along with another program to use the >> interpreter. > This is the primary use case. If you're doing something else with it, you're > probably misusing it :) Interesting, I'd been expecting this was

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2020-11-03 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> out of date stage: test needed -> resolved status: pending -> closed ___ Python tracker ___

[issue1643712] Emphasize buffering issues when sys.stdin is used

2020-11-03 Thread Irit Katriel
Irit Katriel added the comment: Closed along with 1633941. -- nosy: +iritkatriel resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue15128] inspect raises exception when frames are misleading about source line numbers

2020-11-03 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38902] image/webp support in mimetypes

2020-11-03 Thread Inada Naoki
Inada Naoki added the comment: I'm +1 to add it in common types, because webp is really de-facto standard. https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types If no objection, I will merge this in next week. -- nosy: +methane versions: +Python 3.10 -Python 3.9

[issue4999] multiprocessing.Queue does not order objects

2020-11-03 Thread Irit Katriel
Irit Katriel added the comment: I see the documentation mentions it now (in the second gray box here: https://docs.python.org/3.8/library/multiprocessing.html#pipes-and-queues ) and it also suggests to use a shared queue if this is an issue. Any objections to closing this issue?

[issue42205] Add image/webp to list of non-standard mimetypes

2020-11-03 Thread Inada Naoki
Change by Inada Naoki : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue38902] image/webp support in mimetypes

2020-11-03 Thread waicalibre
Change by waicalibre : -- keywords: +patch nosy: +waicalibre nosy_count: 3.0 -> 4.0 pull_requests: +22051 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22718 ___ Python tracker

[issue42049] Add image/webp to list of media types in mimetypes.py

2020-11-03 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> duplicate superseder: -> image/webp support in mimetypes ___ Python tracker ___ ___

[issue38902] image/webp support in mimetypes

2020-11-03 Thread waicalibre
Change by waicalibre : -- pull_requests: +22052 pull_request: https://github.com/python/cpython/pull/23034 ___ Python tracker ___

[issue42205] Add image/webp to list of non-standard mimetypes

2020-11-03 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> duplicate superseder: -> image/webp support in mimetypes ___ Python tracker ___ ___

[issue42049] Add image/webp to list of media types in mimetypes.py

2020-11-03 Thread Inada Naoki
Change by Inada Naoki : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue42257] platform.libc_ver() doesn't consider in case of executable is empty string

2020-11-03 Thread Kurochan
New submission from Kurochan : Currently, `platform.libc_ver()` doesn't consider in case of `executable` variable is an empty string. However, with Python 3.8, the following code could pass an empty string `executable` to the `platform.libc_ver()` function.

[issue42257] platform.libc_ver() doesn't consider in case of executable is empty string

2020-11-03 Thread Kurochan
Change by Kurochan : -- keywords: +patch pull_requests: +22053 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23140 ___ Python tracker ___

[issue42207] Python 3.9 testing fails when building with clang and optimizations are enabled

2020-11-03 Thread serge-sans-paille
Change by serge-sans-paille : -- pull_requests: +22054 pull_request: https://github.com/python/cpython/pull/23141 ___ Python tracker ___