
Oct. 21, 2003
11:51 p.m.
Guido van Rossum wrote:
[...] Walter suggested 'global.x = 23' which looks reasonable; unfortunately my parser can't do this without removing the existing global statement from the Grammar: after seeing the token 'global' it must be able to make a decision about whether to expand this to a global statement or an assignment without peeking ahead, and that's impossible.
Couldn't this be solved by making 'global<whitespace>.' a token? Should {get|has}attr(global, 'foo') be possible? Bye, Walter Dörwald