[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:
[Python-Dev] def ... decorate

	
  • Next message: [Python-Dev] def ... decorate
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  • More information about the Python-Dev mailing list

    Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

    Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant