PEP238 and zope

Guido van Rossum guido at python.org
Wed Jul 25 12:04:08 EDT 2001


"Tim Peters" <tim.one at home.com> writes:

> However, while we've found platforms where the platform C doesn't
> sign-extend right shifts of signed integers (OK by the C std), and platforms
> with no integral type T such that sizeof(T) == 2 (also OK), and platforms
> with no standard integral type T such that sizeof(T) >= sizeof(void*) (also
> OK!), I don't believe we've found any platform where casting to an integral
> type doesn't truncate.  So this one is an academic warning of no practical
> consequence.  Note too that the new C std ("C99") requires truncation.

Perhaps we should change the interpreter to guarantee truncation, so
we can tighten the docs?  I'm adding a bug report for this to SF.

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-list mailing list