[Python-Dev] How long the wrong type of argument should we limit (or not) in the error message (C-api)?

Victor Stinner victor.stinner at gmail.com
Sun Dec 15 00:52:44 CET 2013

2013/12/15 Antoine Pitrou <solipsis at pitrou.net>:
> Shouldn't we have a special "%T" shortcut instead of trying to
> harmonize all the occurrences of `"%.400s", Py_TYPE(self)->tp_name` ?

Oh, I like this proposition! The following pattern is very common in Python:

"... %.400s ...", Py_TYPE(self)->tp_name


More information about the Python-Dev mailing list