Advertisement

python for scripting

Started by March 27, 2003 06:30 PM
0 comments, last by MindCode 21 years, 7 months ago
I was looking into scripting languages recently to incorporate into my engine when I came across an interesting one called python (you''ve all heard of it). I''ve heard of python before but have never really looked into it. In fact I have never looked into many scripting languages before, but the features and flexibility that came with python just blew me away. I did what I found was necessary to get the python22.dll working with mingw, and it works and links and compiles and all that, but I was lost on where to go from there. How the heck do I execute scripts from this point? Now I''m not a newbie; I''ve been programming for awhile now (5 years). I just don''t have any experience with scripting languages. I''m making the assumption here that python has the ability to execute py scripts from within another language/program, and that it can also communicate with that language/program in order for the script to perform certain tasks. As far as I know that is the purpose of a scripting language. Am I wrong? I''ve been looking on the net, but tutorials on python are usually about the python language itself, and not how to interface it with another program. Anyone got some quick information for me here?
That's just my understanding; I could be wrong.
You should probably take a look at this: http://www.python.org/doc/current/ext/ext.html. This one will probably also come in handy: http://www.python.org/doc/current/api/api.html

As an alternative, you might find boost:ython interesting: http://www.boost.org/libs/python/doc/index.html


"If there is a God, he is a malign thug."
-- Mark Twain
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]

This topic is closed to new replies.

Advertisement