[issue40081] List sorting

2020-03-26 Thread Eric V. Smith
Eric V. Smith added the comment: In the future, please use the python-tutor or python-list mailing lists if you need help. If you still think you've found a bug in python, then open an issue here. https://mail.python.org/mailman/listinfo/tutor

[issue38246] pathlib.resolve and .absolute leave trailing tilde in home expansion

2020-03-26 Thread Andrea Bergonzo
Change by Andrea Bergonzo : -- nosy: +andybergon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40077] Convert static types to PyType_FromSpec()

2020-03-26 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40077] Convert static types to PyType_FromSpec()

2020-03-26 Thread Dong-hee Na
Change by Dong-hee Na : -- components: +C API ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28859] os.path.ismount sometimes raises FileNotFoundError on Windows

2020-03-26 Thread Zhu Sheng Li
Zhu Sheng Li added the comment: I submitted a PR and get reviewed by @lazka. Is there anything I should do for pushing it to next step? -- ___ Python tracker ___

[issue40081] List sorting

2020-03-26 Thread 朱聖黎
朱聖黎 added the comment: I think it's an expected behavior. `a.sort()` sorts the list itself in place, so it returns None. If you want a sorted list returned, you need to use `sorted` function. https://docs.python.org/3/library/functions.html#sorted -- nosy: +akarei

[issue40080] Stripping annotations out as a new optimization mode

2020-03-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Duplicate of https://bugs.python.org/issue3646 This was rejected because it breaks functools.singledispatch(), typing.NamedTuple(), and dataclasses.dataclass(). Also the space savings was negligible -- typically take much less space than for docstrings

[issue40081] List sorting

2020-03-26 Thread Sivasundar Nagarajan
New submission from Sivasundar Nagarajan : Good day. Hope you are safe and wish the same with the present situation. Need you help please in understanding the below function of Python. Steps - 1. tried assigning the below values in the list and named it as a 2.if I print, it prints in the

[issue40049] tarfile cannot extract from stdin

2020-03-26 Thread Jonathan Hsu
Jonathan Hsu added the comment: This is caused when tarfile tries to write a symlink that already exists. Any exceptions to os.symlink() as handled as if the platform doesn't support symlinks, so it scans the entire tar to try and find the linked files. When it resumes extraction, it needs

[issue39908] Remove unused args from init_set_builtins_open and _Py_FatalError_PrintExc in Python/pylifecycle.c

2020-03-26 Thread Andy Lester
Change by Andy Lester : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue39943] Meta: Clean up various issues in C internals

2020-03-26 Thread Andy Lester
Andy Lester added the comment: It doesn't quiet any compiler warnings given the default compiler warnings that ./configure sets. However, it does quiet the -Wcast-qual compiler warning that could be a helpful addition some time in the future. I think it would be great, for example, if it

[issue40049] tarfile cannot extract from stdin

2020-03-26 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 2.0 -> 3.0 pull_requests: +18546 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19187 ___ Python tracker

[issue40077] Convert static types to PyType_FromSpec()

2020-03-26 Thread Paulo Henrique Silva
Change by Paulo Henrique Silva : -- nosy: +phsilva ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39943] Meta: Clean up various issues in C internals

2020-03-26 Thread STINNER Victor
STINNER Victor added the comment: What is the rationale for adding const? For example, does the PR 19185 fix any compiler warning or any bug? While PR 19185 is correct, I am not sure that we should modify the 607K lines of C code of CPython to add const everywhere. I'm fine with using const

[issue40077] Convert static types to PyType_FromSpec()

2020-03-26 Thread STINNER Victor
STINNER Victor added the comment: Pablo: > Wouldn't having less static types slow down startup time? That's possible, even if I only expect a minor or non significant overhead. But before starting talking about performances, we should focus on the correctness. Static types are causing

[issue39943] Meta: Clean up various issues in C internals

