Nick Coghlan wrote:
> > A tool like
> > mypy will catch this for you.
> > Perhaps I should raise this as a mypy issue then?
> Aye, a typechecker failing to catch this situation would definitely be a
> reasonable issue to raise.
Roger that, I've raised this on mypy: https://github.com/python/mypy/i
Guido van Rossum wrote:
> This is most definitely a language issue, not just a CPython issue -- the
> rules around hashability and (im)mutability are due to the language
> definition, not the whim of an implementer.
I was not aware of this, I assumed it was a implementation issue because
I knew C
I'm not sure if this is the right place to bring this up, python-ideas seemed
like language issues and python-dev seemed like CPython issues.
There are several unhashable builtin types present in CPython, as of today the
ones I've noticed are: lists, dicts, sets, and bytearrays.
Two of these are