Cesare Di Mauro wrote:
However, I don't agree with the FAQ on this point. I think that a
> Pascal-like with statement can be achieved, even with a dynamic > language such as Python, and in a simple way.
It's not so much a matter of whether it *can* be done, but whether there's any substantial need for it. I don't believe there is in Python, because you can always put a reference to the target object into a succinctly-named local and access it through that. You can't always do that in Pascal, because it provides no way of obtaining a pointer a record that wasn't heap-allocated. -- Greg _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com