Serhiy Storchaka added the comment:

After further analysis I conclude that instance dict can be only NULL or a 
dict. Therefore PyDict_Size() is correctly used in typeobject.c and 
_datetimemodule.c. It never fails, and additional PyDict_Check() is not needed.

Committed changes don't include switching a dict structure to PyVarObject. 
Separate issue28988 is opened for this.

Thanks Raymond, Inada and Victor for your reviews.

----------
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28959>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to