2020-03-26 Thread Andy Lester
Change by Andy Lester : -- pull_requests: +18545 pull_request: https://github.com/python/cpython/pull/19186 ___ Python tracker ___

[issue40080] Stripping annotations out as a new optimization mode

2020-03-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I am -1 to this feature because compared with other optimization levels this can have unknown effects on the runtime, especially on dependencies you do not control. dataclasses is an example, but much more exist. To support this feature we would need

[issue39943] Meta: Clean up various issues in C internals

2020-03-26 Thread Andy Lester
Change by Andy Lester : -- pull_requests: +18544 pull_request: https://github.com/python/cpython/pull/19185 ___ Python tracker ___

[issue36989] test_thread fails because symbol is (no longer) exported

2020-03-26 Thread STINNER Victor
STINNER Victor added the comment: > Fatal Python error: Py_EndInterpreter: not the last thread That's the bug bpo-36402 which I fixed with commit 468e5fec8a2f534f1685d59da3ca4fad425c38dd in master. -- nosy: +vstinner resolution: -> duplicate stage: -> resolved status: open ->

[issue37247] swap distutils build_ext and build_py commands to allow proper SWIG extension installation

2020-03-26 Thread John Andersen
Change by John Andersen : -- nosy: +pdxjohnny ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40080] Stripping annotations out as a new optimization mode

2020-03-26 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > Note that dataclasses will break without annotations. Yes, that is also affecting this simple tester script. There is no alternative to value-less annotated assignment. I don't think this is preferable but just for information, these are the results for

[issue40080] Stripping annotations out as a new optimization mode

2020-03-26 Thread Eric V. Smith
Eric V. Smith added the comment: Note that dataclasses will break without annotations. -- nosy: +eric.smith ___ Python tracker ___

[issue1193099] Embedded python thread crashes

2020-03-26 Thread STINNER Victor
Change by STINNER Victor : -- superseder: -> Embedded python thread crashes ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1856] shutdown (exit) can hang or segfault with daemon threads running

2020-03-26 Thread STINNER Victor
STINNER Victor added the comment: bpo-1193099 was marked as a duplicate of this issue. -- ___ Python tracker ___ ___

[issue40080] Stripping annotations out as a new optimization mode

2020-03-26 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : Just like docstrings, annotations do nothing at runtime for the majority of the time. We can just strip out them and gain as much as the docstring optimization in bytecode size on a fully annotated repo. For comparing these two optimizations, I

[issue40080] Stripping annotations out as a new optimization mode

2020-03-26 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: As an addition, I need to clarify that each optimization applied by its own. -- ___ Python tracker ___

[issue40077] Convert static types to PyType_FromSpec()

2020-03-26 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- Removed message: https://bugs.python.org/msg365116 ___ Python tracker ___ ___ Python-bugs-list

[issue40077] Convert static types to PyType_FromSpec()

2020-03-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Wouldn't having less static types slow down startup time? -- ___ Python tracker ___ ___

[issue40077] Convert static types to PyType_FromSpec()

2020-03-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Wouldn't having more static types slow down startup time? -- nosy: +pablogsal ___ Python tracker ___

[issue40074] pickle module dump and load: add support for string file names

2020-03-26 Thread Diego Palacios
Diego Palacios added the comment: In this case two new functions should be added to the pickle function. I think they would be very useful and many users would make use of them. -- ___ Python tracker

[issue40079] NULL pointer deref on error path in _ssl debughelpers.c

