[PEAK] PEAK-Rules bug

Sergey Schetinin maluke at gmail.com
Mon Jun 23 12:22:05 EDT 2008


Here's another bug.

(Using trunk)

>>> from peak.rules import *
>>>
>>> @abstract
... def f(a):
...     pass
...
>>> @around(f, "not isinstance(a, int)")
... def f(a):
...     print '!'
...
>>> f(None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 1, in f
  File "<generated code>", line 0, in f
  File "c:\python25\lib\site-packages\peak\rules\core.py", line 214, in __call__

    raise self.__class__(*self.args+(args,kw))  # XXX
peak.rules.core.NoApplicableMethods: ((None,), {})
>>>


-- 
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