Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Python 2.0 / Python 2.2

Reply
Thread Tools

Python 2.0 / Python 2.2

 
 
Gina Schuffenhauer
Guest
Posts: n/a
 
      07-01-2003
Hallo newsgroup,

I have some questions concerning Python 2.2.

First question:
I try to port source code from Python 2.0 to Python 2.2.The following source
code works with Python 2.0. If I compile it with Python 2.2, the modul "tci"
is not imported. "tci" is a python module written by us. How can I change
the source code to get it working with Python 2.2.?

Py_Initialize();

PyStr = Py_BuildValue("s", TCIHome);

PyModule = PyImport_ImportModule("sys");
PyList = PyObject_GetAttrString(PyModule, "path");
PyList_Insert(PyList, 0, PyStr);
if (PyErr_Occurred())
return 0;

TCIModule = PyImport_ImportModule("tci");

Second question:

I want to embed Pythonwin in a C++-Application. Where can I find a
win32uiHostGlue.h to access win32ui.pyd version 2.1.0.152?


--
Mit freundlichen Grüßen / best regards
Gina Schuffenhauer







 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: [Python-Dev] [python-committers] [RELEASED] Python 3.2 rc 1 R. David Murray Python 0 01-17-2011 02:23 PM
Re: [Python-Dev] [python-committers] [RELEASED] Python 3.2 rc 1 Senthil Kumaran Python 0 01-17-2011 10:31 AM
Re: [Python-Dev] [Python-3000] RELEASED Python 2.6a1 and 3.0a3 Martin v. Löwis Python 0 03-01-2008 10:51 PM
Re: [Python-Dev] [Python-3000] RELEASED Python 2.6a1 and 3.0a3 Paul Moore Python 0 03-01-2008 10:39 PM
Searching comp.lang.python/python-list@python.org (was: UTF-8) skip@pobox.com Python 0 03-10-2007 02:50 PM



Advertisments