mirror of
https://github.com/jopohl/urh.git
synced 2026-03-10 10:16:48 +01:00
24 lines
276 B
Python
24 lines
276 B
Python
from PyQt5.QtCore import QObject
|
|
|
|
|
|
class A(QObject):
|
|
def __init__(self):
|
|
self.a = 1
|
|
|
|
def __str__(self):
|
|
return "a"
|
|
|
|
def __repr__(self):
|
|
return "a"
|
|
|
|
|
|
l = []
|
|
for _ in range(10):
|
|
l.append(A())
|
|
|
|
print(l)
|
|
l2 = l
|
|
del l[-1]
|
|
print(l)
|
|
print(l2)
|