On Tuesday 18 October 2005 11:12 pm, Giovanni Bajo wrote:
> Phil Thompson <[EMAIL PROTECTED]> wrote:
> >> behaviour:
> > import sip
> > isinstance(sip.wrapper, object)
> >>
> >> True
> >>
> > issubclass(sip.wrapper, object)
> >>
> >> True
> >>
> >> Dunno if it's related to the fix.
> >
Phil Thompson <[EMAIL PROTECTED]> wrote:
>> behaviour:
> import sip
> isinstance(sip.wrapper, object)
>>
>> True
>>
> issubclass(sip.wrapper, object)
>>
>> True
>>
>> Dunno if it's related to the fix.
>
> Why is it strange?
It's uncommon for an object to both be an instance *and* a su
On Tuesday 18 October 2005 9:13 pm, Giovanni Bajo wrote:
> Phil Thompson <[EMAIL PROTECTED]> wrote:
> > It will be fixed in tonight's snapshot.
> >
> > It will now raise an exception saying that Foo should be derived from
> > sip.wrapper. If you change it so it is, hasattr() returns False as
>
> ex
Phil Thompson <[EMAIL PROTECTED]> wrote:
> It will be fixed in tonight's snapshot.
>
> It will now raise an exception saying that Foo should be derived from
> sip.wrapper. If you change it so it is, hasattr() returns False as
expected.
I have not tried that snapshot yet. Anyway, I noticed this s
On Thursday 13 October 2005 1:45 pm, Giovanni Bajo wrote:
> Hello,
>
> this snippet causes a segfault on my computer (using Python 2.4.2):
> >>> import sip
> >>> sip.SIP_VERSION_STR
>
> '4.3.1'
>
> >>> class Foo(object):
>
> ... __metaclass__ = sip.wrappertype
> ...
>
> >>> hasattr(Foo, "bar")
Hello,
this snippet causes a segfault on my computer (using Python 2.4.2):
>>> import sip
>>> sip.SIP_VERSION_STR
'4.3.1'
>>> class Foo(object):
... __metaclass__ = sip.wrappertype
...
>>> hasattr(Foo, "bar")
Segmentation fault
--
Giovanni Bajo
_