[PEAK] Bug(?) Rules istype is upgraded to isinstance

Sergey Schetinin maluke at gmail.com
Mon Mar 3 10:20:15 EST 2008

It seems that istype(cls) is not converted to a type comparision but
to an `isinstance' check when upgrading the matching engine. Here's
the code from the PEAK-Rules source:

when(type_to_test, (istype,))
def istype_to_test(typ, expr, engine):
    return Test(IsInstance(expr), typ)

Best Regards,
Sergey Schetinin

http://s3bk.com/ -- S3 Backup
http://word-to-html.com/ -- Word to HTML Converter

More information about the PEAK mailing list