Peter Otten wrote:

>>>> def SQL(sql):
> ...     print sql
> ...
>>>> a = SQL("module")
> module # that one was obvious
>>>> class A:
> ...     b = SQL("class")
> ...     def method(self, c=SQL("default arg")):
> ...             d = SQL("method")
> ...

You are my hero. Indeed very cool!
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to