A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20160907/ad0eaba0/attachment.html below:

<div dir="ltr"><div>Hi all,<br><br></div>The documentation at <a href="https://docs.python.org/3/reference/simple_stmts.html">https://docs.python.org/3/reference/simple_stmts.html</a> says that:<br><div><div><br>"Names listed in a global statement must not be used in the same code block textually preceding that global statement"<br><br></div><div>But then later:<br></div><div><br>"CPython implementation detail: The current implementation does not enforce the two restrictions,<br>but programs should not abuse this freedom, as future implementations may enforce them..."<br><br>Code like this<br><br>def f():<br>  Â  x = 1<br>  Â  global x<br><br>gives SyntaxWarning for several releases, maybe it is time to make it a SyntaxError?<br><br></div><div>(I have opened an issue for this <a href="http://bugs.python.org/issue27999">http://bugs.python.org/issue27999</a> I will submit a patch soon).<br></div><div><br>--<br>Ivan</div></div></div>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4