PyGlove 0.2.0
Enhancements:
pg.symbolic:- Introducing
pg.Symbolic.sym_hasandpg.Symbolic.sym_getto test/get node in sub-tree by path. - Introducing
pg.Symbolic.sym_fieldandpg.Symbolic.sym_attr_fieldto access thepg.typing.Fielddefinition for current/child symbolic value. pg.Symbolic.sym_getattrnow supports default value.pg.Symbolic.rebindnow supportspg.KeyPathobjects as keys.
- Introducing
Bug fixes:
pg.tuning: Fixpg.tuning.Feedback.should_stop_earlycrash on in-memory tuning backend.
New features:
- (experimental) Introducing
pg.composingto handle algorithmic symbolic mutations.