[C++-sig] pyste - integration

Jason.Sibthorpe at aculab.com Jason.Sibthorpe at aculab.com
Fri Sep 12 13:48:49 CEST 2003


Re : http://mail.python.org/pipermail/c++-sig/2003-September/005462.html

Hi,

I have constructed a simple example that illustrates my earlier email.

Try running pyste against test.pyste as it is.  test.cpp is the result.
All is well.

Of course in order to share (without duplicating the code) I would
like to import wrap() as a module.  Comment out the definition of
wrap in test.pyste and uncomment the import directive.

Try running pyste against test.pyste now.  All is not well as you will 
see.

Note that I have duplicated the code numerous times with slight modification
in wrap.py.  Each time resolving a problem.  The problems are those I
describe 
(poorly) in the aforementioned post.

As you will see it is not a PYTHONPATH issue.  I think it is somehow related
to the context that is created in pyste.py and used 
by 'execfile(interface, context)' in ExecuteInterface() (in pyste.py)

Any ideas?

The .zip just contains the files attached for convenience.
pyste is invoked with just test.pyste as an argument

Thanks
  

Jason Sibthorpe
Software Engineer
Aculab 
Tel: +44 (0) 1908 273 869
Fax: +44 (0) 1908 273 801
Email: jason.sibthorpe at aculab.com
Website: <http://www.aculab.com>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_case.zip
Type: application/octet-stream
Size: 2446 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20030912/648a2048/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrap.py
Type: application/octet-stream
Size: 1958 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20030912/648a2048/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.pyste
Type: application/octet-stream
Size: 349 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20030912/648a2048/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.h
Type: application/octet-stream
Size: 17 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20030912/648a2048/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.cpp
Type: application/octet-stream
Size: 522 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20030912/648a2048/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Jamfile
Type: application/octet-stream
Size: 990 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20030912/648a2048/attachment-0005.obj>


More information about the Cplusplus-sig mailing list