News for hackers. Stuff that matters.
Re:Why Lua? by timtadh on Tuesday January 31, 2012 @09:36PM (#3536393)
yes.

    >>> class A(object):
    ...   def __getattribute__(self, key):
    ...     try: return object.__getattribute__(self, key)
    ...     except AttributeError: return lambda: 12
    ...
    >>> a = A()
    >>> a.asdf
    <function <lambda> at 0x7fbb8fb6f848>
    >>> a.asdf()
    12

There are no comments on this comment yet.