2020-03-26 Thread Alexander Riccio
New submission from Alexander Riccio : At line 138 in debughelpers.c, ssl_obj, which was set to NULL on line 122, is dereferenced. I think the original intent was to actually bubble the error up through the ssl object. Full function: static void _PySSL_keylog_callback(const SSL *ssl,

[issue38644] Pass explicitly tstate to function calls

2020-03-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 71a3522ef85df06a3acc718107360e37e4116a15 by Victor Stinner in branch 'master': bpo-38644: Make tstate more explicit inside pystate.c (GH-19182) https://github.com/python/cpython/commit/71a3522ef85df06a3acc718107360e37e4116a15 --

[issue38644] Pass explicitly tstate to function calls

2020-03-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 728189884e0e128c4ffc57b785b04584d57a90c0 by Victor Stinner in branch 'master': bpo-38644: Pass tstate explicitly in signalmodule.c (GH-19184) https://github.com/python/cpython/commit/728189884e0e128c4ffc57b785b04584d57a90c0 --

[issue40076] isoformat function drops microseconds part if its value is 000000

2020-03-26 Thread Paul Ganssle
Paul Ganssle added the comment: > isoformat function does not conform to the ISO 8601 and drops microseconds > part if its value is 00. I'm not sure why you think that this does not conform to ISO 8601 - ISO 8601 is a sprawling beast of a spec and allows some crazy formats. Some

[issue40076] isoformat function drops microseconds part if its value is 000000

2020-03-26 Thread Alexander Bolshakov
Change by Alexander Bolshakov : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40076] isoformat function drops microseconds part if its value is 000000

2020-03-26 Thread SilentGhost
Change by SilentGhost : -- nosy: +SilentGhost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40012] Avoid Python 2 documentation to appear in Web search results

2020-03-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sorry, the 'previous issue' is a vague memory which I cannot find. For some reason, searching this tracker for 'Google' return 1500+ hits. -- ___ Python tracker

[issue25024] Allow passing "delete=False" to TemporaryDirectory

2020-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, then I think there is nothing to do this. Compatibility with context manager protocol is not a goal if it does nothing on exit. In any case you can easy to make it in three lines: @contextmanager def mymkdtemp(): yield mkdtemp()

[issue38644] Pass explicitly tstate to function calls

2020-03-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18543 pull_request: https://github.com/python/cpython/pull/19184 ___ Python tracker ___

[issue25024] Allow passing "delete=False" to TemporaryDirectory

2020-03-26 Thread Anthony Sottile
Anthony Sottile added the comment: you are right though, the effect is the same as just using mkdtemp -- ___ Python tracker ___

[issue25024] Allow passing "delete=False" to TemporaryDirectory

2020-03-26 Thread Anthony Sottile
Anthony Sottile added the comment: the differences are api compatibility with context manager protocol and equivalence with NamedTemporaryFile NamedTemporaryFile(delete=False) is just `mkstemp` afaict and the api is there -- ___ Python tracker

[issue38644] Pass explicitly tstate to function calls

2020-03-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18542 pull_request: https://github.com/python/cpython/pull/19183 ___ Python tracker ___

[issue38644] Pass explicitly tstate to function calls

2020-03-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18541 pull_request: https://github.com/python/cpython/pull/19182 ___ Python tracker ___

[issue25024] Allow passing "delete=False" to TemporaryDirectory

2020-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please explain the difference between hypothetical TemporaryDirectory(delete=False) and simple mkdtemp()? -- ___ Python tracker

[issue25024] Allow passing "delete=False" to TemporaryDirectory

2020-03-26 Thread Anthony Sottile
Anthony Sottile added the comment: Serhiy's comment provides workarounds but are still (imo) inferior to supporting this. I would really like for this api to match that of NamedTemporaryFile which has the same `delete=...` option -- ___ Python

[issue38644] Pass explicitly tstate to function calls

2020-03-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 08faf0016e1ee590c78f64ddb244767c7801866a by Victor Stinner in branch 'master': bpo-38644: Add _PySys_Audit() which takes tstate (GH-19180) https://github.com/python/cpython/commit/08faf0016e1ee590c78f64ddb244767c7801866a --

[issue25024] Allow passing "delete=False" to TemporaryDirectory

