File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,20 @@ to 1 and ``-bb`` sets :c:data:`Py_BytesWarningFlag` to 2.
207207   Set by the :option: `-u ` option and the :envvar: `PYTHONUNBUFFERED `
208208   environment variable.
209209
210+ .. c :var :: Py_UTF8Mode 
211+ 
212+ 
213+    uses the UTF-8 encoding by default; changes `sys.stdin ` and
214+    `sys.stdout ` error handlers to ``surrogateescape ``. By default,
215+    it is enabled in the POSIX locale.
216+ 
217+    Set by the :option: `-X ` ``utf8 `` option and the :envvar: `PYTHONUTF8 `
218+    environment variable.
219+ 
220+    See :pep: `540 ` for more details.
221+ 
222+    .. versionadded :: 3.7 
223+ 
210224.. c :var :: Py_VerboseFlag 
211225
212226
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments