Implicit bytes and str conversion #17834
Unanswered
nmattia
asked this question in
Libraries & Drivers
Replies: 2 comments 2 replies
-
|
Looks like this was already reported, at least for the implicit conversion when concatenating: #3856 |
Beta Was this translation helpful? Give feedback.
0 replies
-
You have a string (bar) and you want to append bytes(foo) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was trying to figure out why
asyncio.Stream.writeaccepts astras a buffer (hoping this is the correct category). It looks like astrcan be appended to abytes:The converse however is not true:
(at least on the unix port).
Does
asyncio.Stream.writeofficially supportstr? And is+ : bytes -> str -> bytesexpected?Beta Was this translation helpful? Give feedback.
All reactions