2020-03-26 Thread Mauro S. M. Rodrigues
Mauro S. M. Rodrigues added the comment: So per Serhiy comment can I assume the patch is not necessary? If so I believe the issue should be closed as well. -- ___ Python tracker

[issue40049] tarfile cannot extract from stdin

2020-03-26 Thread Danijel
Danijel added the comment: Hi, well, it says entity too large. I've attached a smaller one, that throws a similar but slightly different error. (Note: only on the _second_ extraction, it looks like problems with symlinks) You can find larger ones here: https://data.rbfh.de/issue40049/

[issue39982] FreeBSD: SCTP tests of test_socket fails on AMD64 FreeBSD Shared 3.x

2020-03-26 Thread STINNER Victor
STINNER Victor added the comment: Ok, we got the confirmation that it's a regression in the FreeBSD kernel in FreeBSD CURRENT. The following commit reverts a change which introduced the race condition: https://svnweb.freebsd.org/base?view=revision=359302 I suggest to wait until this change

[issue40053] Document the behavior that no interplotation is applied when no *args are passed in for logging statements

2020-03-26 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for the bug report! I'll mark it "fixed". If there's more to do, let us know. -- resolution: -> fixed ___ Python tracker ___

[issue40053] Document the behavior that no interplotation is applied when no *args are passed in for logging statements

2020-03-26 Thread Nan Hua
Nan Hua added the comment: Note that this issue has already been mostly addressed by https://github.com/python/cpython/pull/19132. I think we can close this issue now. Thanks Eric, Gregory and Vinay! -- stage: needs patch -> resolved status: open -> closed

[issue38644] Pass explicitly tstate to function calls

2020-03-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18540 pull_request: https://github.com/python/cpython/pull/19180 ___ Python tracker ___

[issue19698] Implement _imp.exec_builtin and exec_dynamic

2020-03-26 Thread Brett Cannon
Brett Cannon added the comment: New changeset 2929bfb973da249ed4f056c88a69bcc48e5a4843 by Miss Islington (bot) in branch '3.7': bpo-19698: Document when importlib.machinery.FrozenImporter gained spec-related methods (GH-19158) (GH-19165)

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2020-03-26 Thread Paulo Henrique Silva
Change by Paulo Henrique Silva : -- nosy: +phsilva ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19698] Implement _imp.exec_builtin and exec_dynamic

2020-03-26 Thread Brett Cannon
Brett Cannon added the comment: New changeset 8dad09a2242194a4101374b91ce87bb47a487cf7 by Miss Islington (bot) in branch '3.8': bpo-19698: Document when importlib.machinery.FrozenImporter gained spec-related methods (GH-19158) (#19164)

[issue40078] asyncio subprocesses allow pids to be reaped, different behavior than regular subprocesses

2020-03-26 Thread Justin Lebar
Change by Justin Lebar : -- type: -> behavior versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40078] asyncio subprocesses allow pids to be reaped, different behavior than regular subprocesses

2020-03-26 Thread Justin Lebar
Change by Justin Lebar : -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1187312] subprocess: optional auto-reaping fixing os.wait() lossage

2020-03-26 Thread Justin Lebar
Justin Lebar added the comment: 15 years later, it seems asyncio subprocesses may have the same issue. :) https://bugs.python.org/issue40078 -- nosy: +Justin.Lebar ___ Python tracker

[issue40078] asyncio subprocesses allow pids to be reaped, different behavior than regular subprocesses

2020-03-26 Thread Justin Lebar
New submission from Justin Lebar : >From https://bugs.python.org/issue1187312 about regular subprocesses: > So as long as the application keeps a reference to the > subprocess object, it can wait for it; auto-reaping only > starts when the last reference was dropped [in Popen.__del__].

[issue40052] Incorrect pointer alignment in _PyVectorcall_Function() of cpython/abstract.h

2020-03-26 Thread Matej Cepl
Change by Matej Cepl : -- nosy: +mcepl nosy_count: 3.0 -> 4.0 pull_requests: +18539 pull_request: https://github.com/python/cpython/pull/19179 ___ Python tracker ___

