PyGlove 0.2.0
Enhancements:
pg.symbolic
:- Introducing
pg.Symbolic.sym_has
andpg.Symbolic.sym_get
to test/get node in sub-tree by path. - Introducing
pg.Symbolic.sym_field
andpg.Symbolic.sym_attr_field
to access thepg.typing.Field
definition for current/child symbolic value. pg.Symbolic.sym_getattr
now supports default value.pg.Symbolic.rebind
now supportspg.KeyPath
objects as keys.
- Introducing
Bug fixes:
pg.tuning
: Fixpg.tuning.Feedback.should_stop_early
crash on in-memory tuning backend.
New features:
- (experimental) Introducing
pg.composing
to handle algorithmic symbolic mutations.