Consider the below in simple class:
class RandomKlass:
def __init__(self, x):
self.x = x
def __del__(self):
print("Deleted…")
Now when I delete the object created from RandomKlass using `del` operator I
see the output “Deleted…”. That means `del` operator calls the _
On 22/04/2019 10:18, Arup Rakshit wrote:
> Consider the below in simple class:
>
> class RandomKlass:
> def __init__(self, x):
> self.x = x
>
> def __del__(self):
> print("Deleted…")
>
> Now when I delete the object created from RandomKlass using `del` operator I
> s
On 22/04/19 3:35 PM, Alan Gauld via Tutor wrote:
On 22/04/2019 10:18, Arup Rakshit wrote:
Consider the below in simple class:
class RandomKlass:
def __init__(self, x):
self.x = x
def __del__(self):
print("Deleted…")
Now when I delete the object created from R