[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2022-01-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6b491b9dc0b0fdfd1f07ea4e2151236186d8e7e6 by Victor Stinner in branch 'main': bpo-40170: Remove _Py_GetAllocatedBlocks() function (GH-30940) https://github.com/python/cpython/commit/6b491b9dc0b0fdfd1f07ea4e2151236186d8e7e6 --

[issue45476] [C API] PEP 674: Disallow using macros as l-value

2022-01-26 Thread STINNER Victor
STINNER Victor added the comment: > * guppy3-3.1.2: src/sets/bitset.c and src/sets/nodeset.c I created: https://github.com/zhuyifei1999/guppy3/pull/40 -- ___ Python tracker

[issue45296] IDLE: Better document close and exit.

2022-01-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +29124 pull_request: https://github.com/python/cpython/pull/30945 ___ Python tracker ___

[issue45296] IDLE: Better document close and exit.

2022-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset fcde0bc10ddd836b62d0a8e893d80b8c55e0ba3f by Terry Jan Reedy in branch 'main': bpo-45296: Clarify close, quit, and exit in IDLE (GH-30936) https://github.com/python/cpython/commit/fcde0bc10ddd836b62d0a8e893d80b8c55e0ba3f --

[issue45296] IDLE: Better document close and exit.

2022-01-26 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +29123 pull_request: https://github.com/python/cpython/pull/30944 ___ Python tracker

[issue46496] idlelib/NEWS.txt for 3.11.0 and backports

2022-01-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +29128 pull_request: https://github.com/python/cpython/pull/30949 ___ Python tracker ___

[issue45162] Remove old deprecated unittest features

2022-01-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset b50322d20337ca468f2070eedb051a16ee1eba94 by Gregory P. Smith in branch 'main': bpo-45162: Revert "Remove many old deprecated unittest features" (GH-30935) https://github.com/python/cpython/commit/b50322d20337ca468f2070eedb051a16ee1eba94

[issue46496] idlelib/NEWS.txt for 3.11.0 and backports

2022-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 9f0881476e0113d3a35e0ffa96649b9276dd75c5 by Terry Jan Reedy in branch 'main': bpo-46496: news11-10 for bpo45296 (GH-30937) https://github.com/python/cpython/commit/9f0881476e0113d3a35e0ffa96649b9276dd75c5 --

[issue46496] idlelib/NEWS.txt for 3.11.0 and backports

2022-01-26 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +29127 pull_request: https://github.com/python/cpython/pull/30948 ___ Python tracker

[issue46496] idlelib/NEWS.txt for 3.11.0 and backports

2022-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 287ceca2d62d11a8b45f6264226d984dd044e082 by Terry Jan Reedy in branch '3.9': bpo-46496: news39 for bpo45296 (#30949) https://github.com/python/cpython/commit/287ceca2d62d11a8b45f6264226d984dd044e082 --

[issue46285] protocol_version in http.server.test can be ignored

2022-01-26 Thread Hugo Almeida
Hugo Almeida added the comment: Hi Éric, thank you so much. I know only a little usage of closure and functools.partial but not the historical/relative knowledge of their design/feature, I mean this issue have 2 visual, the partical object not working as it expected or we are not calling

[issue45735] Promise the long-time truth that `args=list` works

2022-01-26 Thread Tim Peters
Tim Peters added the comment: Charliz, please do! I have no idea why Raymond just stopped. He even deleted his initial message here, saying "I relied on this for many years. So, yet it would be nice to guarantee it :-)". Best I can tell, nothing has changed: lots of people have relied on

[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2022-01-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29122 pull_request: https://github.com/python/cpython/pull/30943 ___ Python tracker ___

[issue45476] [C API] PEP 674: Disallow using macros as l-value

2022-01-26 Thread STINNER Victor
STINNER Victor added the comment: > * scipy-1.7.3: scipy/_lib/boost/boost/python/object/make_instance.hpp This is a vendored the Boost.org python module which has already been fixed in boost 1.78.0 (commit: January 2021) by:

[issue45296] IDLE: Better document close and exit.

2022-01-26 Thread miss-islington
miss-islington added the comment: New changeset bc7d96ee332c8a575a453ec81367f2ad499f57d3 by Miss Islington (bot) in branch '3.9': bpo-45296: Clarify close, quit, and exit in IDLE (GH-30936) https://github.com/python/cpython/commit/bc7d96ee332c8a575a453ec81367f2ad499f57d3 --

[issue45296] IDLE: Better document close and exit.

2022-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 5acaad0b3033fde6f21de6ac73681cd6cf64b1f7 by Miss Islington (bot) in branch '3.10': bpo-45296: Clarify close, quit, and exit in IDLE (GH-30936) (GH-30944) https://github.com/python/cpython/commit/5acaad0b3033fde6f21de6ac73681cd6cf64b1f7

[issue45296] IDLE: Better document close and exit.

2022-01-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46543] Add sys._getfunc

2022-01-26 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- keywords: +patch pull_requests: +29129 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30950 ___ Python tracker ___

[issue46539] typing: forward references don't understand special type forms

2022-01-26 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset ced50051bb752a7c1e616f4b0c001f37f0354f32 by Gregory Beauregard in branch 'main': bpo-46539: Pass status of special typeforms to forward references (GH-30926) https://github.com/python/cpython/commit/ced50051bb752a7c1e616f4b0c001f37f0354f32

[issue46539] typing: forward references don't understand special type forms

2022-01-26 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +29125 pull_request: https://github.com/python/cpython/pull/30946 ___ Python tracker

[issue46539] typing: forward references don't understand special type forms

2022-01-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +29126 pull_request: https://github.com/python/cpython/pull/30947 ___ Python tracker ___

[issue45476] [C API] PEP 674: Disallow using macros as l-value

2022-01-26 Thread STINNER Victor
STINNER Victor added the comment: > recordclass-0.16.3: lib/recordclass/_dataobject.c + code generated by Cython I created: https://bitbucket.org/intellimath/recordclass/pull-requests/1/python-311-support-use-py_set_size -- ___ Python tracker

[issue45975] Simplify some while-loops with walrus operator

2022-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: To me, the five idlelib changes make the code easier to understand. Nick, please either move them into a separate PR or allow me to do so, and subject to manual testing, I will merge and backport. (I requested this on the PR by maybe you missed it.) If

[issue46543] Add sys._getfunc

2022-01-26 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : sys._getframe() has to create frame objects, which is relatively expensive. Usually the calling function object should be enough. See https://github.com/faster-cpython/ideas/discussions/238 -- assignee: Jelle Zijlstra components: Interpreter Core

[issue46282] return value of builtins is not clearly indicated

2022-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Steven, I am also inclined to close this. What do you think after the discussion? It is sometimes easier to clarify when we have a confused person present in the discussion. -- ___ Python tracker

[issue46496] idlelib/NEWS.txt for 3.11.0 and backports

2022-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset b3cf525bd1c57a1d3f28fcb90bce364f0bcb2b7d by Miss Islington (bot) in branch '3.10': bpo-46496: news11-10 for bpo45296 (GH-30937) https://github.com/python/cpython/commit/b3cf525bd1c57a1d3f28fcb90bce364f0bcb2b7d --

[issue45162] Remove old deprecated unittest features

2022-01-26 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: gregory.p.smith -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45560] sys.last_* not set for SyntaxErrors with IDLE

2022-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: If this is not fixed, perhaps it should be documented along with other IDLE differences in Running User code. -- ___ Python tracker ___

Re: Puzzling behaviour of Py_IncRef

2022-01-26 Thread Tony Flury via Python-list
On 26/01/2022 22:41, Barry wrote: Run python and your code under a debugger and check the ref count of the object as you step through the code. Don’t just step through your code but also step through the C python code. That will allow you to see how this works at a low level. Setting a

[issue46529] Improve test coverage of `Union` and `Optional` repr()

2022-01-26 Thread miss-islington
miss-islington added the comment: New changeset c730342005edf67333c37b575b419e2fc67d232b by Miss Islington (bot) in branch '3.10': bpo-46529: increase coverage of `typing.Union.__repr__` method (GH-30911) https://github.com/python/cpython/commit/c730342005edf67333c37b575b419e2fc67d232b

[issue46529] Improve test coverage of `Union` and `Optional` repr()

2022-01-26 Thread miss-islington
miss-islington added the comment: New changeset 29eefcc9c688bc4097f2660de1fa846c5ea54735 by Miss Islington (bot) in branch '3.9': bpo-46529: increase coverage of `typing.Union.__repr__` method (GH-30911) https://github.com/python/cpython/commit/29eefcc9c688bc4097f2660de1fa846c5ea54735

[issue23556] [doc] Scope for raise without argument is different in Python 2 and 3

2022-01-26 Thread Kinshuk Dua
Kinshuk Dua added the comment: @iritkatriel I thought the PR won't be reviewed after being marked as stale that's why I closed it. I've reopened it and I'm interested in finishing it. -- nosy: +kinshukdua2 ___ Python tracker

[issue46520] `ast.unparse` produces syntactically illegal code for identifiers that look like reserved words

2022-01-26 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Technically, this is a bug on the fact that it breaks the only guarantee of ast.unparse: > Unparse an ast.AST object and generate a string with code that would produce > an equivalent ast.AST object if parsed back with ast.parse(). But I am not really

[issue43698] Use syntactically correct examples on abc package page

2022-01-26 Thread miss-islington
miss-islington added the comment: New changeset a57ec7a4feaf24f470a9d1e5b1b3f2cb1b062af7 by Miss Islington (bot) in branch '3.10': bpo-43698: do not use `...` as argument name in docs (GH-30502) https://github.com/python/cpython/commit/a57ec7a4feaf24f470a9d1e5b1b3f2cb1b062af7 --

[issue43698] Use syntactically correct examples on abc package page

2022-01-26 Thread miss-islington
miss-islington added the comment: New changeset 49971b2d1890c15eeec2d83ea3e8d178f266c4f9 by Miss Islington (bot) in branch '3.9': bpo-43698: do not use `...` as argument name in docs (GH-30502) https://github.com/python/cpython/commit/49971b2d1890c15eeec2d83ea3e8d178f266c4f9 --

[issue46505] Simplify exception handling code in py_compile

2022-01-26 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46513] AC_C_CHAR_UNSIGNED from configure.ac confuses GCC 12+ by defining __CHAR_UNSIGNED__

