[issue43459] Race conditions when the same source file used to build mutliple extensions

2021-03-09 Thread Michał Górny
New submission from Michał Górny : There is a race condition in distutils' build_ext implementation. When the same source file is used to build multiple extensions, distutils attempts to build it multiple times using the same output file, in parallel. This means that the link editor can

[issue39511] [subinterpreters] Per-interpreter singletons (None, True, False, etc.)

2021-03-09 Thread junyixie
junyixie added the comment: > Which API should be used in C extensions to be "subinterpreter-safe"? ?> > Currently, Py_None is a singleton shared by multiple interpreters. > > > > Should suddenly all C extensions use a new Py_GetNone() function which > > returns the per-interpreter

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-03-09 Thread Pandu E POLUAN
Pandu E POLUAN added the comment: Hi Senthil, You're right, it does need a guard. According to my knowledge there is no AUTH mechanism that will send more than 3 challenges; they should fail afterwards with 535 or similar. Servers that don't do that should be considered buggy/broken. So

[issue43458] Tutorial should mention about variable scope in try/except/finally

2021-03-09 Thread Marek M
New submission from Marek M : It can be helpful to mention that variables defined in try block are visible in except/finally block as well. I did not find this info in Python tutorial and for me (having C++ background) this is quite unexpected feature. -- assignee: docs@python

[issue43457] Include simple file loading and saving functions in JSON standard library.

2021-03-09 Thread Inada Naoki
Inada Naoki added the comment: I created a new vote for naming. https://discuss.python.org/t/vote-new-function-for-reading-json-from-path/7603 -- ___ Python tracker ___

[issue43044] Python 2.7 documentation links to 404 pages when the library was moved or renamed

2021-03-09 Thread Борис Верховский
Борис Верховский added the comment: This was fixed using redirects in nginx https://github.com/python/psf-salt/pull/201 -- resolution: out of date -> fixed ___ Python tracker

[issue43457] Include simple file loading and saving functions in JSON standard library.

2021-03-09 Thread Inada Naoki
Inada Naoki added the comment: This idea is discussed several times. Last discussion thread is: https://mail.python.org/archives/list/python-id...@python.org/thread/YHO575YY4FQC3GBDF4SKOWIEAUSY3OQX/#YHO575YY4FQC3GBDF4SKOWIEAUSY3OQX -- nosy: +methane

[issue43457] Include simple file loading and saving functions in JSON standard library.

2021-03-09 Thread nervecenter
New submission from nervecenter : Python has a "batteries included" approach to standard library construction. To that end, commonly used procedures are often included as functions; adding sugar to the language is often exchanged for adding sugar to libraries. One of these common procedures

