This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author janglin
Recipients amaury.forgeotdarc, brian.curtin, giampaolo.rodola, janglin, tim.golden
Date 2010-09-18.02:25:35
SpamBayes Score 6.4663127e-06
Marked as misclassified No
Message-id <1284776738.91.0.797978201487.issue9808@psf.upfronthosting.co.za>
In-reply-to
Content
The _countof(_x_) macro expands to something like this:

    sizeof(_x_)/sizeof(_x_[0])

This was an attempt by Microsoft to mitigate some buffer overrun issues.  I have gotten in the habit of using it as it is less verbose.  I have uploaded a new issue9808.diff file that removes the _countof macro. I will leave it up to those with commit privileges which version gets checked in. Personally I like it because it clarifies the programmers intent. Why not introduce it to the Python code base?
History
Date User Action Args
2010-09-18 02:25:39janglinsetrecipients: + janglin, amaury.forgeotdarc, giampaolo.rodola, tim.golden, brian.curtin
2010-09-18 02:25:38janglinsetmessageid: <1284776738.91.0.797978201487.issue9808@psf.upfronthosting.co.za>
2010-09-18 02:25:37janglinlinkissue9808 messages
2010-09-18 02:25:37janglincreate