This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients Hibou57, Roscoe R. Higgins, brett.cannon, docs@python, terry.reedy
Date 2016-01-30.01:39:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1454117980.9.0.295620738317.issue26205@psf.upfronthosting.co.za>
In-reply-to
Content
Would 'three or more' be any clearer than 'at least three'?  They mean the same, but the first seems better to me in this context.

The real problem with this section are a) the use of Guido's first person 'I' and b) statements that were not changed when nested scope were added, but should have been.

"If a name is declared global, then all references and assignments go directly to the middle scope containing the module’s global names."

The global scope is no longer the middle scope.  Roscoe pointed at this.  With that removed, the sentence says that if a name is declared global, assignments go to global scope.  This would be more meaningful if prefixed by a revised version of the following, which is several paragraphs down.

"A special quirk of Python is that – if no global statement is in effect – assignments to names always go into the innermost scope."

The special quirk part should go; 'global' would now have to be 'global or nonlocal', but I now think the following, preceeding the revised 'global' sentence above, would be better.

"By default, assignments to names always go into the innermost, local, namespace."

In other words, I think the sentence Roscoe flagged is the least of the problems with this section.
History
Date User Action Args
2016-01-30 01:39:41terry.reedysetrecipients: + terry.reedy, brett.cannon, docs@python, Hibou57, Roscoe R. Higgins
2016-01-30 01:39:40terry.reedysetmessageid: <1454117980.9.0.295620738317.issue26205@psf.upfronthosting.co.za>
2016-01-30 01:39:40terry.reedylinkissue26205 messages
2016-01-30 01:39:38terry.reedycreate