PyGlove v0.4.4
This release contains refinements of object behaviors, including typing, formatting, serialization, hashing and etc. Besides, it introduces pg.io as an abstracted interface for operating with different file systems.
New Sub-packages
Enhancements
-
Typing
-
Object Formatting:
- Introduce
__str_format_args__and__repr_format_args__attributes for customize str/repr behavior forpg.Formattable. (7e0a98b) - Introduced
pg.str_formatandpg.repr_formatcontext manager to control repr/str formatting for symbolic objects. (0a2ea6) - Add argument
markdownforpg.str_formatandpg.repr_formatto quote the formatted object. (fd6ea8d) - Added argument
use_inferredforpg.Symbolicformatting. (fdd3d3d) - Escape strings with
'and\ninpg.format. (0489642) - Better formatting for field docstr of multiple lines. (900d677)
- Introduce
-
Object Serialization:
-
Object Behaviors: