For example, In JavaScript, not defined value will return 'undefined'. This language specification makes language easier to use, but also harder to debug.
I think to make NoneErorr (or going to be UndefinedError or something) in languages like JavaScript is nice. Because programmers often don't know value he/she is going to use is undefined. But in Python, we have NameError. And what you want to do can be written with NameError + AttributeErorr. I don't think this proposal is worth changing language so big. Nagata Yamato _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/GVFH5HQ6ODR7CPQ4HZN3X3FVECKUJZPP/ Code of Conduct: http://python.org/psf/codeofconduct/