[Python-de] obj.xyz <> obj['xyz']
Jochen Schulz
ml at well-adjusted.de
Fr Dez 21 14:58:32 CET 2007
Roland M. Kruggel:
>
> Traceback (most recent call last):
> File "<string>", line 1, in <string>
> AttributeError: 'Ob' object has no attribute 'undef'
>
> Ein "xx.undef" ruft wohl nicht __getitem__ auf. Wie kann ich das
> lösen?
http://docs.python.org/ref/attribute-access.html
Attributzugriff ist etwas anderes, als die Containeremulation.
(Nebenbei erlaube ich mir auch zu erwähnen, dass ich das Ganze etwas
fragwürdig finde, aber egal. :))
J.
--
I throw away plastics and think about the discoveries of future
archeologists.
[Agree] [Disagree]
<http://www.slowlydownward.com/NODATA/data_enter2.html>
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname : signature.asc
Dateityp : application/pgp-signature
Dateigröße : 189 bytes
Beschreibung: Digital signature
URL : <http://mail.python.org/pipermail/python-de/attachments/20071221/0b56c14a/attachment.pgp>
Mehr Informationen über die Mailingliste python-de