Function to execute only once

Benji York benji at benjiyork.com
Fri Oct 14 16:07:28 EDT 2005


PyPK wrote:
> now I want execute() function to get executed only once. That is the
> first time it is accessed.

How about just calculating the value at import time?
--
Benji York



More information about the Python-list mailing list