parameters: (self)
return_statement: return l
docstring: A list of the path’s extensions.
  
          >>> VirtualPath('/my/library/setup.py').suffixes
          ['.py']
          >>> VirtualPath('/my/library.tar.gz').suffixes
          ['.tar', '.gz']
          >>> VirtualPath('/my/library').suffixes
          []
docstring_summary: A list of the path’s extensions.
docstring_tokens: A list of the path’s extensions .
function: def suffixes(self):
          """A list of the path’s extensions.
  
          >>> VirtualPath('/my/library/setup.py').suffixes
          ['.py']
          >>> VirtualPath('/my/library.tar.gz').suffixes
          ['.tar', '.gz']
          >>> VirtualPath('/my/library').suffixes
          []
  
          """
          name = self.name
          prevPos = len(name)
          l = []
  
          while True:
              pos = name.rfind('.', 0, prevPos)
              if pos == -1:
                  break
              else:
                  l.insert(0, name[pos:prevPos])
                  prevPos = pos
  
          return l
function_tokens: def suffixes ( self ) : name = self . name prevPos = len ( name ) l = [ ] while True : pos = name . rfind ( '.' , 0 , prevPos ) if pos == - 1 : break else : l . insert ( 0 , name [ pos : prevPos ] ) prevPos = pos return l