lazaridis_com wrote: > I would like to fulfill the following task: > > The construct: > > if __name__ == '__main__': > > should be changed to something like: > > if identifier.name == '__main__': > > The term "identifier" should be selected based on the meaning of the > __double-underscore-enclosure__ of the entities. > > - > > What I would need to know is: > > a) what would be the correct term for "identifier"? > > b) is there a standard way to implement such an access mechanism in an > generic way? > > c) is there an advanced mechanism available, which would allow to > implement a prefix (e.g. %name) > > - > > Context: > http://case.lazaridis.com/wiki/Lang > http://case.lazaridis.com/ticket/6
I'm sorry, you post makes very little sense. If all you want to do is implement a less "ugly" verision of "if __name__ == '__main__':", a quick search on google should turn up several ways. Peace, ~Simon -- http://mail.python.org/mailman/listinfo/python-list