[issue23819] test_asyncio fails when run under -O

2021-11-30 Thread Kumar Aditya
Kumar Aditya added the comment: I would like to tackle this, I'll work on this from next week. -- nosy: +kumaraditya303 ___ Python tracker ___

[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-30 Thread Kumar Aditya
Kumar Aditya added the comment: I have installed VS 2022 with v143 of MSVC. I get this error when compiling ```console C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.ta rgets(436,5): error MSB8020: The build tools for Visual Studio 2019

[issue45476] [C API] Disallow using PyFloat_AS_DOUBLE() as l-value

2021-11-30 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28087 pull_request: https://github.com/python/cpython/pull/29860 ___ Python tracker ___ __

[issue28953] Use `raise from` when raising new IncompleteRead

2021-11-30 Thread jiahua wang
Change by jiahua wang : -- nosy: +wangjiahua nosy_count: 1.0 -> 2.0 pull_requests: +28088 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29861 ___ Python tracker

[issue33381] [doc] Incorrect documentation for strftime()/strptime() format code %f

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: New changeset f97ec09baf8431494fd2ef5133090c7b0afd0551 by Vishal Pandey in branch 'main': bpo-33381: [doc] strftime's %f option may pad zeros on the left or the right (GH-29801) https://github.com/python/cpython/commit/f97ec09baf8431494fd2ef5133090c7b0afd0551

[issue33381] [doc] Incorrect documentation for strftime()/strptime() format code %f

2021-11-30 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +28089 pull_request: https://github.com/python/cpython/pull/29862 ___ Python tracker _

[issue33381] [doc] Incorrect documentation for strftime()/strptime() format code %f

2021-11-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +28090 pull_request: https://github.com/python/cpython/pull/29863 ___ Python tracker ___ __

[issue45476] [C API] Disallow using PyFloat_AS_DOUBLE() as l-value

2021-11-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset c19c3a09618ac400538ee412f84be4c1196c7bab by Victor Stinner in branch 'main': bpo-45476: Add _Py_RVALUE() macro (GH-29860) https://github.com/python/cpython/commit/c19c3a09618ac400538ee412f84be4c1196c7bab -- ___

[issue45933] Illegal Instrution (Core Dumped)

2021-11-30 Thread Christian Heimes
Christian Heimes added the comment: The issue sounds like a bug in your Linux distribution. I have been using GCC 11.2 for a while without any problems. Have you filed a bug with Ubuntu already? -- nosy: +christian.heimes ___ Python tracker

[issue45732] Make python.org Windows and macOS installers use Tk 8.6.12

2021-11-30 Thread Aivar Annamaa
Aivar Annamaa added the comment: Do I understand properly, that the macOS build hasn't been updated yet? It would be really great if Python 3.10.1 for macOS would come with Tcl/Tk 8.6.12, as it is supposed to fix a nasty crash with Spanish keyboard. -- __

[issue34820] binascii.c:1578:1: error: the control flow of function ‘binascii_crc32’ does not match its profile data (counter ‘arcs’)

2021-11-30 Thread Christian Heimes
Christian Heimes added the comment: Thanks for the update. I'm marking the issue as "wont fix" for 3.7 and 3.8. -- nosy: +christian.heimes resolution: -> wont fix stage: needs patch -> resolved status: open -> closed superseder: -> "make clean" should remove PGO task data _

[issue33381] [doc] Incorrect documentation for strftime()/strptime() format code %f

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: New changeset 39751420b363530ef46506f10691d7b91ffe9b44 by Miss Islington (bot) in branch '3.10': bpo-33381: [doc] strftime's %f option may pad zeros on the left or the right (GH-29801) (GH-29862) https://github.com/python/cpython/commit/39751420b363530ef46506f

[issue33381] [doc] Incorrect documentation for strftime()/strptime() format code %f

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: New changeset 031e2bb3326be542b224bbe35e7829846ea422cd by Miss Islington (bot) in branch '3.9': bpo-33381: [doc] strftime's %f option may pad zeros on the left or the right (GH-29801) (GH-29863) https://github.com/python/cpython/commit/031e2bb3326be542b224bbe3

[issue33381] [doc] Incorrect documentation for strftime()/strptime() format code %f

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: Thank you Judy and Vishal! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue45607] Make it possible to enrich an exception's error message

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: Issue28953 is another use case for this feature. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue13236] unittest needs more flush calls

2021-11-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch nosy: +serhiy.storchaka nosy_count: 7.0 -> 8.0 pull_requests: +28091 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/29864 ___ Python tracker

[issue13236] unittest needs more flush calls

2021-11-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue13236] unittest needs more flush calls

2021-11-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not remember details, but I encountered this issue (maybe when run tests in subprocesses?). -- ___ Python tracker ___ ___

[issue20281] [doc] time.strftime %z format specifier is the same as %Z

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: See also Issue29964. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue29964] [doc] %z directive has no effect on the output of time.strptime

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: See also Issue20281. -- assignee: -> docs@python components: +Documentation -Library (Lib) nosy: +docs@python, iritkatriel title: %z directive has no effect on the output of time.strptime -> [doc] %z directive has no effect on the output of time.strpti

[issue31196] Blank line inconsistency between InteractiveConsole and standard interpreter

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: I'm pretty sure both behaviours are by design. Can you explain why this is a problem? -- nosy: +iritkatriel resolution: -> not a bug status: open -> pending ___ Python tracker

[issue45916] documentation link error

2021-11-30 Thread Tony Zhou
Tony Zhou added the comment: ok i see, I found the pdf. thank you for that anyway -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue26791] shutil.move fails to move symlink (Invalid cross-device link)

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: Removing old versions. -- nosy: +iritkatriel versions: +Python 3.11 -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue41270] NamedTemporaryFile is not its own iterator.

2021-11-30 Thread Irit Katriel
Change by Irit Katriel : -- type: behavior -> enhancement versions: +Python 3.11 -Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker __

[issue44884] logging Formatter behavior when using msecs and braces : '{'

2021-11-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue45476] [C API] Disallow using PyFloat_AS_DOUBLE() as l-value

2021-11-30 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28092 pull_request: https://github.com/python/cpython/pull/29866 ___ Python tracker ___ __

[issue41270] NamedTemporaryFile is not its own iterator.

2021-11-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Biopython uses next() without iter(), and there is no guarantee that it should work. -- nosy: +brett.cannon, pitrou, serhiy.storchaka ___ Python tracker _

[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2021-11-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 99a9b343316172f049a52b39a406f0c0c42c106f by Miss Islington (bot) in branch '3.9': bpo-37658: Actually return result in race condition (GH-29202) (GH-29832) https://github.com/python/cpython/commit/99a9b343316172f049a52b39a406f0c0c42c106f -

[issue45476] [C API] Disallow using PyFloat_AS_DOUBLE() as l-value

2021-11-30 Thread STINNER Victor
STINNER Victor added the comment: I created this issue to disallow macros like PyFloat_AS_DOUBLE() and PyDict_GET_SIZE() as l-value. It seems like this change by itself is controversial. I proposed one way to implement this change: convert macros to static inline functions. I didn't expect

[issue45476] [C API] Disallow using PyFloat_AS_DOUBLE() as l-value

2021-11-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4b97d974ecca9cce532be55410fe851eb9fdcf21 by Victor Stinner in branch 'main': bpo-45476: Disallow using asdl_seq_GET() as l-value (GH-29866) https://github.com/python/cpython/commit/4b97d974ecca9cce532be55410fe851eb9fdcf21 -- _

[issue43153] tempfile seems to treat a file as a directory when processing an exception in the onerror()

2021-11-30 Thread Andrei Kulakov
Andrei Kulakov added the comment: My last comment was wrong, the issue I linked is unrelated. I think the actual issue here is the code here: https://github.com/python/cpython/blob/4b97d974ecca9cce532be55410fe851eb9fdcf21/Lib/tempfile.py#L826 If `path` is a file that causes a permission error

[issue44674] dataclasses should allow frozendict default value

2021-11-30 Thread Eric V. Smith
Change by Eric V. Smith : -- keywords: +patch pull_requests: +28093 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29867 ___ Python tracker ___ __

[issue45932] EmailMessage incorrectly splits name and address header

2021-11-30 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of #44637. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue44637] Quoting issue on header Reply-To and other address headers

2021-11-30 Thread R. David Murray
Change by R. David Murray : -- nosy: +thehesiod title: Quoting issue on header Reply-To -> Quoting issue on header Reply-To and other address headers ___ Python tracker ___ __

[issue45732] Make python.org Windows and macOS installers use Tk 8.6.12

2021-11-30 Thread Ned Deily
Ned Deily added the comment: > It would be really great if Python 3.10.1 for macOS would come with Tcl/Tk > 8.6.12, as it is supposed to fix a nasty crash with Spanish keyboard. Not to worry, the Tk for the macOS 3.10.1 will be updated. I need to do some more testing first. (BTW, I assume yo

[issue45938] EmailMessage as_bytes

2021-11-30 Thread Marc Villain
New submission from Marc Villain : I am parsing an email with a subject header where the encoding of a unicode character happens to be cut in half. When a second encoded unicode character is encountered, we get the following error: > 'utf-8' codec can't encode characters in position 1-2: surro

[issue44637] Quoting issue on header Reply-To and other address headers

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

[issue45917] Add math.exp2() function: 2^x

2021-11-30 Thread Mark Dickinson
Mark Dickinson added the comment: [Tim] > on Windows, exp2(x) is way worse then pow(2, x) Darn. > I expect we should just live with it. Agreed. -- ___ Python tracker ___ _

[issue45939] PyErr_SetObject documentation lacks mention of reference counting

2021-11-30 Thread Eric Blake
New submission from Eric Blake : While PyErr_SetString is obvious that you do not have to worry about the reference count of 'exception', the documentation for PyErr_SetObject is silent on whether it steals or adds a reference to 'value'. This is particularly confusing, since other functions

[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-30 Thread Steve Dower
Steve Dower added the comment: An easy workaround for people encountering this is to set the PlatformToolset environment variable to v143 before building: $env:PlatformToolset = "v143" (or in CMD: set PlatformToolset=v143) Alternatively, you should be able to install the v142 toolset throug

[issue45939] PyErr_SetObject documentation lacks mention of reference counting

2021-11-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: The default behaviour of functions is to not steal references, in general only exceptions to this are documented. Likewise with return values: by default the result is a strong reference, and borrowed references are documented as such. -- nosy: +ron

[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-30 Thread Kumar Aditya
Kumar Aditya added the comment: Thanks Steve, installing v142 is indeed my current workaround but would be great to support v143 as it is the latest version. On Tue, Nov 30, 2021, 21:09 Steve Dower wrote: > > Steve Dower added the comment: > > An easy workaround for people encountering this

[issue24725] test_socket testFDPassEmpty fails on OS X 10.11+ with "Cannot allocate memory"

2021-11-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: The reproducer script and .c file I added earlier do not fail with "Cannot allocate memory" on macOS 12.0.1. I haven't checked yet if this is enough to avoid test failures in the (now skipped) testFDPassEmpty. -- __

[issue28842] PyInstanceMethod_Type isn't hashable

2021-11-30 Thread Irit Katriel
Change by Irit Katriel : -- type: behavior -> enhancement versions: +Python 3.11 -Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue28842] PyInstanceMethod_Type isn't hashable

2021-11-30 Thread Irit Katriel
Change by Irit Katriel : -- components: +Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue17186] no way to introspect registered atexit handlers

2021-11-30 Thread Irit Katriel
Change by Irit Katriel : -- components: +Library (Lib) type: -> enhancement versions: +Python 3.11 -Python 3.4 ___ Python tracker ___ _

[issue19941] python -m imports non-ASCII .py file without encoding declaration

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: On 3.11 both are working (on a Mac): cpython-1 % python -m tt ¡Hello world! cpython-1 % ./python.exe -c 'import tt' ¡Hello world! -- nosy: +iritkatriel ___ Python tracker __

[issue19941] python -m imports non-ASCII .py file without encoding declaration

2021-11-30 Thread Irit Katriel
Change by Irit Katriel : -- components: +Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue45940] add_multiarch_paths breaks cross compilation to Emscripten

2021-11-30 Thread Ethan Smith
New submission from Ethan Smith : When I cross compile on an Ubuntu system, the "PyBuildExt.add_multiarch_paths" method seems to add system includes, even when cross compiling for Emscripten. Adding the system includes breaks Emscripten and causes several extensions to fail to build. I have

[issue45940] add_multiarch_paths breaks cross compilation to Emscripten

2021-11-30 Thread Ethan Smith
Change by Ethan Smith : -- keywords: +patch pull_requests: +28094 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29868 ___ Python tracker ___

[issue45940] add_multiarch_paths breaks cross compilation to Emscripten

2021-11-30 Thread Christian Heimes
Christian Heimes added the comment: Could you please try again with latest master? GH-29752 should have fixed the issue. -- stage: patch review -> ___ Python tracker ___ ___

[issue45940] add_multiarch_paths breaks cross compilation to Emscripten

2021-11-30 Thread Ethan Smith
Ethan Smith added the comment: Bah, it actually seems the real issue is that my configure is choosing the host_cpu as x86-64 for some reason. I'm still trying to figure out why though. -- ___ Python tracker ___

[issue45940] add_multiarch_paths breaks cross compilation to Emscripten

2021-11-30 Thread Christian Heimes
Christian Heimes added the comment: rm config.cache? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue45940] add_multiarch_paths breaks cross compilation to Emscripten

2021-11-30 Thread Ethan Smith
Ethan Smith added the comment: Unfortunately, I am using latest master :/ I was able to reproduce this issue in your wasm docker container mounting CPython master into it, if you want to play with this. -- ___ Python tracker

[issue24124] Two versions of instructions for installing Python modules

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: The legacy doc has this message in it now, so I think we can close this issue and trust Steve to deal with it along with the rest of distutils. The entire ``distutils`` package has been deprecated and will be removed in Python 3.12. This documentation is

[issue30533] missing feature in inspect module: getmembers_static

2021-11-30 Thread Dino Viehland
Dino Viehland added the comment: New changeset af8c8caaf5e07c02202d736a31f6a2f7e27819b8 by Weipeng Hong in branch 'main': bpo-30533:Add function inspect.getmembers_static that does not call properties or dynamic properties. (#20911) https://github.com/python/cpython/commit/af8c8caaf5e07c0220

[issue11352] Update cgi module doc

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: Since there was no activity on this for 6-7 years and it's not describing a specific issue, I will close this in a couple of weeks unless someone asks me not to. -- nosy: +iritkatriel status: open -> pending ___ Pyt

[issue45476] [C API] Disallow using PyFloat_AS_DOUBLE() as l-value

2021-11-30 Thread STINNER Victor
STINNER Victor added the comment: I wrote PEP 674 "Disallow using macros as l-value" for this change: https://python.github.io/peps/pep-0674/ -- ___ Python tracker ___ __

[issue20468] [doc] resource module documentation is incorrect

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: The remaining text is now saying "Returns the number of bytes in a system page". This is still not accurate if it's sometimes number of kilobytes. -- nosy: +iritkatriel title: resource module documentation is incorrect -> [doc] resource module document

[issue27779] Sync-up docstrings in C version of the the decimal module

2021-11-30 Thread Irit Katriel
Change by Irit Katriel : -- assignee: skrah -> keywords: +easy -patch type: -> enhancement versions: +Python 3.11 -Python 3.5, Python 3.6 ___ Python tracker ___ _

[issue11352] Update cgi module doc

2021-11-30 Thread Glenn Linderman
Glenn Linderman added the comment: Seems like another example of the CGI module not getting much support. While I haven't looked at all the details of the patches, it seems that several people have contributed enhancements or clarifications. and it would be a shame to discard them rather tha

[issue11352] Update cgi module doc

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: Would you like to work on a GitHub PR with these changes? -- ___ Python tracker ___ ___ Python-bugs

[issue6471] errno and strerror attributes incorrectly set on socket errors wrapped by urllib

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11: >>> from urllib.request import urlopen >>> try: ... urlopen('http://www.pythonfoobarbaz.org') ... except Exception as exc: ... err = exc ... print('err:', err) ... print('repr(err):', repr(err)) ... print('err.errno:', err

[issue25633] The documentation for urllib.request should mention http.client.HTTPException

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: Issue22797 was resolved by being more specific about when a URLError is raised, rather than mentioning other exceptions as well. Do we want to do more than that, or can this be closed as well? -- nosy: +iritkatriel status: open -> pending

[issue45933] Illegal Instrution (Core Dumped)

2021-11-30 Thread Tom E
Tom E added the comment: Not yet... my configure flags are ./configure CFLAGS="-O3 -mtune=corei7-avx -march=corei7-avx" LDFLAGS="-L/usr/local/ssl/lib64" CPP=cpp CXX=g++ --with-openssl=/usr/local/ssl --enable-optimizations --enable-shared -- ___ Py

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: New changeset 8a45ca542a65ea27e7acaa44a4c833a27830e796 by Irit Katriel in branch 'main': bpo-45711: Change exc_info related APIs to derive type and traceback from the exception instance (GH-29780) https://github.com/python/cpython/commit/8a45ca542a65ea27e7acaa

[issue45941] help("modules") segfaults on 3.11

2021-11-30 Thread Irit Katriel
New submission from Irit Katriel : Python 3.11.0a2+ (heads/main:8a45ca542a, Nov 30 2021, 22:40:56) [Clang 13.0.0 (clang-1300.0.29.3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> help("modules") Please wait a moment while I gather a list of all available

[issue45941] help("modules") segfaults on 3.11

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: On the debugger: >>> help("modules") Please wait a moment while I gather a list of all available modules... /Users/iritkatriel/src/cpython/Lib/pkgutil.py:92: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use

[issue45941] help("modules") segfaults on 3.11, MacOS

2021-11-30 Thread Irit Katriel
Change by Irit Katriel : -- title: help("modules") segfaults on 3.11 -> help("modules") segfaults on 3.11, MacOS ___ Python tracker ___ ___

[issue45941] help("modules") segfaults on 3.11, MacOS

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: It works for me on 3.10. -- keywords: +3.11regression ___ Python tracker ___ ___ Python-bugs-list m

[issue30533] missing feature in inspect module: getmembers_static

2021-11-30 Thread Dino Viehland
Change by Dino Viehland : -- stage: patch review -> resolved status: open -> closed versions: +Python 3.11 -Python 3.9 ___ Python tracker ___ __

[issue45340] Lazily create dictionaries for plain Python objects

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: I believe this may have caused the regression in Issue45941. -- nosy: +iritkatriel ___ Python tracker ___ _

[issue45941] help("modules") segfaults on 3.11, MacOS

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: It's failing in this assertion which was added in https://github.com/python/cpython/pull/28802 : https://github.com/python/cpython/blob/8a45ca542a65ea27e7acaa44a4c833a27830e796/Objects/object.c#L1305 -- nosy: +Mark.Shannon

[issue16652] [doc] socket.getfqdn docs are not explicit enough about the algorithm.

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: There was a recent update nearby in issue40635 by Andrei, but I think it doesn't quite cover this issue. -- nosy: +andrei.avk, iritkatriel title: socket.getfqdn docs are not explicit enough about the algorithm. -> [doc] socket.getfqdn docs are not expl

[issue31042] Inconsistency in documentation of operator.index

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: My reading of the discussion is that we are not going to make any changes to the docs. Please correct me if I missed anything. -- nosy: +iritkatriel resolution: -> rejected status: open -> pending ___ Python tracker

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

2021-11-30 Thread STINNER Victor
Change by STINNER Victor : -- title: [C API] Disallow using PyFloat_AS_DOUBLE() as l-value -> [C API] PEP 674: Disallow using macros as l-value ___ Python tracker ___

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

2021-11-30 Thread STINNER Victor
STINNER Victor added the comment: In the PyPI top 5000, I found two projects using PyDescr_TYPE() and PyDescr_NAME() as l-value: M2Crypto and mecab-python3. In both cases, it was code generated by SWIG: * This file was automatically generated by SWIG (http://www.swig.org). * Version 4.0.2

[issue33252] [doc] Clarify ResourceWarning documentation

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: It's too late for (b) but (a) still needs to be done. -- keywords: +easy nosy: +iritkatriel title: Clarify ResourceWarning documentation -> [doc] Clarify ResourceWarning documentation versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4, Python 3

[issue22942] Language Reference - optional comma

2021-11-30 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___

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

2021-11-30 Thread STINNER Victor
STINNER Victor added the comment: I found 4 projects using "Py_TYPE(obj) = new_type;" in the PyPI top 5000: mypy-0.910: * mypyc/lib-rt/misc_ops.c: Py_TYPE(template_) = &PyType_Type; * mypyc/lib-rt/misc_ops.c: Py_TYPE(t) = metaclass; recordclass-0.16.3: * lib/recordclass/_dataobject.c: Py_TY

[issue45942] shutil.copytree can raise OSErrors not wrapped in shutil.Error

2021-11-30 Thread Daisy Choi
New submission from Daisy Choi : shutil.copytree's docstring [1] and documentation [2] states that, "If exception(s) occur, an Error is raised with a list of reasons," but it can raise OSErrors at the top-level call. For example: >>> import shutil >>> shutil.copytree(nonexistent_dir, dst) Fil

[issue19941] python -m imports non-ASCII .py file without encoding declaration

2021-11-30 Thread Eryk Sun
Eryk Sun added the comment: test.py is a UTF-8 file, which is the default source encoding in Python 3. It fails as expected if the test script is encoded differently, such as Latin-1, unless the source encoding is declared. -- nosy: +eryksun resolution: -> out of date stage: -> res

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset a39f46afdead515e7ac3722464b5ee8d7b0b2c9b by Raymond Hettinger in branch 'main': bpo-45876: Correctly rounded stdev() and pstdev() for the Decimal case (GH-29828) https://github.com/python/cpython/commit/a39f46afdead515e7ac3722464b5ee8d7b0b2

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

2021-11-30 Thread STINNER Victor
STINNER Victor added the comment: In the PyPI top 5000 projects, I found 32 projects using "Py_SIZE(obj) = new_size": 8 of them are written manually, 24 use Cython. 8 projects using "Py_SIZE(obj) = new_size": * guppy3-3.1.2: src/sets/bitset.c and src/sets/nodeset.c * mypy-0.910: list_resize()

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

2021-11-30 Thread STINNER Victor
STINNER Victor added the comment: Attached pep674_regex.py generated a regex to search for code incompatible with the PEP 674. To download PyPI top 5000, you can use my script: https://github.com/vstinner/misc/blob/main/cpython/download_pypi_top.py To grep a regex in tarball and ZIP archives

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +28095 pull_request: https://github.com/python/cpython/pull/29869 ___ Python tracker ___ ___

[issue11352] Update cgi module doc

2021-11-30 Thread Glenn Linderman
Glenn Linderman added the comment: First I would have to learn how GitHub works, and how PRs work. And I haven't found time for that, as yet. -- ___ Python tracker ___ _

[issue19941] python -m imports non-ASCII .py file without encoding declaration

2021-11-30 Thread STINNER Victor
STINNER Victor added the comment: I confirm: Python 3.10 works as expected. Python 3.10 fails with the same SyntaxError using "python script.py" or "python -m script" if the script contains non-ASCII characters but is not encoded to UTF-8. vstinner@apu$ python3 test.py File "/home/vstinner

[issue11352] Update cgi module doc

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

[issue45943] kids10yrsap...@gmail.com

2021-11-30 Thread Qualyn Richard
Change by Qualyn Richard : -- components: email files: PSX_20210903_080553.jpg nosy: barry, oktaine57, r.david.murray priority: normal severity: normal status: open title: kids10yrsap...@gmail.com type: behavior versions: Python 3.11 Added file: https://bugs.python.org/file50463/PSX_202

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 0aa0bd056349f73de9577ccc38560c1d01864d51 by Raymond Hettinger in branch 'main': bpo-45876: Have stdev() also use decimal specific square root. (GH-29869) https://github.com/python/cpython/commit/0aa0bd056349f73de9577ccc38560c1d01864d51 ---

[issue31700] one-argument version for Generator.typing

2021-11-30 Thread Zeth
Zeth added the comment: I don't get why this is closed. It is a bug. The Generator type annotation works differently than the others, it shouldn't. Sebastian Rittau is correct here, the closer doesn't seem to have understood. As for using Iterator instead as the documentation suggests, that

[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2021-11-30 Thread Eric V. Smith
Eric V. Smith added the comment: I'm closing this as "won't fix" for the negative indexing functionality. If someone wants to open an new documentation issue (and ideally provide a PR), that would be welcome. -- resolution: -> wont fix stage: needs patch -> resolved status: open ->

[issue30533] missing feature in inspect module: getmembers_static

2021-11-30 Thread Dong-hee Na
Dong-hee Na added the comment: Please update the documentation also. see: https://docs.python.org/3.11/library/inspect.html?highlight=inspect#inspect.getmembers -- nosy: +corona10 status: closed -> open ___ Python tracker

[issue27779] Sync-up docstrings in C version of the the decimal module

2021-11-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: One way to do is to dynamically update the docstrings on import. Something like this: for name in dir(_decimal.Decimal): if name.startswith('_'): continue py_method = getattr(_decimal.Decimal, name) py_doc = py_method.__doc__ if py

[issue31042] Inconsistency in documentation of operator.index

2021-11-30 Thread Joseph Fox-Rabinovitz
Joseph Fox-Rabinovitz added the comment: I closed the issue (it's already been rejected), primarily based on > a.__index__ = is an unauthorized use of a *reserved* word and the > effect of such usage is not and need not be documented. > The entry for __*__ does include "*Any* use of __*__

[issue45943] kids10yrsap...@gmail.com

2021-11-30 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue45944] Avoid calling isatty() for most open() calls

2021-11-30 Thread Collin Anderson
Change by Collin Anderson : -- components: IO nosy: collinanderson priority: normal severity: normal status: open title: Avoid calling isatty() for most open() calls type: performance versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9 __

[issue45944] Avoid calling isatty() for most open() calls

2021-11-30 Thread Collin Anderson
Change by Collin Anderson : -- keywords: +patch pull_requests: +28096 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29870 ___ Python tracker ___

[issue45944] Avoid calling isatty() for most open() calls

2021-11-30 Thread Collin Anderson
New submission from Collin Anderson : isatty() is a system call on linux. Most open()s are files, and we're already getting the size of the file. If it has a size, then we know it's not a atty, and can avoid calling it. -- ___ Python tracker

  1   2   >