[issue1302] Fixes for profile/cprofile

Christian Heimes report at bugs.python.org
Fri Oct 26 02:30:36 CEST 2007


Christian Heimes added the comment:

Alexandre Vassalotti wrote:
> It the address of lower[18] to be exact. (l < &lower[(sizeof lower) -
> 2]) is simply tricky notation to check the bound of the array.
> Personally, I used like to subtract pointer, ((lower - l + 1) < (sizeof
> lower)) to get the bound. But now, I find Guido's trick more cute (and
> less error-prone). :)

Wow, that's a cool trick. The old wizard has still some astonishing
tricks in the sleeves of his robe. :]

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1302>
__________________________________


More information about the Python-bugs-list mailing list