summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/array_default_migrations
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2020-04-26 21:42:07 +0300
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-06-12 05:45:44 +0200
commitae94077e7d884c26fc92b4b0d248a3b4a541ee44 (patch)
tree20a12d79e4402a5cb717908597f2d2dadf2c621d /tests/postgres_tests/array_default_migrations
parentb214845f0f8d973e527e41730ca5770fad51ec5d (diff)
Made proxy class in lazy() prepare eagerly.
Previously, the proxy class was prepared lazily: lazy_identity = lazy(identity, int) lazy_identity(10) # prepared here lazy_identity(10) This has a slight advantage that if the lazy doesn't end up getting used, the preparation work is skipped, however that's not very likely. Besides this laziness, it is also inconsistent in that the methods which are wrapped directly (__str__ etc.) are prepared already when __proxy__ is defined, and there is a weird half-initialized state. This change it so that everything is prepared already on the first line of the example above.
Diffstat (limited to 'tests/postgres_tests/array_default_migrations')
0 files changed, 0 insertions, 0 deletions