2007-01-08 | paulb | file changeset files shortlog | Added an exception to the locally defined function names rule: within a class definition, methods should not be accessible via their plain names alone (ie. like functions). |
paulb@169 | 1 | def f(): |
paulb@169 | 2 | class C: |
paulb@169 | 3 | pass |
paulb@169 | 4 | return C |
paulb@169 | 5 | |
paulb@169 | 6 | c = f() |