mirror of
https://github.com/micropython/micropython.git
synced 2026-05-01 21:30:14 +02:00
c3e77ad6db
Signed-off-by: Anson Mansfield <amansfield@mantaro.com>
18 lines
210 B
Python
18 lines
210 B
Python
import bench
|
|
|
|
|
|
class D:
|
|
def __set_name__(self, owner, name):
|
|
pass
|
|
|
|
|
|
def test(num):
|
|
descriptor = D()
|
|
for i in range(num // 40):
|
|
|
|
class X:
|
|
x = descriptor
|
|
|
|
|
|
bench.run(test)
|