python/nondist/peps pep-0289.txt,1.7,1.8
![](https://secure.gravatar.com/avatar/7b43f399ad17706bee01be8cd20165b0.jpg?s=120&d=mm&r=g)
Update of /cvsroot/python/python/nondist/peps In directory sc8-pr-cvs1:/tmp/cvs-serv25019 Modified Files: pep-0289.txt Log Message: Remove discussion of loop variables in the form x[a] or x.a. Deprecation of that form is a subject encompassing all for-loop constructs and is not specific to this PEP. Also, most people are not aware that those forms are even possible, so it is prudent to not even bring it up as that would inevitably increase the number of people trying it in their code. Index: pep-0289.txt =================================================================== RCS file: /cvsroot/python/python/nondist/peps/pep-0289.txt,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** pep-0289.txt 23 Oct 2003 12:51:30 -0000 1.7 --- pep-0289.txt 23 Oct 2003 16:17:29 -0000 1.8 *************** *** 153,159 **** print x # prints "hello", not "c" - (Loop variables may also use constructs like x[i] or x.a; this form - may be deprecated.) - 4. All free variable bindings are captured at the time this function is defined, and passed into it using default argument values. For --- 153,156 ----
participants (1)
-
rhettingerīŧ users.sourceforge.net