[issue40043] RegExp Conditional Construct (?(id/name)yes-pattern|no-pattern) Problem

2020-03-26 Thread Matthew Barnett
Matthew Barnett added the comment: That's what searching does! Does the pattern match here? If not, advance by one character and try again. Repeat until a match is found or you've reached the end. -- ___ Python tracker

[issue40049] tarfile cannot extract from stdin

2020-03-26 Thread Manjusaka
Manjusaka added the comment: Hello I can't reproduce this issue on my Laptop from 3.8.1 to 3.9.0a4 I think maybe it depends on the file you use would you mind to upload the file with the problem? -- nosy: +Manjusaka ___ Python tracker

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2020-03-26 Thread Zachary Ware
Zachary Ware added the comment: 12 years later, we finally landed your fix :). Thanks for the patch, and for bearing with us (and me in particular for the past couple months). As mentioned in the PR, there is probably opportunity to clean up the cleanup code in the new test a bit, and as

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2020-03-26 Thread miss-islington
miss-islington added the comment: New changeset b05fbe9f374bc660af3c589a1146b2026606d442 by Miss Islington (bot) in branch '3.8': bpo-1812: Fix newline conversion when doctest.testfile loads from a package whose loader has a get_data method (GH-17385)

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2020-03-26 Thread miss-islington
miss-islington added the comment: New changeset 9387678f8a580726aca5f836b2c50456f236ecbb by Miss Islington (bot) in branch '3.7': bpo-1812: Fix newline conversion when doctest.testfile loads from a package whose loader has a get_data method (GH-17385)

[issue40075] _tkinter PythonCmd fails to acquire GIL

2020-03-26 Thread Thomas Holder
Change by Thomas Holder : -- keywords: +patch pull_requests: +18538 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19178 ___ Python tracker ___

[issue40076] isoformat function drops microseconds part if its value is 000000

2020-03-26 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Does timespec fulfill this use case to always return microseconds? https://docs.python.org/3/library/datetime.html#datetime.datetime.isoformat Return a string representing the date and time in ISO 8601 format: -MM-DDTHH:MM:SS.ff, if

[issue40077] Convert static types to PyType_FromSpec()

2020-03-26 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +18537 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19177 ___ Python tracker ___

[issue40077] Convert static types to PyType_FromSpec()

2020-03-26 Thread STINNER Victor
STINNER Victor added the comment: > We need to convert them. Let me elaborate. Static types have multiple issues: * Their lifetime is not well defined. * It is not obvious when they are ready to be used. * They are not destroyed at exit. * They are incompatible with subinterpreters: each

[issue40077] Convert static types to PyType_FromSpec()

2020-03-26 Thread Dong-hee Na
New submission from Dong-hee Na : Some of modules is not using PyType_FromSpec. We need to convert them. This changes can bring - allow to destroy types at exit! - allow subinterpreters to have their own "isolated" typ -- messages: 365087 nosy: corona10, vstinner priority: normal

[issue40076] isoformat function drops microseconds part if its value is 000000

2020-03-26 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky, p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

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

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2020-03-26 Thread Zachary Ware
Zachary Ware added the comment: New changeset e0b8101492f6c61dee831425b4d3dae39a953599 by Peter Donis in branch 'master': bpo-1812: Fix newline conversion when doctest.testfile loads from a package whose loader has a get_data method (GH-17385)

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2020-03-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +18536 pull_request: https://github.com/python/cpython/pull/19176 ___ Python tracker ___

[issue39879] Update language reference to specify that dict is insertion-ordered.

2020-03-26 Thread STINNER Victor
STINNER Victor added the comment: What's New in Python 3.7 says: > the insertion-order preservation nature of dict objects has been declared to > be an official part of the Python language spec. Reference: https://mail.python.org/pipermail/python-dev/2017-December/151283.html I just

