[Python-projects] PyLint + rpython: TypeError: tuple indices must be integers

Sylvain Thénault sylvain.thenault at logilab.fr
Wed Mar 7 10:05:08 CET 2007


On Monday 05 March à 21:45, Maarten ter Huurne wrote:
> 
> Hi,
> 
> When checking the following program with rpython enabled:
> ===
> def f(x):
>         a = ()[x]
> ===
> 
> I get the following error:
> ===
> in tl_getitem
>     return self.nodes[index]
> TypeError: tuple indices must be integers

fixed in the repository

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