[issue4591] 32-bits unsigned user/group identifier
Stefan Krah
report at bugs.python.org
Mon Feb 11 17:58:12 CET 2013
Stefan Krah added the comment:
Serhiy Storchaka <report at bugs.python.org> wrote:
> > Not technically the topic of this issue, but should we just lock
> > down _Py_Uid_Converter() to ints?
>
> I just copied this code from PyArg_ParseTuple*() for 'l' format.
> > os.setuid(Decimal("1000.2"))
I know that this behavior wasn't introduced by you. It's perfectly fine
to use PyArg_ParseTuple() for guidance or to try to preserve the existing
behavior.
> >>> chr(Decimal('65.2'))
> 'A'
I just happen to think that PyArg_ParseTuple() is wrong here and we shouldn't
enable this "feature" in new code. Fixing these issues one by one is probably
the best way forward.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4591>
_______________________________________
More information about the Python-bugs-list
mailing list