summaryrefslogtreecommitdiffstats
path: root/Doc/library/sys.rst
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-09-01 18:54:56 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-09-01 18:54:56 (GMT)
commitfce7fd6426519a2897330c03da7eb889232bf681 (patch)
treeafe2ba5ce7020f102d7c5b5e568643b2e76199ad /Doc/library/sys.rst
parentb0fa831d1e073624d28aa403496f122e2f35697a (diff)
downloadcpython-fce7fd6426519a2897330c03da7eb889232bf681.zip
cpython-fce7fd6426519a2897330c03da7eb889232bf681.tar.gz
cpython-fce7fd6426519a2897330c03da7eb889232bf681.tar.bz2
Issue #9549: sys.setdefaultencoding() and PyUnicode_SetDefaultEncoding()
are now removed, since their effect was inexistent in 3.x (the default encoding is hardcoded to utf-8 and cannot be changed).
Diffstat (limited to 'Doc/library/sys.rst')
-rw-r--r--Doc/library/sys.rst12
1 files changed, 0 insertions, 12 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index 79652ea..09dd844 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -712,18 +712,6 @@ always available.
:func:`setswitchinterval` instead.
-.. function:: setdefaultencoding(name)
-
- Set the current default string encoding used by the Unicode implementation. If
- *name* does not match any available encoding, :exc:`LookupError` is raised.
- This function is only intended to be used by the :mod:`site` module
- implementation and, where needed, by :mod:`sitecustomize`. Once used by the
- :mod:`site` module, it is removed from the :mod:`sys` module's namespace.
-
- .. Note that :mod:`site` is not imported if the :option:`-S` option is passed
- to the interpreter, in which case this function will remain available.
-
-
.. function:: setdlopenflags(n)
Set the flags used by the interpreter for :cfunc:`dlopen` calls, such as when