[PyKDE] SIP: MappedType for pointers?

Jim Bublitz jbublitz at nwinternet.com
Wed Mar 22 15:21:47 GMT 2006


On Wednesday 22 March 2006 06:28, Hans-Peter Jansen wrote:
> Am Mittwoch, 22. März 2006 14:19 schrieb Giovanni Bajo:
> > Jim Bublitz <jbublitz at nwinternet.com> wrote:
> > > Same as the following, except "%MappedType wchar_t" and other
> > > obvious changes.
> >
> > Many thanks Jim. For some reason, I had thought that %MappedType
> > wouldn't work for pointers... never mind!
> >
> > >     if (!sipCpp)
> > >         Py_INCREF (Py_None);
> > >         return Py_None;
> >
> > This is either a bug in your sample code, or an editing mistake :)
>
> Obviously, Jim codes more Python than C++ these times..

Yep, I had to look at it a little bit before noticing the missing {}.

Thanks for the heads up.

Jim




More information about the PyQt mailing list