Éric Araujo <mer...@netwok.org> added the comment:

The only blocks that create scopes are modules, class and functions.
if, try, with, for, while, etc are blocks but not new scopes.

For the tutorial it could be nice to have an explicit mention and example of 
this.

----------
nosy: +eric.araujo

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43458>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to