Re: PEAK-Rules bug
"Sergey Schetinin" <[email protected]>
| Newsgroups | gmane.comp.python.peak |
|---|---|
| Message-ID | <[email protected]> |
This IS a bug, right? On Mon, Jun 23, 2008 at 19:22, Sergey Schetinin <[email protected]> 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