Good overview of using Python in a relatively powerful yet little used way. This video echoes the intention of dynamic programming conceptually presented in the SICP videos from MIT. Very enjoyable.
@ranjithparuchuri64639 жыл бұрын
great explanation
@7369397 жыл бұрын
I didn't understood at 19:34 how did he counted the function calls - first, he calculates +=1 and then update to 0, so initialization of counter should be done After ??? :(
@babuarthimalla6789 жыл бұрын
nice explaination
@siddhantloya95877 жыл бұрын
why do you return ret at 8:44 . since it is only None
@asdfasdfuhf7 жыл бұрын
In the example he showed, you are correct it wasnt necessary; but if the function would have returned some value, it would have been necessary. So basically, it doesn't do anything.. yeah. Edit: he actually also said it it at: 11:33
@CSryand2m8 жыл бұрын
What is the line on the bottom at 16:30? I feel like it's being cut off. How is myfunc being called in that?
@PerfectEn3my8 жыл бұрын
Slides: speakerdeck.com/pycon2014/decorators-a-powerful-weapon-in-your-python-arsenal-by-colton-myers String itself: myfunc = skipIf(True, 'I hate doge')(myfunc)
@devaggarwal12207 жыл бұрын
thx
@markwiygul63568 жыл бұрын
How many decorators can I add. I'd like 3 or more in a column.
@rednafi5 жыл бұрын
Infinite. But remember, with decorators you are calling the decorated function within a wrapper function. So It's not recommended to stack more than two as it can considerably slow down your function run time.