2022-01-26 Thread STINNER Victor
STINNER Victor added the comment: IMO making the assumption that "char" is signed or not in C code is bad. If Python has code like that, it must be signed to explicitly use one of these types: unsigned char or uint8_t, signed char or int8_t. Hopefully, Python can now use C99 since Python

[issue46513] AC_C_CHAR_UNSIGNED from configure.ac confuses GCC 12+ by defining __CHAR_UNSIGNED__

2022-01-26 Thread STINNER Victor
STINNER Victor added the comment: In short, I did my checks on my side, and the merged change now LGTM. Thanks Christian for fixing it ;-) -- ___ Python tracker ___

[issue46534] Implementing PEP 673 (Self type)

2022-01-26 Thread Gobot1234
New submission from Gobot1234 : See [PEP 673](https://www.python.org/dev/peps/pep-0673) I'm planning to implement this in cpython some point today. -- components: Library (Lib) messages: 411736 nosy: Gobot1234, Jelle Zijlstra, gvanrossum, kj priority: normal severity: normal status:

[issue46533] Specialize for staticmethods and classmethods

2022-01-26 Thread Ken Jin
Ken Jin added the comment: Slightly off topic rambling: My own toy attempts at classmethod specialization suggested that it barely sped anything up. Most of the time went to creation of the new classmethod object. I'd imagine supporting Py_TPFLAGS_METHOD_DESCRIPTOR would speed things up,

[issue34680] asyncio event_loop fails when accessed from multiple threads

2022-01-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: BaseEventLoop has _check_loop() method that is closed in debug mode only. UnixEventLoop doesn't call this method for unix-specific API. Adding the check to add_signal_handler()/remove_signal_handler() doesn't hurt, sure. But it doesn't help as the script is

[issue46533] Specialize for staticmethods and classmethods

2022-01-26 Thread Mark Shannon
Mark Shannon added the comment: For classmethods, I expect the savings to come from not creating a bound-method and from better specialization of the following call. classmethod case: >>> class C: ... @classmethod ... def m(*args): ... pass ... >>> C.m > >>> C().m > So,

[issue46536] Better for loop

2022-01-26 Thread The vivid & versatile channel
New submission from The vivid & versatile channel : for i in range(number), question in questions: ... instead of for i, question in zip(range(number), questions): ... -- messages: 411748 nosy: vividnversatile1 priority: normal severity: normal status: open title: Better for

[issue46536] Better for loop

2022-01-26 Thread Anonymous
Change by Anonymous : -- nosy: +me -vividnversatile1 resolution: -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46537] zipfile crash on windows, detected during pip install pyodbc-4.0.32-cp310-cp310-win_amd64.whl

