int/long unification hides bugs

Josiah Carlson jcarlson at uci.edu
Thu Oct 28 16:15:35 EDT 2004


Jeff Epler <jepler at unpythonic.net> wrote:
> On Thu, Oct 28, 2004 at 10:47:35AM -0700, Josiah Carlson wrote:
[snip my code]
> Is there a reason you didn't use 'if __debug__' here?
> 
>     class BoundedInt(object):
>         ...
>         if __debug__:
>             def __new__ ...
>         else:
>             def __new__ ...


Yes, I didn't know about it.


 - Josiah




More information about the Python-list mailing list