. Python 2.1 function attributes

Neil Schemenauer nas at arctrix.com
Sat Jan 27 11:33:52 EST 2001


On Sat, Jan 27, 2001 at 06:01:27PM -0500, Tim Peters wrote:
> You might like this new 2.1 feature better then, best illustrated by
> example:
> 
> >>> def f(\d+)(i):
> ...     return int(\1) + 1
> ...
> >>> f12(6)
> 18

Cool.  People can't say there are no revolutionary new features
in 2.1 now.

  Neil ;-)




More information about the Python-list mailing list