[Zope] __init__ is not a valid variable name because it starts with a "_"

Dieter Maurer dieter@handshake.de
Sun, 30 Jun 2002 23:40:34 +0200


Adrian May writes:
 > 
 > Thats what zope said when I made a new python script and entered something
 > like:
 > 
 > class AdsSecondClass:
 >    def __init__()
 >     blah blah
 > 
 > as inspired by some example code.
 > 
 > Why?
Because attributes starting with "_" are not accessible by Python scripts.


 > All I really want is to store four integers on the server and have them
 > updated by surfer actions. 
You may consider using a dictionary.


Dieter