2022-01-26 Thread Martin Forster
New submission from Martin Forster : pyth10n 3.10.1, windows x64 install of yodbc-4.0.32-cp310-cp310-win_amd64.whl crashes. pos: 74196 pos: 74226 pos: -3 ERROR: Could not install packages due to an OSError. Traceback (most recent call last): File

[issue46537] zipfile crash on windows, detected during pip install pyodbc-4.0.32-cp310-cp310-win_amd64.whl

2022-01-26 Thread Christian Heimes
Christian Heimes added the comment: https://pypi.org/project/pyodbc/4.0.32/#files has no wheels for Python 3.10. Where did you get the binary wheels from? -- nosy: +christian.heimes type: crash -> behavior ___ Python tracker

[issue46534] Implementing PEP 673 (Self type)

2022-01-26 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood, sobolevn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46513] AC_C_CHAR_UNSIGNED from configure.ac confuses GCC 12+ by defining __CHAR_UNSIGNED__

2022-01-26 Thread Christian Heimes
Christian Heimes added the comment: New changeset 04772cd6f164c1219c8c74d55626ba114f01aa96 by Christian Heimes in branch '3.9': [3.9] bpo-46513: Remove AC_C_CHAR_UNSIGNED / __CHAR_UNSIGNED__ (GH-30851) (GH-30915)

[issue46535] Possible bug: pdb causes exception

2022-01-26 Thread Stefan Ecklebe
New submission from Stefan Ecklebe : Consider a script called snippet.py, containing the lines -- import numpy as np import pandas as pd np.finfo(float) idx = pd.MultiIndex.from_tuples([(1, 2)]) np.finfo(float) print("Done")

[issue46513] AC_C_CHAR_UNSIGNED from configure.ac confuses GCC 12+ by defining __CHAR_UNSIGNED__

2022-01-26 Thread Christian Heimes
Christian Heimes added the comment: New changeset 4371fbd4328781496f5f2c6938c4d9a84049b187 by Christian Heimes in branch '3.10': [3.10] bpo-46513: Remove AC_C_CHAR_UNSIGNED / __CHAR_UNSIGNED__ (GH-30851) (GH-30914)

[issue46487] `_SSLProtocolTransport` doesn't have the `get_write_buffer_limits` implementation.

2022-01-26 Thread Nova
Change by Nova : -- versions: +Python 3.11, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46524] test_peg_generator takes 8 minutes on Windows

2022-01-26 Thread Kumar Aditya
Kumar Aditya added the comment: Would it be possible to skip these tests when no changes to the parser related code are made to speed up tests? -- nosy: +kumaraditya303 ___ Python tracker

[issue45382] platform() is not able to detect windows 11

2022-01-26 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46537] zipfile crash on windows, detected during pip install pyodbc-4.0.32-cp310-cp310-win_amd64.whl

2022-01-26 Thread Martin Forster
Martin Forster added the comment: it tried one built on my own, and the one from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyodbc -- ___ Python tracker ___

[issue46537] zipfile crash on windows, detected during pip install pyodbc-4.0.32-cp310-cp310-win_amd64.whl

2022-01-26 Thread Martin Forster
Martin Forster added the comment: i opened a issue at pyodbc as well, https://github.com/mkleehammer/pyodbc/issues/1015 -- ___ Python tracker ___

[issue46513] AC_C_CHAR_UNSIGNED from configure.ac confuses GCC 12+ by defining __CHAR_UNSIGNED__

2022-01-26 Thread Christian Heimes
Christian Heimes added the comment: The fix is in all stable branches. Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45925] Upgrade macOS and Windows installers to use SQLite 3.37.2

2022-01-26 Thread Kumar Aditya
Change by Kumar Aditya : -- pull_requests: +29100 pull_request: https://github.com/python/cpython/pull/30921 ___ Python tracker ___

