Module Expr Str ImportFrom alias alias alias alias Import alias Import alias FunctionDef arguments args defaults body Expr Str Return BoolOpOr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Expr Str Return BoolOpOr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Expr Str If Call NameLoad NameLoad Str body Return BoolOpOr SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num SubscriptLoad Call AttributeLoad NameLoad attr Index Num Str Return BoolOpOr SubscriptLoad Call AttributeLoad NameLoad attr Index Num Str decorator_list FunctionDef arguments args defaults body Expr Str If Call NameLoad NameLoad Str body Return BoolOpOr SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num SubscriptLoad Call AttributeLoad NameLoad attr Index Num Str Return BoolOpOr SubscriptLoad Call AttributeLoad NameLoad attr Index Num Str decorator_list FunctionDef arguments args defaults body Expr Str Return BoolOpOr SubscriptLoad Call AttributeLoad NameLoad attr Index Num Str decorator_list FunctionDef arguments args defaults body Expr Str Return BoolOpOr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr NameLoad Str body Expr Str Assign NameStore BoolOpOr NameLoad Call NameLoad If BoolOpOr CompareLt AttributeLoad NameLoad attr TupleLoad Num UnaryOpNot Call NameLoad NameLoad Str body Return Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Return Lambda arguments args NameParam defaults Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list
N/A N/A Encodings support

This is the only module from which functions obtaining encoding should be 
exported. Note: you should always care about errors= argument since it is not 
guaranteed that encoding returned by some function can encode/decode given 
string.

All functions in this module must always return a valid encoding. Most of them 
are not thread-safe.
 __future__ unicode_literals division absolute_import print_function N/A sys N/A locale get_preferred_file_name_encoding N/A N/A N/A N/A N/A Get preferred file name encoding
	 N/A N/A N/A N/A sys getfilesystemencoding N/A N/A locale getpreferredencoding utf-8 N/A get_preferred_file_contents_encoding N/A N/A N/A N/A N/A Get encoding preferred for file contents
	 N/A N/A N/A N/A locale getpreferredencoding utf-8 N/A get_preferred_output_encoding N/A N/A N/A N/A N/A Get encoding that should be used for printing strings

	.. warning::
		Falls back to ASCII, so that output is most likely to be displayed 
		correctly.
	 N/A N/A hasattr locale LC_MESSAGES N/A N/A N/A N/A N/A N/A locale getlocale N/A locale LC_MESSAGES N/A 1 N/A N/A N/A locale getdefaultlocale N/A 1 ascii N/A N/A N/A N/A N/A locale getdefaultlocale N/A 1 ascii N/A get_preferred_input_encoding N/A N/A N/A N/A N/A Get encoding that should be used for reading shell command output

	.. warning::
		Falls back to latin1 so that function is less likely to throw as decoded 
		output is primary searched for ASCII values.
	 N/A N/A hasattr locale LC_MESSAGES N/A N/A N/A N/A N/A N/A locale getlocale N/A locale LC_MESSAGES N/A 1 N/A N/A N/A locale getdefaultlocale N/A 1 latin1 N/A N/A N/A N/A N/A locale getdefaultlocale N/A 1 latin1 N/A get_preferred_arguments_encoding N/A N/A N/A N/A N/A Get encoding that should be used for command-line arguments

	.. warning::
		Falls back to latin1 so that function is less likely to throw as 
		non-ASCII command-line arguments most likely contain non-ASCII 
		filenames and screwing them up due to unidentified locale is not much of 
		a problem.
	 N/A N/A N/A N/A N/A locale getdefaultlocale N/A 1 latin1 N/A get_preferred_environment_encoding N/A N/A N/A N/A N/A Get encoding that should be used for decoding environment variables
	 N/A N/A N/A N/A locale getpreferredencoding utf-8 N/A get_unicode_writer N/A N/A stream encoding errors N/A N/A sys stdout None replace N/A N/A Get function which will write unicode string to the given stream

	Writing is done using encoding returned by 
	:py:func:`get_preferred_output_encoding`.

	:param file stream:
		Stream to write to. Default value is :py:attr:`sys.stdout`.
	:param str encoding:
		Determines which encoding to use. If this argument is specified then 
		:py:func:`get_preferred_output_encoding` is not used.
	:param str errors:
		Determines what to do with characters which cannot be encoded. See 
		``errors`` argument of :py:func:`codecs.encode`.

	:return: Callable which writes unicode string to the given stream using 
	         the preferred output encoding.
	 N/A encoding N/A encoding N/A get_preferred_output_encoding N/A N/A N/A N/A sys version_info N/A 3 N/A N/A hasattr stream buffer N/A N/A N/A N/A N/A s N/A N/A N/A stream write N/A N/A s encode encoding errors N/A N/A N/A N/A N/A s N/A N/A N/A N/A stream buffer write N/A N/A s encode encoding errors N/A