Message197147
I noticed in CPython source code, when we print the type of the object, we use "%.200s" not "%s". For example, in Modules/posixmodule.c:
"uid should be integer, not %.200s",
So the newest path was created to conform with this tradition.
Another thing I noticed, there are two ways to get the type of object:
1. src->ob_type->tp_name
2. Py_TYPE(src)->tp_name
Both are widely used. So I am not sure which is the best way. I leave it alone this issue. |
|
Date |
User |
Action |
Args |
2013-09-07 11:04:09 | vajrasky | set | recipients:
+ vajrasky, ezio.melotti, r.david.murray, serhiy.storchaka, Thibault.Kruse |
2013-09-07 11:04:09 | vajrasky | set | messageid: <1378551849.1.0.851571884169.issue18829@psf.upfronthosting.co.za> |
2013-09-07 11:04:09 | vajrasky | link | issue18829 messages |
2013-09-07 11:04:08 | vajrasky | create | |
|