[issue45578] Missing tests for the dis module

2022-01-26 Thread Tal Einat
Tal Einat added the comment: Thanks for your work on this Nikita! -- nosy: +taleinat resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34680] asyncio event_loop fails when accessed from multiple threads

2022-01-26 Thread Irit Katriel
Irit Katriel added the comment: Perhaps this is just a doc issue - state explicitly that a loop should be used only in one thread, and mention that this is checked in debug mode. -- ___ Python tracker

[issue46536] Better for loop

2022-01-26 Thread Eric V. Smith
Eric V. Smith added the comment: Thank you for the suggestion. This is unlikely to gain acceptance. zip is usable in places outside of for loops, whereas your suggestion appears to be only useful in for loops. In addition, I don't see a way to specify the "strict" option using your syntax.

[issue46524] test_peg_generator takes 8 minutes on Windows

2022-01-26 Thread STINNER Victor
STINNER Victor added the comment: > Would it be possible to skip these tests when no changes to the parser > related code are made to speed up tests? Maybe, some CIs could export an environment variable which contains the list of modified files, and then each file would be able to decide

[issue46529] Improve test coverage of `Union` and `Optional` repr()

2022-01-26 Thread Ken Jin
Change by Ken Jin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46539] typing: forward references don't understand special type forms

2022-01-26 Thread Gregory Beauregard
Change by Gregory Beauregard : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46539] typing: forward references don't understand special type forms

2022-01-26 Thread Gregory Beauregard
Gregory Beauregard added the comment: typo: the line is `g: Annotated["ClassVar[int]", (2, 5)] = 3` in the code sample. Somehow I left it at only `(` for the annotation instead of `(2,5)` -- ___ Python tracker

[issue46528] Simplify the VM's stack manipulations

2022-01-26 Thread Brandt Bucher
Brandt Bucher added the comment: New changeset 85483668647e7840c7b9a1877caaf2ef14a4443f by Brandt Bucher in branch 'main': bpo-46528: Simplify the VM's stack manipulations (GH-30902) https://github.com/python/cpython/commit/85483668647e7840c7b9a1877caaf2ef14a4443f --

[issue45173] Remove configparser deprecations

2022-01-26 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- pull_requests: +29106 pull_request: https://github.com/python/cpython/pull/30927 ___ Python tracker ___

[issue46539] typing: forward references don't understand special type forms

2022-01-26 Thread Guido van Rossum
Guido van Rossum added the comment: Agree it's not the same issue, but there's similarity -- both are due to putting a stringized annotation (presumably a forward ref) somewhere inside another construct. whether it's list["N"] or Annotated["ClassVar[int]"]. --

[issue46506] [Windows] wrap CreateFile to support follow_symlinks

2022-01-26 Thread Eryk Sun
Eryk Sun added the comment: > switch to the newer CreateFile2() function Apparently we need to allow FILE_SHARE_READ if CreateFile2() is used to implement os.stat(). It's not a big deal, but this is a design flaw. CreateFile2() always uses the kernel I/O flag FILE_DISALLOW_EXCLUSIVE [1]

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

2022-01-26 Thread Eric Snow
Eric Snow added the comment: ## Background ## `_Py_Identifier` (and `_Py_IDENTIFIER()`, etc.) was added in 2011 [1][2] for several reasons: * provide a consistent approach for a common optimization: caching C-string based string objects * facilitate freeing those objects during runtime

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

2022-01-26 Thread Eric Snow
New submission from Eric Snow : `_Py_Identifier` has been useful but at this point there is a faster and simpler approach we could take as a replacement: statically initialize the objects as fields on `_PyRuntimeState` and reference them directly through a macro. This would involve the

[issue38472] GCC detection in setup.py is broken

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

[issue46539] typing: forward references don't understand special type forms

2022-01-26 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood, sobolevn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46540] dylibs not loading properly from NFS mounts

2022-01-26 Thread embassy_vfx
New submission from embassy_vfx : MacOS Catalina 10.15.4 and 10.15.7 tested with XCode Python3.8 install and Python3.7.9 installer from https://www.python.org/ftp/python/3.7.9/python-3.7.9-macosx10.9.pkg (and my own build of 3.7.12) When importing libraries that use shared object files to an

[issue46539] typing: forward references don't understand special type forms

2022-01-26 Thread Guido van Rossum
Guido van Rossum added the comment: I wonder if this is at all similar to bpo-41370. -- ___ Python tracker ___ ___

[issue38487] expat infinite loop

2022-01-26 Thread sping
sping added the comment: Hi StyXman, I had a closer look at the files you shared, thanks for those, very helpful! What I found is that expat_test.py uses a single scalar variable (_DictSAXHandler.parser) to keep track of the related parser, while it would need a stack to allow recursion. In

[issue46539] typing: forward references don't understand special type forms

2022-01-26 Thread Gregory Beauregard
Gregory Beauregard added the comment: I did try the proposed patch in bpo-41370 and verified it didn't resolve the issue so I'm not certain they strictly overlap, but I also haven't had time to fully digest the underlying issues in bpo-41370 yet. I think it does have relevance for changes

[issue38472] GCC detection in setup.py is broken

2022-01-26 Thread STINNER Victor
STINNER Victor added the comment: Ok, I reproduced the issue. I wrote PR 30929 to fix it. The issue only occurs when cross-compiling Python with GCC and a German locale. I can reproduce the issue on Fedora 35: $ LC_ALL=de_DE gcc -E -v Es werden eingebaute Spezifikationen verwendet.

[issue40280] Consider supporting emscripten/webassembly as a build target

2022-01-26 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +29109 pull_request: https://github.com/python/cpython/pull/30930 ___ Python tracker ___

Re: mac app from a python script?

2022-01-26 Thread Barry
> On 26 Jan 2022, at 05:17, Dan Stromberg wrote: > >  > >> On Tue, Jan 25, 2022 at 6:41 PM Dan Stromberg wrote: >> >>> On Tue, Jan 25, 2022 at 2:23 PM Barry wrote: >>> > On 25 Jan 2022, at 02:56, Dan Stromberg wrote: >  > On Sun, Jan 23, 2022 at 1:37 PM Barry

Re: Puzzling behaviour of Py_IncRef

2022-01-26 Thread Barry
> On 25 Jan 2022, at 23:50, Tony Flury wrote: > >  > > >> On 25/01/2022 22:28, Barry wrote: >> On 25 Jan 2022, at 14:50, Tony Flury via Python-list wrote:  > On 20/01/2022 23:12, Chris Angelico wrote: >>> On Fri, 21 Jan 2022 at 10:10, Greg Ewing >>>

[issue45476] [C API] PEP 674: Disallow using macros as l-value

2022-01-26 Thread STINNER Victor
STINNER Victor added the comment: > datatable-1.0.0.tar.gz I created https://github.com/h2oai/datatable/pull/3231 -- ___ Python tracker ___

[issue45476] [C API] PEP 674: Disallow using macros as l-value

2022-01-26 Thread STINNER Victor
STINNER Victor added the comment: > pickle5-0.0.12: pickle5/_pickle.c This project is a backport targeting Python 3.7 and older. I'm not sure if it makes sense to update to it to Python 3.11. It's the same for pysha3 which targets Python <= 3.5. --

[issue46506] [Windows] wrap CreateFile to support follow_symlinks

2022-01-26 Thread Eryk Sun
Eryk Sun added the comment: Here's an implementation of _Py_CreateFile2() and win32_xstat_impl(): typedef struct { DWORD type; DWORD attributes; DWORD reparseTag; } _PY_CREATE_FILE_INFO; static HANDLE _Py_CreateFile2(LPCWSTR lpFileName, DWORD dwDesiredAccess,

Re: Pandas or Numpy

2022-01-26 Thread Marco Sulla
On Mon, 24 Jan 2022 at 05:37, Dennis Lee Bieber wrote: > Note that the comparison warns that /indexing/ in pandas can be slow. > If your manipulation is always "apply operationX to columnY" it should be > okay -- but "apply operationX to the nth row of columnY", and repeat for > other

[issue38472] GCC detection in setup.py is broken

2022-01-26 Thread STINNER Victor
STINNER Victor added the comment: FYI distutils.unixccompiler has a private _is_gcc() function: def _is_gcc(self, compiler_name): # clang uses same syntax for rpath as gcc return any(name in compiler_name for name in ("gcc", "g++", "clang")) It's called with:

