Lazy attributes for Python objects

Edit Package python-lazy

Lazy attributes are computed attributes that are evaluated only once, the first time they are used. Subsequent uses return the results of the first call. They come handy when code should run
* late, i.e. just before it is needed, and
* once, i.e. not twice, in the lifetime of an object.

You can think of it as deferred initialization. The possibilities are endless.

Refresh
Refresh
Source Files
Filename Size Changed
lazy-1.6.tar.gz 0000010562 10.3 KB
python-lazy.changes 0000001898 1.85 KB
python-lazy.spec 0000001929 1.88 KB
Latest Revision
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1131731 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 7)
- update to 1.6:
  * Implement ``lazy.__set_name__()`` which helps in cases like
  * ``foo=lazy(_foo)``.
  * Pin sphinx and sphinx-rtd-theme versions in docs extra.
  * Fix stray characters in keywords.

  * Allow type checkers to infer the type of a lazy attribute
  * Replace deprecated python setup.py test in tox.ini
  * Remove deprecated test_suite from setup.py
  * Move metadata to setup.cfg and add a pyproject.toml file
  * Include tests in sdist but not in wheel
Comments 0
openSUSE Build Service is sponsored by