Gtk.TreePath.__str__() returns None for path with depth 0
Submitted by Jeffery To
Link to original bug (#789514)
Description
This throws a TypeError ("__str__ returned a non-string (type NoneType)")
:
p = Gtk.TreePath.new() # creates a TreePath with depth 0
str(p)
I would suggest __str__()
return the empty string in this case, but I'm not sure if this should apply to to_string() as well.
I have pygobject 3.22 installed but I believe this applies to git master as well.
Edited by Christoph Reiter