Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Understanding "help()" output?
#5
The brackets do indicate that that parameter is optional.  bytes, in particular, has a huge amount of docs, and if you go down further, you can see what it expects the encoding to be...
 |
 |  decode(self, /, encoding='utf-8', errors='strict')
 |      Decode the bytes using the codec registered for encoding.
 |
 |      encoding
 |        The encoding with which to decode the bytes.
 |      errors
 |        The error handling scheme to use for the handling of decoding errors.
 |        The default is 'strict' meaning that decoding errors raise a
 |        UnicodeDecodeError. Other possible values are 'ignore' and 'replace'
 |        as well as any other name registered with codecs.register_error that
 |        can handle UnicodeDecodeErrors.
Quote

Top Page

Messages In This Thread
Understanding "help()" output? - by Athenaeum - Sep-29-2017, 05:06 PM
RE: Understanding "help()" output? - by ichabod801 - Sep-29-2017, 05:21 PM
RE: Understanding "help()" output? - by Larz60+ - Sep-29-2017, 05:32 PM
RE: Understanding "help()" output? - by Athenaeum - Sep-29-2017, 09:32 PM
RE: Understanding "help()" output? - by nilamo - Sep-29-2017, 09:47 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  understanding output of bytes/raw data rootVIII 3 422 Aug-01-2019, 01:00 PM
Last Post: rootVIII
  help on understanding this output landlord1984 1 1,097 Mar-08-2017, 08:29 PM
Last Post: zivoni

Forum Jump:


Users browsing this thread: 1 Guest(s)