Are decorators really that different from metaclasses...
pm_mon at yahoo.com
Thu Aug 26 14:27:52 CEST 2004
Anthony Baxter wrote:
> On Thu, 26 Aug 2004 10:28:14 +0200, Paolo Veronelli
> <paolo.veronelli at yahoo.it> wrote:
> ignored). Do you intend that the double-under names would also be
> looked for in the same scopes? That is, what will this code do?
> def foo():
> __name__ = '%s_banana'%(__name__)
/exactly/ the same thing as
def foo(): pass
foo.__name__ = '%s_banana'%(foo.__name__)
More information about the Python-list