[Python-Dev] Re: [bug?] UserLong.py - pow(5, UserLong(3), 26) fails

Luke Kenneth Casson Leighton lkcl@samba-tng.org
Thu, 02 May 2002 10:26:41 +0000


dear michael,

i tried this:

class UserLong(object):
	...

which i presume is the means by which new-style classes are specified
(search google "new style python class" jumped into a tutorial:
 couldn't find an explicit place straight away).

i get a segmentation fault at line 1217 of Objects/typeobject.c,
because mro - type->tp_mro - is NULL.

uhm... :)

-- 
This email and any files transmitted with it, including replies and
forwarded copies subsequently transmitted from Aspex Technology
Limited, are confidential and solely for the use of the intended
recipient.  Any opinions expressed in this email are those of the
individual and not necessarily those of Aspex Technology Limited.  If
you are not the intended recipient, be advised that you have received
this email in error and that any use is strictly prohibited.  If you
have received this email in error, please notify us immediately by
e-mail and delete the original message without keeping any copies.

Aspex Technology Limited is registered in England and Wales No.3469577.
The registered office for Aspex Technology Limited is
York House, Cottingley Business Park, Bradford, BD16 1PF.