[issue38472] GCC detection in setup.py is broken

2022-01-26 Thread STINNER Victor
STINNER Victor added the comment: The workaround for this bug is to build Python using the command: LC_ALL=C make rather than running: make -- ___ Python tracker

[issue38472] GCC detection in setup.py is broken

2022-01-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset a9503ac39474a9cb1b1935ddf159c0d9672b04b6 by Victor Stinner in branch 'main': bpo-38472: setup.py uses LC_ALL=C to check the C compiler (GH-30929) https://github.com/python/cpython/commit/a9503ac39474a9cb1b1935ddf159c0d9672b04b6 --

[issue38472] GCC detection in setup.py is broken

2022-01-26 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +29110 pull_request: https://github.com/python/cpython/pull/30931 ___ Python tracker

[issue38472] GCC detection in setup.py is broken

2022-01-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +29111 pull_request: https://github.com/python/cpython/pull/30932 ___ Python tracker ___

[issue38472] setup.py: GCC detection is broken when cross-compiling with a German locale

2022-01-26 Thread STINNER Victor
Change by STINNER Victor : -- title: GCC detection in setup.py is broken -> setup.py: GCC detection is broken when cross-compiling with a German locale ___ Python tracker ___

[issue45162] Remove old deprecated unittest features

2022-01-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: Per https://mail.python.org/archives/list/python-...@python.org/thread/GJTREADEXYAETECE5JDTPYWK4WMTKYGR/ we want to revert this change for 3.11 as it causes adoption pain for little benefit. To determine if we should proceed with this in 3.12 or future

[issue45162] Remove old deprecated unittest features

2022-01-26 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45173] Remove configparser deprecations

2022-01-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: Per https://mail.python.org/archives/list/python-...@python.org/thread/GJTREADEXYAETECE5JDTPYWK4WMTKYGR/ we want to revert https://github.com/python/cpython/commit/1fc41ae8709e20d741bd86c2345173688a5e84b0 for 3.11 to avoid causing pain. per that thread

[issue46282] return value of builtins is not clearly indicated

2022-01-26 Thread Irit Katriel
Irit Katriel added the comment: > "have the :ref:`default return value of ``None``." This sounds to me like "by default they return None but you can override this default". I don't think any change to the doc makes sense here. When you state the obvious people wonder what they're

[issue38472] setup.py: GCC detection is broken when cross-compiling with a German locale

2022-01-26 Thread miss-islington
miss-islington added the comment: New changeset 171fdf2162130bc8c748173bc8eef184b21f5a08 by Miss Islington (bot) in branch '3.10': bpo-38472: setup.py uses LC_ALL=C to check the C compiler (GH-30929) https://github.com/python/cpython/commit/171fdf2162130bc8c748173bc8eef184b21f5a08

[issue46502] Py_CompileString no longer allows to tell "incomplete input" from "invalid input"

2022-01-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f0a648152f2d8011f47cc49873438ebaf01d3f82 by Mateusz Łoskot in branch 'main': bpo-46502: Remove "How do I tell incomplete input" from FAQ (GH-30925) https://github.com/python/cpython/commit/f0a648152f2d8011f47cc49873438ebaf01d3f82

[issue38472] setup.py: GCC detection is broken when cross-compiling with a German locale

2022-01-26 Thread miss-islington
miss-islington added the comment: New changeset ff11effab7ae10b57719c066ee49b52d3991ead3 by Miss Islington (bot) in branch '3.9': bpo-38472: setup.py uses LC_ALL=C to check the C compiler (GH-30929) https://github.com/python/cpython/commit/ff11effab7ae10b57719c066ee49b52d3991ead3

[issue46502] Py_CompileString no longer allows to tell "incomplete input" from "invalid input"

2022-01-26 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +29112 pull_request: https://github.com/python/cpython/pull/30933 ___ Python tracker ___

[issue46502] Py_CompileString no longer allows to tell "incomplete input" from "invalid input"

2022-01-26 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +29113 pull_request: https://github.com/python/cpython/pull/30934 ___ Python tracker ___

[issue45162] Remove old deprecated unittest features

2022-01-26 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +29114 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/30935 ___ Python tracker ___

  1   2   3   >