This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients daniel.urban, lukasz.langa, ncoghlan, pitrou, pje, python-dev
Date 2013-05-25.19:18:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1369509484.2562.14.camel@fsol>
In-reply-to <CALeMXf53qhohJJX3kSagXwBoab30Aji5gef6aZ1VWQHd_Ea6Lw@mail.gmail.com>
Content
> This doesn't make any sense.  Once you've exposed an API that gives
> out a value for this, you can't change the implementation in a way
> that doesn't involve handing out a value... in which case you can just
> as easily set it as an attribute.

Because it may be computed whenever the function call is done, rather
than stored statically somewhere. The caching scheme will not
necessarily remain forever identical.

> If there
> must be a way to change it later to be dynamic, it can always be
> exposed as an attribute of an object that could grow a property later,
> e.g.

That's a possibility indeed.
History
Date User Action Args
2013-05-25 19:18:12pitrousetrecipients: + pitrou, pje, ncoghlan, daniel.urban, lukasz.langa, python-dev
2013-05-25 19:18:12pitroulinkissue16832 messages
2013-05-25 19:18:12pitroucreate