[Python-Dev] def ... decorate (original) (raw)
Josiah Carlson jcarlson at uci.edu
Fri Aug 13 21:02:22 CEST 2004
- Previous message: [Python-Dev] def ... decorate
- Next message: [Python-Dev] def ... decorate
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] def ... decorate
- Next message: [Python-Dev] def ... decorate
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]