GNOME Bugzilla – Bug 603536
Don't set default constructors for structures
Last modified: 2010-01-08 19:37:30 UTC
Confusing to the user and don't seem to play nice with overriding. In the future, we may think about a default constructor that takes as argument keywords to set the fields' initial values.
Created attachment 148864 [details] [review] Don't set a default constructor for structures Tests need to be updated too, probably.
Created attachment 149604 [details] [review] Don't set a default constructor for structures and update tests accordingly
The reason for this change is that setting __new__ in the metaclass doesn't let one overrides it afterwards, in a subclass (in my experience, at least, even though it seems weird).
Review of attachment 149604 [details] [review]: Looks good.
Review of attachment 149604 [details] [review]: Committed as b4189be2.