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

Alan Gauld alan.gauld at btinternet.com
Tue Dec 16 02:03:55 CET 2008


"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 




More information about the Tutor mailing list