Kendall Clark wrote:
> Folks,
>
> One thing I'd really like to see in Python 3000 is support for first-
> class symbols,
>
> def web_dispatch("/bank-account", :GET, retrieve_account): pass
class SymGen:
def __getattr__(self, name):
return intern(name)
sym = SymGen()
web_dispatch("/bank-account", sym.GET, retrieve_account)
--
Greg
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com