[C++-sig] Re: "print" member functions.
Hanz Meizer
steam at nurfuerspam.de
Wed Feb 25 15:34:22 CET 2004
Pierre Barbier de Reuille wrote:
> "print" being a reserved work, you cannot use it at all in python !!!
> As pyste is in python, you cannot use any object named "print" ...
> you'll have to change the C++ code or write a wrapper in C++
>
> On Wed, 2004-02-25 at 14:55, Hanz Meizer wrote:
>
[...]
>> print a.print()
>> ^
>>SyntaxError: invalid syntax
Hmmm, I think the python interpreter should figure that in this case,
print is a function name. But I already feared it wouldn't work out
without a wrapper :| Thanks anyways :)
H.
More information about the Cplusplus-sig
mailing list