kopia lustrzana https://github.com/micropython/micropython-lib
operator: Add test.
rodzic
7b7e937602
commit
50cb4017bb
|
@ -0,0 +1,7 @@
|
|||
import operator
|
||||
|
||||
class A: pass
|
||||
a = A()
|
||||
a.name = "foo"
|
||||
f = operator.attrgetter('name')
|
||||
assert f(a) == "foo"
|
Ładowanie…
Reference in New Issue