Author vajrasky
Recipients Thibault.Kruse, ezio.melotti, r.david.murray, serhiy.storchaka, vajrasky
Date 2013-09-07.11:04:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378551849.1.0.851571884169.issue18829@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-09-07 11:04:09vajraskysetrecipients: + vajrasky, ezio.melotti, r.david.murray, serhiy.storchaka, Thibault.Kruse
2013-09-07 11:04:09vajraskysetmessageid: <1378551849.1.0.851571884169.issue18829@psf.upfronthosting.co.za>
2013-09-07 11:04:09vajraskylinkissue18829 messages
2013-09-07 11:04:08vajraskycreate