3 ms·
Wow. I'm a numpy aficionado and connoisseur.. I'm sad to say I really don't understand most of whats going on in this code...
by tomrod 15y ago
Wow. I'm a numpy aficionado and connoisseur.. I'm sad to say I really don't understand most of whats going on in this code...
- irahul 15y ago> I'm sad to say I really don't understand most of whats going on in this code.. Don't be:) Most of the dark voodoo there is not used(macros, implicit self), some of it is used only by toolmakers(finding request, changing traceback messages, import hooks), and then a small part is used here and there by regular applications(monkey patching; "names of variables" sounds useful but it won't work with shared pool. `a = 10; b = 10; show_names(a)` will show both "a" and "b")
- the_mitsuhiko 15y ago> but it won't work with shared pool. `a = 10; b = 10; show_names(a)` will show both "a" and "b") That will actually show nothing because strings are not tracked by the cyclic garbage collector because they can never be part of cycles.
- irahul 15y agoMy bad. I was talking about this alternate implementation: https://gist.github.com/2688055 https://gist.github.com/2688055