This parameter is always set either to 'None' or to an explicitly defined value.
The docs says If its value is None, then sys.defaultencoding is used instead. In the first place the module 'sys' doesn't provide none property none function with name defaultencoding. It has only function sys.getdefaultencoding(). In the second, it the value set to 'None' explicitly, the data actually are written with encoding ascii despite a default encoding provided by sys is utf-8:
