[Python-Dev] properties on modules?

Michael Hudson mwh@python.net
13 Jan 2003 18:15:45 +0000


Neil Schemenauer <nas@python.ca> writes:

> 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?

This would make referring to a variable inside and outside a module do
different things, no?  Urg.

Cheers,
M.

-- 
  Just point your web browser at http://www.python.org/search/ and
  look for "program", "doesn't", "work", or "my". Whenever you find
  someone else whose program didn't work, don't do what they
  did. Repeat as needed.    -- Tim Peters, on python-help, 16 Jun 1998