[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-12-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I may need to revert this commit to unblock the release if no one can take a look today -- ___ Python tracker ___ ___

[issue45582] Rewrite getpath.c in Python

2021-12-07 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 06c4ae8b1380eec1c5f3cd8faa21102d1c940bab by Christian Heimes in branch 'main': bpo-45582: Fix framework path and bootstrap build (GH-29954) https://github.com/python/cpython/commit/06c4ae8b1380eec1c5f3cd8faa21102d1c940bab -- nosy: +lukasz

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-12-07 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28194 pull_request: https://github.com/python/cpython/pull/29969 ___ Python tracker ___

[issue46003] os.replace is not cross-platform: at least improve documentation

2021-12-07 Thread nobody
nobody added the comment: Thank you for your replies. I have been reading more and conclude that I/O programming on Windows and Linux are two different things. Python is not cross-platform in the sense that a Python program always works on different operating systems but that you can make it

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-12-07 Thread Christian Heimes
Christian Heimes added the comment: New changeset 91b59a3fcdcb93d74bb89cce536f11d2990f655d by Christian Heimes in branch 'main': bpo-45847: Revert Port _ctypes partly to PY_STDLIB_MOD (GH-29747) (GH-29969) https://github.com/python/cpython/commit/91b59a3fcdcb93d74bb89cce536f11d2990f655d ---

[issue36850] shutil.copy2 fails with even with source network filesystem not supporting extended attributes

2021-12-07 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior ___ Python tracker ___ _

[issue46008] Prepare runtime/interp/thread state and init for upcoming changes.

2021-12-07 Thread Eric Snow
New submission from Eric Snow : There are a few things in `_PyRuntimeState`, `PyInterpreterState`, `PyThreadState`, and there initialization (Python/pystate.c & Python/pylifecycle.c) that would benefit from some minor cleanup. Normally I wouldn't bother (due to the cost of churn), but such c

[issue46008] Prepare runtime/interp/thread state and init for upcoming changes.

2021-12-07 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +28195 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29970 ___ Python tracker ___

[issue46008] Prepare runtime/interp/thread state and init for upcoming changes.

2021-12-07 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +28196 pull_request: https://github.com/python/cpython/pull/29971 ___ Python tracker ___ ___

[issue46008] Prepare runtime/interp/thread state and init for upcoming changes.

2021-12-07 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +28197 pull_request: https://github.com/python/cpython/pull/29972 ___ Python tracker ___ ___

[issue33411] All console message are in the error output in bash interpretor

2021-12-07 Thread Irit Katriel
Irit Katriel added the comment: I think the question here is why this went to stderr rather than stdout: Python 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. -- nosy: +iritkatriel ___

[issue20751] Harmonize descriptor protocol documentation: direct call, super binding with Descriptor Howto docs

2021-12-07 Thread Jan Kaliszewski
Jan Kaliszewski added the comment: So the current (after the aforementioned commit) form of the description is: A dotted lookup such as ``super(A, a).x`` searches ``obj.__class__.__mro__`` for a base class ``B`` following ``A`` and then returns ``B.__dict__['x'].__get__(a, A)``. If n

[issue46008] Prepare runtime/interp/thread state and init for upcoming changes.

2021-12-07 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +28198 pull_request: https://github.com/python/cpython/pull/29973 ___ Python tracker ___ ___

[issue20751] Harmonize descriptor protocol documentation: direct call, super binding with Descriptor Howto docs

2021-12-07 Thread Jan Kaliszewski
Jan Kaliszewski added the comment: Sorry, a few mistakes distorted my proposal. It should be: A dotted lookup such as ``super(A, obj).x`` (where ``obj`` is an instance of ``A`` or of a subclass of ``A``) searches ``A.__mro__`` for a base class whose `__dict__` contains name ``"x"``, a

[issue46008] Prepare runtime/interp/thread state and init for upcoming changes.

2021-12-07 Thread Eric Snow
Eric Snow added the comment: New changeset 8262c96bcc1841188866c1b022d9087e89639d98 by Eric Snow in branch 'main': bpo-46008: Return void from _PyEval_InitState(). (gh-29970) https://github.com/python/cpython/commit/8262c96bcc1841188866c1b022d9087e89639d98 -- __

[issue17975] altinstall should not install libpython3.so (conflict between multiple $VERSIONs)

2021-12-07 Thread Irit Katriel
Irit Katriel added the comment: The discussion here seems to have been abandoned 7 years ago after Martin asked Patrick to clarify the issue. I will close this soon if nobody will explain what is left to be done. -- nosy: +iritkatriel resolution: -> wont fix status: open -> pending

[issue46008] Prepare runtime/interp/thread state and init for upcoming changes.

2021-12-07 Thread Eric Snow
Eric Snow added the comment: New changeset 313f92a57bc3887026ec16adb536bb2b7580ce47 by Eric Snow in branch 'main': bpo-46008: Move thread-related interpreter state into a sub-struct. (gh-29971) https://github.com/python/cpython/commit/313f92a57bc3887026ec16adb536bb2b7580ce47 -- ___

[issue20751] Harmonize descriptor protocol documentation: direct call, super binding with Descriptor Howto docs

2021-12-07 Thread Jan Kaliszewski
Jan Kaliszewski added the comment: I am very sorry, I just noticed another mistake. It should be: A dotted lookup such as ``super(A, obj).x`` (where ``obj`` is an instance of ``A`` or of a subclass of ``A``) searches ``type(obj).__mro__`` for such a base class ``B`` that follows `

[issue43098] tarfile list() method does not show file type

2021-12-07 Thread Val Shkolnikov
Val Shkolnikov added the comment: > contributions are only now accepted in form of github PRs Done -- ___ Python tracker ___ ___ Py

[issue46008] Prepare runtime/interp/thread state and init for upcoming changes.

2021-12-07 Thread miss-islington
miss-islington added the comment: New changeset 9b577cd01f66512b503115c0fdbf0734edfd5f8a by Eric Snow in branch 'main': bpo-46008: Use PyMem_RawCalloc() to allocate PyThreadState. (GH-29972) https://github.com/python/cpython/commit/9b577cd01f66512b503115c0fdbf0734edfd5f8a -- nosy: +

[issue45582] Rewrite getpath.c in Python

2021-12-07 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue45995] string formatting: normalize negative zero

2021-12-07 Thread Eric V. Smith
Eric V. Smith added the comment: PyOS_double_to_string is part of the stable ABI. I don't recall if we're allowed to add new bitfield flags to a stable ABI function. We'd use a new Py_DTSF_NORMALIZE_NEGATIVE_0 flag for this feature. I suspect we can't add a flag, due to comparability reasons

[issue40222] "Zero cost" exception handling

2021-12-07 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +iritkatriel, iritkatriel nosy_count: 16.0 -> 17.0 pull_requests: +28199, 28200 pull_request: https://github.com/python/cpython/pull/29975 ___ Python tracker

[issue40222] "Zero cost" exception handling

2021-12-07 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +iritkatriel nosy_count: 16.0 -> 17.0 pull_requests: +28199 pull_request: https://github.com/python/cpython/pull/29975 ___ Python tracker ___

[issue46003] os.replace is not cross-platform: at least improve documentation

2021-12-07 Thread Eric V. Smith
Eric V. Smith added the comment: As they say, there's no such thing as "portable software", only "software that has been ported". Especially in an area like file I/O: once you move beyond simple "one process opens, writes, and closes; and another process then opens, reads, and closes", there

[issue46009] sending non-None values makes generator raise StopIteration on next access

2021-12-07 Thread Stanislav Syekirin
New submission from Stanislav Syekirin : Tested with Python 3.10.1 on Linux and Python 3.10.0 on Windows. The following code prints None in 3.9 and raises StopIteration without any additional information in 3.10: def f(): yield x = f() try: x.send(0)

[issue31184] Fix data descriptor detection in inspect.getattr_static

2021-12-07 Thread David Halter
David Halter added the comment: This is not a duplicate. It is related to https://bugs.python.org/issue26103, because __get__ is not required anymore for an object to be a data descriptor. The current code on master (of inspect.getattr_static) still thinks a descriptor has both __get__ and _

[issue1653457] Python misbehaves when installed in / (patch attached)

2021-12-07 Thread Irit Katriel
Irit Katriel added the comment: getpath.c has been rewritten (see Issue45582). reduce is no longer there. -- nosy: +iritkatriel resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33411] All console message are in the error output in bash interpretor

2021-12-07 Thread Eryk Sun
Eryk Sun added the comment: PyOS_Readline() calls PyOS_StdioReadline() if sys_stdin or sys_stdout isn't a tty file. This function always writes the prompt to stderr, as follows: if (prompt) { fprintf(stderr, "%s", prompt); } fflush(stderr); Maybe this matched the behavior

[issue1653457] Python misbehaves when installed in / (patch attached)

2021-12-07 Thread Chris Webb
Chris Webb added the comment: Irit Katriel added the comment: > getpath.c has been rewritten (see Issue45582). reduce is no longer there. Gosh, this is one I originally reported back in the late 1990s and then again mid-2000s! I've carried a patch in my distribution to make python work

[issue46010] Cookie cutter templates to allow variable fields and data transfer proposal before system merge

2021-12-07 Thread Francisco Orozco
New submission from Francisco Orozco : Not featuring templates to allow variable fields and data record creation when converting projects to new platform projects for purpose to confirm, verify record creation, might be helpful, in addition of only viewing/editing project development and stru

[issue29944] Argumentless super() fails in classes constructed with type()

2021-12-07 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-12-07 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Quoting msg407949: > [...] We should do something like > > ZLIB_CFLAGS=${ZLIB_CFLAGS:-""} > ZLIB_LIBS=${ZLIB_LIBS:-"-lz"} > > for all env vars. I think we should use ${VAR-default} instead of ${VAR:-default}; we only want to override if the variable is

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-12-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: release blocker -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue45963] Embed interpreter frame in generator.

2021-12-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: release blocker -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue45963] Embed interpreter frame in generator.

2021-12-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45813] Importing asyncio after deleting a coroutine object and before cleaning it up leads to crashing on Python3.11

2021-12-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-12-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43137] webbrowser to support "gio open "

2021-12-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Christian, this is going into 3.11.0a3 unfortunately. I will make this a blocker for future alphas, so please, take any action that you think is required. -- ___ Python tracker

[issue43683] Handle generator (and coroutine) state in the bytecode.

2021-12-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Mark, is something left in this issue? -- nosy: +pablogsal ___ Python tracker ___ ___ Pyth

[issue45415] Assert oparg < INSTR_OFFSET()

2021-12-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Ping. This issue is marked as release blocker, is something left here? -- ___ Python tracker ___ _

[issue31184] Fix data descriptor detection in inspect.getattr_static

2021-12-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Can you give an example of where getattr_static() is not doing what you expect? -- assignee: -> rhettinger components: +Library (Lib) nosy: +rhettinger type: -> behavior versions: -Python 3.10, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Pyth

[issue45415] Assert oparg < INSTR_OFFSET()

2021-12-07 Thread Steve Dower
Steve Dower added the comment: Yes, it's been fixed. The debate about whether to test in CI with C assertions enabled or not can continue somewhere else. -- resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python tra

[issue43683] Handle generator (and coroutine) state in the bytecode.

2021-12-07 Thread Dennis Sweeney
Dennis Sweeney added the comment: bpo-46009 about the same behavior change -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue46009] sending non-None values makes generator raise StopIteration on next access

2021-12-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue46009] sending non-None values makes generator raise StopIteration on next access

2021-12-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-lis

[issue43683] Handle generator (and coroutine) state in the bytecode.

2021-12-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Unfortunately, this has not been fixed into 3.10.1 and 3.11.0a3 as this hasn't version information and therefore has missed our automatic checks for blockers. I have marked https://bugs.python.org/issue46009? as release blocker, as well as this issue

[issue34434] Removal of kwargs for built-in types not covered with "changed in Python" note in documentation

2021-12-07 Thread Louis Sautier
Change by Louis Sautier : -- nosy: +sbraz nosy_count: 7.0 -> 8.0 pull_requests: +28201 pull_request: https://github.com/python/cpython/pull/29976 ___ Python tracker ___ ___

[issue42114] Documentation of ctypes.CDLL does not correspond to code

2021-12-07 Thread Louis Sautier
Change by Louis Sautier : -- keywords: +patch nosy: +sbraz nosy_count: 1.0 -> 2.0 pull_requests: +28202 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29976 ___ Python tracker __

[issue46008] Prepare runtime/interp/thread state and init for upcoming changes.

2021-12-07 Thread Eric Snow
Eric Snow added the comment: New changeset 1f384e318481532323bb9076f4447bc02da07209 by Eric Snow in branch 'main': bpo-46008: Stop calling _PyThreadState_Init() in new_threadstate(). (gh-29973) https://github.com/python/cpython/commit/1f384e318481532323bb9076f4447bc02da07209 -- ___

[issue46008] Prepare runtime/interp/thread state and init for upcoming changes.

2021-12-07 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +28203 pull_request: https://github.com/python/cpython/pull/29977 ___ Python tracker ___ ___

[issue46008] Prepare runtime/interp/thread state and init for upcoming changes.

2021-12-07 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +28204 pull_request: https://github.com/python/cpython/pull/29978 ___ Python tracker ___ ___

[issue45582] Rewrite getpath.c in Python

2021-12-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +28205 pull_request: https://github.com/python/cpython/pull/29979 ___ Python tracker ___ _

[issue21762] update the import machinery to only use __spec__

2021-12-07 Thread Brett Cannon
Change by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue45995] string formatting: normalize negative zero

2021-12-07 Thread John Belmonte
John Belmonte added the comment: I'll share a draft PR soon (excluding Decimal), so far it's still looking straightforward. > Maybe old versions would correctly ignore the new bit being set. That's one of the benefits of using bit flags in an ABI: backward-compatible extensibility. (An imp

[issue46008] Prepare runtime/interp/thread state and init for upcoming changes.

2021-12-07 Thread Eric Snow
Eric Snow added the comment: New changeset 758b74e71eb22e1e83a9eb937d1c015e461745a1 by Eric Snow in branch 'main': bpo-46008: Add _PyInterpreterState_Main(). (gh-29978) https://github.com/python/cpython/commit/758b74e71eb22e1e83a9eb937d1c015e461745a1 --

[issue46008] Prepare runtime/interp/thread state and init for upcoming changes.

2021-12-07 Thread Eric Snow
Eric Snow added the comment: New changeset 32a67246b0d1e08cd50fc3bfa58052cfeb515b2e by Eric Snow in branch 'main': bpo-46008: Move Py*State init into distinct functions. (gh-29977) https://github.com/python/cpython/commit/32a67246b0d1e08cd50fc3bfa58052cfeb515b2e --

[issue46008] Prepare runtime/interp/thread state and init for upcoming changes.

2021-12-07 Thread Eric Snow
Eric Snow added the comment: At this point all the changes I was considering have been made, except for splitting type/object init into logical phases. That may or may not happen. Regardless, it can be done in a new issue. -- resolution: -> fixed stage: patch review -> resolved st

[issue45582] Rewrite getpath.c in Python

2021-12-07 Thread Steve Dower
Steve Dower added the comment: New changeset b0b30862796e97b3f0ee358bcc61d21f0cc98441 by Steve Dower in branch 'main': bpo-45582: Write empty pybuilddir.txt on Windows to allow relocatable build directories (GH-29979) https://github.com/python/cpython/commit/b0b30862796e97b3f0ee358bcc61d21f0

[issue20751] Harmonize descriptor protocol documentation: direct call, super binding with Descriptor Howto docs

2021-12-07 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +28206 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/29980 ___ Python tracker ___ ___

[issue20751] Harmonize descriptor protocol documentation: direct call, super binding with Descriptor Howto docs

2021-12-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 4b1cfc1f30327e76a2d845cc274be56b34b1 by Raymond Hettinger in branch 'main': bpo-20751: Match variable name to the example. (GH-29980) https://github.com/python/cpython/commit/4b1cfc1f30327e76a2d845cc274be56b34b1 --

[issue20751] Harmonize descriptor protocol documentation: direct call, super binding with Descriptor Howto docs

2021-12-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I guess here ``obj`` was supposed to be ``a``. Okay, I updated the variable name to match the rest of the example. > But is the description correct when it comes to what class is used where? It looks fine to me. It is harmonious with the other three en

[issue31184] Fix data descriptor detection in inspect.getattr_static

2021-12-07 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: rhettinger -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue46011] Python 3.10 email returns invalid Date: header unchanged.

2021-12-07 Thread Mark Sapiro
New submission from Mark Sapiro : Here is an interactive Python session ``` Python 3.10.1 (main, Dec 7 2021, 15:44:39) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from email import message_from_bytes, policy >>> msg_raw = b"""Return-Path: ...

[issue46002] py Launcher for Windows with MSYS2

2021-12-07 Thread Zernoxi
Zernoxi added the comment: Is there a way to not parse certain paths in the PATH environment variable for the shebang: "#!/usr/bin/env python". I get that it is trying to mimic Unix "env" function but is it not conflicting if there is a python install but it is not registered in registry? -

[issue46002] py Launcher for Windows with MSYS2

2021-12-07 Thread Eryk Sun
Eryk Sun added the comment: You can use "#!python", or "#!/usr/bin/python", or "#!/usr/local/bin/python". They're all equivalent, and they do not search PATH. Since no wanted version is specified, the launcher will look for a version to run in the following order: an active virtual environme

[issue46012] unittest AsyncConnection not described

2021-12-07 Thread David Shiko
New submission from David Shiko : AsyncConnection mentioned only one at this docs but not imported or presented somehow else. https://docs.python.org/3/library/unittest.html. -- components: Tests messages: 408000 nosy: dsb321mp priority: normal severity: normal status: open title: unit

<    1   2