[issue40065] py39: remove deprecation note for xml.etree.cElementTree

2020-03-26 Thread Fred Drake
Fred Drake added the comment: The Python 2.7 documentation was not clear that xml.etree.cElementTree was optional, so users who didn't dive into the implementation or build process could easily not have known unless someone with a more limited installation used their code. --

[issue39879] Update language reference to specify that dict is insertion-ordered.

2020-03-26 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the patch! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39879] Update language reference to specify that dict is insertion-ordered.

2020-03-26 Thread miss-islington
miss-islington added the comment: New changeset 96686c761d0587080effc113367431a0d396eb45 by Miss Islington (bot) in branch '3.8': bpo-39879: Update datamodel docs to include dict ordering (GH-19006) https://github.com/python/cpython/commit/96686c761d0587080effc113367431a0d396eb45

[issue39879] Update language reference to specify that dict is insertion-ordered.

2020-03-26 Thread miss-islington
miss-islington added the comment: New changeset ea0eeb8d3a0544334f8836c98a761b2e3df2bd94 by Miss Islington (bot) in branch '3.7': bpo-39879: Update datamodel docs to include dict ordering (GH-19006) https://github.com/python/cpython/commit/ea0eeb8d3a0544334f8836c98a761b2e3df2bd94

[issue39879] Update language reference to specify that dict is insertion-ordered.

2020-03-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +18534 pull_request: https://github.com/python/cpython/pull/19174 ___ Python tracker ___

[issue39879] Update language reference to specify that dict is insertion-ordered.

2020-03-26 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +18533 pull_request: https://github.com/python/cpython/pull/19173 ___ Python tracker

[issue39879] Update language reference to specify that dict is insertion-ordered.

2020-03-26 Thread Zachary Ware
Zachary Ware added the comment: New changeset 59c644eaa72b0cc48302f59d66852c4ea8332eba by Lahfa Samy in branch 'master': bpo-39879: Update datamodel docs to include dict ordering (GH-19006) https://github.com/python/cpython/commit/59c644eaa72b0cc48302f59d66852c4ea8332eba --

[issue40065] py39: remove deprecation note for xml.etree.cElementTree

2020-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The common idiom is try: import xml.etree.cElementTree as ET except ImportError: import xml.etree.ElementTree as ET -- ___ Python tracker

[issue40065] py39: remove deprecation note for xml.etree.cElementTree

2020-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for catching this Fred. I am surprised that some code uses xml.etree.cElementTree without falling back to xml.etree.ElementTree. In Python 3 you can just use xml.etree.ElementTree, in Python 2 you have to fallback to the Python implementation

[issue40076] isoformat function drops microseconds part if its value is 000000

2020-03-26 Thread Alexander Bolshakov
New submission from Alexander Bolshakov : isoformat function does not conform to the ISO 8601 and drops microseconds part if its value is 00. The issue can be reproduced using the following code snippet: for i in range(1,1000): timestamp=datetime.datetime.utcnow().isoformat()

[issue40065] py39: remove deprecation note for xml.etree.cElementTree

2020-03-26 Thread Fred Drake
Fred Drake added the comment: Same core problem (module removed with insufficient document update), but a different action is needed for 3.8 and 3.9. When I started testing an application with 3.9 and found one of the dependencies broken because it was relying directly on

[issue36054] On Linux, os.count() should read cgroup cpu.shares and cpu.cfs (CPU count inside docker container)

2020-03-26 Thread STINNER Victor
STINNER Victor added the comment: > Hello guys, Please try to find a more inclusive way to say hello: https://heyguys.cc/ ;-) -- ___ Python tracker ___

[issue40065] py39: remove deprecation note for xml.etree.cElementTree

2020-03-26 Thread Manjusaka
Manjusaka added the comment: I will clean this This issue looks like the same with https://bugs.python.org/issue40064 -- nosy: +Manjusaka ___ Python tracker ___

