This website requires JavaScript.
Explore
Help
Sign In
Lephenixnoir
/
PythonExtra
Watch
1
Star
0
Fork
You've already forked PythonExtra
2
Code
Issues
9
Pull Requests
3
Projects
Releases
2
Wiki
Activity
4216bc7d13
PythonExtra
/
tests
/
basics
/
io_stringio_with.py
6 lines
104 B
Python
Raw
Blame
History
import
io
# test __enter__/__exit__
with
io
.
StringIO
(
)
as
b
:
b
.
write
(
"
foo
"
)
print
(
b
.
getvalue
(
)
)
Reference in New Issue
View Git Blame
Copy Permalink