[Python-projects] PyLint + rpython: Error reported "Using unavailable builtin"
Sylvain Thénault
sylvain.thenault at logilab.fr
Mon Mar 5 22:22:17 CET 2007
On Monday 05 March à 22:15, Maarten ter Huurne wrote:
>
> Hi,
>
> When checking the following program with rpython enabled:
> ===
> print sum(range(10))
> ===
>
> It reports the following error:
> ===
> $ pylint -rn --enable-checker=rpython testcase4.py
> No config file found, using default configuration
> ************* 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.
--
Sylvain Thénault LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Python et calcul scientifique: http://www.logilab.fr/science
More information about the Python-Projects
mailing list