"Marcin 'Qrczak' Kowalczyk" <[EMAIL PROTECTED]> wrote: > > Greg Ewing <[EMAIL PROTECTED]> writes: > > > So I'd like to propose that "def time" be modified > > slightly to mean "def time of the outermost function > > that is still inside the scopes containing all the > > names that the case expressions depend on". Not > > sure about the wording of that, but I hope you get the > > idea. In the above example, that would be the def time > > of f(), rather than g(). > > If it was possible to define constants (as opposed to variables), > including recognizing imported named constants, then the natural > semantics of switch (evaluate cases at the time of the switch) > would be easy to optimize.
You aren't saying anything that hasn't been said in this thread at least a dozen times. You are at least 3 weeks behind in this conversation. Start with the python-dev archives and catch up, or read the PEP. - Josiah _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com