Python Interface Definitions & Stub Files For Professional Development

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ย. 2024

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

  • @JLSXMK8
    @JLSXMK8 ปีที่แล้ว +7

    This is fantastic!!! Now I know how to document Python code properly so that it can be4 read in the IDE. That will seriously come in handy.

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

    This is really great for documentation . I didnt know this existed. I find myself having huuuge files with some many lines mostly because of the documentation and comments.

  • @Baldur1975
    @Baldur1975 ปีที่แล้ว +5

    oh. like an headerfile in c++, an interface and the Dokumentation in one thing. Gives also downcompartibilty with the new typingsystem. Not needed but recommend. Right?
    This is Great!
    (Sorry for my bad English, im from Germany)

    • @JLSXMK8
      @JLSXMK8 ปีที่แล้ว +4

      Correct. Your English is not that bad, to be honest.

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

      @@JLSXMK8 Thank You!

  • @mgdnz
    @mgdnz 4 หลายเดือนก่อน

    Great work, I'm also wondering why didn't you mention the testing use case for the stub files

  • @HansYangTW
    @HansYangTW 8 หลายเดือนก่อน

    Thanks for this dude!

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

    understood pyi files. Mostly asked interview question

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

    So why does this need to be in a stub file rather than inside the py file? I have noticed this gets very hard to maintain, especially if you forget to update the stub and they are mismatched

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

    Thanks I was just trying to learn this earlier today. Can you make a video on .pyd files as well?

  • @bhalu0
    @bhalu0 29 วันที่ผ่านมา

    Which editor are you using

  • @pankajackson
    @pankajackson 8 หลายเดือนก่อน

    Thanks ❤

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

    👍Thanks!

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

    Where are we using Tuple module?

    • @the.droetker
      @the.droetker ปีที่แล้ว

      The last function about circle info returns 2 values, which are packed as a Tuple. To type hint that, you need to import it from typing.

    • @tooru
      @tooru 2 หลายเดือนก่อน

      ​@@the.droetker you can just use tuple builtin

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

    cool :)

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

    This feature is not that old, but python was invented in 1991, before java, c# and other languages😂

  • @dazzlepecs
    @dazzlepecs 6 หลายเดือนก่อน

    great vid, but the concept of stubbing is such wank