dave bonner is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
dave bonner @rascalking

there's nothing like reading through production python code and finding where they use exec and eval to load in a module and run a method whose names they get at runtime.

folks, python has some pretty amazing introspection capabilities that let you do this without opening a max-max-truck-sized security hole.

*checks history on this file*

yes, even in python 2.6, you could still avoid eval/exec.

· Web · 2 · 5