Helper wrappers for graceful_serialization.
Summary
Functions
Return a dict containing a generator and a regular value.
Return a dict containing a compiled regex pattern.
Return a list containing a compiled regex pattern.
Return a list with multiple compiled patterns at different positions.
Return a deeply nested structure with a compiled pattern.
Return a pattern compiled with flags to show flag preservation.
Return a tuple containing a compiled pattern.
Return a list of validation configurations with compiled regex patterns.
Functions
Return a dict containing a generator and a regular value.
Return a dict containing a compiled regex pattern.
Return a list containing a compiled regex pattern.
Return a list with multiple compiled patterns at different positions.
Return a deeply nested structure with a compiled pattern.
Return a pattern compiled with flags to show flag preservation.
Return a tuple containing a compiled pattern.
Return a list of validation configurations with compiled regex patterns.
This is a real-world pattern: storing compiled patterns alongside metadata for form validation, input parsing, API request validation, etc.
Expected behavior: The outer list and inner dicts should be preserved, with only the 'pattern' field becoming a ref (re.Pattern is non-serializable).