variable variables
James Mills
prologic at shortcircuit.net.au
Fri Jun 18 06:49:47 EDT 2010
On Fri, Jun 18, 2010 at 8:31 PM, someone <petshmidt at googlemail.com> wrote:
> I was looking for a "short way" to do it because I have a lot
> "some_object.attr.attr or some_object.other_attr.attr" in code. it
> looks like I cannot replace attr with just other variable and must
> type some_object.other_attr.attr or your solution which is however
> longer to type :)
It would actually help to see some code.
--James
More information about the Python-list
mailing list