Jan-18-2018, 05:20 PM
@Gribouillis
I think this is very elegant. Can you give me a quick run down of the what the function is doing. I don't quite understand it.
I'm not very familiar with the functools module. My first impression is that this is similar to a wrapper (aka hard coded decorator...which I've only recently gotten to...)
I'm stuck on the concept of the definition name used as a leading argument when the int and float objects are instantiated...
I understand the if clause at the bottom. That is crystal clear. I'm lost on the interplay between function and object here....would u pls run through it (even if only briefly)...thx
I think this is very elegant. Can you give me a quick run down of the what the function is doing. I don't quite understand it.
I'm not very familiar with the functools module. My first impression is that this is similar to a wrapper (aka hard coded decorator...which I've only recently gotten to...)
I'm stuck on the concept of the definition name used as a leading argument when the int and float objects are instantiated...
I understand the if clause at the bottom. That is crystal clear. I'm lost on the interplay between function and object here....would u pls run through it (even if only briefly)...thx