3 ms·
Python totally is designed as an embeddable language; that's why there's a giant section called "Embedding Python in Another Application" in the reference manua
by nostrademons 12y ago
Python totally is designed as an embeddable language; that's why there's a giant section called "Embedding Python in Another Application" in the reference manual:
https://docs.python.org/2/extending/embedding.html https://docs.python.org/2/extending/embedding.html
It's just that at the time Python was created, multithreading was not something you generally did in a C program. The POSIX thread standard didn't come out until 1996. Python was started in 1989, first released in 1991, and reached 1.0 in 1994. Common rules of thumb for dealing with multithreaded programs (eg. "Avoid global or static data") didn't really become popularized until the 2000s, and many programmers in less well-informed circles still don't know them.
- cheald 12y agoWhat I mean is that while Python's embeddable, it wasn't designed specifically as an embeddable language in the same way that Javascript or Lua were.