sys.stdout.buffer is readonly withon python3.8 and newer
See original GitHub issueSteps/Code to Reproduce
Run tests with python3.8
__________________________ test_cli_writes_to_stdout ___________________________
test/test_wordcloud_cli.py:165: in test_cli_writes_to_stdout
sys.stdout.buffer = tmp_image_file.open('wb+')
E AttributeError: readonly attribute
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Python standard idiom to set sys.stdout buffer to zero doesn't ...
But first it has to be in perfect Unicode internally. Now that all works fine in general, just not with a zero byte...
Read more >sys — System-specific parameters and functions — Python ...
This module provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter.
Read more >if_pyth.txt - Vim
Use python-buffer objects to access to buffer-local options and python-window objects to access to window-local options. Type of this object is available via...
Read more >An Introduction to the Python Buffer Protocol
Using the buffer protocol, we can let multiple objects efficiently manipulate views of the same data buffers, without having to make copies of ......
Read more >Reference — prompt_toolkit 3.0.36 documentation
If at some point, we have Python 3.11 as the minimum supported Python version, ... raise an EditReadOnlyBuffer exception, even when the buffer...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
seems to break in a different way 😃
works now: https://github.com/amueller/word_cloud/pull/616