alexmojaki / pure_eval

Safely evaluate AST nodes without side effects
MIT License
42 stars 14 forks source link

Fix compatibility of check_copy_ast_without_context with Py 3.13b1 #17

Closed frenzymadness closed 2 months ago

frenzymadness commented 2 months ago

Resolves: https://github.com/alexmojaki/pure_eval/issues/16

I've tried to split the regex for better readability but feel free to tell me your preference.

frenzymadness commented 2 months ago

An alternative regex might be r"(, |(?<=\())ctx=(Load|Store|Del)\(\)".

alexmojaki commented 2 months ago

Thanks!