[PEAK] Re: PEAK-Rules bug
Sergey Schetinin
maluke at gmail.com
Tue Jun 24 18:08:24 EDT 2008
This IS a bug, right?
On Mon, Jun 23, 2008 at 19:22, Sergey Schetinin <maluke at gmail.com> wrote:
> 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
>
--
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