Author serhiy.storchaka
Recipients serhiy.storchaka
Date 2016-04-14.08:06:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1460621170.51.0.766625206789.issue26754@psf.upfronthosting.co.za>
In-reply-to
Content
PyUnicode_FSDecoder() accepts not only str and bytes or bytes-like object, but arbitrary iterable, e.g. list.

Example:

>>> compile('', [116, 101, 115, 116], 'exec')
<code object <module> at 0xb6fb1340, file "test", line 1>

I think accepting arbitrary iterables is unintentional and weird behavior.
History
Date User Action Args
2016-04-14 08:06:10serhiy.storchakasetrecipients: + serhiy.storchaka
2016-04-14 08:06:10serhiy.storchakasetmessageid: <1460621170.51.0.766625206789.issue26754@psf.upfronthosting.co.za>
2016-04-14 08:06:10serhiy.storchakalinkissue26754 messages
2016-04-14 08:06:10serhiy.storchakacreate