[Zope] Possible dictionary bug?

Jonathan Hobbs toolkit at magma.ca
Mon Aug 23 13:01:40 EDT 2004


----- Original Message ----- 
From: "Garito" <garito at sistes.net>
> I try these code in a Python Script:
> 
> A = dict()
> A['Example'] = 1
> 
> return A.update({'DoesItWorks': 'Perhaps'})
> 
> In the python interpreter it works fine but in the python script returns 
> None
> 
> Can anyone reproduce the problem?

In a python script try:

A = {}
A['example'] = 1
A.update({'DoesItWork' : 'yes'})
return A


HTH

Jonathan




More information about the Zope mailing list