[Zope] whats wrong with this code
Paul Zwarts
paz@oratrix.com
Thu, 8 Nov 2001 23:05:16 +0100
Hi Clark,
Creating a list in python is done with square brackets (I think?)
Foo = []
Foo[0] = 'bye'
And the sequence of a list starts with 0 (Am I learning yet?)
Regards,
Paul Zwarts
-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of
Clark OBrien
Sent: Thursday, November 08, 2001 10:23 PM
To: 'zope@zope.org'
Subject: [Zope] whats wrong with this code
These two lines of code won't work in zope scripts
item = {}
item['hello'] = 'bye'
they give a len() of unsized object error
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )