[Python-Dev] properties on modules?

Skip Montanaro skip@pobox.com
Mon, 13 Jan 2003 13:04:13 -0600


    Guido> [Brian Q]
    >> Presumably, he would prefer this syntax:
    >> 
    >> start = time.now
    >> 
    >> to:
    >> 
    >> start = time.now()

    Guido> Aha.

    >> The .NET framework implements "now" as a property rather than a function
    >> and I find it distasteful for some reason. 

    Guido> I have to agree with you -- I am -1 on such a feature.

"now" as "time.time()" is a specific example which Neil admitted was a bit
contrived.  I think the question is still open whether or not modules should
be able to support properties, though I do think the ball is back in his
court to come up with a less contrived example.

Skip