[Zope3-Users] Re: Why IField.default type is Field ? IField.default
is value of Field then it can't to be the field
klein.stephane at gmail.com
Fri Sep 29 04:10:35 EDT 2006
2006/9/29, Philipp von Weitershausen <philipp at weitershausen.de>:
> KLEIN Stéphane wrote:
> > 2006/9/29, Philipp von Weitershausen <philipp at weitershausen.de>:
> >> KLEIN Stéphane wrote:
> >> > I don't understand why Field.default type is Field ?
> >> What else do you suggest?
> > NoneType
> To express what?
> > or Object
> Object requires an interface that the object should provide. Default
> values don't necessarily have to conform to an interface.
Simply, if I do :
myfield.default = u"foobar"
u"foobar" isn't Field type but String. Then I don't understand why
default type is Field. Well, I know, Python isn't typed language...
therefore it's working.
More information about the Zope3-users