Kaydet (Commit) e6576248 authored tarafından Aviv Palivoda's avatar Aviv Palivoda Kaydeden (comit) Berker Peksag

bpo-30262: Don't expose private objects in sqlite3 (GH-1440)

The Cache and Statement objects are undocumented and implementation
details of the sqlite3 module.

They aren't usable from pure Python code.
üst f00828a7
......@@ -796,6 +796,10 @@ The following features and APIs have been removed from Python 3.8:
* "unicode_internal" codec is removed.
(Contributed by Inada Naoki in :issue:`36297`.)
* The ``Cache`` and ``Statement`` objects of the :mod:`sqlite3` module are not
exposed to the user.
(Contributed by Aviv Palivoda in :issue:`30262`.)
Porting to Python 3.8
=====================
......
The ``Cache`` and ``Statement`` objects of the :mod:`sqlite3` module are not
exposed to the user. Patch by Aviv Palivoda.
......@@ -366,10 +366,6 @@ PyMODINIT_FUNC PyInit__sqlite3(void)
PyModule_AddObject(module, "Connection", (PyObject*) &pysqlite_ConnectionType);
Py_INCREF(&pysqlite_CursorType);
PyModule_AddObject(module, "Cursor", (PyObject*) &pysqlite_CursorType);
Py_INCREF(&pysqlite_CacheType);
PyModule_AddObject(module, "Statement", (PyObject*)&pysqlite_StatementType);
Py_INCREF(&pysqlite_StatementType);
PyModule_AddObject(module, "Cache", (PyObject*) &pysqlite_CacheType);
Py_INCREF(&pysqlite_PrepareProtocolType);
PyModule_AddObject(module, "PrepareProtocol", (PyObject*) &pysqlite_PrepareProtocolType);
Py_INCREF(&pysqlite_RowType);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment