Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • pygobject pygobject
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 179
    • Issues 179
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 28
    • Merge requests 28
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • pygobjectpygobject
  • Issues
  • #143

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 Mar 18, 2018 by Christoph Reiter
Assignee
Assign to
Time tracking