Bengt Richter wrote:
So, e.g., for

 >>> presets = dict(a=1, b=2, deftime=__import__('time').ctime())

in the decorator args, the next version will act as if the decorated
function had the source code

 >>> print '%s = __frompresets__' % ', '.join(sorted(presets))
 a, b, deftime = __frompresets__

for the current version, except that it will be hidden.

Cool! Keep us posted. I assume you'll put this into the Cookbook?

Steve
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to