[issue15301] os.chown: OverflowError: Python int too large to convert to C long

Larry Hastings report at bugs.python.org
Wed Apr 24 01:32:46 CEST 2013


Larry Hastings added the comment:

Serhiy: Oh, I get it, your critique was about the "Note:" part at the bottom.  It would have been helpful if you had inserted your feedback there, instead of at the top.  Yeah, you're right, the note was incorrect.

I considered adding a note saying that the code was wrong if sizeof(uid_t) > sizeof(long) but thought better of it ;-)

New patch attached.

----------
Added file: http://bugs.python.org/file29996/larry.chown.unsigned.uid.gid.6.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15301>
_______________________________________


More information about the Python-bugs-list mailing list