[issue43179] Remove 31/32-bit s390 Linux support (s390-linux-gnu triplet)

2021-02-21 Thread STINNER Victor
STINNER Victor added the comment: I created a thread on python-dev: "Move support of legacy platforms/architectures outside Python" https://mail.python.org/archives/list/python-...@python.org/thread/F5BXISYP7RAINXUMYJSEYG7GCFRFAENF/ -- ___ Python

[issue43179] Remove 31/32-bit s390 Linux support (s390-linux-gnu triplet)

2021-02-21 Thread Christian Heimes
Christian Heimes added the comment: For the last time: This ticket is solely about s390 platform. Please stop derailing this ticket with comments about unrelated platforms like m68k. I'm considering your diversion as "sustained disruption of online community discussions",

[issue43284] Wrong windows build in 20H2

2021-02-21 Thread bugale bugale
New submission from bugale bugale : Running `platform.platform()` on Windows 10 20H2 results in the build number 19041: Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2021-02-21 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23389 pull_request: https://github.com/python/cpython/pull/24582 ___ Python tracker ___

[issue40839] Disallow calling PyDict_GetItem() with the GIL released

2021-02-21 Thread STINNER Victor
STINNER Victor added the comment: I made a similar change in _PyDict_GetItemHint(): commit d5fc99873769f0d0d5c5d5d99059177a75a4e46e (HEAD -> master, upstream/master) Author: Victor Stinner Date: Sun Feb 21 12:02:04 2021 +0100 bpo-42093: Cleanup _PyDict_GetItemHint() (GH-24582)

[issue27640] Add --disable-test-modules configure option to not build nor install tests

2021-02-21 Thread STINNER Victor
STINNER Victor added the comment: > I filed issue43282 for this. Thanks ;-) -- ___ Python tracker ___ ___ Python-bugs-list

[issue43282] Add split install targets to install tests separately from lib

2021-02-21 Thread STINNER Victor
STINNER Victor added the comment: Do you want to work on a PR to implement this idea? -- nosy: +vstinner ___ Python tracker ___

[issue43285] ftplib use host from PASV response

2021-02-21 Thread RiceX Star
New submission from RiceX Star : Last year, curl had a security update for CVE-2020-8284. more info, see https://hackerone.com/reports/1040166 The problem is ftp client trust the host from PASV response by default, A malicious server can trick ftp client into connecting back to a given IP

[issue43179] Remove 31/32-bit s390 Linux support (s390-linux-gnu triplet)

2021-02-21 Thread David Edelsohn
David Edelsohn added the comment: Christian, The Python Community Code of Conduct also states: Being respectful of differing viewpoints and experiences. Showing empathy towards other community members. Various developers are passionate about this topic and the entire series of comments has

[issue43285] ftplib use host from PASV response

2021-02-21 Thread hai shi
Change by hai shi : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43278] unnecessary leading '\n' from Py_GetCompiler() when build with different complier

2021-02-21 Thread hai shi
hai shi added the comment: Maybe Guido can give you some answers. Related commit: https://github.com/python/cpython/commit/f26cda62b68b68c07666f2f21b1f16ded03afa37. -- nosy: +gvanrossum, shihai1991 ___ Python tracker

[issue42093] Add opcode cache for LOAD_ATTR

2021-02-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset d5fc99873769f0d0d5c5d5d99059177a75a4e46e by Victor Stinner in branch 'master': bpo-42093: Cleanup _PyDict_GetItemHint() (GH-24582) https://github.com/python/cpython/commit/d5fc99873769f0d0d5c5d5d99059177a75a4e46e --

[issue43179] Remove 31/32-bit s390 Linux support (s390-linux-gnu triplet)

2021-02-21 Thread John Paul Adrian Glaubitz
John Paul Adrian Glaubitz added the comment: > "Move support of legacy platforms/architectures outside Python" > https://mail.python.org/archives/list/python-...@python.org/thread/F5BXISYP7RAINXUMYJSEYG7GCFRFAENF/ Motorola 68k isn't a 16-bit architecture, it's a 32-bit architecture. Also, I

[issue43179] Remove 31/32-bit s390 Linux support (s390-linux-gnu triplet)

2021-02-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43286] Clarify that Popen.returncode does not get auto-set when the process terminates

2021-02-21 Thread Antony Lee
New submission from Antony Lee : Currently, the documentation for Popen.returncode states The child return code, set by poll() and wait() (and indirectly by communicate()). A None value indicates that the process hasn’t terminated yet. A negative value -N indicates that the child was

