forked from makelinux/examples
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3.0.py
More file actions
Latest commit
executable file
·29 lines (15 loc) · 423 Bytes
/
Copy path3.0.py
File metadata and controls
executable file
·29 lines (15 loc) · 423 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python3.1
importio
frompassedimportpassed
# https://docs.python.org/3.10/whatsnew/3.0.html
assert3/2==1.5
assertisinstance(range(3), range)
buff=io.StringIO()
# https://docs.python.org/3.10/whatsnew/3.0.html#print-is-a-function
print(1, 2, 3, sep=", ", end="!", file=buff)
assertbuff.getvalue() =="1, 2, 3!"
classMeta(type):
pass
classFoo(metaclass=Meta):
pass
passed()