Python wrapper for C++ STL?
shindich at my-deja.com
shindich at my-deja.com
Fri Dec 8 20:56:06 EST 2000
In article <C0gY5.126062$U46.4232859 at news1.sttls1.wa.home.com>,
"Greg Jorgensen" <gregj at pobox.com> wrote:
> "Edward C. Jones" <edcjones at erols.com> wrote:
>
> > Has anyone written a Python wrapper for the C++ Standard Template
Library?
>
> C++ templates are compile-time constructs, not run-time features.
Templates
> are analogous to macros in C. They are not library functions that can
be
> wrapped up and called from Python.
>
> --
> Greg Jorgensen
> Deschooling Society
> Portland, Oregon, USA
> gregj at pobox.com
>
>
With all due respect, what would be wrong with a definition like
std::map<PyObject*, PyObject*>? Obviously there is no type safety here.
But Python is not type safe.
Regards,
Alex Shindich
visit http://www.shindich.com/
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list