code: def digit(uni_char, default_value=None):
      
      uni_char = unicod(uni_char)  # Force to Unicode.
      if default_value is not None:
          return unicodedata.digit(uni_char, default_value)
      else:
          return unicodedata.digit(uni_char)
docs: Returns the digit value assigned to the Unicode character uni_char as
      integer. If no such value is defined, default is returned, or, if not
      given, ValueError is raised.