GNOME Bugzilla – Bug 667701
ast.py List clone fails
Last modified: 2015-02-07 17:02:14 UTC
It seems that clone of List (giscanner/ast.py, http://git.gnome.org/browse/gobject-introspection/tree/giscanner/ast.py#n657) was copied from the clone of Array and contains invalid fields (zero-terminated, size and length_param_name). This results in: AttributeError: 'List' object has no attribute 'zeroterminated'
Created attachment 205023 [details] [review] The patch
Review of attachment 205023 [details] [review]: Looks correct...but what triggered this? How did you encounter the error? This kind of stuff is useful for people later; can you add something to the commit message? Also you could now change the code to read: return List(self.name, self.element_type)
I don't really know when it hits this code path exactly. I get the exception when doing a scan of a (fairly extensive) library that I wrote.
Created attachment 209846 [details] [review] Remove array fields from List.clone
Updated patch, can this please be committed?
I tweaked the commit message slightly. Thanks for the patch!
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]