homepage

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 devplayer
Recipients devplayer
Date 2014年07月11日.02:57:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1405047443.55.0.837087456572.issue21954@psf.upfronthosting.co.za>
In-reply-to
Content
str(b'text') returns double quoted item with b prefix within the str() object as so: "b'text'" in python interpreter. It seems the "b" shouldn't be within the outter quotes or apart of the str() instance data.
Is this a bug or new syntax? I personally haven't see any documentation that this is the correct behavior. Nor did I find any previously register issue tickets.
>>>bchars_list = [b'o', b'n', b'e']
>>>bchars_list
[b'o', b'n', b'e']
>>>[str(x) for x in bchars_list]
["b'o'", "b'n'", "b'e'"]
History
Date User Action Args
2014年07月11日 02:57:23devplayersetrecipients: + devplayer
2014年07月11日 02:57:23devplayersetmessageid: <1405047443.55.0.837087456572.issue21954@psf.upfronthosting.co.za>
2014年07月11日 02:57:23devplayerlinkissue21954 messages
2014年07月11日 02:57:22devplayercreate

AltStyle によって変換されたページ (->オリジナル) /