[issue43179] Remove 31/32-bit s390 Linux support (s390-linux-gnu triplet)

2021-02-21 Thread John Paul Adrian Glaubitz
John Paul Adrian Glaubitz added the comment: Oh, and LLVM is currently gaining support M68k which you consider "legacy": > https://reviews.llvm.org/D95315 It might be a good idea to do some research first before making such statements. -- ___

[issue43250] [C API] Depreate or remove PyFPE_START_PROTECT() and PyFPE_END_PROTECT()

2021-02-21 Thread hai shi
hai shi added the comment: > So it doesn't sound like a good idea to immediately remove these two macros. MAYBE we can update the annotation in pyfpe.h to address that we will remove those macros in python 4.0. The fpe have been removed, so those macros will be removed finally. --

[issue43267] [sqlite3] Redundant type checks in pysqlite_statement_bind_parameter()

2021-02-21 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > I am not sure that the difference is significant enough to justify the > optimization. I would guess it's negligible. I did some quick timeit tests, but the results were pretty much equal, so I guess I'd have to use a more precise benchmark

[issue43283] IDLE: Explain print slowness and speedup method

2021-02-21 Thread miss-islington
miss-islington added the comment: New changeset 693aeacf8851d1e9995073e27e50644a505dc49c by Miss Islington (bot) in branch '3.9': bpo-43283: Rearrange some IDLE doc paragraphs. (GH-24604) https://github.com/python/cpython/commit/693aeacf8851d1e9995073e27e50644a505dc49c --

[issue38822] Inconsistent os.stat behavior for directory with Access Denied

2021-02-21 Thread CrouZ
CrouZ added the comment: The problem exists in Python 3.9 as well, and it behaves the same as Python 3.8. Tested with Python 3.9.1. -- versions: +Python 3.9 ___ Python tracker

[issue43267] [sqlite3] Redundant type checks in pysqlite_statement_bind_parameter()

2021-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PyLong_Check is two memory reads, bits operation, and comparison with 0. And one non-inlined function call when limited API is used. PyLong_CheckExact is only one memory read and comparison. I am not sure that the difference is significant enough to

[issue43251] [sqlite3] sqlite3_column_name() failures should raise MemoryError

2021-02-21 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Will do. Thanks for pushing the investigation. -- ___ Python tracker ___ ___

[issue43283] IDLE: Explain print slowness and speedup method

2021-02-21 Thread miss-islington
miss-islington added the comment: New changeset 6ddb25586524022923d076ddb3b5867214c6ce42 by Miss Islington (bot) in branch '3.8': bpo-43283: Rearrange some IDLE doc paragraphs. (GH-24604) https://github.com/python/cpython/commit/6ddb25586524022923d076ddb3b5867214c6ce42 --

[issue43251] [sqlite3] sqlite3_column_name() failures should raise MemoryError

2021-02-21 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch pull_requests: +23388 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24609 ___ Python tracker

[issue43251] [sqlite3] sqlite3_column_name() failures should raise MemoryError

2021-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please go ahead! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43269] [sqlite3] Clean up function scoping

2021-02-21 Thread Berker Peksag
Berker Peksag added the comment: New changeset 38b6c2acd4bba666bd64779c42b9d91cbee19274 by Erlend Egeberg Aasland in branch 'master': bpo-43269: Remove redundant extern keywords (GH-24605) https://github.com/python/cpython/commit/38b6c2acd4bba666bd64779c42b9d91cbee19274 --

[issue43269] [sqlite3] Clean up function scoping

2021-02-21 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43179] Remove 31/32-bit s390 Linux support (s390-linux-gnu triplet)

2021-02-21 Thread Christian Heimes
Christian Heimes added the comment: My offer still stands: If you can fulfill the requirements of PEP 11 for s390, then I'm fine with keeping the code for s390 around. Victor has a different opinion, so you have to contact the Steering Council and get their approval, too. Our ticket system

[issue43250] [C API] Depreate or remove PyFPE_START_PROTECT() and PyFPE_END_PROTECT()

2021-02-21 Thread Nathaniel Smith
Nathaniel Smith added the comment: If I remember correctly, cython-generated C code calls those macros at appropriate places, so there are probably a bunch of projects that are using them and the developers have no idea. On Thu, Feb 18, 2021, 04:16 STINNER Victor wrote: > > STINNER Victor

