Partial Functions in Python - Functools Tutorial

แชร์
ฝัง

ความคิดเห็น • 28

  • @charly7842
    @charly7842 2 ปีที่แล้ว +2

    At last a video that explains Partial Function Application in simple terms. It took me about 2 hours to find a definition / explanation that made any sense. Thanks !

  • @TheThunderSpirit
    @TheThunderSpirit 2 ปีที่แล้ว

    hi. i have a question.
    class A:
    def __init__(self, x):
    self.x = x
    def __call__(self):
    if self.x == 1:
    return something
    elif self.x == 2:
    return something_else
    ..
    .. and so on.
    i dont want to use if-else since it will wadte time checking self.x which will be fixed at init time. how can overload call method based on initial value of x?
    i would call this many times in a loop so i want it to avoid repetitive computation. plz help

  • @tcgvsocg1458
    @tcgvsocg1458 2 ปีที่แล้ว

    i don t understand how you find target like apple or golman sax....if i search for tcgmarket, sony or fnac or something like that where i find the stock to try the code

  • @fallcrim2458
    @fallcrim2458 2 ปีที่แล้ว +1

    I really like your videos. I‘ve learned so much about programming. I modified you Advanced TCP Chat script and it works pretty well but I‘d like to know how I can implement an End-To-End encryption to it. Go on with this content man 👍

  • @shahbazzaidi650
    @shahbazzaidi650 2 ปีที่แล้ว

    Keeping going mate. These regular videos are great. Appreciate the effort you put 💯

  • @hari8568
    @hari8568 3 หลายเดือนก่อน

    Why not use default parameters instead of partial function?

  • @chriskeo392
    @chriskeo392 ปีที่แล้ว

    When you use the partial func on a function. Is that considered arbitrary function?

  • @garychung66
    @garychung66 ปีที่แล้ว

    I copied your code and had this error : TypeError: string indices must be integers...................what's wrong ?

  • @ryanbradbury3745
    @ryanbradbury3745 ปีที่แล้ว

    Great video. This concept is known as currying functions created by Haskell Curry.

  • @obed818
    @obed818 2 ปีที่แล้ว

    Hey, nice video thanks you, i forgot about this i already seen a video about this time ago.
    I have a question also, its about the pandas_datareader, i am french and idk what is a ticker i searched it up in a dictionary and i dont see anything that make me think of a company figure of any kind, may someone say me more about it please? Look like its more for my culture than code knowledge ofc

  • @Asuna-chu
    @Asuna-chu 2 ปีที่แล้ว

    Learned something new, thanks.

  • @CaptainBravo87
    @CaptainBravo87 ปีที่แล้ว

    Best explanation

  • @FheroeJuan
    @FheroeJuan 2 ปีที่แล้ว

    Salut, esti cumva din Romania?

  • @chriskeo392
    @chriskeo392 ปีที่แล้ว

    Such an important video

  • @aztecGin
    @aztecGin 2 ปีที่แล้ว

    THank you! This is a useful trick.

  • @davidsyengo1893
    @davidsyengo1893 2 ปีที่แล้ว

    Neat explanation!

  • @israelcruz6068
    @israelcruz6068 2 ปีที่แล้ว

    Awesome, nice video

  • @jissoune2009
    @jissoune2009 2 ปีที่แล้ว

    Very usefull, tks !

  • @javohirsayfullayevich7127
    @javohirsayfullayevich7127 2 ปีที่แล้ว

    👍. Very nice content.
    Can make a road map to learn AI for beginners

  • @chimdiegboh6743
    @chimdiegboh6743 ปีที่แล้ว

    Thanks

  • @luciusgorgo14
    @luciusgorgo14 2 ปีที่แล้ว

    Good stuff

  • @yash1152
    @yash1152 ปีที่แล้ว

    13:21 > _"imagine a function with a thousand lines of codes"_
    😱😳👁👁 jk

  • @philtoa334
    @philtoa334 2 ปีที่แล้ว

    Thx.

  • @민-y2m
    @민-y2m 2 ปีที่แล้ว

    thanks video

  • @kotesiam
    @kotesiam ปีที่แล้ว

    just about the complex

  • @ahmedgamberli2250
    @ahmedgamberli2250 2 ปีที่แล้ว +1

    Forth :)

  • @SitemliKübrick19
    @SitemliKübrick19 2 ปีที่แล้ว

    Great video