What other languages use the same data model as Python?

Neil Cerutti neilc at norwich.edu
Thu May 5 13:39:03 EDT 2011


On 2011-05-05, harrismh777 <harrismh777 at charter.net> wrote:
> ... saying that 'C' does not support pass-by-reference because
> you have to direct the compiler with the '&' and '*' characters
> is a little like saying that
>
>       Python does not support decorations ! ...
>
>
> ...  because you have to direct the interpreter with some
>
>
> @ bogus-decorator-syntax
>
>
>       I want Python to support decorations automatically !

You do have to declare decorators when defining them, but they
are called automatically when you call the decorated function,
with no special syntax required. C pointers don't automatically
dereference themselves.

-- 
Neil Cerutti



More information about the Python-list mailing list