int/long unification hides bugs

Batista, Facundo FBatista at uniFON.com.ar
Mon Oct 25 12:32:11 EDT 2004


[kartick_vaddadi at yahoo.com]

#- there seems to be a serious problem with allowing numbers to 
#- grow in a
#- nearly unbounded manner, as int/long unification does: it hides bugs.
#- most of the time, i expect my numbers to be small. 2**31 is good
#- enough for most uses of variables, and when more is needed, 2**63
#- should do most of the time.

Do you expect the "bug" to be trapped when you reach a number like 2**33?

That implies that the number 2**30 is not a bug? Or then you'll need 28-bit
integers?

Do you really rely on this in your code?

.	Facundo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20041025/94aed25a/attachment.html>


More information about the Python-list mailing list