path

A path is a way to get to an object through traversal.

A path can be represented in several ways:

  • A Unicode string of '/'-separated components.
  • A tuple of names, each name being a Unicode string representing one step of the traversal.

A path can be either absolute or relative.

  • An absolute path, also called a location, always starts from the root. It has a string representation that starts with a /, and a tuple representation that starts with an empty name.
  • A relative path only has meaning in the context of another reference location. It may be empty (empty string or empty tuple), which means that it refers to the same location as the reference location.



( 98 subscribers )