Skip to content

Conversation

@palaviv
Copy link
Contributor

@palaviv palaviv commented May 13, 2017

@mention-bot
Copy link

@palaviv, thanks for your PR! By analyzing the history of the files in this pull request, we identified @Yhg1s, @ghaering and @benjaminp to be potential reviewers.

Copy link
Member

@berkerpeksag berkerpeksag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to add a NEWS entry and a release note in Doc/whatsnew/3.8.rst (see the "Deprecated" section at https://docs.python.org/3.8/whatsnew/3.8.html#deprecated)

{
pysqlite_Cache *self;

/* print deprecation warning */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style nit: No need to add a comment for this.


/* print deprecation warning */
if (PyErr_WarnEx(PyExc_DeprecationWarning,
"Cache object has been deprecated",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add "it won't be exposed in Python 3.9" or something similar as well?

{
pysqlite_Statement *self;

/* print deprecation warning */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comments on pysqlite_cache_deprecated_new().

return (PyObject *)self;
}

/* classes for statement and cache deprecation */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style nit: This can comment can be deleted.

Py_INCREF(&pysqlite_StatementType);
PyModule_AddObject(module, "Cache", (PyObject*) &pysqlite_CacheType);
Py_INCREF(&pysqlite_StatementDeprecatedType);
PyModule_AddObject(module, "Statement", (PyObject*)&pysqlite_StatementDeprecatedType);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style nit: Since we already modified this line, we can adda space after (PyObject*) to make the styling consistent.

@berkerpeksag
Copy link
Member

Oh, and please rebase dont-export-sqlite-cache-and-statement2 branch :) Thanks!

@palaviv palaviv force-pushed the dont-export-sqlite-cache-and-statement2 branch from 2f936ae to b37d55c Compare October 8, 2018 11:05
@matrixise
Copy link
Member

Hi @palaviv

Would you be interested to upgrade your PR to the last master?

Thank you

@palaviv
Copy link
Contributor Author

palaviv commented May 9, 2019

Not needed after #1440.

@palaviv palaviv closed this May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants