expectedparrot / edsl

Design, conduct and analyze results of AI-powered surveys and experiments. Simulate social science and market research with large numbers of AI agents and LLMs.
https://docs.expectedparrot.com
MIT License
97 stars 14 forks source link

QuestionBase doctest fails after switch to Restricted Python for QuestionFunctional #565

Open johnjosephhorton opened 1 month ago

johnjosephhorton commented 1 month ago

You can re-create by running the doctest for QuestionBase

Screenshot 2024-05-27 at 9 24 33 AM
zer0dss commented 1 month ago

@johnjosephhorton Restricted Python doesn't support inner or lambda functions. This is why the test fails. The combo function is an inner function and is not supported.