This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients marnanel, serhiy.storchaka
Date 2018-10-10.20:55:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1539204914.12.0.788709270274.issue34955@psf.upfronthosting.co.za>
In-reply-to
Content
bytes() accepts:

1. An integer.
2. An object supporting the buffer protocol.
3. An iterable of integers in the range 0 to 255.

Dict is an iterable. But iterating it produces string object which cannot be interpreted as an integer.
History
Date User Action Args
2018-10-10 20:55:14serhiy.storchakasetrecipients: + serhiy.storchaka, marnanel
2018-10-10 20:55:14serhiy.storchakasetmessageid: <1539204914.12.0.788709270274.issue34955@psf.upfronthosting.co.za>
2018-10-10 20:55:14serhiy.storchakalinkissue34955 messages
2018-10-10 20:55:14serhiy.storchakacreate