[Python-Dev] def ... decorate
Josiah Carlson
jcarlson at uci.edu
Fri Aug 13 21:02:22 CEST 2004
> I've lost track of all the decorator proposals. Anyone proposed something
> like this?
>
> def f { 'accepts' : (type1, type2), 'returns' : (int, str)} funcname (args):
>
> ? The decorator dictionary could span multiple lines, of course.
Basically yes. See Ka-Ping's listing of options here:
http://mail.python.org/pipermail/python-dev/2004-March/043685.html
- Josiah
More information about the Python-Dev
mailing list