New submission from FHTMitchell :
As of python 3.9, you now can't have multiple inheritance with
`typing.NamedTuple` subclasses. This seems sensible, until you realise that
`typing.Generic` works via inheritance. This fails whether or not `from
__future__ import annotations` is en
Change by FHTMitchell :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue43923>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from FHTMitchell :
Every object which has a corresponding dunder protocol also implements said
protocol with one exception:
>>> 'hello'.__str__()
'hello'
>>> (3.14).__float__()
3.14
>>> (101).__int__()
101
>>
New submission from FHTMitchell :
Minor issue. Using the ',b', ',o' or ',x' raises the error
ValueError("Cannot specify ',' or '_' with 'x'.",)
(or equivalently for 'b' and 'o'). However, it is possible
New submission from FHTMitchell :
In python 2.7 if you run the following code you get an error (as you would
expect)
Python 2.7.14 | packaged by conda-forge | (default, Dec 25 2017, 01:17:32) [MSC
v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credi
FHTMitchell added the comment:
Apologies if I wasn't clear. I understand that
def f():
yield 1
return
is valid python. What I'm saying, if you follow the link, is that
def f():
yield 1
return 2 # not the argument
should not be considered valid python according
FHTMitchell added the comment:
Whoops I understand. Reclosed.
--
resolution: -> not a bug
status: open -> closed
___
Python tracker
<https://bugs.python.org/i