06.01.19 18:05, Chris Angelico пише:
Which I read, and they do not explain the assignment of None. The only reference is that the tracker issue mentions having a test case to ensure that it's happening, which is further proof that it's intentional, but still fails to explain *why*.
This is explained on a discussion on the Python-3000 mailing list. I provided a code example which would fail if do not perform such assignment. The test, mentioned in the tracker issue, contains similar code.
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com