[C++-sig] Re: [BPL] python::interpreter proposal
Dirk Gerrits
dirk at gerrits.homeip.net
Thu Jan 2 18:04:45 CET 2003
Dirk Gerrits wrote:
> object interpreter::run(object code_string);
>
> Run the Python code in the string extract<std::string>(code_string) with
> this (sub-)interpreter and return the result.
Perhaps there should be
object interpreter::run(char const* code);
object interpreter::run(std::string const& code);
overloads too, for efficiency? And perhaps even:
object interpreter::run(compiled_string const& code);
for a class compiled_string which wraps Py_CompileString.
Just some brainstorming...
Dirk Gerrits
More information about the Cplusplus-sig
mailing list