Skip to content

Return len of item written to OutStream#685

Merged
blink1073 merged 1 commit intoipython:masterfrom
Carreau:len-stdout
Jun 14, 2021
Merged

Return len of item written to OutStream#685
blink1073 merged 1 commit intoipython:masterfrom
Carreau:len-stdout

Conversation

@Carreau
Copy link
Copy Markdown
Member

@Carreau Carreau commented Jun 14, 2021

Closes #682

Remove the piece of logic that handle not isinstance(str) it is a
leftover from Python 2, in pure Python, sys.stdout.write only accepts
str, therefore we have no reason not to do the same.

Closes ipython#682

Remove the piece of logic that handle `not isinstance(str)` it is a
leftover from Python 2, in pure Python, sys.stdout.write only accepts
str, therefore we have no reason not to do the same.
Copy link
Copy Markdown
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@blink1073 blink1073 added this to the 6.0 milestone Jun 14, 2021
@blink1073 blink1073 added the bug label Jun 14, 2021
@blink1073 blink1073 merged commit 42e691b into ipython:master Jun 14, 2021
@Carreau
Copy link
Copy Markdown
Member Author

Carreau commented Jun 15, 2021

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ipykernel.iostream.OutStream.write() fails to return the number of characters written

2 participants