[issue46888] SharedMemory.close() destroys memory

2022-03-01 Thread Eryk Sun
Eryk Sun added the comment: > The persistent mode sounds just like Python shared memory also works > on Linux (where I can have these /dev/shm/* files even after the > Python process ends) but I think on Windows, Python is not using > the persistent mode and thus the shared memory goes away,

[issue46896] add support for watching writes to selected dictionaries

2022-03-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: At first quick glance, this makes sense and the API looks reasonable. Question: what happens on interpreter shutdown? Shutdown obviously finalized and clears out most all dicts. I guess the C callback simply gets called for each of these? That makes

[issue43853] [sqlite3] Improve sqlite3_value_text() error handling

2022-03-01 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46195] Annotated and Optional get_type_hints buggy interaction

2022-03-01 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: This is now fixed in 3.11, but we'll leave 3.10 and 3.9 alone. Thanks for your bug report! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue46195] Annotated and Optional get_type_hints buggy interaction

2022-03-01 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset 20a1c8ee4bcb1c421b7cca1f3f5d6ad7ce30a9c9 by Nikita Sobolev in branch 'main': bpo-46195: Do not add `Optional` in `get_type_hints` (GH-30304) https://github.com/python/cpython/commit/20a1c8ee4bcb1c421b7cca1f3f5d6ad7ce30a9c9 -- nosy:

[issue46848] Use optimized string search function in mmap.find()

2022-03-01 Thread Dennis Sweeney
Dennis Sweeney added the comment: Thanks for the report! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> performance ___ Python tracker

[issue46848] Use optimized string search function in mmap.find()

2022-03-01 Thread Dennis Sweeney
Dennis Sweeney added the comment: New changeset 6ddb09f35b922a3bbb59e408a3ca7636a6938468 by Dennis Sweeney in branch 'main': bpo-46848: Use stringlib/fastsearch in mmap (GH-31625) https://github.com/python/cpython/commit/6ddb09f35b922a3bbb59e408a3ca7636a6938468 --

[issue43853] [sqlite3] Improve sqlite3_value_text() error handling

2022-03-01 Thread miss-islington
miss-islington added the comment: New changeset 3ea2a8f425d26e81d914c54d477e9d56eb27ac98 by Erlend Egeberg Aasland in branch '3.9': [3.9] bpo-43853: Expand test suite for SQLite UDF's (GH-27642) (GH-31030) (GH-31586)

[issue46888] SharedMemory.close() destroys memory

2022-03-01 Thread Ronny Rentner
Ronny Rentner added the comment: Thanks for your quick response. My bigger scope is real time audio and video processing where I use multiple processes that need to be synchronized. I use shared memory for that. As a small spin off, I've hacked together a dict that is using shared memory as

[issue6143] IDLE - clear and restart the shell window

2022-03-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://stackoverflow.com/questions/71290382/how-do-i-adjust-python-idle-shell-settings-so-that-the-next-line-of-code-i-type is from someone who, for whatever reason, likes having blank space in the shell below the input prompt. It is not clear whether

[issue46891] Crash in ModuleType subclass with __slots__

2022-03-01 Thread Dennis Sweeney
Change by Dennis Sweeney : -- nosy: +Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46891] Crash in ModuleType subclass with __slots__

2022-03-01 Thread Dennis Sweeney
Dennis Sweeney added the comment: Bisected to here: c3f52b4d707a78eb342372a2be00f3eb846a05b9 is the first bad commit commit c3f52b4d707a78eb342372a2be00f3eb846a05b9 Author: Mark Shannon Date: Wed Jun 23 10:00:43 2021 +0100 bpo-44486: Make sure that modules always have a dictionary.

[issue46841] Inline bytecode caches

2022-03-01 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +29761 pull_request: https://github.com/python/cpython/pull/31640 ___ Python tracker ___

[issue46863] Python 3.10 OpenSSL Configuration Issues

2022-03-01 Thread Adam
Adam added the comment: Many thanks Christian, see the attached for the output of the commands on Python 3.9.10 and 3.10.2, along with a diff removing version numbers and memory addresses. I've run the commands on the Ubuntu distribution, we can also run the same for the Centos VM, if

[issue46896] add support for watching writes to selected dictionaries

2022-03-01 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46899] use of uninitialized value with msan from subprocess_fork_exec

2022-03-01 Thread Yilei Yang
New submission from Yilei Yang : The uid & gid variable from https://github.com/python/cpython/blob/9833bb91e4d5c2606421d9ec2085f5c2dfb6f72c/Modules/_posixsubprocess.c#L737-L738 can be passed to the `do_fork_exec` call below uninitialized and cause msan to report use-of-uninitialized-value

[issue15373] copy.copy() does not properly copy os.environment

2022-03-01 Thread Eryk Sun
Eryk Sun added the comment: In bpo-28824, I suggested preserving the case of environment variables in Windows by using a case-insensitive subclass of str in the encodekey() function. This is self-contained by the use of the encodekey() and decodekey() functions in the mapping methods such

[issue15373] copy.copy() does not properly copy os.environment

2022-03-01 Thread Max Katsev
Max Katsev added the comment: Note that deepcopy doesn't work either, even though it looks like it does at the first glance (which is arguably worse since it's harder to notice): Python 3.8.6 (default, Jun 4 2021, 05:16:01) >>> import copy, os, subprocess >>> env_copy =

[issue46845] dict: Use smaller entry for Unicode-key only dict.

2022-03-01 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46845] dict: Use smaller entry for Unicode-key only dict.

2022-03-01 Thread Inada Naoki
Inada Naoki added the comment: New changeset 9833bb91e4d5c2606421d9ec2085f5c2dfb6f72c by Inada Naoki in branch 'main': bpo-46845: Reduce dict size when all keys are Unicode (GH-31564) https://github.com/python/cpython/commit/9833bb91e4d5c2606421d9ec2085f5c2dfb6f72c --

[issue45373] ./configure --enable-optimizations should enable LTO

2022-03-01 Thread Inada Naoki
Inada Naoki added the comment: Can we use --lto=thin when availabe? And can we not use --lto when building profiling python? -- nosy: +methane ___ Python tracker ___

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: > Draft PR for Cython: https://github.com/cython/cython/pull/4671 Notes on how Cython access PyFrameObject fields: https://bugs.python.org/issue40421#msg414314 -- ___ Python tracker

[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: I searched for "\<_f" regex in Cython (0.29.x) branch. I found the following code getting or setting PyFrameObject fields. == Set f_back == __Pyx_Coroutine_SendEx() at Utility/Coroutine.c:721: f->f_back = PyThreadState_GetFrame(tstate);

[issue45373] ./configure --enable-optimizations should enable LTO

2022-03-01 Thread Ned Deily
Ned Deily added the comment: Sorry, this slipped off my radar and I haven't gone back and checked older versions of macOS. But it certainly is true that at least with the current versions of the Apple Developer Tools (either the Command Line Tools or Xcode) for macOS 11 (Big Sur) and macOS

[issue46876] Walrus operator not in help

2022-03-01 Thread Alex Waygood
Change by Alex Waygood : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46876] Walrus operator not in help

2022-03-01 Thread Alex Waygood
Change by Alex Waygood : -- status: pending -> open superseder: -> Assignment expression symbol (walrus) not in built-in help() ___ Python tracker ___

[issue45373] ./configure --enable-optimizations should enable LTO

2022-03-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: FWIW I agree that we should try adding LTO to --enable-optimizations now. -- nosy: +gregory.p.smith ___ Python tracker ___

[issue46876] Walrus operator not in help

2022-03-01 Thread Alex Waygood
Alex Waygood added the comment: Thanks for the report! I think this is a duplicate of Issue37082. -- nosy: +AlexWaygood resolution: -> duplicate stage: needs patch -> resolved status: open -> pending ___ Python tracker

[issue46896] add support for watching writes to selected dictionaries

2022-03-01 Thread Carl Meyer
Change by Carl Meyer : -- title: add support for watching writes to selecting dictionaries -> add support for watching writes to selected dictionaries ___ Python tracker ___

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: Draft PR for gevent: https://github.com/gevent/gevent/pull/1872 -- ___ Python tracker ___ ___

[issue46895] Allow extensions to set a callback to be invoked when a type is modified

2022-03-01 Thread Matt Page
Change by Matt Page : -- versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46898] Add API to allow extensions to set callback function on creation and destruction of PyCodeObject

2022-03-01 Thread Matt Page
New submission from Matt Page : CPython extensions providing optimized execution of Python bytecode (e.g. the Cinder JIT) may need to hook into the lifecycle of code objects to determine what to optimize or to free resources allocated for code objects that no longer exist. We propose adding

[issue46897] Add API to allow extensions to set callback function on creation, modification, and destruction of PyFunctionObject

2022-03-01 Thread Matt Page
New submission from Matt Page : CPython extensions providing optimized execution of Python bytecode (e.g. the Cinder JIT) may need to hook into the lifecycle of function objects to determine what to optimize, invalidate previously-optimized functions, or free resources allocated for

[issue46896] add support for watching writes to selecting dictionaries

2022-03-01 Thread Carl Meyer
New submission from Carl Meyer : CPython extensions providing optimized execution of Python bytecode (e.g. the Cinder JIT), or even CPython itself (e.g. the faster-cpython project) may wish to inline-cache access to frequently-read and rarely-changed namespaces, e.g. module globals. Rather

[issue46894] make install DESTDIR= uses /lib/python3.10/lib-dynload out of DESTDIR

2022-03-01 Thread Дилян Палаузов
Дилян Палаузов added the comment: Once I create /lib/python3.10/lib-dynload/, the next error is: changing mode of /lib/python3.10/lib-dynload/__pycache__ to 755 running install_scripts copying build/scripts-3.10/pydoc3.10 -> /bin error: could not delete '/bin/pydoc3.10': Permission denied

[issue46895] Allow extensions to set a callback to be invoked when a type is modified

2022-03-01 Thread Matt Page
Change by Matt Page : -- title: Type-Modified Callbacks -> Allow extensions to set a callback to be invoked when a type is modified ___ Python tracker ___

[issue46891] Crash in ModuleType subclass with __slots__

2022-03-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: The debug build seems to indicate that slot memory is not initiated properly, a stack trace (note the argument to visit_validate at frame #7): * frame #0: 0x00019b60d9b8 libsystem_kernel.dylib`__pthread_kill + 8 frame #1: 0x00019b640eb0

[issue46895] Type-Modified Callbacks

2022-03-01 Thread Matt Page
New submission from Matt Page : CPython extensions providing optimized execution of Python bytecode (e.g. the Cinder JIT), or even CPython itself (e.g. the faster-cpython project) may wish to cache access to lookups in the class hierarchy (e.g. when resolving the target of a method call).

[issue46894] make install DESTDIR= uses /lib/python3.10/lib-dynload out of DESTDIR

2022-03-01 Thread Дилян Палаузов
New submission from Дилян Палаузов : With most recent 3.10 (v3.10.2-169-g98e2ee60) I call ./configure --prefix=/ && make && make DESTDIR=/home/d/A install It fails with: running build running build_ext INFO: Can't locate Tcl/Tk libs and/or headers Python build finished successfully! The

[issue46893] Allow extensions to set the vectorcall field on instances of PyFunctionObject

2022-03-01 Thread Itamar Ostricher
New submission from Itamar Ostricher : CPython extensions providing optimized execution of Python bytecode (like [Cinder JIT](https://docs.google.com/document/d/1l8I-FDE1xrIShm9eSNJqsGmY_VanMDX5-aK_gujhYBI/edit#heading=h.ujldakarfxhh) and [Pyjion](https://github.com/tonybaloney/Pyjion)) can

[issue46892] Async Call-Stack Reconstruction

2022-03-01 Thread Matt Page
New submission from Matt Page : Profiling tools that use the call-stack (i.e. all of them) paint an incomplete picture of what’s really going on in async-heavy codebases. They can only show the stack of the currently executing task; they miss the chain of awaitables that are transitively

[issue46891] Crash in ModuleType subclass with __slots__

2022-03-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: The crash itself happens during garbage collection: % python3.11 -Xdev t.py (master)pyobjc-8 Fatal Python error: Segmentation

[issue46566] Support -3.11-arm64 in py.exe launcher

2022-03-01 Thread Steve Dower
Steve Dower added the comment: I'm working on this now. -- assignee: -> steve.dower ___ Python tracker ___ ___ Python-bugs-list

[issue6634] [doc] sys.exit() called from threads other than the main one: undocumented behaviour

2022-03-01 Thread Vidhya
Vidhya added the comment: Thanks for your comments :). The PR for the same is: https://github.com/python/cpython/pull/31639 -- message_count: 21.0 -> 22.0 pull_requests: +29760 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/31639

[issue46870] Improper Input Validation in urlparse

2022-03-01 Thread Ned Deily
Change by Ned Deily : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46876] Walrus operator not in help

2022-03-01 Thread Ned Deily
Change by Ned Deily : -- assignee: -> docs@python components: +Documentation nosy: +docs@python stage: -> needs patch versions: +Python 3.11 ___ Python tracker ___

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: Draft PR for Cython: https://github.com/cython/cython/pull/4671 -- ___ Python tracker ___ ___

[issue46891] Crash in ModuleType subclass with __slots__

2022-03-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is with python 3.11 alpha 5 using the installer for macOS. -- ___ Python tracker ___ ___

[issue46712] Share global string identifiers in deepfreeze

2022-03-01 Thread Eric Snow
Eric Snow added the comment: New changeset 21099fc064c61d59c936a2f6a0db3e07cd5c8de5 by Eric Snow in branch 'main': bpo-46712: Let generate_global_objects.py Run on Earlier Python Versions (gh-31637) https://github.com/python/cpython/commit/21099fc064c61d59c936a2f6a0db3e07cd5c8de5

[issue46891] Crash in ModuleType subclass with __slots__

2022-03-01 Thread Ronald Oussoren
New submission from Ronald Oussoren : The following crashes the interpreter in Python 3.11, and works fine in older versions: # --- script.py import types class MyModule (types.ModuleType): __slots__ = ( "_MyModule__a", "_MyModule__b", ) def __init__(self,

[issue42982] Update suggested number of iterations for pbkdf2_hmac()

2022-03-01 Thread Ned Deily
Ned Deily added the comment: New changeset 7dbb2f8eaf07c105f4d2bb0fe61763463e68372d by Miss Islington (bot) in branch '3.10': bpo-42982: update pbkdf2 example & add another link (GH-30966) (#30968) https://github.com/python/cpython/commit/7dbb2f8eaf07c105f4d2bb0fe61763463e68372d --

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: Draft PR for greenlet: https://github.com/python-greenlet/greenlet/pull/294 I made these changes close to the Python 3.11 alpha 6 release to be able to test "#if PY_VERSION_HEX < 0x30B00A6" to have code compatible with Python 3.11 alpha 5 and older.

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-03-01 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46890] venv does not create "python" link in python 3.11

2022-03-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: The change to _base_executable is the real problem. Venv creates the correct directory structure if I add a sitecustomize.py to the python path that sets _base_executable to the correct value. # sitecustomize import sys sys._base_executable =

[issue46890] venv does not create "python" link in python 3.11

2022-03-01 Thread Ned Deily
Ned Deily added the comment: As Ronald notes, the issue isn't in venv, it's that the value of sys._base_executable has changed between 3.10 and 3.11 for macOS builds. $ /usr/local/bin/python3.10 Python 3.10.2 (v3.10.2:a58ebcc701, Jan 13 2022, 14:50:16) [Clang 13.0.0 (clang-1300.0.29.30)] on

[issue10515] csv sniffer does not recognize quotes at the end of line

2022-03-01 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> csv.Sniffer.sniff() regex error ___ Python tracker

[issue25415] [io doc] Reword "there is no public constructor"

2022-03-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: "IOBase" is a public name and IOBase has an __init__ method. It definitely has a public constructor. However, like other abstract base classes, it is not meant to be directly instantiated by users other than writers of other classes. Ditto for the 3

[issue46890] venv does not create "python" link in python 3.11

2022-03-01 Thread Steve Dower
Steve Dower added the comment: The _base_executable change might be, though it should still be preferring the environment variables here, but I don't think I touched anything that would affect which symlinks are created by venv. -- nosy: +vinay.sajip

[issue15002] urllib2 does not download 4 MB file completely using ftp

2022-03-01 Thread Irit Katriel
Irit Katriel added the comment: 2.7 backport is no longer relevant. -- nosy: +iritkatriel status: open -> closed ___ Python tracker ___

[issue20970] [doc] contradictory documentation for prog option of argparse

2022-03-01 Thread Irit Katriel
Irit Katriel added the comment: @lilbludot - is this your GitHub account? https://github.com/lilbludot (I am asking in order to credit you as coauthor on the GitHub version of your patch). -- nosy: +iritkatriel ___ Python tracker

[issue46890] venv does not create "python" link in python 3.11

2022-03-01 Thread Eric Snow
Eric Snow added the comment: This may be related to the getpath.py work Steve did. -- nosy: +eric.snow, steve.dower ___ Python tracker ___

[issue6634] [doc] sys.exit() called from threads other than the main one: undocumented behaviour

2022-03-01 Thread Irit Katriel
Irit Katriel added the comment: Vidhya, I think the sentence you are suggesting to add would overlap with one which is already there ("Since exit() ultimately “only” raises an exception, it will only exit the process when called from the main thread, and the exception is not intercepted.")

[issue46712] Share global string identifiers in deepfreeze

2022-03-01 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +29759 pull_request: https://github.com/python/cpython/pull/31637 ___ Python tracker ___

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: I plan to update Cython, greenlet and gevent for this change. -- ___ Python tracker ___ ___

[issue46890] venv does not create "python" link in python 3.11

2022-03-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: The root cause likely is the calculation of sys._base_executable. In 3.10 this is {sys.prefix}/bin/python3.10, while in 3.11 this is {sys.prefix}/Resources/Python.app/Contents/MacOS/Python. The venv library uses the incorrect value and therefore creates an

[issue46890] venv does not create "python" link in python 3.11

2022-03-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is be related to how the virtual environment is populated. In 3.10 the "python3.10" name in the environment is a symlink to sys.executable. In 3.10 "Python" (not the capital) is a symlink to the binary in Python.app and "python3.11" is a symlink to

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-03-01 Thread Brandt Bucher
Brandt Bucher added the comment: I'm also very uncomfortable with the lack of review on these PRs. The most recent one (https://github.com/python/cpython/pull/31583) was open for less than 30 minutes before merging, from 6:57 to 7:22 am in my local time zone. --

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-03-01 Thread Brandt Bucher
Brandt Bucher added the comment: Victor, can we please revert these changes? They broke Greenlet, a required dependency for three of our performance benchmarks: https://github.com/python-greenlet/greenlet/issues/288#issuecomment-1055632607 I've already spent considerable effort contributing

[issue46890] venv does not create "python" link in python 3.11

2022-03-01 Thread Zachary Ware
Change by Zachary Ware : -- title: vent does not create "python" link in python 3.11 -> venv does not create "python" link in python 3.11 ___ Python tracker ___

[issue46890] vent does not create "python" link in python 3.11

2022-03-01 Thread Ronald Oussoren
New submission from Ronald Oussoren : In python3.10 and earlier "python3 -m venv something" creates "something/bin/python" as a symlink to the interpreter itself. In python3.11 (a5) the same command no longer creates "something/bin/python", but only the ".../python3" symlink. With this

[issue46841] Inline bytecode caches

2022-03-01 Thread Mark Shannon
Mark Shannon added the comment: New changeset 3b0f1c5a710eff289dc44bec972dbaea353cc54f by Mark Shannon in branch 'main': bpo-46841: Use inline cache for `BINARY_SUBSCR`. (GH-31618) https://github.com/python/cpython/commit/3b0f1c5a710eff289dc44bec972dbaea353cc54f --

[issue28516] contextlib.ExitStack.__enter__ has trivial but undocumented behavior

2022-03-01 Thread Vidhya
Vidhya added the comment: @Jelle: Thanks. The PR is submitted at https://github.com/python/cpython/pull/31636 -- keywords: +patch message_count: 9.0 -> 10.0 pull_requests: +29758 pull_request: https://github.com/python/cpython/pull/31636 ___ Python

[issue46856] datetime.max conversion

2022-03-01 Thread Joris Geysens
Joris Geysens added the comment: I looked at this a bit more in detail. What happens it the following, starting in the datetime fromtimestamp fragment : converter = _time.gmtime if utc else _time.localtime y, m, d, hh, mm, ss, weekday, jday, dst = converter(t) That will call the system

[issue46541] Replace _Py_IDENTIFIER() with statically initialized objects.

2022-03-01 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset e91b0a7139d4a4cbd2351ccb5cd021a100cf42d2 by Kumar Aditya in branch 'main': bpo-46541: remove usage of _Py_IDENTIFIER from _ssl module (GH-31599) https://github.com/python/cpython/commit/e91b0a7139d4a4cbd2351ccb5cd021a100cf42d2 --

[issue17505] [doc] email.header.Header.__unicode__ does not decode header

2022-03-01 Thread Vidhya
Vidhya added the comment: The latest versions 3.9, 3.10 and 3.11 are updated in the issue. So I thought like it still applies. @irit: Any suggestions on what needs to be done for current revisions? -- ___ Python tracker

[issue46889] enable sqlite math functions on macos

2022-03-01 Thread lyinch
Change by lyinch : -- keywords: +patch pull_requests: +29757 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31635 ___ Python tracker ___

[issue46889] enable sqlite math functions on macos

2022-03-01 Thread lyinch
New submission from lyinch : Similar to these PRs: https://github.com/python/cpython/pull/24053/files and https://github.com/python/cpython/pull/25892/files which enable the built-in sqlite3 math functions for Windows, I want to have support for them on macos. As per the sqlite3

[issue46633] AddressSanitizer: Skip tests directly in Python, not with external config

2022-03-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29756 pull_request: https://github.com/python/cpython/pull/31634 ___ Python tracker ___

[issue46887] ./Programs/_freeze_module fails with MSAN: Uninitialized value was created by an allocation of 'stat.i'

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: > The Python code calls OBJ_txt2obj("1.3.6.1.5.5.7.3.1", 0) in C: the OpenSSL > function. I reported this issue to OpenSSL: https://github.com/openssl/openssl/issues/17784 -- ___ Python tracker

[issue46871] Lambda can't be pickled with "spawn" and only "fork"

2022-03-01 Thread Kyle Smith
Change by Kyle Smith : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46871] Lambda can't be pickled with "spawn" and only "fork"

2022-03-01 Thread Kyle Smith
Kyle Smith added the comment: I think that's fair, thanks for the conversation at least. I understand python mp a little bit more now... -- status: pending -> open ___ Python tracker

[issue46887] ./Programs/_freeze_module fails with MSAN: Uninitialized value was created by an allocation of 'stat.i'

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: > The Python code calls OBJ_txt2obj("1.3.6.1.5.5.7.3.1", 0) in C: the OpenSSL > function. This error is unrelated to Python, but comes from OpenSSL. -- ___ Python tracker

[issue46887] ./Programs/_freeze_module fails with MSAN: Uninitialized value was created by an allocation of 'stat.i'

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: > It looks like a bug in clang MSAN: > https://github.com/llvm/llvm-project/issues/54131 I wrote GH-31633 to work around the false alarm on stat() and fstat(). -- ___ Python tracker

[issue46887] ./Programs/_freeze_module fails with MSAN: Uninitialized value was created by an allocation of 'stat.i'

2022-03-01 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +29755 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31633 ___ Python tracker ___

[issue46633] AddressSanitizer: Skip tests directly in Python, not with external config

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9204bb72a2da5885facc747e63d2bd2d654606fe by Victor Stinner in branch 'main': bpo-46633: Skip tests on ASAN and/or MSAN builds (GH-31632) https://github.com/python/cpython/commit/9204bb72a2da5885facc747e63d2bd2d654606fe --

[issue46887] ./Programs/_freeze_module fails with MSAN: Uninitialized value was created by an allocation of 'stat.i'

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: Hum, later "import ssl" in setup.py also fails. Simplified code: --- import _ssl print(_ssl.txt2obj('1.3.6.1.5.5.7.3.1', name=False)) # server OID --- Error: --- $ ./python x.py Uninitialized bytes in MemcmpInterceptorCommon at offset 0 inside

[issue46541] Replace _Py_IDENTIFIER() with statically initialized objects.

2022-03-01 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 0cc63641859b2f60ea65bb7c0b6d1cfcec1e2f1a by Dong-hee Na in branch 'main': bpo-46541: Remove usage of _Py_IDENTIFIER from multibytecodec (GH-31475) https://github.com/python/cpython/commit/0cc63641859b2f60ea65bb7c0b6d1cfcec1e2f1a --

[issue46887] ./Programs/_freeze_module fails with MSAN: Uninitialized value was created by an allocation of 'stat.i'

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: It looks like a bug in clang MSAN: https://github.com/llvm/llvm-project/issues/54131 -- ___ Python tracker ___

[issue46311] Clean up PyLong_FromLong and PyLong_FromLongLong

2022-03-01 Thread Mark Shannon
Mark Shannon added the comment: New changeset c60e6b6ad7aaf9c72035ff9fb1575e2710aeb4b4 by Mark Dickinson in branch 'main': bpo-46311: Clean up PyLong_FromLong and PyLong_FromLongLong (GH-30496) https://github.com/python/cpython/commit/c60e6b6ad7aaf9c72035ff9fb1575e2710aeb4b4 --

[issue46633] AddressSanitizer: Skip tests directly in Python, not with external config

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: """ No longer skipped: * test_capi * test_ctypes * test_faulthandler * test_interpreters """ I built Python manually with: ./configure --with-pydebug CC=clang LD=clang --with-address-sanitizer These tests no longer with ASAN_OPTIONS used on our CI:

[issue46841] Inline bytecode caches

2022-03-01 Thread Mark Shannon
Mark Shannon added the comment: New changeset 7820a5897e7762df23bff1cbe749652130654a08 by Brandt Bucher in branch 'main': bpo-46841: Use inline caching for `COMPARE_OP` (GH-31622) https://github.com/python/cpython/commit/7820a5897e7762df23bff1cbe749652130654a08 --

[issue6778] False positives given through bisect module (binary search)

2022-03-01 Thread Mark Dickinson
Change by Mark Dickinson : -- components: +Extension Modules ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6778] False positives given through bisect module (binary search)

2022-03-01 Thread Mark Dickinson
Change by Mark Dickinson : -- components: -Distutils, Documentation, Extension Modules, Installation, Parser, email nosy: -barry, docs@python, dstufft, eric.araujo, lys.nikolaou, pablogsal type: security -> behavior ___ Python tracker

[issue46888] SharedMemory.close() destroys memory

2022-03-01 Thread Eryk Sun
Eryk Sun added the comment: > Yes, named memory mappings only exist on Windows until the last > reference is closed, so this is a difference due to the underlying OS. That's true for the Windows API, so it's true for all practical purposes. In the underlying NT API, creating a permanent

[issue46888] SharedMemory.close() destroys memory

2022-03-01 Thread Steve Dower
Steve Dower added the comment: Yes, named memory mappings only exist on Windows until the last reference is closed, so this is a difference due to the underlying OS. The implementation of unlink() recognises this (the entire body is under a _USE_POSIX check), but the docs do not reflect it.

[issue46888] SharedMemory.close() destroys memory

2022-03-01 Thread Ronny Rentner
New submission from Ronny Rentner : According to https://docs.python.org/3/library/multiprocessing.shared_memory.html#multiprocessing.shared_memory.SharedMemory.close if I call close() on a shared memory, it shall not be destroyed. Unfortunately this is only true for Linux but not for

[issue46871] Lambda can't be pickled with "spawn" and only "fork"

2022-03-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: Oops, replying by email reopens the ticket. Back to pending you go! -- status: open -> pending ___ Python tracker ___

[issue46886] ARM64 Windows Non-Debug 3.x: random build error: failure during conversion to COFF: file invalid or corrupt

2022-03-01 Thread Niyas Sait
Niyas Sait added the comment: I cannot reproduce this on local builds on the same machine and the failures are also intermittent on CI. I am going to upgrade OS to Windows 11 and install Visual studio 2022. Hope that would resolve the issue. I will update and keep an eye on the build to

[issue46871] Lambda can't be pickled with "spawn" and only "fork"

2022-03-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: > The "spawn" method requires pickling the data and callable passed to > the child proces, and that's not supported for lambda's. Ah, today I learned something. Kyle, looks like you were right about it being due to the lambdas. -- status: pending

[issue18534] [doc] State clearly that open() 'file' param is "name" attr of the result

2022-03-01 Thread Stanley
Stanley added the comment: Would it be fine to modify FileIO.name like this: "... given in the constructor. Depending on the type of *name* that was passed into the constructor, this may not necessarily e a string." -- nosy: +slateny ___ Python

  1   2   >