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/032131.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 14:36:28 -0600
    Samuele> From: "Skip Montanaro" <skip@pobox.com>
    >> 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.

    Samuele> if module.prop would be a property
    Samuele> then

    Samuele> from module import prop

    Samuele> would probably not do what one may expect...

    Samuele> I think this kill it.

On the other hand, it might be a rather elegant way to prevent people from
accessing volatile module-level objects using "from module import
prop". <0.5 wink>

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