[pyar] NoneType object is not suscriptable

Julián F. Nuñez julian.dia3 en gmail.com
Mie Dic 2 14:15:52 ART 2015


> ¿Es cuestion del codigo o esta mas alla de eso?

Por lo que entiendo es una cuestión del componente o librería que estás
usando. No tiene documentación el componente? En general te debería decir
cuales son los valores válidos que puede devolver. Si None es uno de ellos,
te tiene que explicar cuales son las circunstancias en las cuales puede
pasar y en general como manejarlo. Si None no es uno de ellos entonces a lo
mejor es un bug del componente.

Por lo que veo a lo mejor en Android? Fijate si esto te ayuda:

http://stackoverflow.com/questions/9394041/reading-gps-values-with-python-in-sl4a-does-not-work
http://www.mithril.com.au/android/doc/LocationFacade.html

Saludos.

-- 
"I do not mean for a moment that we ought not to think, and think hard,
about improvements in our social and economic system.  What I do mean is
that all that thinking will be mere moonshine unless we realize that
nothing but the courage and unselfishness of individuals is ever going to
make any system work properly."  -- C. S. Lewis
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20151202/8ad416ac/attachment-0001.html>


More information about the pyar mailing list