[C++-sig] Trying to implement subscriptable type in c++.

2009-12-22 Thread Anita A
Hi all, I am trying to implement a subscriptable type in c++ (equivalent to python dict), but I get a 'type is unsubscriptable' error. Here is a minimal code sample I tried: -- #include #include #include "pyerror.hpp"

Re: [C++-sig] [Py++] Include additional code with ctypes code generator

2009-12-22 Thread Roman Yakovenko
On Tue, Dec 22, 2009 at 8:28 PM, Nikolaus Rath wrote: > Have you had the time to do this yet? If not, I'll just manually add the > required lines by rewriting the file after it has been generated. Just > let me know. Sorry, I forgot about this :-( I suggest you to rewrite the file and I will let

Re: [C++-sig] [Py++] Include additional code with ctypes code generator

2009-12-22 Thread Nikolaus Rath
Roman Yakovenko writes: > On Mon, Dec 14, 2009 at 4:00 PM, Nikolaus Rath wrote: >> Hello, >> >> Is there a way to add additional code to the output generated by the >> ctypes code generator? Specifically, I would like to add some special >> comments to prevent the autogenerated files being checke