Python-like C++ library

W

Will McGugan

Hi folks,

I'm forced to use C++ and STL at work, and consequently miss the ease
of use of Python. I was wondering if there was a C++ library that
implemented the fundamental objects of Python as close as possible,
perhaps using STL underneath the hood.

Too clarify, Im not looking to interface C++ with Python in any way,
just to emulate the strings / containers / slicing etc. I did google
for it but my search terms were too vague...

Thanks in advance,

Will McGugan
 
B

bearophileHUGS

Will McGugan:
I was wondering if there was a C++ library that
implemented the fundamental objects of Python as close as possible,
perhaps using STL underneath the hood.
Too clarify, Im not looking to interface C++ with Python in any way,
just to emulate the strings / containers / slicing etc.

Maybe you can use the ShedSkin libraries, it maps Python to C++:
http://shedskin.sourceforge.net/

EasySTL is unrelated to Python, but you may find it useful:
http://userpages.umbc.edu/~bcorfm1/software.html

Bye,
bearophile
 
S

Simon Forman

Will said:
Hi folks,

I'm forced to use C++ and STL at work, and consequently miss the ease
of use of Python. I was wondering if there was a C++ library that
implemented the fundamental objects of Python as close as possible,
perhaps using STL underneath the hood.

Too clarify, Im not looking to interface C++ with Python in any way,
just to emulate the strings / containers / slicing etc. I did google
for it but my search terms were too vague...

Thanks in advance,

Will McGugan

Forgive me if this is stupid, but python's written in C.. couldn't you
use python itself or parts of it as a library?

I know you said you're not "looking to interface C++ with Python in any
way", but why emulate if you could include? (Again, if this is stupid,
sorry! :) )

Peace,
~Simon
 
C

catalin.marinas

Will said:
I'm forced to use C++ and STL at work, and consequently miss the ease
of use of Python. I was wondering if there was a C++ library that
implemented the fundamental objects of Python as close as possible,
perhaps using STL underneath the hood.

Not copying Python but it has many useful features (and high quality
code) - http://www.boost.org/

Catalin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top