[Python-projects] PyLint + rpython: Error reported "Using unavailable builtin"
Maarten ter Huurne
maarten.ter.huurne at philips.com
Tue Mar 6 11:13:48 CET 2007
syt at logilab.fr wrote on 2007-03-05 10:22:17 PM:
> On Monday 05 March à 22:15, Maarten ter Huurne wrote:
> > ************* Module testcase4
> > E: 1: Using unavailable builtin 'sum'
> > ===
> >
> > I get similar errors on lots of files, complaining about keywords
> 'lambda' and
> > 'yield' and builtins 'callable', 'classmethod', 'dict', 'enumerate',
'file',
> > 'filter', 'frozenset', 'getattr', 'globals', 'id', 'iter',
'long','object',
> > 'open', 'property', 'reduce', 'reload', 'repr', 'reversed',
'set','setattr',
> > 'sorted', 'staticmethod', 'sum', 'super' and 'unicode'.
>
> that's expected, those builtins are not available in restricted python.
What does that mean for the results I get from PyLint in rpython mode?
There is no way our program can work while using none of those keywords
and builtins. If I would disable messages E12xx, are the other messages I
get still reliable? In other words, if the program being checked is
ordinary Python instead of Restricted Python, will the rpython checker be
able to say something useful about it?
I saw some W12xx messages in files with E12xx messages, all of them are of
this form:
W1201:<line>:<class>.__<name>__: special method __<name>__ has to be
called explicitly
Bye,
Maarten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.logilab.org/pipermail/python-projects/attachments/20070306/0fce825f/attachment-0001.htm
More information about the Python-Projects
mailing list