Access an object to which being bound

Abdur-Rahmaan Janhangeer arj.python at gmail.com
Wed May 27 15:46:44 EDT 2020


Greetings,

Lets say i have

class A:
  ...

class B:
   self.x = A

then used

b = B()
z = b.x()

now how in A i get a reference to B when z is assigned to b.x?

Thanks

Kind Regards,

Abdur-Rahmaan Janhangeer
compileralchemy <https://compileralchemy.github.io/> | blog
<https://abdur-rahmaanj.github.io/>
github <https://github.com/Abdur-RahmaanJ>
Mauritius


More information about the Python-list mailing list