0

why decrease count at c[0] = -1?

why TT

12th May 2018, 1:28 PM
이준호
이준호 - avatar
2 odpowiedzi
+ 3
Please provide sufficient details such as the actual code or something relevant so that we can help you!
12th May 2018, 4:55 PM
Naveen Maurya
Naveen Maurya - avatar
0
a = 42 # Create object <42> b = a # Increase ref. count of <42> c = [a] # Increase ref. count of <42> del a # Decrease ref. count of <42> b = 100 # Decrease ref. count of <42> c[0] = -1 # Decrease ref. count of <42> This example. TT. in python
12th May 2018, 4:57 PM
이준호
이준호 - avatar