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.5.tar.gz 0000009385 9.17 KB
python-lazy.changes 0000001400 1.37 KB
python-lazy.spec 0000001930 1.88 KB
Revision 5 (latest revision is 7)
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 1059500 from Matej Cepl's avatar Matej Cepl (mcepl) (revision 5)
- Update to version 1.5
  * Allow type checkers to infer the type of a lazy attribute 
  * Add Python 3.8-3.11 to tox.ini. Remove old Python versions
  * 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 
- use .tar.gz instead of .zip for better compression ratio
Comments 0
openSUSE Build Service is sponsored by