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
-- http://www.willmcgugan.com 3 1681
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
Will McGugan wrote:
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
-- http://www.willmcgugan.com
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
Will McGugan wrote:
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Emile van Sebille |
last post by:
QOTW (in the OS agnostic category): "There is a (very popular) Python
package out there which exposes the win32 api. I'm not sure what it's
called. (win32api? pythonwin? win32all?)" -- Francis...
|
by: Kurt B. Kaiser |
last post by:
Patch / Bug Summary
___________________
Patches : 259 open ( -5) / 2573 closed (+17) / 2832 total (+12)
Bugs : 745 open ( +0) / 4405 closed (+21) / 5150 total (+21)
RFE : 150 open...
|
by: Kurt B. Kaiser |
last post by:
Patch / Bug Summary
___________________
Patches : 241 open ( -6) / 2622 closed (+26) / 2863 total (+20)
Bugs : 764 open ( +6) / 4453 closed (+38) / 5217 total (+44)
RFE : 150 open...
|
by: Josiah Carlson |
last post by:
QOTW: "Python, the language that wraps tightly around a problem and
swallows it whole." -- Raymond Hettinger
Because it is so important, this link is re-posted for the future
(originally...
|
by: Josiah Carlson |
last post by:
QOTW: "XML with elementtree is what makes me never have think about
XML again." -- Istvan Albert
"'Plays well with others' was a strong motivator for Python's design, and
that often means...
|
by: Cameron Laird |
last post by:
QOTW: "Really, of course, the only things you need to make explicit are the
ones that readers don't understand." -- Steve Holden
"Working with unicode objects in Python is so transparent, it's...
|
by: Simon Brunning |
last post by:
QOTW: "It's not perfect, but then nobody in this thread has offered
anything even remotely resembling perfect documentation for regular
expressions yet. <wink>" - Peter Hansen
"Python's flavor...
|
by: Simon Brunning |
last post by:
QOTW: "Python is more concerned with making it easy to write good programs
than difficult to write bad ones." - Steve Holden
"Scientists build so that they can learn. Programmers and engineers...
|
by: Diez B. Roggisch |
last post by:
QOTW: "If I wanted to write five lines instead of one everywhere in a
Python program, I'd use Java." -- Paul Rubin
http://groups.google.com/group/comp.lang.python/msg/6fac4f3022acd1fa?hl=de&
"i...
|
by: Magnus Lycka |
last post by:
QOTW: "*what* the value is is defined by the operations that the object
supports (via its type).
*how* the value is represented inside the object is completely
irrelevant; a Python...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |