This website requires JavaScript.
Explore
Help
Sign In
mirrors
/
micropython
mirror of
https://github.com/micropython/micropython.git
Watch
1
Star
0
Fork
You've already forked micropython
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
b6ab9e420b
micropython
/
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