multi-core-python icon indicating copy to clipboard operation
multi-core-python copied to clipboard

Interpreter.run() should also accept a function, a method or a code object

Open thedrow opened this issue 5 years ago • 1 comments

Right now, forcing the user to write explicit code when calling run() isn't convenient. We could accept a code object instead or fetch it from a callable using inspect.

thedrow avatar Apr 20 '20 08:04 thedrow

This is a good idea, but one which will take a bunch more work than the minimal functionality PEP 554 specifies. See https://www.python.org/dev/peps/pep-0554/#interpreter-call.

We can circle back to this once PEP 554 is accepted and landed.

ericsnowcurrently avatar Apr 20 '20 20:04 ericsnowcurrently