[C++-sig] "print" member functions.

Hanz Meizer steam at nurfuerspam.de
Wed Feb 25 14:55:05 CET 2004


Hi,

I have classes that contain print member functions. If I try to call 
those from python, I get:

     print a.print()
                 ^
SyntaxError: invalid syntax

I can't rename them, either:
------------ test.pyste ------------
rename(test.print, "print_me")
------------------------------------

gives:
------------------------------------
     execfile(interface, context)
   File "test.pyste", line 15
     rename(test.print, "print_me")
                         ^
SyntaxError: invalid syntax
make: *** [test.cpp] Error 1
------------------------------------

How can I get this print function wrapped and callable from python? (it 
returns void).

H.





More information about the Cplusplus-sig mailing list