[C++-sig] Re: [BPL] python::interpreter proposal

David Abrahams dave at boost-consulting.com
Fri Jan 3 21:29:30 CET 2003

Dirk Gerrits <dirk at gerrits.homeip.net> writes:

> 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...

This is all premature optimization, IMO.  

                       David Abrahams
   dave at boost-consulting.com * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

More information about the Cplusplus-sig mailing list