Module parser_utils
Source - ExtractFromPython
- Trait for types that can be extracted from Python with improved error messages.
- extract_binary_operands
- Generic function for extracting operands from binary operations.
- extract_list
- Generic function for extracting lists of items with error handling.
- extract_operator_type
- Generic function for extracting Python operator types with consistent error handling.
- extract_optional
- Generic function to safely extract optional attributes.
- extract_position_info
- Generic function to extract position information from AST nodes.
- extract_required_attr
- Extract a required attribute with enhanced error messaging
- extract_with_context
- Extract a value from PyAny with better error messaging
- extraction_error
- Helper function to create standardized error messages for failed extractions.
- get_attr_with_context
- Enhanced error handling utilities for parsing Python AST objects
Get an attribute from a Python object with better error messaging
- log_extraction
- Utility function for consistent logging during Python object extraction.