parameters: (self, key, defaultValue=None)
docstring: Returns named result matching the given key, or if there is no
          such name, then returns the given ``defaultValue`` or ``None`` if no
          ``defaultValue`` is specified.
  
          Similar to ``dict.get()``.
  
          Example::
  
              integer = Word(nums)
              date_str = integer("year") + '/' + integer("month") + '/' + integer("day")
  
              result = date_str.parseString("1999/12/31")
              print(result.get("year")) # -> '1999'
              print(result.get("hour", "not specified")) # -> 'not specified'
              print(result.get("hour")) # -> None
docstring_summary: Returns named result matching the given key, or if there is no
          such name, then returns the given ``defaultValue`` or ``None`` if no
          ``defaultValue`` is specified.
docstring_tokens: Returns named result matching the given key or if there is no such name then returns the given defaultValue or None if no defaultValue is specified .
function: def get(self, key, defaultValue=None):
          """
          Returns named result matching the given key, or if there is no
          such name, then returns the given ``defaultValue`` or ``None`` if no
          ``defaultValue`` is specified.
  
          Similar to ``dict.get()``.
  
          Example::
  
              integer = Word(nums)
              date_str = integer("year") + '/' + integer("month") + '/' + integer("day")
  
              result = date_str.parseString("1999/12/31")
              print(result.get("year")) # -> '1999'
              print(result.get("hour", "not specified")) # -> 'not specified'
              print(result.get("hour")) # -> None
          """
          if key in self:
              return self[key]
          else:
              return defaultValue
function_tokens: def get ( self , key , defaultValue = None ) : if key in self : return self [ key ] else : return defaultValue