<property object at 0x02C25B90>
<cryptography.hazmat.backends.openssl.rsa._RSAPublicKey object at 0x02BCFA00>
private_key = rsa.generate_private_key(
public_exponent=65537,
key_size=2048,
backend=default_backend()
)
public_key = private_key.public_key()
class A:
_x = public_key
@property
def x(self):
return self._x
a = A()
print(A.x) # Неправильно
print(a.x) # Правильно