bpo-43916: PyStdPrinter_Type uses Py_TPFLAGS_DISALLOW_INSTANTIATION (GH-25749)
The PyStdPrinter_Type type now uses the Py_TPFLAGS_DISALLOW_INSTANTIATION flag to disallow instantiation, rather than seting a tp_init method which always fail. Write also unit tests for PyStdPrinter_Type.
V
Victor Stinner committed
4908fae3d57f68694cf006e89fd7761f45003447
Parent: 0cad068
Committed by GitHub <noreply@github.com>
on 4/30/2021, 12:56:27 PM