473,385 Members | 1,465 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Extending/Embedding Confusion

I am trying to learn how to extend and/or embed Python. I have looked
at the document "Extending and Embedding the Python Interpreter" and
also "Python/C API Reference Manual. In the examples shown in
"Extending..." there are some things I ma not familiar with so I turn
to the index in the Reference Manual, but they are not listed. For
example, PyEval_CallObject and PyDict_GetAttrString. My question is
this: Is the documentation out of date or is the index not complete?
Where can I get information about these things?

Secondly, I am really struggling with understanding how to Extend/Embed
Python. The examples given in the documentation are not as helpful as
I would hope. Does anyone know of additional examples on the web that
will shed some light on this issue? I have tried Google, but haven't
yet been successful in finding additional examples that help.
Thanks,
Jeremy

Aug 4 '06 #1
1 1831
Depending on what you are trying to do you might be better off to start by
using Pyrex, Boost::Python or Swig.

http://www.cosc.canterbury.ac.nz/gre.../python/Pyrex/
http://www.boost.org/libs/python/doc/
http://www.swig.org/

-Chris
On Fri, Aug 04, 2006 at 11:51:14AM -0700, jeremito wrote:
I am trying to learn how to extend and/or embed Python. I have looked
at the document "Extending and Embedding the Python Interpreter" and
also "Python/C API Reference Manual. In the examples shown in
"Extending..." there are some things I ma not familiar with so I turn
to the index in the Reference Manual, but they are not listed. For
example, PyEval_CallObject and PyDict_GetAttrString. My question is
this: Is the documentation out of date or is the index not complete?
Where can I get information about these things?

Secondly, I am really struggling with understanding how to Extend/Embed
Python. The examples given in the documentation are not as helpful as
I would hope. Does anyone know of additional examples on the web that
will shed some light on this issue? I have tried Google, but haven't
yet been successful in finding additional examples that help.
Thanks,
Jeremy

--
http://mail.python.org/mailman/listinfo/python-list
Aug 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mark Harrison | last post by:
Is the document Extending and Embedding the Python Interpreter http://www.python.org/doc/current/ext/ext.html easily available in any other form? Pointers to either PDF or a single web page...
4
by: Alicia Haumann | last post by:
I accidentally sent this to webmaster@python.org, so this could be a duplicate if "webmaster" forwards it to this list. :{ Hi, there. Thanks for any help that can be offered. I've been...
1
by: Tommy Nordgren | last post by:
I want to write an application that embeds and extends (at least) the Python and Perl interpreters. Now i want to find as much as possible about the Python tools used for extending and embedding...
1
by: Richard Townsend | last post by:
In the "Extending and Embedding" part of the Python documentation: section 5.4 "Extending Embedded Python" - it describes how to use a Python extension module from Python that is embedded in a C...
3
by: Marco Meoni | last post by:
Hi all! I've a problem with a C++ class that has to be included in a python application. One way to do it is Extending and Embedding the Python Interpreter Now i have 2 questions 1) Is there a...
5
by: vbgunz | last post by:
Hello everyone. I own two books. Learning Python and Python in a nutshell. When cross referencing the two books to try and clarify the ideas behind extending methods and delegates, this is where...
6
by: Qun Cao | last post by:
Hi Everyone, I am a beginner on cross language development. My problem at hand is to build a python interface for a C++ application built on top of a 3D game engine. The purpose of this python...
3
by: dmoore | last post by:
Hi Folks: I have a question about the use of static members in Python/C extensions. Take the simple example from the "Extending and Embedding the Python Interpreter" docs: A simple module...
0
by: Tim Spens | last post by:
--- On Fri, 6/27/08, Tim Spens <t_spens@yahoo.comwrote: I think I know where the problem is but I'm unsure how to fix it. When I call Register_Handler(...) from python via...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.