[issue18987] distutils.utils.get_platform() for 32-bit Python on a 64-bit machine

2020-03-26 Thread Michael Felt
Michael Felt added the comment: Back again - I understood a lot less then, maybe more now.. iirc, get_platform() asin sysconfig.get_platform() and distutils.util.get_platform() are suppposed to return a suitable PEP425 tag that identifies the ABI of the running interpreter - eg.g, 32-bit

[issue38250] enum.Flag should be more set-like

2020-03-26 Thread Manjusaka
Manjusaka added the comment: 1. not sure I gett the Point 2. not sure 3. absolutely yes -- nosy: +Manjusaka ___ Python tracker ___

[issue36054] On Linux, os.count() should read cgroup cpu.shares and cpu.cfs (CPU count inside docker container)

2020-03-26 Thread Manjusaka
Manjusaka added the comment: Hello guys, I some ideas about this issue First, maybe we should add a new API named cpu_usable_count(). I think it's more meaningful than the os.sched_getaffinity(0) Second, more and more people use docker to run their app today. So people need an official way

[issue40073] AIX: python3 points to "air"

2020-03-26 Thread Michael Felt
Michael Felt added the comment: I see that it is also incorrect for v3.5.9 What is surprising - is that the logic is okay for python-config -> python-config3.X -> python-config-3.Xm root@x065:[/data/prj/python/python3-3.5.9/X32]ls -l opt/bin total 8728 lrwxrwxrwx 1 root system

[issue40073] AIX: python3 points to "air"

2020-03-26 Thread Michael Felt
Change by Michael Felt : -- versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40069] Clear .lst files for AIX

2020-03-26 Thread STINNER Victor
STINNER Victor added the comment: Ok. I merged your PR. I don't think that it's worth it to backport to 3.7 and 3.8. "git clean -fdx" can be used for stable branches to remove *all* files not tracked by Git (not only .lst files). -- resolution: -> fixed stage: patch review ->

[issue40069] Clear .lst files for AIX

2020-03-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1b6b0e78fef2549cc9b447cbededb638f7388e02 by Batuhan Taşkaya in branch 'master': bpo-40069: Clear out .lst files on make clean (GH-19169) https://github.com/python/cpython/commit/1b6b0e78fef2549cc9b447cbededb638f7388e02 --

[issue40071] test__xxsubinterpreters leaked [1, 1, 1] references: test_ids_global()

2020-03-26 Thread STINNER Victor
STINNER Victor added the comment: > (...) will convert it to use per-module state in a separate issue. Great! -- ___ Python tracker ___

[issue40071] test__xxsubinterpreters leaked [1, 1, 1] references: test_ids_global()

2020-03-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset b09ae3ff43111a336c0b706ea32fa07f88c992d9 by Paulo Henrique Silva in branch 'master': bpo-40071: Fix refleak in _functools module (GH19172) https://github.com/python/cpython/commit/b09ae3ff43111a336c0b706ea32fa07f88c992d9 --

[issue40074] pickle module dump and load: add support for string file names

2020-03-26 Thread Eric V. Smith
Eric V. Smith added the comment: I think it's a bad design to overload a function based on the type of am argument. I realize the stdlib does this in a number of places, for older functions. I don't think we'd add such a function today. I might not object to a new pickle API to do this, but

[issue40075] _tkinter PythonCmd fails to acquire GIL

2020-03-26 Thread Thomas Holder
New submission from Thomas Holder : The attached demo application runs a Tkinter GUI and a PyQt GUI in the same thread. PyQt owns the main loop and keeps updating the Tkinter instance by calling `update()`. On Windows, when binding a "" event, resizing the Tk window will lead to a crash:

[issue38410] Possible fatal errors due to _PyEval_SetAsyncGen{Finalizer, Firstiter}()

2020-03-26 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

  1   2   >