parameters: (cls, hour=0, minute=0, second=0, microsecond=0, tzinfo=None, *, fold=0)
return_statement: return self
docstring: Constructor.
  
          Arguments:
  
          hour, minute (required)
          second, microsecond (default to zero)
          tzinfo (default to None)
          fold (keyword only, default to zero)
docstring_summary: Constructor.
docstring_tokens: Constructor .
function: def __new__(cls, hour=0, minute=0, second=0, microsecond=0, tzinfo=None, *, fold=0):
          """Constructor.
  
          Arguments:
  
          hour, minute (required)
          second, microsecond (default to zero)
          tzinfo (default to None)
          fold (keyword only, default to zero)
          """
          if (isinstance(hour, (bytes, str)) and len(hour) == 6 and
              ord(hour[0:1])&0x7F < 24):
              # Pickle support
              if isinstance(hour, str):
                  try:
                      hour = hour.encode('latin1')
                  except UnicodeEncodeError:
                      # More informative error message.
                      raise ValueError(
                          "Failed to encode latin1 string when unpickling "
                          "a time object. "
                          "pickle.load(data, encoding='latin1') is assumed.")
              self = object.__new__(cls)
              self.__setstate(hour, minute or None)
              self._hashcode = -1
              return self
          hour, minute, second, microsecond, fold = _check_time_fields(
              hour, minute, second, microsecond, fold)
          _check_tzinfo_arg(tzinfo)
          self = object.__new__(cls)
          self._hour = hour
          self._minute = minute
          self._second = second
          self._microsecond = microsecond
          self._tzinfo = tzinfo
          self._hashcode = -1
          self._fold = fold
          return self
function_tokens: def __new__ ( cls , hour = 0 , minute = 0 , second = 0 , microsecond = 0 , tzinfo = None , * , fold = 0 ) : if ( isinstance ( hour , ( bytes , str ) ) and len ( hour ) == 6 and ord ( hour [ 0 : 1 ] ) & 0x7F < 24 ) : # Pickle support if isinstance ( hour , str ) : try : hour = hour . encode ( 'latin1' ) except UnicodeEncodeError : # More informative error message. raise ValueError ( "Failed to encode latin1 string when unpickling " "a time object. " "pickle.load(data, encoding='latin1') is assumed." ) self = object . __new__ ( cls ) self . __setstate ( hour , minute or None ) self . _hashcode = - 1 return self hour , minute , second , microsecond , fold = _check_time_fields ( hour , minute , second , microsecond , fold ) _check_tzinfo_arg ( tzinfo ) self = object . __new__ ( cls ) self . _hour = hour self . _minute = minute self . _second = second self . _microsecond = microsecond self . _tzinfo = tzinfo self . _hashcode = - 1 self . _fold = fold return self