Martin v. Löwis <mar...@v.loewis.de> added the comment:

haypo: please avoid introducing explicit casts (such as the one in pyexpat.c). 
Use SAFECASTs instead. If you are absolutely certain that a cast cannot 
possibly truncate, add a comment explaining why that is. In the specific case, 
I think it actually *is* possible that the cast truncates, because the case 
that read() returned too many bytes is incorrectly handled (it should set len 
to -1).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9566>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to