bpo-39361: Document the removal of PyTypeObject.tp_print (GH-18125) · python/cpython@2d50976

Original file line numberDiff line numberDiff line change

@@ -323,6 +323,11 @@ Build and C API Changes

323323

removed in Python 3.3.

324324

(Contributed by Victor Stinner in :issue:`38896`.)

325325
326+

* The ``tp_print`` slot of :ref:`PyTypeObject <type-structs>` has been removed.

327+

It was used for printing objects to files in Python 2.7 and before. Since

328+

Python 3.0, it has been ignored and unused.

329+

(Contributed by Jeroen Demeyer in :issue:`36974`.)

330+
326331
327332

Deprecated

328333

==========