[issue42627] urllib.request.getproxies() misparses Windows registry proxy settings

2021-02-21 Thread 双草酸酯
双草酸酯 added the comment: I came across this issue as well. I checked Microsoft documentations and it seems `InternetGetProxyInfo` in WinInet is deprecated, while `WinHttpGetIEProxyConfigForCurrentUser` in WinHTTP will return the exact same string as what it stored registery.

[issue43287] Use PEP 590 vectorcall to speed up calls to filter()

2021-02-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: +0 I don't see any downside. Note, the benchmark only times instantiation of the filter object. It doesn't actually run the iterator which is where most of the runtime cost is spent. So in actual code there is almost zero benefit. For example, add

[issue43288] test_importlib failure due to missing skip() method

2021-02-21 Thread Neil Schemenauer
Change by Neil Schemenauer : -- keywords: +patch pull_requests: +23391 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24612 ___ Python tracker

[issue43287] Use PEP 590 vectorcall to speed up calls to filter()

2021-02-21 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +23390 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24611 ___ Python tracker ___

[issue43278] unnecessary leading '\n' from Py_GetCompiler() when build with different complier

2021-02-21 Thread Joseph Shen
Joseph Shen added the comment: Right now there is no need to keep this limits, and the __version__ info from GCC is quite simple. Pls the attached snapshot image. Therefor I don't think we should keep a commit from 2000. -- ___ Python tracker

[issue43287] Use PEP 590 vectorcall to speed up calls to filter()

2021-02-21 Thread Dong-hee Na
New submission from Dong-hee Na : +--++--+ | Benchmark| master | vectorcall | +==++==+ | bench filter | 191 ns | 151 ns: 1.26x faster | +--++--+ Like

[issue16954] Add docstrings for ElementTree module

2021-02-21 Thread Neil Schemenauer
Change by Neil Schemenauer : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue43288] test_importlib failure due to missing skip() method

2021-02-21 Thread Neil Schemenauer
New submission from Neil Schemenauer : The FileSystem class is missing a skip() method. If the file system doesn't support Unicode filenames, the test crashes. File "/home/nas/src/cpython/Lib/test/test_importlib/fixtures.py", line 221, in unicode_filename self.skip("File system does

[issue43288] test_importlib failure due to missing skip() method

2021-02-21 Thread Neil Schemenauer
Neil Schemenauer added the comment: New changeset 84f7afe65c29330f3ff8e318e054b96554a2dede by Neil Schemenauer in branch 'master': Fix failed merge of bpo-43288. (GH-24614) https://github.com/python/cpython/commit/84f7afe65c29330f3ff8e318e054b96554a2dede --

[issue43288] test_importlib failure due to missing skip() method

2021-02-21 Thread Neil Schemenauer
Change by Neil Schemenauer : -- pull_requests: +23397 pull_request: https://github.com/python/cpython/pull/24616 ___ Python tracker ___

[issue43289] step bug in turtle's for loop

2021-02-21 Thread Dennis Sweeney
Dennis Sweeney added the comment: If I understand correctly, changing the -1 to a -2 does not actually make the program "crash" -- you just only see one black circle. The reason is that range(40, 0, -2) produces 40, 38, 36, etc., all of which are even numbers, so rad % 2 is always 0, so

[issue43260] Never release buffer when MemoryError in print()

2021-02-21 Thread Inada Naoki
Inada Naoki added the comment: New changeset 6e2f144f53982d7103d4cfc2d9361fc445a1817e by Inada Naoki in branch '3.8': bpo-43260: io: Prevent large data remains in textio buffer. (GH-24592) https://github.com/python/cpython/commit/6e2f144f53982d7103d4cfc2d9361fc445a1817e --

[issue43260] Never release buffer when MemoryError in print()

2021-02-21 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43289] step bug in turtle's for loop

2021-02-21 Thread Yehuda Katz
New submission from Yehuda Katz : from turtle import * col = ["black", "white"] for rad in range(40, 0, -1): dot(5*rad, col[rad % 2]) done() == Any other step than -1 crashes the code. Thank you. -- messages: 387472 nosy: Yehuda priority: normal

[issue43288] test_importlib failure due to missing skip() method

2021-02-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +23394 pull_request: https://github.com/python/cpython/pull/24613 ___ Python tracker

[issue43288] test_importlib failure due to missing skip() method

2021-02-21 Thread Neil Schemenauer
Neil Schemenauer added the comment: New changeset 50288aa8c955f66ab67a7dadf250ea5f4238eb67 by Neil Schemenauer in branch 'master': bpo-43288: Fix bug in test_importlib test. (GH-24612) https://github.com/python/cpython/commit/50288aa8c955f66ab67a7dadf250ea5f4238eb67 --

[issue39791] New `files()` api from importlib_resources.

2021-02-21 Thread Neil Schemenauer
Change by Neil Schemenauer : -- nosy: +nascheme nosy_count: 9.0 -> 10.0 pull_requests: +23392 pull_request: https://github.com/python/cpython/pull/24612 ___ Python tracker ___

[issue39791] New `files()` api from importlib_resources.

2021-02-21 Thread Neil Schemenauer
Change by Neil Schemenauer : -- nosy: +nascheme, nascheme nosy_count: 9.0 -> 10.0 pull_requests: +23392, 23393 pull_request: https://github.com/python/cpython/pull/24612 ___ Python tracker

[issue43289] step bug in turtle's for loop

2021-02-21 Thread Yehuda Katz
Yehuda Katz added the comment: Correction to my msg387472: Every *even* step crashes the code. -- ___ Python tracker ___ ___

[issue43283] IDLE: Explain print slowness and speedup method

2021-02-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +23396 pull_request: https://github.com/python/cpython/pull/24615 ___ Python tracker ___

[issue43290] [sqlite3] remove legacy code from pysqlite_step

2021-02-21 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : pysqlite_step() contains a NULL check needed for SQLite 3.5 and earlier. This can be removed. -- components: Library (Lib) messages: 387476 nosy: berker.peksag, erlendaasland, serhiy.storchaka priority: normal severity: normal status: open

[issue43288] test_importlib failure due to missing skip() method

2021-02-21 Thread Neil Schemenauer
Neil Schemenauer added the comment: New changeset 44fe32061d60f4bd9c4fa48c24e3e4ba26033dba by Neil Schemenauer in branch '3.9': [3.9] bpo-43288: Fix bug in test_importlib test. (GH-24616) https://github.com/python/cpython/commit/44fe32061d60f4bd9c4fa48c24e3e4ba26033dba --

[issue36636] Inner exception is not being raised using asyncio.gather

2021-02-21 Thread Irit Katriel
Irit Katriel added the comment: "twisteroid ambassador"'s explanation is correct - you need to use the traceback module to render complete information about an exception. And indeed, return_exceptions=False gives you the first exception (not all of them) as explained here

[issue43260] Never release buffer when MemoryError in print()

2021-02-21 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23399 pull_request: https://github.com/python/cpython/pull/24618 ___ Python tracker ___

[issue43287] Use PEP 590 vectorcall to speed up calls to filter()

2021-02-21 Thread Dong-hee Na
Dong-hee Na added the comment: > +0 I don't see any downside. Thank you Raymond :) I agree with your view, At first, I thought that instantiation time reducing is also meaningful and we already applied PEP 590 for some of the types to reduce instantiation. (e.g range(), list(), dict(),

[issue15108] Incomplete tuple created by PyTuple_New() and accessed via the GC can trigged a crash

2021-02-21 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43250] [C API] Deprecate or remove PyFPE_START_PROTECT() and PyFPE_END_PROTECT()

2021-02-21 Thread Raymond Hettinger
Change by Raymond Hettinger : -- title: [C API] Depreate or remove PyFPE_START_PROTECT() and PyFPE_END_PROTECT() -> [C API] Deprecate or remove PyFPE_START_PROTECT() and PyFPE_END_PROTECT() ___ Python tracker

[issue39791] New `files()` api from importlib_resources.

2021-02-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43291] elementary multiplication by 0.01 error

2021-02-21 Thread Tony
New submission from Tony : on the >>> prompt type: >>>717161 * 0.01 7171.6101 the same goes for >>>717161.0 * 0.01 7171.6101 You can easily find more numbers with similar problem: for i in range(100): if len(str(i * 0.01)) > 12: print(i, i * 0.01) I am sure,

[issue43291] elementary multiplication by 0.01 error

2021-02-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here is an explanation for the behavior you're seeing: https://docs.python.org/3/tutorial/floatingpoint.html Here is another famous resource on the subject: https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html For exact decimal

[issue43288] test_importlib failure due to missing skip() method

