WIP of namedtuple/itemgetter/property
This commit is contained in:
1 parent
0edc63ca8b
commit
39f1dfc85e
5 files changed
+106
-18
No files matched your search
@@ -241,6 +241,18 @@ with contextlib.closing('asd') as string:
|
||||
#? str()
|
||||
string
|
||||
|
||||
# -----------------
|
||||
# operator
|
||||
# -----------------
|
||||
|
||||
import operator
|
||||
|
||||
f = operator.itemgetter([1])
|
||||
#? float()
|
||||
f([1.0])
|
||||
#? str()
|
||||
f([1, ''])
|
||||
|
||||
# -----------------
|
||||
# shlex
|
||||
# -----------------
|
||||
|
||||
Reference in new issue
Block a user