[Python-Dev] properties on modules? (original) (raw)

Guido van Rossum guido@python.org
Mon, 13 Jan 2003 13:36:02 -0500


It would be really cool if this worked:

import time now = property(lambda m: time.time()) Obviously a silly example but I hope the idea is clear. Is there a reason this couldn't be made to work?

The idea is not clear to me at all. Why can't you say

now = lambda: time.time()

???

--Guido van Rossum (home page: http://www.python.org/~guido/)