Author skrah
Recipients amaury.forgeotdarc, eric.smith, mark.dickinson, pitrou, python-dev, serhiy.storchaka, sjoerd, skrah, vstinner
Date 2013-02-11.16:58:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20130211165813.GA2629@sleipnir.bytereef.org>
In-reply-to <1360600420.01.0.497773923753.issue4591@psf.upfronthosting.co.za>
Content
Serhiy Storchaka <report@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.
History
Date User Action Args
2013-02-11 16:58:12skrahsetrecipients: + skrah, sjoerd, amaury.forgeotdarc, mark.dickinson, pitrou, vstinner, eric.smith, python-dev, serhiy.storchaka
2013-02-11 16:58:12skrahlinkissue4591 messages
2013-02-11 16:58:12skrahcreate