mirror of
https://github.com/python/cpython.git
synced 2026-05-06 12:49:07 -04:00
9181d776da
Make the deprecated set_type method resets the format, using the same code as in type initialization. Implementation note: this was done in PyCPointerType_init after calling PyCPointerType_SetProto, but was forgotten after in PyCPointerType_set_type_impl's call to PyCPointerType_SetProto. With this change, setting the format is conceptually part of setting proto (i.e. the pointed-to type). Co-authored-by: AN Long <aisk@users.noreply.github.com>