Yarko, I think those underscored keys come from intermediate results. Not sure about those double and triple ones. An improved version (of either J's or M's) would have to work with a copy of globals:
import copy def getName(obj): g=copy.copy(globals()) return([k for k,v in g.items() if v is obj]+[None])[0] I don't get any underscores this way, how about you?. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---