A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-January/032120.html below:

[Python-Dev] properties on modules?

[Python-Dev] properties on modules? [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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4