Currently type(None) returns None if you call it with no args:
>>> print(type(None)()) None it'd be nice if it did the same regardless of args. currently it raises: >>> print(type(None)(1)) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: NoneType takes no arguments inspired by PEP 559: https://www.python.org/dev/peps/pep-0559/ >>> NoneType Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'NoneType' is not defined _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/7NZM6XGGX2OUZVG6HWJU43BXCCX5QYLX/ Code of Conduct: http://python.org/psf/codeofconduct/
