Symbols as parameters?

Alf P. Steinbach alfps at
Thu Jan 21 11:38:19 CET 2010

* Carl Banks:
> On Jan 20, 11:43 pm, Martin Drautzburg <Martin.Drautzb... at>
>> What I am really looking for is a way
>>         - to be able to call move(up)
>>         - having the "up" symbol only in the context of the function call
> Short answer is, you can't do it.

On the contrary, it's not difficult to do.

I provided an example in my answer to the OP (first reply in the thread).

However, it's IMHO an abuse of the language, not something that one should do.

Cheers & hth.,

- Alf

More information about the Python-list mailing list