[issue43435] Py_BuildValue("y#".... returns incomplete result

2021-03-09 Thread David Wood
Change by David Wood : Removed file: https://bugs.python.org/file49862/crypt.tar.gz ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43435] Py_BuildValue("y#".... returns incomplete result

2021-03-09 Thread David Wood
David Wood added the comment: Attached are the basic files. As you can see in the example test9.py, I am generating a random string, encrypting it, decrypting it, and comparing the decrypted result with the original value. This is intended to run on linux and requires the mcrypt library

[issue43435] Py_BuildValue("y#".... returns incomplete result

2021-03-09 Thread David Wood
Change by David Wood : Added file: https://bugs.python.org/file49862/crypt.tar.gz ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43456] Remove _xxsubinterpreters from sys.stdlib_module_names

2021-03-09 Thread Brett Cannon
New submission from Brett Cannon : I noticed that _xxsubinterpreters is in sys.stdlib_module_names but none of the other `_xx` modules are included (nor is 'test'). Since _xxsubinterpreters is only meant for testing (ATM) I think it should probably be left out. -- components: Library

[issue43439] [security] Add audit events on GC functions giving access to all Python objects

2021-03-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +23578 pull_request: https://github.com/python/cpython/pull/24811 ___ Python tracker ___

[issue43439] [security] Add audit events on GC functions giving access to all Python objects

2021-03-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +23577 pull_request: https://github.com/python/cpython/pull/24810 ___ Python tracker ___

[issue43439] [security] Add audit events on GC functions giving access to all Python objects

2021-03-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset b4f9089d4aa787c5b74134c98e5f0f11d9e63095 by Pablo Galindo in branch 'master': bpo-43439: Add audit hooks for gc functions (GH-24794) https://github.com/python/cpython/commit/b4f9089d4aa787c5b74134c98e5f0f11d9e63095 --

[issue42988] [security] Information disclosure via pydoc -p: /getfile?key=path allows to read arbitrary file on the filesystem

2021-03-09 Thread Miro Hrončok
Miro Hrončok added the comment: Todd Cullum from Red Hat Security team: "I don't have an account on Python's tracker, would you mind forwarding to upstream on my behalf that this is not only locally exploitable, but it can be exploited by actors on the adjacent network as well because

[issue43446] Wrong character in footnote

2021-03-09 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.6, Python 3.7 ___ Python tracker ___

[issue43446] Wrong character in footnote

2021-03-09 Thread Berker Peksag
Berker Peksag added the comment: New changeset da602560a4816c88dcf4d75b3e4eea56c8d3bbc2 by Miss Islington (bot) in branch '3.9': bpo-43446: Fix markup in sqlite3 footnote (GH-24806) https://github.com/python/cpython/commit/da602560a4816c88dcf4d75b3e4eea56c8d3bbc2 --

[issue43446] Wrong character in footnote

2021-03-09 Thread Berker Peksag
Berker Peksag added the comment: New changeset e89380765df8f0f02c90ad417e164d1597bd0b05 by Miss Islington (bot) in branch '3.8': bpo-43446: Fix markup in sqlite3 footnote (GH-24806) https://github.com/python/cpython/commit/e89380765df8f0f02c90ad417e164d1597bd0b05 --

[issue43446] Wrong character in footnote

2021-03-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +23575 pull_request: https://github.com/python/cpython/pull/24808 ___ Python tracker

[issue43446] Wrong character in footnote

2021-03-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +23576 pull_request: https://github.com/python/cpython/pull/24809 ___ Python tracker ___

[issue43446] Wrong character in footnote

2021-03-09 Thread Berker Peksag
Berker Peksag added the comment: New changeset 62a03cd490f81c0fb01eaceb31aa8a4c7800ed0e by Kamil Turek in branch 'master': bpo-43446: Fix markup in sqlite3 footnote (GH-24806) https://github.com/python/cpython/commit/62a03cd490f81c0fb01eaceb31aa8a4c7800ed0e -- nosy: +berker.peksag

[issue43443] Should shelve support dict union?

2021-03-09 Thread Dominik Vilsmeier
Dominik Vilsmeier added the comment: It's true, having `__ior__` but not `__or__` would probably be weird. In the end it's just "nice to have", but I'm not even sure that this applies. Calling `db.update(...)` is still more explicit than `db |= ...`. The docs mention that > This eases the

[issue43443] Should shelve support dict union?

2021-03-09 Thread Brandt Bucher
Brandt Bucher added the comment: +1 for the MutableMapping comment. We purposely omitted shelve when determining what classes should grow the new operators. Guido's thoughts: > I definitely think we should leave Shelf alone, it's a toy class from a > different era.

[issue43455] pathlib mistakenly assumes os.getcwd() is a resolved path in Windows

2021-03-09 Thread Tzu-ping Chung
Change by Tzu-ping Chung : -- keywords: +patch nosy: +uranusjr nosy_count: 5.0 -> 6.0 pull_requests: +23574 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17716 ___ Python tracker

[issue43455] pathlib mistakenly assumes os.getcwd() is a resolved path in Windows

2021-03-09 Thread Eryk Sun
New submission from Eryk Sun : pathlib._WindowsFlavour.resolve() mistakenly assume that os.getcwd() returns a resolved path in Windows: s = str(path) if not s: return os.getcwd() I don't think this is a practical problem since `str(path)` should never be an empty string. But

[issue43440] Enable rtree support in SQLite

2021-03-09 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: I've opened bpo-43454 for R*Tree callbacks. -- ___ Python tracker ___ ___

[issue43454] [sqlite3] Add support for R*Tree callbacks

2021-03-09 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : Ref. bpo-43440 Now that both Windows and macOS builds compile SQLite with R*Tree support, we should consider adding support for R*Tree callbacks. SQLite has two API's: - sqlite3_rtree_query_callback() for SQLite 3.8.5 and newer. -

[issue42914] pprint numbers with underscore

2021-03-09 Thread Felipe
Felipe added the comment: All yours! I'm tied up so won't be able to submit the PR On Thu, 25 Feb 2021 at 10:12, Stéphane Blondon wrote: > > Stéphane Blondon added the comment: > > I add the same idea but later than you, so I'm interested by such feature. > > Felipe: do you want to add a

[issue43443] Should shelve support dict union?

2021-03-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: One other thought. While __ior__() could be used as a short-cut for update(), the related __or__() method is more problematic because it would need to create a new underlying DB. So maybe this is a can worms that we should not open. It would be weird

[issue43443] Should shelve support dict union?

2021-03-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Maybe say that they implement the MutableMapping interface? Yes, that's a good idea (also add link to the MutableMapping docs). > Right, that seems like a good idea. But `__ior__` could > be implemented nevertheless? Off-hand, I don't see why not.

[issue43453] docs: runtime_checkable example refers to changed behavior in 3.10

2021-03-09 Thread Henry Schreiner
New submission from Henry Schreiner : The documentation here: https://docs.python.org/3/library/typing.html#typing.runtime_checkable refers to "For example, builtins.complex implements __float__(), therefore it passes an issubclass() check against SupportsFloat. However, the

[issue43311] bpo-43311: PyInterpreterState_New use thread-specific data tstate before key create .

2021-03-09 Thread STINNER Victor
STINNER Victor added the comment: > PyInterpreterState_New call and use PyThreadState *tstate = > _PyThreadState_GET(); It is safe to call _PyThreadState_GET() before _PyGILState_Init(). _PyThreadState_GET() calls _Py_atomic_load_relaxed(&_PyRuntime.gilstate.tstate_current), it doesn't use

[issue43440] Enable rtree support in SQLite

2021-03-09 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Anytime :) I'll create an issue for rtree callbacks. -- ___ Python tracker ___ ___

[issue43446] Wrong character in footnote

2021-03-09 Thread Kamil Turek
Change by Kamil Turek : -- keywords: +patch pull_requests: +23573 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24806 ___ Python tracker ___

[issue43440] Enable rtree support in SQLite

2021-03-09 Thread Steve Dower
Steve Dower added the comment: Perfect, thanks! Callbacks are a bigger ask, but I don't have any fundamental opposition to them. Probably worth opening a new issue, as it'll affect all platforms (I assume). And yeah, the setup.py in the CPython repo doesn't impact any of the Windows build

[issue43440] Enable rtree support in SQLite

2021-03-09 Thread Steve Dower
Steve Dower added the comment: New changeset 31818e98d3b845d815e9caf2a3d330341bdc1b33 by Erlend Egeberg Aasland in branch 'master': bpo-43440 : Enable SQLite R*Tree support for windows builds (GH-24797) https://github.com/python/cpython/commit/31818e98d3b845d815e9caf2a3d330341bdc1b33

[issue43446] Wrong character in footnote

2021-03-09 Thread Kamil Turek
Kamil Turek added the comment: That's right. Actually, the docs code contains two dashes but I think second of them is skipped in build process. Might be good to wrap it as an inline markup. -- nosy: +kamilturek ___ Python tracker

[issue43449] multiprocessing.Pool - crash in subprocess causes deadlock in parent

2021-03-09 Thread Jamie Kirkpatrick
Jamie Kirkpatrick added the comment: More reading around this issue and I stumbled on an existing issue which this is a dup of so it can be closed. https://bugs.python.org/issue22393 -- stage: -> resolved status: open -> closed ___ Python

[issue42658] os.path.normcase() is inconsistent with Windows file system

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

[issue7856] Add Big5-ETen codec: Python big5 codec cannot decode \xf9\xd8 bytes (U+7881 expected)

2021-03-09 Thread STINNER Victor
Change by STINNER Victor : -- title: cannot decode from or encode to big5 \xf9\xd8 -> Add Big5-ETen codec: Python big5 codec cannot decode \xf9\xd8 bytes (U+7881 expected) ___ Python tracker

[issue7856] cannot decode from or encode to big5 \xf9\xd8

2021-03-09 Thread STINNER Victor
STINNER Victor added the comment: > It looks like the F9D6–F9FE characters all come from the Big5-ETen extension One option would be to add a new big5eten encoding to Python. Someone has to implement the code. -- ___ Python tracker

[issue43445] Add frozen modules to sys.stdlib_module_names

2021-03-09 Thread STINNER Victor
STINNER Victor added the comment: > The list of available stdlib modules could change after compiling Python. It's documented: "[ sys.stdlib_module_names] is the same on all platforms. Modules which are not available on some platforms and modules disabled at Python build are also listed."

[issue43445] Add frozen modules to sys.stdlib_module_names

2021-03-09 Thread STINNER Victor
STINNER Victor added the comment: Neil Schemenauer: "Not sure the proper place to discuss this but I wonder if putting this stdlib module names list in the executable is the best idea." For the rationale behind sys.stdlib_module_names, please see the bpo-42955 where alternative were

[issue43452] Microoptimize PyType_Lookup for cache hits

2021-03-09 Thread Dino Viehland
Change by Dino Viehland : -- keywords: +patch pull_requests: +23572 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24804 ___ Python tracker ___

[issue43452] Microoptimize PyType_Lookup for cache hits

2021-03-09 Thread Dino Viehland
New submission from Dino Viehland : The common case going through _PyType_Lookup is to have a cache hit. There's some small tweaks which can make this a little cheaper: 1) the name field identity is used for a cache hit, and is kept alive by the cache. So there's no need to read the hash

[issue43450] List amnesia

2021-03-09 Thread Christian Heimes
Christian Heimes added the comment: Florian's answer is correct. Thanks! -- nosy: +christian.heimes resolution: -> not a bug stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker

[issue43450] List amnesia

2021-03-09 Thread Florian Bruhin
Florian Bruhin added the comment: This is not a bug. itertools.product returns an iterator: https://docs.python.org/3/glossary.html#term-iterator Quoting from there: > [...] every iterator is also iterable and may be used in most places where > other iterables are accepted. One notable

[issue43451] pydoc terminal suboptimal rendering of complex annotations

2021-03-09 Thread David Wilson
Change by David Wilson : -- keywords: +patch pull_requests: +23570 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24802 ___ Python tracker ___

[issue43445] Add frozen modules to sys.stdlib_module_names

2021-03-09 Thread Neil Schemenauer
Neil Schemenauer added the comment: Not sure the proper place to discuss this but I wonder if putting this stdlib module names list in the executable is the best idea. The list of available stdlib modules could change after compiling Python. I understand you don't want to dynamically

[issue43451] pydoc terminal suboptimal rendering of complex annotations

2021-03-09 Thread David Wilson
New submission from David Wilson : When viewing docs for classes that use annotations, pydoc's rendering of argument lists is regularly truncated at the terminal edge (if using `less -S`), or wrapped in a manner where quickly scanning the output is next to impossible. My 'classic' example

[issue43450] List amnesia

2021-03-09 Thread Márcio Mocellin
New submission from Márcio Mocellin : In Python 3.6.8 (default, Apr 16 2020, 01:36:27) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)] on linux, when I materialize the list, it is shown and is deleted. Shouldn't the list persist in memory? Is this a bug or is it really? ```python >>> vet_neg ['EH01',

