This website requires JavaScript.
Explore
Help
Sign In
jebbatime
/
micropython
Watch
1
Star
0
Fork
You've already forked micropython
0
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
9bf757bf21
micropython
/
tests
/
basics
/
set_update.py
8 lines
101 B
Python
Raw
Normal View
History
Unescape
Escape
Implemented set.update
2014-01-12 12:39:48 -07:00
s
=
{
1
}
s
.
update
(
)
Modify set tests to print sorted sets directly instead of creating temporary lists and sorting those in-place
2014-04-06 22:00:03 -06:00
print
(
s
)
Implemented set.update
2014-01-12 12:39:48 -07:00
s
.
update
(
[
2
]
)
Modify set tests to print sorted sets directly instead of creating temporary lists and sorting those in-place
2014-04-06 22:00:03 -06:00
print
(
sorted
(
s
)
)
Implemented set.update
2014-01-12 12:39:48 -07:00
s
.
update
(
[
1
,
3
]
,
[
2
,
2
,
4
]
)
Modify set tests to print sorted sets directly instead of creating temporary lists and sorting those in-place
2014-04-06 22:00:03 -06:00
print
(
sorted
(
s
)
)