[PEAK] Rules clarification

Sergey Schetinin maluke at gmail.com
Thu Feb 28 02:44:17 EST 2008

An yet more questions. Is it intended that if any methods get called
according to @after rules the return value of the original function is

from peak.rules import *

def a(o):
    return True

@after(a, (int,))
def a_int(o):

assert a(None)
assert a(0) # AssertionError

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