[issue46646] `address` arg can be `bytes` for `ip_*` functions in `ipaddress` module

2022-02-04 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +29317 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31139 ___ Python tracker ___

[issue46646] `address` arg can be `bytes` for `ip_*` functions in `ipaddress` module

2022-02-04 Thread Nikita Sobolev
New submission from Nikita Sobolev : Right now the docs say: > ipaddress.ip_interface(address) > Return an IPv4Interface or IPv6Interface object depending on the IP address > passed as argument. **address is a string or integer** representing the IP > address. Either IPv4 or IPv6 addresses

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-04 Thread Dong-hee Na
Change by Dong-hee Na : Added file: https://bugs.python.org/file50604/bench_callback.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-04 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +29316 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31138 ___ Python tracker ___

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2022-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: For the open dialog, we only need the expanded extension list. People with no-extension python code file must select 'all files'. Once the file is open, we need the issource function to decide whether to turn on the colorizer. I intend to review the

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-04 Thread Dong-hee Na
Change by Dong-hee Na : -- assignee: -> corona10 nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41259] Find adverbs is not correct on the documentation

2022-02-04 Thread Jacob Walls
Jacob Walls added the comment: Fixed in PR 21420, suggest closing as fixed. -- nosy: +jacobtylerwalls ___ Python tracker ___ ___

[issue31369] re.RegexFlag is not included in __all__, makes type inference less useful

2022-02-04 Thread Ethan Furman
Ethan Furman added the comment: Thanks, everyone! -- components: +Library (Lib) -Regular Expressions resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior versions: +Python 3.11 -Python 3.7, Python 3.8 ___

[issue31369] re.RegexFlag is not included in __all__, makes type inference less useful

2022-02-04 Thread Ethan Furman
Ethan Furman added the comment: New changeset fea7290a0ecee09bbce571d4d10f5881b7ea3485 by andrei kulakov in branch 'main': bpo-31369: include ``RegexFlag`` in ``re.__all__`` (GH-30279) https://github.com/python/cpython/commit/fea7290a0ecee09bbce571d4d10f5881b7ea3485 --

[issue46631] Implement a "strict" mode for getpass.getuser()

2022-02-04 Thread Eryk Sun
Eryk Sun added the comment: Here's an example for the suggested changes to _winapi. Include these headers: #include // LsaGetLogonSessionData #include // STATUS_SUCCESS Add these argument-clinic macros to _winapi_functions: _WINAPI_GETCURRENTPROCESSTOKEN_METHODDEF

[issue46645] Portable python3 shebang for Windows, macOS, and Linux

2022-02-04 Thread Josh Triplett
Josh Triplett added the comment: Correction to the above evaluation of `#!/usr/bin/env python3`, based on some retesting on Windows systems: The failure case we encounter reasonably often involves the official Python installer for Windows, but applies specifically in the case of third-party

[issue42353] Proposal: re.prefixmatch method (alias for re.match)

2022-02-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: What do other APIs in widely used languages do with regex terminology? We appear to be the only popular language who anchors to the start of a string with an API named "match". libpcre C: uses "match" to mean what we call "search" -

[issue42353] Proposal: re.prefixmatch method (alias for re.match)

2022-02-04 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +29314 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/31137 ___ Python tracker

[issue46645] Portable python3 shebang for Windows, macOS, and Linux

