Is it possible to create a shortcut ?

Stef Mientki stef.mientki at
Sat Mar 21 16:42:50 CET 2009

Steven D'Aprano wrote:
> On Sat, 21 Mar 2009 11:55:04 +0100, Stef Mientki wrote:
>> I would like to make a shortcut for this:
>>     self.Brick.Par [ self.EP[0] ] =
> That's a pretty ugly expression there. (Mind you, I've seen worse.) And a 
> non-standard naming convention. I'm just sayin'.
I fully agree, that's exactly why I want a simpler form ;-)

This is part of a virtual machine so it need to be fast,
and with the fewest possible interface names.

Yes, you might wonder why I can't solve such a simple (after knowing the 
answer) question myself,
while I'm designing a kind of virtual machine.
And when I'm working on the top level of the virtual machine,
I forget all the tiny details of Python itself,
which is btw the goal of the virtual machine ;-)

I took some Peters code, and it works like a charm.

thanks guys.

Stef Mientki

More information about the Python-list mailing list