Decorator for Enforcing Argument Types

Paul McGuire ptmcg at austin.rr._bogus_.com
Thu Dec 21 15:57:56 EST 2006


"Chris" <chrisspen at gmail.com> wrote in message 
news:1166734180.455471.164910 at 79g2000cws.googlegroups.com...
> I'm not sure if this has been done before, but I couldn't easily find
> any prior work on Google, so here I present a simple decorator for
> documenting and verifying the type of function arguments.
> Feedback/suggestions/criticism is welcome.
>

They Python wiki has a page for decorator ideas/submissions, compare yours 
to this one:
http://wiki.python.org/moin/PythonDecoratorLibrary#head-308f2b3507ca91800def19d813348f78db34303e

-- Paul





More information about the Python-list mailing list