[issue15097] Improving wording on the thread-safeness of import

2021-03-09 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43449] multiprocessing.Pool - crash in subprocess causes deadlock in parent

2021-03-09 Thread Jamie Kirkpatrick
New submission from Jamie Kirkpatrick : When using multiprocessing.Pool.apply[_async] a crash in the subprocess that is assigned the work item results in a deadlock in the parent process. The parent process remains blissfully unaware of the crash in the subprocess and waits for a result

[issue12956] builds fail when installing to --prefix with space in path name

2021-03-09 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: needs patch -> resolved status: pending -> closed ___ Python tracker ___

[issue43448] exec() ignores scope.

2021-03-09 Thread Eryk Sun
Eryk Sun added the comment: exec(obj, globals(), locals()) is the same as exec(obj). Also, locals in a function scope are optimized, so the locals() dict is a snapshot. Modifying the snapshot dict doesn't modify the optimized local variables. At most I think this issue is a duplicate of

[issue43435] Py_BuildValue("y#".... returns incomplete result

2021-03-09 Thread Christian Heimes
Christian Heimes added the comment: A sleep(1) call affects exactly one aspect of the program: the state of the PRNG rand(). You re-initialize the process globale RNG in every function call with srand((unsigned) time()). time() has a granularity of one second. --

[issue42967] [CVE-2021-23336] urllib.parse.parse_qsl(): Web cache poisoning - `; ` as a query args separator

2021-03-09 Thread Riccardo Schirone
Riccardo Schirone added the comment: This CVE was reported against Python, however it does not seem to be Python's fault for supporting the `;` separator, which was a valid separator for older standards. @AdamGold for this issue to become a real security problem, it seems that the proxy

[issue43435] Py_BuildValue("y#".... returns incomplete result

2021-03-09 Thread Eric V. Smith
Eric V. Smith added the comment: David: If you could give us an example showing the inputs, the actual outputs, and how they differ from what you expect, that would be helpful. Otherwise it's a lot of guessing on our part. -- nosy: +eric.smith

[issue43448] exec() ignores scope.

2021-03-09 Thread Keepun
New submission from Keepun : exec() ignores scope. Code: -- class ExecTest: def public(self): h=None exec("h='It is public'") print(h) self._private() def _private(self): h=None exec("h='It is private'", globals(),

[issue7856] cannot decode from or encode to big5 \xf9\xd8

2021-03-09 Thread Max Bolingbroke
Max Bolingbroke added the comment: As of Python 3.7.9 this also affects \xf9\xd6 which should be \u7881 in Unicode. This character is the second character of 宏碁 which is the name of the Taiwanese electronics manufacturer Acer. You can work around the issue using big5hkscs just like with the

[issue43397] Incorrect conversion path case with german character

2021-03-09 Thread Eryk Sun
Eryk Sun added the comment: ntpath.normcase() needs a platform-dependent implementation that calls LCMapStringEx() in Windows, in order to properly agree with case-insensitive Windows filesystems. See bpo-42658. -- nosy: +eryksun resolution: -> duplicate stage: -> resolved status:

[issue42658] os.path.normcase() is inconsistent with Windows file system

2021-03-09 Thread Eryk Sun
Change by Eryk Sun : -- components: +Library (Lib), Unicode nosy: +ezio.melotti, vstinner versions: +Python 3.10, Python 3.8 ___ Python tracker ___

[issue43438] [doc] sys.addaudithook() documentation should be more explicit on its limitations

2021-03-09 Thread JIanqiu Tao
Change by JIanqiu Tao : -- nosy: +zkonge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43439] [security] Add audit events on GC functions giving access to all Python objects

2021-03-09 Thread JIanqiu Tao
Change by JIanqiu Tao : -- nosy: +zkonge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43229] freeze searches libpython3.9.so in /usr/lib instead /usr/lib/x86_64-linux-gnu

2021-03-09 Thread Christian Bachmaier
Christian Bachmaier added the comment: As for some time now, first I have to manually fix https://bugs.python.org/issue40350 first, i.e., use the recommended workaround not None check for spec.loader in /usr/lib/python3.9/modulefinder.py. Setting LIBDIR to /usr/lib/x86_64-linux-gnu in

[issue43444] [sqlite3] Move MODULE_NAME def from setup.py to module.h

2021-03-09 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch pull_requests: +23569 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24801 ___ Python tracker

[issue43375] memory leak in threading ?

2021-03-09 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks; I missed that one. I'll update the state of this one to mark it as a duplicate of #37788. -- ___ Python tracker ___

[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2021-03-09 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43375] memory leak in threading ?

2021-03-09 Thread Mark Dickinson
Change by Mark Dickinson : -- resolution: -> duplicate superseder: -> fix for bpo-36402 (threading._shutdown() race condition) causes reference leak ___ Python tracker ___

[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2021-03-09 Thread Matthias Klose
Matthias Klose added the comment: The Debian/Ubuntu packages have a local patch for distutils/setuptools introducing an --install-layout option. Maybe have the same for pip? The intention with renaming/moving site-packages to /usr/lib/python3/dist-packages is to avoid users damaging their

[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2021-03-09 Thread Matthias Klose
Matthias Klose added the comment: see also https://github.com/pypa/pip/issues/9617 -- nosy: +doko ___ Python tracker ___ ___

[issue43229] freeze searches libpython3.9.so in /usr/lib instead /usr/lib/x86_64-linux-gnu

2021-03-09 Thread Matthias Klose
Matthias Klose added the comment: Please could you edit /usr/lib/python3.9/_sysconfigdata__x86_64-linux-gnu.py setting LIBDIR to /usr/lib/x86_64-linux-gnu and see if that fixes the freeze issue? that could also be fixed by configuring with --libdir=/usr/lib/x86_64-linux-gnu but that also

[issue43075] ReDoS in urllib.request

2021-03-09 Thread STINNER Victor
STINNER Victor added the comment: I see that you attached a redos_python.py benchmark (which looks like a benchmark that I wrote recently ;-)) but you didn't give results. Can you please show that your fix is effective to avoid catastrophic performances? Is this issue related to the

[issue43375] memory leak in threading ?

2021-03-09 Thread Martin Panter
Martin Panter added the comment: Sounds the same as Issue 37788, which is still open. -- nosy: +martin.panter ___ Python tracker ___

[issue43311] bpo-43311: PyInterpreterState_New use thread-specific data tstate before key create .

2021-03-09 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3329] API for setting the memory allocator used by Python

2021-03-09 Thread miss-islington
miss-islington added the comment: New changeset ea46c7bc503d1103d60c0ec7023bb52c5defa11d by Miss Islington (bot) in branch '3.9': bpo-3329: Fix typo in PyObjectArenaAllocator doc (GH-24795) https://github.com/python/cpython/commit/ea46c7bc503d1103d60c0ec7023bb52c5defa11d --

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

2021-03-09 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-43447: "Generate vectorcall code to parse arguments using Argument Clinic". -- ___ Python tracker ___

[issue43447] Generate vectorcall code to parse arguments using Argument Clinic

2021-03-09 Thread STINNER Victor
New submission from STINNER Victor : To optimize the creation of objects, a lot of "tp_new" methods are defined twice: once in the legacy way (tp_new slot), once with the new VECTORCALL calling convention (tp_vectorcall slot). My concern is that the VECTORCALL implementation copy/paste most

[issue43446] Wrong character in footnote

2021-03-09 Thread Sergio Livi
New submission from Sergio Livi : Hello, There seems to be a display error in the sqlite documentation: https://docs.python.org/3.9/library/sqlite3.html#f1 The footnote says "To get loadable extension support, you must pass –enable-loadable-sqlite-extensions to configure." When actually the

[issue3329] API for setting the memory allocator used by Python

2021-03-09 Thread miss-islington
miss-islington added the comment: New changeset 5ca02c4799c07dba5192f87f9f2378dc24097166 by Miss Islington (bot) in branch '3.8': bpo-3329: Fix typo in PyObjectArenaAllocator doc (GH-24795) https://github.com/python/cpython/commit/5ca02c4799c07dba5192f87f9f2378dc24097166 --

[issue3329] API for setting the memory allocator used by Python

2021-03-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +23568 pull_request: https://github.com/python/cpython/pull/24800 ___ Python tracker ___

[issue3329] API for setting the memory allocator used by Python

2021-03-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 17.0 -> 18.0 pull_requests: +23567 pull_request: https://github.com/python/cpython/pull/24799 ___ Python tracker

[issue3329] API for setting the memory allocator used by Python

2021-03-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0d6bd1ca7c683137d52041194f3a2b02219f225a by Victor Stinner in branch 'master': bpo-3329: Fix typo in PyObjectArenaAllocator doc (GH-24795) https://github.com/python/cpython/commit/0d6bd1ca7c683137d52041194f3a2b02219f225a --

[issue43397] Incorrect conversion path case with german character

2021-03-09 Thread Сергей М
Сергей М added the comment: I've found the useful function https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-charlowerw -- ___ Python tracker ___

[issue43198] Operations on sets more than hundred times less efficient with python3.9 than with previous versions

2021-03-09 Thread Eric Martin
Eric Martin added the comment: Thank you for letting us know, I am actually not surprised the issue would bugger you and you would change your mind... Thinking further about it and experimenting further, I thought it might not be such an edge case and there could be a significant cost in

[issue43440] Enable rtree support in SQLite

2021-03-09 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > does compile options set in setup.py propagate to the Windows build, or do we > need to set it both places? Er, forget it. setup.py is of course only used to build the sqlite3 module, not sqlite3. --

[issue43372] ctypes: test_frozentable fails when make regen-frozen

2021-03-09 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-43445 "Add frozen modules to sys.stdlib_module_names". -- nosy: +vstinner ___ Python tracker ___

[issue13559] Use sendfile where possible in httplib

2021-03-09 Thread Christian Heimes
Christian Heimes added the comment: sendfile() only works for plain HTTP. For technical reasons it does not work for HTTPS (*). These days majority of services use HTTPS. Therefore the usefulness of sendfile() patch is minimal. (*) It is possible to use sendfile() for TLS connections, but

[issue43445] Add frozen modules to sys.stdlib_module_names

2021-03-09 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +23566 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24798 ___ Python tracker ___

[issue43445] Add frozen modules to sys.stdlib_module_names

2021-03-09 Thread STINNER Victor
New submission from STINNER Victor : The sys.stdlib_module_names documentation says: "All module kinds are listed: pure Python, built-in, frozen and extension modules. Test modules are excluded." https://docs.python.org/dev/library/sys.html#sys.stdlib_module_names But I just noticed that

[issue43444] [sqlite3] Move MODULE_NAME def from setup.py to module.h

2021-03-09 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : Berker, can we please move the MODULE_NAME define from setup.py to Modules/_sqlite/module.h? I'm tired of all the undeclared identifier warnings. No other module defines their MODULE_NAME in setup.py. -- components: Library (Lib) messages:

[issue43440] Enable rtree support in SQLite

2021-03-09 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch pull_requests: +23565 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24797 ___ Python tracker

[issue43440] Enable rtree support in SQLite

2021-03-09 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: We should also consider adding support for R*Tree query callbacks using sqlite3_rtree_query_callback() for SQLite >= 3.8.5, and sqlite3_rtree_geometry_callback() for older versions. -- ___ Python tracker

[issue43443] Should shelve support dict union?

2021-03-09 Thread Dominik Vilsmeier
Dominik Vilsmeier added the comment: Right, that seems like a good idea. But `__ior__` could be implemented nevertheless? -- ___ Python tracker ___

[issue43440] Enable rtree support in SQLite

2021-03-09 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > does compile options set in setup.py propagate to the Windows build, or do we > need to set it both places? Seems like it doesn't; correct me if I'm wrong. PR coming up. -- ___ Python tracker

[issue43441] mutilcorevm: global variable next_version_tag cause method cache bug

2021-03-09 Thread junyixie
Change by junyixie : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43440] Enable rtree support in SQLite

2021-03-09 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Actually, the macOS build already builds with R*Tree support enabled, but it is missing from PCbuild/sqlite3.vcxproj. I'm not very familiar with the Windows build; does compile options set in setup.py propagate to the Windows build, or do we need to

[issue40720] accessing mmap of file that is overwritten causes bus error

2021-03-09 Thread Ronald Oussoren
Ronald Oussoren added the comment: What happens here is that the file is truncated, which (more or less) truncates the memory mapping. Accessing a memory mapping beyond the length of the file results in a SIGBUS signal. I'm not sure if there is much Python can do about this other than

[issue43443] Should shelve support dict union?

2021-03-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The comment is outdated. Shelf objects also do not support methods copy and fromkey. Creating a new Shelve object without specifying a new underlying database object does not make much sense. Maybe say that they implement the MutableMapping interface?

  1   2   >