Ivan Voras wrote:
> I'm looking for a construct that's similar to (Turbo) Pascal's
> "with" statement. 

Please have a look at the archives -- this is discussed here from
time to time. I think last time it was a Visual BASIC fan that
asked a similar question.

> I know it can be almost always done by using a temporary variable:
> 
> tmp = some.big.structure.or.nested.objects.element
> tmp.member1 = something
> tmp.member2 = something
> 
> but this looks ugly to me.)

Such big, javaish names are much uglier, IMHO.

Regards,


Björn

-- 
BOFH excuse #17:

fat electrons in the lines

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to