[Tutor] what does the "@" operator mean?

Wolfram Kraus wolfram.kraus at fen-net.de
Wed Dec 17 16:14:57 CET 2008


Am 16.12.2008 02:03, Alan Gauld schrieb:
> 
> "Marc Tompkins" <marc.tompkins at gmail.com> wrote
> 
>> If you're just starting out in Python, decorators can be hard to get
>> your head around...
> 
> I've been using Python for oover 10 years and still find decorators
> hard to get my head around! :-)
> 
> I confess I'm not a fan, they go against the Python spirit of
> explicit is best in my opinion. If I'm calling a function I like to
> know I'm calling a function... I know they make the code look
> pretty but IMHO they are a pain to debug and I'm never totally
> convinced I've got it exactly right.
> 
> Alan G

Just found this via dzone.org: 
http://gumuz.nl/weblog/simple-python-decorator-classes/

Very interesting read.

HTH,
Wolfram



More information about the Tutor mailing list