2021-02-21 Thread Neil Schemenauer
Change by Neil Schemenauer : -- pull_requests: +23395 pull_request: https://github.com/python/cpython/pull/24614 ___ Python tracker ___

[issue40404] Python quit unexpectedly

2021-02-21 Thread Irit Katriel
Irit Katriel added the comment: Joseph, please create a new issue if you are able to provide information indicating an issue with Python, as Ned explained above. -- nosy: +iritkatriel resolution: -> works for me stage: -> resolved status: pending -> closed

[issue43260] Never release buffer when MemoryError in print()

2021-02-21 Thread Inada Naoki
Inada Naoki added the comment: New changeset 01806d5beba3d208bb56adba6829097d803bf54f by Inada Naoki in branch 'master': bpo-43260: io: Prevent large data remains in textio buffer. (GH-24592) https://github.com/python/cpython/commit/01806d5beba3d208bb56adba6829097d803bf54f --

[issue43260] Never release buffer when MemoryError in print()

2021-02-21 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23398 pull_request: https://github.com/python/cpython/pull/24617 ___ Python tracker ___

[issue43259] argparse: allow add_mutually_exclusive_group on add_argument_group

2021-02-21 Thread Christoph Anton Mitterer
Christoph Anton Mitterer added the comment: Well but if that's anyway one of its actual major use cases, wouldn't it make sense to properly support it? Especially when one has a large set of identical options (which is then even more likely to also include mutually exclusive ones) such a

[issue43125] Trying To Concatenate Bytes and String in SMTPLIB

2021-02-21 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43260] Never release buffer when MemoryError in print()

2021-02-21 Thread Inada Naoki
Inada Naoki added the comment: New changeset d51436f95bf5978f82d917e53e9a456fdaa83a9d by Inada Naoki in branch '3.9': bpo-43260: io: Prevent large data remains in textio buffer. (GH-24592) https://github.com/python/cpython/commit/d51436f95bf5978f82d917e53e9a456fdaa83a9d --

[issue38822] Inconsistent os.stat behavior for directory with Access Denied

2021-02-21 Thread Eryk Sun
Eryk Sun added the comment: Here's an implementation of attributes_from_dir() that strips trailing slashes (e.g. "C:/spam///" -> "C:/spam"), which entails copying the const string up to the last character that's not a slash. Rooted paths and drive paths that reference a root directory, such

[issue43293] Move note about GIL to top of threading module

2021-02-21 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43293] Move note about GIL to top of threading module

2021-02-21 Thread Guanzhong Chen
Change by Guanzhong Chen : -- keywords: +patch pull_requests: +23406 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24622 ___ Python tracker ___

[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack

2021-02-21 Thread Christoph Anton Mitterer
Christoph Anton Mitterer added the comment: Just wondered whether this is still being considered? Cheers, Chris. -- nosy: +calestyo ___ Python tracker ___

[issue43287] Use PEP 590 vectorcall to speed up calls to filter()

2021-02-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I don't think there is much of a maintenance burden; hence, the +0. You've already done the work. -- ___ Python tracker ___

[issue43259] argparse: allow add_mutually_exclusive_group on add_argument_group

2021-02-21 Thread paul j3
paul j3 added the comment: I've added a script that does what you want, but with a simple utility function instead of a parent (or lots of copy-n-paste). I explored the code a bit, and have an idea that might correct the [parent] behavior. In the method that copies a parent's groups

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2021-02-21 Thread miss-islington
miss-islington added the comment: New changeset 9dd018e35cce30bc2545290b6083dbf6e50d7b61 by Miss Islington (bot) in branch '3.8': bpo-23882: Doc: Clarify unittest discovery document (GH-21560) https://github.com/python/cpython/commit/9dd018e35cce30bc2545290b6083dbf6e50d7b61 --

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2021-02-21 Thread miss-islington
miss-islington added the comment: New changeset 30fe3ee6d39fba8183db779f15936fe64cc5ec85 by Miss Islington (bot) in branch '3.9': bpo-23882: Doc: Clarify unittest discovery document (GH-21560) https://github.com/python/cpython/commit/30fe3ee6d39fba8183db779f15936fe64cc5ec85 --

[issue42808] Add PyType_Type.tp_vectorcall for type(obj) performance

2021-02-21 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset b19855bb6ffd69a16e8b53873b19b0b04f488716 by Dennis Sweeney in branch 'master': bpo-42808: Add PyType_Type.tp_vectorcall for type(obj) performance (GH-24058) https://github.com/python/cpython/commit/b19855bb6ffd69a16e8b53873b19b0b04f488716

[issue42808] Add PyType_Type.tp_vectorcall for type(obj) performance

2021-02-21 Thread Dong-hee Na
Dong-hee Na added the comment: Thank you Dennis! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43287] Use PEP 590 vectorcall to speed up calls to filter()

2021-02-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Happy new year to you as well :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43292] xml.ElementTree iterparse filehandle left open

2021-02-21 Thread Viktor Kis
New submission from Viktor Kis : Standard library xml.ElementTree - iterparse does not close filehandle properly when breaking out of a for loop iterating with iterparse. The issue only occurs when the user passes a "string" as a source object instead of a filehandle (that is because a

[issue43292] xml.ElementTree iterparse filehandle left open

2021-02-21 Thread Viktor Kis
Viktor Kis added the comment: ran python 3.9.2 on windows 10 1) What did you do? Tried to remove folder that contains a xml file that was worked on by ElementTree iterparse with argument source='filename' (string type input) 2. What happened? python was not able to remove the folder due to

[issue43292] xml.ElementTree iterparse filehandle left open

2021-02-21 Thread Viktor Kis
Viktor Kis added the comment: Confirmed that no apps were using the created xml file or folder. Windows Explorer was closed for all folders only the terminal shell was open. Issue still persists on windows 10 OS. -- ___ Python tracker

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2021-02-21 Thread Inada Naoki
Inada Naoki added the comment: New changeset 5a4aa4c03e27ca5007b86c9c1ee62c77ad08a120 by Inada Naoki in branch 'master': bpo-23882: Doc: Clarify unittest discovery document (GH-21560) https://github.com/python/cpython/commit/5a4aa4c03e27ca5007b86c9c1ee62c77ad08a120 --

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2021-02-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington, miss-islington, miss-islington, miss-islington, miss-islington nosy_count: 13.0 -> 14.0 pull_requests: +23400, 23401, 23402, 23403, 23404 pull_request: https://github.com/python/cpython/pull/24619

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2021-02-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 13.0 -> 14.0 pull_requests: +23400 pull_request: https://github.com/python/cpython/pull/24619 ___ Python tracker

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2021-02-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington, miss-islington nosy_count: 13.0 -> 14.0 pull_requests: +23400, 23401 pull_request: https://github.com/python/cpython/pull/24619 ___ Python tracker

[issue15108] Incomplete tuple created by PyTuple_New() and accessed via the GC can trigged a crash

2021-02-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Unless there is a simple, reliable, cheap, and universal solution at hand, consider closing this. Given how long PyTuple_New() has exist, it doesn't seem to be much of a problem in the real world. Historically, we punted on "crashers" involving either

[issue43292] xml.ElementTree iterparse filehandle left open

2021-02-21 Thread anthony shaw
anthony shaw added the comment: which version of Python were you doing this on? The function in question is https://github.com/python/cpython/blob/master/Lib/xml/etree/ElementTree.py#L1233-L1278 -- nosy: +anthonypjshaw ___ Python tracker

[issue43292] xml.ElementTree iterparse filehandle left open

2021-02-21 Thread anthony shaw
anthony shaw added the comment: Example script attached works perfectly on macOS > python3.9 test.py [('default', 'http://schemas.openxmlformats.org/officeDocument/2006/extended-properties'), ('vt', 'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes')] [('default',

[issue43278] unnecessary leading '\n' from Py_GetCompiler() when build with different complier

2021-02-21 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2021-02-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington, miss-islington, miss-islington, miss-islington nosy_count: 13.0 -> 14.0 pull_requests: +23400, 23401, 23403, 23404 pull_request: https://github.com/python/cpython/pull/24619 ___ Python tracker

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2021-02-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington, miss-islington, miss-islington nosy_count: 13.0 -> 14.0 pull_requests: +23400, 23401, 23403 pull_request: https://github.com/python/cpython/pull/24619 ___ Python tracker

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2021-02-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +23405 pull_request: https://github.com/python/cpython/pull/24621 ___ Python tracker ___

[issue43293] Move note about GIL to top of threading module

2021-02-21 Thread Guanzhong Chen
New submission from Guanzhong Chen : The note about the GIL is buried pretty deep in the threading documentation, and this makes it hard for first time users to discover why their attempts at using threading to parallelizing their application did not work. This used to be the case in the old