[Python-checkins] cpython (3.5): Delete outdated paragraph about OptimizedUnicode again

berker.peksag python-checkins at python.org
Tue Jun 14 05:51:09 EDT 2016


https://hg.python.org/cpython/rev/e02298f48b49
changeset:   102022:e02298f48b49
branch:      3.5
parent:      102019:0885477fecfd
user:        Berker Peksag <berker.peksag at gmail.com>
date:        Tue Jun 14 12:51:07 2016 +0300
summary:
  Delete outdated paragraph about OptimizedUnicode again

sqlite3.OptimizedUnicode is an alias for str in Python 3 and
its behavior is already tested in CheckOptimizedUnicode in
Lib/sqlite3/test/factory.py.

sqlite3.OptimizedUnicode was undocumented in 0fc10a33eb4c and
probably added back with the result of a bad merge.

files:
  Doc/library/sqlite3.rst |  4 ----
  1 files changed, 0 insertions(+), 4 deletions(-)


diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -489,10 +489,6 @@
       :mod:`sqlite3` module will return Unicode objects for ``TEXT``. If you want to
       return bytestrings instead, you can set it to :class:`bytes`.
 
-      For efficiency reasons, there's also a way to return :class:`str` objects
-      only for non-ASCII data, and :class:`bytes` otherwise. To activate it, set
-      this attribute to :const:`sqlite3.OptimizedUnicode`.
-
       You can also set it to any other callable that accepts a single bytestring
       parameter and returns the resulting object.
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list