12 Comments
User's avatar
тна Return to thread
Abhinav Upadhyay's avatar

In case, you try to create an object within a script without assigning to the variable, that amounts to the same case as I showed in test_foo(). The callable gets called, becomes the top of the stack and POP_TOP pops it, decrements the ref count.

Stephen Gruppetta's avatar

Thanks for the detailed response

Stephen Gruppetta's avatar

So effectively, the ref count is 1 for the briefest of momentsтАж