On 8/13/07, Bjoern Schliessmann
[EMAIL PROTECTED] wrote:
BJörn Lindqvist wrote:
unpedagogically not separated from ordinary functions.
Decorators _are_ ordinary functions. Remember the syntactic sugar
in this thread?
Remember also that syntactic sugar is important. Case in point, the
OP
On Aug 11, 8:30 pm, Helmut Jarausch [EMAIL PROTECTED] wrote:
Hi,
are decorators more than just syntactic sugar in python 2.x and what
about python 3k ?
Well, I argued may times that syntactic sugar is important (all Turing
complete languages differs by syntactic sugar only) and having
On Aug 11, 8:30 pm, Helmut Jarausch [EMAIL PROTECTED] wrote:
How can I find out the predefined decorators?
I dare to say that's not easy. Since decorators are just(?)
syntactical sugar they don't obtain a particular semantics expressed
by distinctive declarative elements. Unlike generators
On 8/11/07, Helmut Jarausch [EMAIL PROTECTED] wrote:
How can I find out the predefined decorators?
There are two in the standard library, @classmethod for declaring
class methods and @staticmethod for declaring static methods. They are
listed at the built ins page
BJörn Lindqvist [EMAIL PROTECTED] wrote:
On 8/11/07, Helmut Jarausch [EMAIL PROTECTED] wrote:
How can I find out the predefined decorators?
There are two in the standard library, @classmethod for declaring
class methods and @staticmethod for declaring static methods. They are
listed at the
Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote:
On Sat, 11 Aug 2007 20:30:54 +0200, Helmut Jarausch wrote:
are decorators more than just syntactic sugar in python 2.x and what
about python 3k ?
They are just syntactic sugar.
@spam
def ham():
pass
is the same as
def ham
Michele Simionato [EMAIL PROTECTED] writes:
On Aug 11, 8:30 pm, Helmut Jarausch [EMAIL PROTECTED] wrote:
Hi,
are decorators more than just syntactic sugar in python 2.x and what
about python 3k ?
Well, I argued may times that syntactic sugar is important (all Turing
complete languages
BJörn Lindqvist wrote:
unpedagogically not separated from ordinary functions.
Decorators _are_ ordinary functions. Remember the syntactic sugar
in this thread?
Regards,
Björn
--
BOFH excuse #338:
old inkjet cartridges emanate barium-based fumes
--
On Aug 13, 7:46 pm, Alexander Schmolck [EMAIL PROTECTED] wrote:
Michele Simionato [EMAIL PROTECTED] writes:
Well, I argued may times that syntactic sugar is important (all Turing
complete languages differs by syntactic sugar only)
Although I agree that mere syntactic sugar matters, I think
Hi,
are decorators more than just syntactic sugar in python 2.x and what
about python 3k ?
How can I find out the predefined decorators?
Many thanks for your help,
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
--
http://mail.python.org
On Sat, 11 Aug 2007 20:30:54 +0200, Helmut Jarausch wrote:
are decorators more than just syntactic sugar in python 2.x and what
about python 3k ?
They are just syntactic sugar.
@spam
def ham():
pass
is the same as
def ham():
pass
ham = spam(ham)
How can I find out the predefined
11 matches
Mail list logo