2022-02-04 Thread Josh Triplett
New submission from Josh Triplett : I'm writing this issue on behalf of the Rust project. The build system for the Rust compiler is a Python 3 script `x.py`, which orchestrates the build process for a user even if they don't already have Rust installed. (For instance, `x.py build`, `x.py

[issue46637] Incorrect error message: "missing 1 required positional argument"

2022-02-04 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46586] In documentation contents enum.property erroneously links to built-in property

2022-02-04 Thread Alex Waygood
Alex Waygood added the comment: The ~ always only uses the final part of the name for the display text, e.g. `~collections.abc.Iterator` would have "Iterator" as the visible text on the website. -- ___ Python tracker

[issue46586] In documentation contents enum.property erroneously links to built-in property

2022-02-04 Thread Alex Waygood
Alex Waygood added the comment: :func:`~enum.property` means that the visible text on the webpage will be "property", but the link will be to enum.property rather than builtins.property. -- ___ Python tracker

[issue46644] typing: remove callable() check from typing._type_check

2022-02-04 Thread Gregory Beauregard
Gregory Beauregard added the comment: In addition to the 10 tests failed in test_typing.py, one additional test fails in test_types.py with this change: https://github.com/python/cpython/blob/bf95ff91f2c1fc5a57190491f9ccdc63458b089e/Lib/test/test_types.py#L834-L838 and those are all the

[issue42353] Proposal: re.prefixmatch method (alias for re.match)

2022-02-04 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith versions: +Python 3.11 -Python 3.10 ___ Python tracker ___ ___

[issue46643] typing.Annotated cannot wrap typing.ParamSpec args/kwargs

2022-02-04 Thread Gregory Beauregard
Gregory Beauregard added the comment: We can also fix this with my proposal in bpo-46644. I'm okay with either fix (that or implementing __call__), or both. -- ___ Python tracker

[issue46644] typing: remove callable() check from typing._type_check

2022-02-04 Thread Gregory Beauregard
New submission from Gregory Beauregard : I propose removing the callable() check[1] from typing._type_check. This restriction is usually met in typeform instances by implementing a __call__ method that raises at runtime[2]. _type_check is called at runtime in a few disparate locations, such

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2022-02-04 Thread STINNER Victor
STINNER Victor added the comment: > PyObject_GetAttrString(frame, "f_locals") doesn't work for PyFrameObject* Oh, would you mind to elaborate? Example in Python: $ ./python Python 3.11.0a5+ >>> import sys >>> f=sys._getframe() >>> f.f_locals {'__name__': '__main__', '__doc__': None, ...}

[issue46643] typing.Annotated cannot wrap typing.ParamSpec args/kwargs

2022-02-04 Thread Gregory Beauregard
Change by Gregory Beauregard : -- nosy: +sobolevn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46643] typing.Annotated cannot wrap typing.ParamSpec args/kwargs

2022-02-04 Thread Gregory Beauregard
New submission from Gregory Beauregard : Consider the following. ``` import logging from typing import Annotated, Callable, ParamSpec, TypeVar T = TypeVar("T") P = ParamSpec("P") def add_logging(f: Callable[P, T]) -> Callable[P, T]: """A type-safe decorator to add logging to a

[issue46586] In documentation contents enum.property erroneously links to built-in property

2022-02-04 Thread Ethan Furman
Ethan Furman added the comment: What does the tilde (~) do? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46642] typing: tested TypeVar instance subclass TypeError is incidental

2022-02-04 Thread Gregory Beauregard
New submission from Gregory Beauregard : https://github.com/python/cpython/blob/bf95ff91f2c1fc5a57190491f9ccdc63458b089e/Lib/test/test_typing.py#L227-L230 typing's testcases contain the following test to ensure instances of TypeVar cannot be subclassed: def test_cannot_subclass_vars(self):

[issue46586] In documentation contents enum.property erroneously links to built-in property

2022-02-04 Thread Alex Waygood
Alex Waygood added the comment: `enum.property` is new in Python 3.11, so this isn't an issue for 3.9 or 3.10. -- nosy: +AlexWaygood versions: -Python 3.10, Python 3.9 ___ Python tracker

[issue46640] Python can now use the C99 NAN constant

2022-02-04 Thread STINNER Victor
STINNER Victor added the comment: Using clang -E, I see that clang also replaces NAN with: __builtin_nanf (""). -- ___ Python tracker ___

[issue46639] Ceil division with math.ceildiv

2022-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue31978. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

[issue46640] Python can now use the C99 NAN constant

2022-02-04 Thread STINNER Victor
STINNER Victor added the comment: > see attached script: test_nan_bits.py test_nan_bits.py says "True" for Python built with "clang -O3" and with "clang -O0". -- ___ Python tracker

[issue46640] Python can now use the C99 NAN constant

2022-02-04 Thread STINNER Victor
STINNER Victor added the comment: Python/dtoa.c uses: /* Standard NaN used by _Py_dg_stdnan. */ #define NAN_WORD0 0x7ff8 #define NAN_WORD1 0 /* Return a 'standard' NaN value. There are exactly two quiet NaNs that don't arise by 'quieting' signaling NaNs (see IEEE 754-2008,

[issue46640] Python can now use the C99 NAN constant

2022-02-04 Thread STINNER Victor
STINNER Victor added the comment: Manual test to check if m_nan(), _Py_dg_stdnan(0) and Py_NAN are exactly the same number (same bits): $ ./python >>> import math, struct >>> m_nan=math.nan; Py_NAN=math.atan2(m_nan, 1.0) >>> Py_NAN is m_nan False >>> struct.pack('d', m_nan) ==

[issue21762] update the import machinery to only use __spec__

2022-02-04 Thread Brett Cannon
Brett Cannon added the comment: Dumping my personal notes here as backup and in case anyone else wants to know how this is going. 1. `__package__` - [x] Make sure all uses of the attribute fall back on `__spec__` (done way back when) - [x] Add an `ImportWarning` when the

[issue46609] Generator-based coroutines in Python 3.10, 3.9 docs

2022-02-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: -miss-islington resolution: -> fixed stage: patch review -> resolved status: open -> closed title: Generator-based coroutines in Python 3.10 docs -> Generator-based coroutines in Python 3.10, 3.9 docs ___

[issue46640] Python can now use the C99 NAN constant

2022-02-04 Thread STINNER Victor
STINNER Victor added the comment: > mathmodule.c and cmathmodule.c m_nan() still use _Py_dg_stdnan() by default > (if PY_NO_SHORT_FLOAT_REPR is not defined). These functions are only use to create the following constants: * math.nan * cmath.nan * cmath.nanj --

[issue21762] update the import machinery to only use __spec__

2022-02-04 Thread Brett Cannon
Change by Brett Cannon : -- dependencies: +Use specs instead of just __loader__ in C code ___ Python tracker ___ ___

[issue46609] Generator-based coroutines in Python 3.10 docs

2022-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 459e26f0987a12a19238baba422e13a8f7fcfca3 by Miss Islington (bot) in branch '3.9': [3.9] bpo-46609: Update asyncio-task coroutine doc (GH-31132) https://github.com/python/cpython/commit/459e26f0987a12a19238baba422e13a8f7fcfca3 --

[issue46641] multiplication error 2.2 and 2.1

2022-02-04 Thread Zachary Ware
Zachary Ware added the comment: See https://docs.python.org/3/tutorial/floatingpoint.html. Your computer thinks in base 2 rather than base 10, unless you ask it nicely (https://docs.python.org/3/library/decimal.html) :) -- nosy: +zach.ware resolution: -> not a bug stage: ->

[issue46640] Python can now use the C99 NAN constant

2022-02-04 Thread STINNER Victor
STINNER Victor added the comment: The Py_NAN has a special implementation for the ICC compiler, if __INTEL_COMPILER and ICC_NAN_STRICT macros are defined, in bpo-21167: --- commit edbc28ce81f46d042f9d5ddf9c5bc8cecebc715a Author: R David Murray Date: Thu Aug 13 09:58:07 2015 -0400

[issue46640] Python can now use the C99 NAN constant

2022-02-04 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +29313 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31134 ___ Python tracker ___

[issue46641] multiplication error 2.2 and 2.1

2022-02-04 Thread Br Km
New submission from Br Km : Python 3.6.9 (default, Dec 8 2021, 21:08:43) [GCC 8.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> 2.2 * 2.1 4.621 >>> -- messages: 412532 nosy: jzradom priority: normal severity: normal status: open

[issue46640] Python can now use the C99 NAN constant

2022-02-04 Thread STINNER Victor
New submission from STINNER Victor : While debugging a GCC regression (*) on "HUGE_VAL * 0" used by Py_NAN macro, I noticed that Python can now C99 "NAN" constant. (*) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104389 In bpo-45440, I already removed legacy code for pre-C99 support and old

[issue46637] Incorrect error message: "missing 1 required positional argument"

2022-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think the incorrect qualification should be dropped, if sanely feasible. More misleading are hidden positional-only args. Doc: min(iterable, *[, key, default]) min(arg1, arg2, *args[, key]) >>> min(iterator=(1,3)) Traceback (most recent call last):

[issue28686] py.exe ignored PATH when using python3 shebang

2022-02-04 Thread Segev Finer
Change by Segev Finer : -- nosy: +Segev Finer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46609] Generator-based coroutines in Python 3.10 docs

2022-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 5603db43ba7ba5568b7516d0e28730a2bc1e1f26 by Terry Jan Reedy in branch '3.10': [3.10] bpo-46609: Update asyncio-task coroutine doc (GH-31132) https://github.com/python/cpython/commit/5603db43ba7ba5568b7516d0e28730a2bc1e1f26 --

[issue46609] Generator-based coroutines in Python 3.10 docs

2022-02-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +29312 pull_request: https://github.com/python/cpython/pull/31133 ___ Python tracker

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2022-02-04 Thread Aaron Gokaslan
Aaron Gokaslan added the comment: I saw the latest Python 3.11 5A release notes on the frame API changes. Do the notes mean the only officially supported way of accessing co_varnames is now through the Python interface and the inspect module? By using PyObject_GetAttrString? Also, the

[issue46639] Ceil division with math.ceildiv

2022-02-04 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46609] Generator-based coroutines in Python 3.10 docs

2022-02-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +29311 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/31132 ___ Python tracker

[issue43255] Ceil division with /// operator

2022-02-04 Thread Nathaniel Manista
Change by Nathaniel Manista : -- nosy: +Nathaniel Manista ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46639] Ceil division with math.ceildiv

2022-02-04 Thread Nathaniel Manista
Change by Nathaniel Manista : -- nosy: +Nathaniel Manista ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46639] Ceil division with math.ceildiv

2022-02-04 Thread Vladimir Feinberg
New submission from Vladimir Feinberg : I have a request related to the rejected proposal (https://bugs.python.org/issue43255) to introduce a ceildiv operator. I frequently find myself wishing for a ceildiv function which computes `ceil(x/y)` for integers `x,y`. This comes up all the time

[issue46637] Incorrect error message: "missing 1 required positional argument"

2022-02-04 Thread Andre Roberge
Change by Andre Roberge : -- nosy: +aroberge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41962] Make threading._register_atexit public?

2022-02-04 Thread Ben Darnell
Ben Darnell added the comment: > To be clear, by "cancel" you are not talking about Future.cancel(). Rather, > your handler causes all running tasks to finish (by sending a special message > on the socket corresponding to each running task). Is that right? Correct. My tasks here are calls

[issue46609] Generator-based coroutines in Python 3.10 docs

2022-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Looking at the doc answered the question. Further down the 3.10 version, '3.10' was revised to '3.11', and indeed, the decorator and the entire section are gone. There was no change in 3.9 doc, but should be. I will submit a PR for 3.10 and try to

[issue46609] Generator-based coroutines in Python 3.10 docs

2022-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yuri or Andrew: either of you know the fix for "Support for generator-based coroutines is deprecated and is scheduled for removal in Python 3.10."? -- nosy: +asvetlov, terry.reedy, yselivanov ___ Python tracker

[issue46587] datetime and time tests use non-portable "%4Y" format

2022-02-04 Thread Éric Araujo
Change by Éric Araujo : -- title: datetime and time tests use non-portal "%4Y" format -> datetime and time tests use non-portable "%4Y" format ___ Python tracker ___

[issue46586] In documentation contents enum.property erroneously links to built-in property

2022-02-04 Thread Éric Araujo
Éric Araujo added the comment: Changing the markup to this should fix the link without changing the text: :func:`~enum.property` Would you like to turn this into a pull request? -- keywords: +easy nosy: +eric.araujo versions: +Python 3.10, Python 3.9

[issue46635] unittest.defaultTestLoader.discover fails for namespace packages

2022-02-04 Thread Éric Araujo
Change by Éric Araujo : -- components: +Library (Lib) -Distutils nosy: +brett.cannon, eric.snow, ezio.melotti, michael.foord, ncoghlan, rbcollins -dstufft, eric.araujo versions: -Python 3.8 ___ Python tracker

[issue46608] Exclude marshalled-frozen data if deep-freezing to save 300 KB space

2022-02-04 Thread Kumar Aditya
Change by Kumar Aditya : -- pull_requests: +29310 pull_request: https://github.com/python/cpython/pull/31131 ___ Python tracker ___

[issue46638] Inconsistent registry virtualization in Windows Store package

2022-02-04 Thread Steve Dower
Steve Dower added the comment: Didn't work on 1809, but it does work on 20H2, which is the earliest update that will still be supported when 3.11 ships. I didn't try the ones in between, but I think we're okay to ignore them. Interestingly, double-clicking the MSIX on Windows 11 refuses to

[issue46638] Inconsistent registry virtualization in Windows Store package

2022-02-04 Thread Steve Dower
Change by Steve Dower : -- title: Inconsistent registry use in Windows Store package -> Inconsistent registry virtualization in Windows Store package ___ Python tracker ___

[issue46638] Inconsistent registry use in Windows Store package

2022-02-04 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +29309 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/31130 ___ Python tracker

[issue46608] Exclude marshalled-frozen data if deep-freezing to save 300 KB space

2022-02-04 Thread miss-islington
miss-islington added the comment: New changeset bf95ff91f2c1fc5a57190491f9ccdc63458b089e by Kumar Aditya in branch 'main': bpo-46608: exclude marshalled-frozen data if deep-freezing to save 300 KB space (GH-31074)

[issue46637] Incorrect error message: "missing 1 required positional argument"

2022-02-04 Thread Anders Hovmöller
Anders Hovmöller added the comment: For `foo(a, /, b)`, it could be: "TypeError: foo() missing 1 required argument 'a', and one required positional argument 'b'. If we start on this road there are some more, like for `def foo(a, *, b)` you get the error "TypeError: foo() missing 1 required

[issue46637] Incorrect error message: "missing 1 required positional argument"

2022-02-04 Thread Eric V. Smith
Eric V. Smith added the comment: Given this current behavior: >>> def foo(a, /, b): pass ... >>> foo() Traceback (most recent call last): File "", line 1, in TypeError: foo() missing 2 required positional arguments: 'a' and 'b' What would you suggest? I agree the current messages aren't

[issue46636] Bugs of 2to3 on built-in function or types(classes)

2022-02-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: lib2to3 is going away per https://bugs.python.org/issue40360 but it is behaving as intended above, it does not understand logic. it was only ever intended to maybe work on python 2-only code. not python 2-and-3 compatible code. -- nosy:

[issue46638] Inconsistent registry use in Windows Store package

2022-02-04 Thread Steve Dower
Steve Dower added the comment: Okay, so it doesn't install at all on 1803. However, that's out of support [1], so I guess it doesn't matter. In theory, 1809 should be the first one that supports it. I'll try that, but I think we're okay to leave this turned on for 3.11. The changes for

[issue46629] Cannot sideload MSIX package on Windows

2022-02-04 Thread miss-islington
miss-islington added the comment: New changeset 6da436497a79dea0f3bb756c2d78921b2838e03b by Miss Islington (bot) in branch '3.9': bpo-46629: Update classicAppCompat.sccd for new signing certificate (GH-3) https://github.com/python/cpython/commit/6da436497a79dea0f3bb756c2d78921b2838e03b

[issue46629] Cannot sideload MSIX package on Windows

2022-02-04 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46629] Cannot sideload MSIX package on Windows

2022-02-04 Thread miss-islington
miss-islington added the comment: New changeset 7b5b23c31db87cfc5e09ec297147499ba1d47d31 by Miss Islington (bot) in branch '3.10': bpo-46629: Update classicAppCompat.sccd for new signing certificate (GH-3) https://github.com/python/cpython/commit/7b5b23c31db87cfc5e09ec297147499ba1d47d31

[issue46637] Incorrect error message: "missing 1 required positional argument"

2022-02-04 Thread Anders Hovmöller
Anders Hovmöller added the comment: Just dropping the word "positional" is very good. That word is a lie, and just removing it makes it true. -- ___ Python tracker ___

[issue46638] Inconsistent registry use in Windows Store package

2022-02-04 Thread Steve Dower
New submission from Steve Dower : The build of the Store package detects whether the build PC supports disabling registry virtualisation or not when deciding whether to add it to the manifest. Because our release builds just moved from the windows-2019 image to the windows-2022 image, this

[issue46629] Cannot sideload MSIX package on Windows

2022-02-04 Thread Steve Dower
Steve Dower added the comment: New changeset 9b4e3d94a5746af093392ed8e977b26fcc1bfd11 by Steve Dower in branch 'main': bpo-46629: Update classicAppCompat.sccd for new signing certificate (GH-3) https://github.com/python/cpython/commit/9b4e3d94a5746af093392ed8e977b26fcc1bfd11 --

[issue46629] Cannot sideload MSIX package on Windows

2022-02-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +29308 pull_request: https://github.com/python/cpython/pull/31129 ___ Python tracker ___

[issue46629] Cannot sideload MSIX package on Windows

2022-02-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +29307 pull_request: https://github.com/python/cpython/pull/31128 ___ Python tracker

[issue46637] Incorrect error message: "missing 1 required positional argument"

2022-02-04 Thread Eric V. Smith
Eric V. Smith added the comment: I guess the technically correct term is positional-or-keyword, but that seems like too much: https://docs.python.org/3/glossary.html I think dropping "positional" doesn't increase the precision of the error message, but I'll admit I can't think of anything

[issue46637] Incorrect error message: "missing 1 required positional argument"

2022-02-04 Thread Anders Hovmöller
New submission from Anders Hovmöller : >>> def foo(a): ... pass ... >>> foo() Traceback (most recent call last): File "", line 1, in TypeError: foo() missing 1 required positional argument: 'a' This error is incorrect. It says "positional argument", but it's just "argument". The proof

[issue46636] Bugs of 2to3 on built-in function or types(classes)

2022-02-04 Thread Eric V. Smith
Eric V. Smith added the comment: I'm not sure what you're trying to accomplish here, but long and unichr are not available in python 3. 2to3 has been deprecated and is no longer supported. -- nosy: +eric.smith ___ Python tracker

[issue46636] Bugs of 2to3 on built-in function or types(classes)

2022-02-04 Thread chen-y0y0
Change by chen-y0y0 : -- title: Bugs of 2to3 -> Bugs of 2to3 on built-in function or types(classes) ___ Python tracker ___ ___

[issue46636] Bugs of 2to3

2022-02-04 Thread chen-y0y0
New submission from chen-y0y0 : I have a file named foo.py: try : input = raw_input int = long chr = unichr range = xrange except NameError : pass When I process this file to 2to3, it shows: --- foo.py (original) +++ foo.py (refactored) @@ -1,7 +1,7 @@ try : input =

[issue46629] Cannot sideload MSIX package on Windows

2022-02-04 Thread Steve Dower
Steve Dower added the comment: They got back to me with the files, so I've added them to the PR. I'll run a test (signed) build from my branch to validate. -- ___ Python tracker

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

2022-02-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I have recently added some decorators in test. support to deactivate tests if running under the sanitizers. -- ___ Python tracker ___

[issue46433] _PyType_GetModuleByDef optimization is incorrect

2022-02-04 Thread Alex Waygood
Change by Alex Waygood : -- stage: patch review -> backport needed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46066] Remove keyword args syntax for TypedDict definition

2022-02-04 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood, Jelle Zijlstra, sobolevn ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44791] Substitution of ParamSpec in Concatenate

2022-02-04 Thread Marc Mueller
Change by Marc Mueller : -- nosy: +cdce8p ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46635] unittest.defaultTestLoader.discover fails for namespace packages

2022-02-04 Thread Tasos Papastylianou
Change by Tasos Papastylianou : -- components: +Distutils -Tests nosy: +dstufft, eric.araujo ___ Python tracker ___ ___

[issue46635] unittest.defaultTestLoader.discover fails for namespace packages

2022-02-04 Thread Tasos Papastylianou
New submission from Tasos Papastylianou : Back in python 3.6.9, attempting to import __file__ on a namespace package resulted in an attribute error. From at least 3.8 onwards, this behaviour seems to have changed, and __file__ simply returns None instead. This seems to have broken unittest

[issue46200] Discourage logging f-strings due to security considerations

2022-02-04 Thread Tin Tvrtković
Tin Tvrtković added the comment: I mean, I agree with your point about being able to accidentally format twice when using the standard library logger. I'm not a core dev but I think getting new APIs in will be challenging. And if by some fluke of chance you did get the approval to introduce

[issue46634] [sqlite3] speed up cursor.execute*()

2022-02-04 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +29306 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31127 ___ Python tracker

[issue46634] [sqlite3] speed up cursor.execute*()

2022-02-04 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : `pysqlite_connection_execute_impl()` and friends (executemany, executescript) goes all the way through the Call API just to call `pysqlite_connection_cursor_impl`. We can same a lot of calls by calling the cursor _impl function directly; after all, it

[issue11871] test_default_timeout() of test_threading.BarrierTests failure: BrokenBarrierError

2022-02-04 Thread STINNER Victor
STINNER Victor added the comment: The race condition still exists in tests. Recent failure on AMD64 Windows8.1 Refleaks 3.x: https://buildbot.python.org/all/#/builders/511/builds/249 0:03:31 load avg: 2.93 [ 42/432/1] test_threading failed (1 error) (1 min 12 sec) -- running: test_runpy (1

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

2022-02-04 Thread STINNER Victor
STINNER Victor added the comment: Notes: * test.support has check_sanitizer() function. Tests using it: * test_crypt * test_idle * test_tix * test_tk * test_ttk_guionly * test_decimal also checks for memory sanitizer and skip some tests if it's present: MEMORY_SANITIZER = (

[issue46200] Discourage logging f-strings due to security considerations

2022-02-04 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: -erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46433] _PyType_GetModuleByDef optimization is incorrect

2022-02-04 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Right, this of course affects 3.10 and 3.9. Let me know if you want me to do the backports :) (Updating version field for this ticket) -- versions: +Python 3.10, Python 3.9 ___ Python tracker

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

2022-02-04 Thread STINNER Victor
New submission from STINNER Victor : It seems like bpo-45200: "Address Sanitizer: libasan dead lock in pthread_create() (test_multiprocessing_fork.test_get() hangs)" is not fixed yet. In the GitHub Action job, test_multiprocessing_fork is skipped because it's too slow, so the job doesn't

[issue46433] _PyType_GetModuleByDef optimization is incorrect

2022-02-04 Thread Petr Viktorin
Petr Viktorin added the comment: Almost. It's a bugfix so it needs backports to 3.10 & 3.9. Thanks for the reminder! I should get to them next week. -- status: pending -> open ___ Python tracker

[issue46632] test_ssl: 2 tests fail on cstratak-CentOS9-fips-x86_64

2022-02-04 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +cstratak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46632] test_ssl: 2 tests fail on cstratak-CentOS9-fips-x86_64

2022-02-04 Thread STINNER Victor
New submission from STINNER Victor : test_load_verify_cadata() and test_connect_cadata() of test_ssl fail on cstratak-CentOS9-fips-x86_64 (with OpenSSL FIPS mode enabled): https://buildbot.python.org/all/#builders/828/builds/63 test.pythoninfo: fips.linux_crypto_fips_enabled: 1

[issue46588] IDLE fix typo in test_calltip.py

2022-02-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE title: fix typo in test_calltip.py -> IDLE fix typo in test_calltip.py type: enhancement -> behavior versions: +Python 3.10, Python 3.9 ___ Python tracker

  1   2   >