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/2008-June/080300.html below:

[Python-Dev] PEP 8 and optional underscores

[Python-Dev] PEP 8 and optional underscores [Python-Dev] PEP 8 and optional underscoresskip at pobox.com skip at pobox.com
Thu Jun 12 17:21:05 CEST 2008
    >> Should it be...
    >> 
    >> 2.n : .is_alive()
    >> 2.n+1 : .is_alive() (deprecated), .alive (recommended)
    >> 2.n+2 : .alive

    Barry> Personally, I'd go with a property .is_alive

I'm not fond of using a property for this since it can lull you into the
false belief that what you are doing is less expensive than it really is
(attribute access vs method call).  I think this is a case where explicit is
better than implicit.

Skip
More information about the Python-Dev mailing list

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