[issue47239] Python Launcher for Windows (`py -0`) no longer shows star ("*") for default version

2022-04-06 Thread Dutcho
Dutcho added the comment: BTW I just found 'py -0p' also no longer shows the 'venv' path ``` (venv) C:\>py -0p -V:3.11 *C:\Program Files\Python311\python.exe -V:3.10 C:\Program Files\Python310\python.exe -V:3.9 C:\Program Files\Pyth

[issue47239] Python Launcher for Windows (`py -0`) no longer shows star ("*") for default version

2022-04-06 Thread Dutcho
Dutcho added the comment: That was the case in older versions (up to a6) -- ___ Python tracker <https://bugs.python.org/issue47239> ___ ___ Python-bugs-list m

[issue47239] Python Launcher for Windows (`py -0`) no longer shows star ("*") for default version

2022-04-06 Thread Dutcho
New submission from Dutcho : If doing `py -list` in 3.11.0a7, a star "*" shows on 3.11, even though the default (set by environment variable PY_PYTHON) is 3.10, which `py -V` confirms ``` C:\>py --list -V:3.11 *Python 3.11 (64-bit) -V:3.10 Python 3.10 (64

[issue47239] Python Launcher for Windowscd \

2022-04-06 Thread Dutcho
Change by Dutcho : -- components: Windows nosy: Dutcho, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Python Launcher for Windowscd \ versions: Python 3.11 ___ Python tracker <ht

[issue47192] sys._getframe audit event has frame as argument in 3.8-3.10

2022-04-01 Thread Dutcho
New submission from Dutcho : Documentation (https://docs.python.org/3/library/audit_events.html and https://docs.python.org/3/library/sys.html#sys._getframe) states that `sys._getframe()` "raises [...] an auditing event with no arguments". However, Python 3.8-3.10 provide th

[issue46969] `pip install wrapt` fails on ast.py in Python 3.11.0a6

2022-03-10 Thread Dutcho
Dutcho added the comment: yesterday's `wrapt *1.13.3*` still doesn't work, but today's `wrapt *1.14.0*` works as expected So this wasn't about Python 3.11 but about the wrapt version, which used the deprecated `formatargspec` from module `inspect` -- resoluti

[issue46969] `pip install wrapt` fails on ast.py in Python 3.11.0a6

2022-03-09 Thread Dutcho
New submission from Dutcho : ... or perhaps this is caused by *wrapt 1.13.3*? ''' (venv) >pip install wrapt Collecting wrapt Using cached wrapt-1.13.3.tar.gz (48 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py eg

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

2022-01-30 Thread Dutcho
New submission from Dutcho : https://docs.python.org/3.11/library/enum.html#module-contents contains: property() Allows Enum members to have attributes without conflicting with member names. In above, property() is links to: https://docs.python.org/3.11/library/functions.html#property instead

[issue46569] final note on StrEnum documentation incorrectly refers to int.__format__ instead of str.__format__

2022-01-29 Thread Dutcho
New submission from Dutcho : https://docs.python.org/3.11/library/enum.html#enum.StrEnum contains: Note __str__() is str.__str__() to better support the replacement of existing constants use-case. __format__() is likewise int.__format__() for that same reason. This should be (change

[issue45740] StrEnum entry doesn't mention its introduction in 3.11

2021-11-06 Thread Dutcho
New submission from Dutcho : At https://docs.python.org/3.11/library/enum.html#enum.StrEnum no mention is made of 'New in version 3.11', whereas e.g. https://docs.python.org/3.11/library/enum.html#enum.EnumCheck does. Note https://docs.python.org/3.11/library/enum.html#module-con

[issue45493] str() and repr() of enum different in Python 3.11 from Python <= 3.10

2021-10-16 Thread Dutcho
Dutcho added the comment: perhaps related to https://bugs.python.org/issue44559 ? -- ___ Python tracker <https://bugs.python.org/issue45493> ___ ___ Python-bug

[issue45493] str() and repr() of enum different in Python 3.11 from Python <= 3.10

2021-10-16 Thread Dutcho
Change by Dutcho : -- title: str() and repr() of enum different in Python 3.11 from from Python <= 3.10 -> str() and repr() of enum different in Python 3.11 from Python <= 3.10 ___ Python tracker <https://bugs.python.or

[issue45493] str() and repr() of enum different in Python 3.11 from from Python <= 3.10

2021-10-16 Thread Dutcho
New submission from Dutcho : See below example, which shows Python 3.11 repr(enum) == Python 3.10 str(enum). The enum module documentation lists various enhancements in 3.11, but not this. And the what's new? documentation of 3.11 doesn't mention enum at all. Either this is by i

[issue45492] stdlib inspect documentation on code.co_names is incorrect

2021-10-16 Thread Dutcho
New submission from Dutcho : The standard library documentation on module inspect starts with an overview of types and attributes. This overview (in all Python versions) states: code.co_names: tuple of names of local variables code.co_varnames: tuple of names of arguments and local

[issue40464] functools.singledispatch doesn't verify annotation is on FIRST parameter

2020-05-04 Thread Dutcho
Dutcho added the comment: I'm afraid my "even return" was interpreted in https://github.com/python/cpython/pull/19871 as "only return", while as stated "any annotation" suffices. To rephrase: If the *first* parameter of the registered function isn

[issue40464] functools.singledispatch doesn't verify annotation is on FIRST parameter

2020-05-01 Thread Dutcho
New submission from Dutcho : >From Python 3.7, `functools.singledispatch` makes the `register()` attribute >of the generic function infer the type of the first argument automatically for >functions annotated with types. That's great for DRY. However, in 3.7 and 3.8, no check is

[issue39182] sys.addaudithook(hook) loops indefinitely on mismatch for hook

2020-01-01 Thread Dutcho
New submission from Dutcho : When hook is not a compatible callable, addaudithook() will loop forever. At the minimum, a check for being callable should be executed. Preferably, a non-compatible (i.e. signature != [[str, tuple], Any]) hook callable should also be detected. >py Python 3.

[issue36406] doctest.testmod(empty_package) raises TypeError in 3.7 (and no errors in 3.6)

2019-03-23 Thread Dutcho
New submission from Dutcho : In recent Python, a directory without __init__.py is also a package, and hence can be imported. When this directory/package is empty, and a doctest.testmod() is executed, the behaviour changed from 3.6 to 3.7, which I didn't find in the "what's new

[issue34499] Extend registering of single-dispatch functions to parametrized generic pseudo-types

2018-08-25 Thread Dutcho
New submission from Dutcho : While issue #34498 signalled a break in Python 3.7 of legal Python 3.6 code that registers a single-dispatch function with a 'pseudo-type' like typing.Sequence, both Python 3.6 and Python 3.7 don't work with a 'parametrized pseudo-type'

[issue34498] Python 3.7 breaks on singledispatch_function.register(pseudo_type), which Python 3.6 accepted

2018-08-25 Thread Dutcho
New submission from Dutcho : In Python 3.6, the argument to the register() method of a single-dispatch function (i.e. a function decorated by @functools.singledispatch) can be a 'type-like' class (pseudo-type?) from e.g. the typing module that supports isinstance(). The below de

[issue33762] temp file isn't IOBase

2018-06-03 Thread Dutcho
New submission from Dutcho : I'd expect isinstance(tempfile.TemporaryFile(), io.IOBase) to be True as you can read() from and write() to the temp file. However, on Python 3.6.5 64 bit on Windows 7 above isinstance() == False and and type(tempfile.TemporaryFile()) == tem

[issue33219] x in IntFlag() should test int x's inclusion in IntFlag

2018-04-04 Thread Dutcho
Dutcho added the comment: @Nitish The easiest way would probably be to change __contains__ in Flag to: def __contains__(self, other): try: return other & self == other # leave selection of _value_ attribute (if other is Flag) or conversion (if other is int mixi

[issue33217] x in enum.Flag() is True when x is no Flag

2018-04-03 Thread Dutcho
Dutcho added the comment: Ah, the mixin logic mentioned in 33219 solves most of my objections to returning False; agree that would make sense Only remaining inconsistency would be with 1 in 'hello' -- ___ Python tracker <https://bu

[issue33217] x in enum.Flag() is True when x is no Flag

2018-04-03 Thread Dutcho
Dutcho added the comment: Fully agree that Flag.__contains__ must RETURN False or True; that's why I suggested it RAISES TypeError The exception was to be consistent with e.g. Flag.__and__, which by returning NotImplemented transfers to type(other).__rand__, and assuming __rand__ c

[issue33219] x in IntFlag() should test int x's inclusion in IntFlag

2018-04-03 Thread Dutcho
New submission from Dutcho : While `enum.IntFlag.__and__` accepts an int arg `other` and converts it to `IntFlag` before masking, `enum.IntFlag.__contains__` handles an int arg `other` no different from a different type arg `other` (i.e. returns `True` in Python 3.6 due to issue 33217, but

[issue33217] x in enum.Flag() is True when x is no Flag

2018-04-03 Thread Dutcho
New submission from Dutcho : While `Flag() in Flag()` and `Flag() | Flag()` result in the expected outcomes, e.g. `str() in Flag()` unexpectedly returns `True`, whereas `Flag() | str()` as expected raises a TypeError. >>> import enum >>> ABC = enum.Flag('ABC&

[issue30037] inspect documentation on code attributes incomplete

2017-04-11 Thread Dutcho
New submission from Dutcho: The table at the top of the inspect documentation (https://docs.python.org/3/library/inspect.html#types-and-members) omits co_cellvars, co_freevars, and co_kwonlyargcount attributes of type code (note: the type's doc string does provide these attri

[issue30036] The bugs website doesn't use httpS by default

2017-04-11 Thread Dutcho
New submission from Dutcho: The footer of httpS://python.org links to httP://bugs.python.org, compromising user data for login and register options -- assignee: christian.heimes components: SSL messages: 291463 nosy: Dutcho, christian.heimes priority: normal severity: normal status