
Hallo,
Wie kann ich eine Variable testen ob es eine Liste ist oder ein String?
Die Variable sei l: Entweder
if type(l) == list
oder
from types import ListType if type(l) == ListType
Benjamin ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
_______________________________________________ python-de maillist - python-de@python.net http://python.net/mailman/listinfo/python-de

Benjamin Kaminski schrieb:
Hallo,
Wie kann ich eine Variable testen ob es eine Liste ist oder ein String?
Die Variable sei l: Entweder
if type(l) == list
oder
from types import ListType if type(l) == ListType
Benjamin
D'Oh - ich wusste es ist billig - besten dank
_______________________________________________ python-de maillist - python-de@python.net http://python.net/mailman/listinfo/python-de
participants (2)
-
Benjamin Kaminski
-
Tino Schmedemann