a simpler `try` / `except` (and why maybe shouldn't) (beginner - intermediate) anthony explains

Поделиться
HTML-код
  • Опубликовано: 1 дек 2024

Комментарии • 16

  • @adibauI
    @adibauI Год назад +9

    gosh, finding your channel was the most amazing thing that happened to me recently, I just love the format

  • @adwaith-rajesh
    @adwaith-rajesh Год назад +3

    I just saw your tweet on try-except, and a notification from youtube just popped up. 😆

  • @mrswats
    @mrswats Год назад +1

    Very nice video. Always interesting to analise the performance impact on these helper functions.

  • @DavidDellsperger
    @DavidDellsperger Год назад +4

    Omg that theme, my eyes...lol, babis well spent

    • @qexat
      @qexat Год назад

      the notebook theme is very cool what do you mean 😆

    • @DavidDellsperger
      @DavidDellsperger Год назад +1

      @@qexat I'm the one who spent the babis on it in his last stream

  • @AmmarRev
    @AmmarRev Год назад +1

    Thanks for the informative video. Could you consider making a short video on how to clean objects in python. (e.g. managing resources that need to be cleaned up when an exception is raised inside the constructor) can we use the 'with' statement in such cases ?. Thanks again for your videos

    • @anthonywritescode
      @anthonywritescode  Год назад

      yeah I did a 3-part series on this already -- if you search "anthonywritescode context managers"

  • @rudranagk1403
    @rudranagk1403 Год назад

    hey dude, yesterday i ran into a weird issue. When i try to install django-mptt with pip, it replaces django==2.2 to django==3.2 and it only happens in one ec2 instance, i have tried in local machine, and other ec2 instances with same python version and it works fine but on other it wont. I still couldnt figure out what was the issue on that particular ec2.

  • @alice-smith
    @alice-smith Год назад +1

    I didn't know you can raise exceptions without the ()

  • @travislaborde2465
    @travislaborde2465 Год назад

    what keyboard is that? and is the little mini-keypad between the two sides something else or comes with the keyboard? finally, are those programmable keys on the left side and the keypad? if so, are they programmable in Linux? oh, nice videos as well :)

    • @anthonywritescode
      @anthonywritescode  Год назад +1

      check out the faq playlist on the channel -- it's got answers to all of those!

    • @travislaborde2465
      @travislaborde2465 Год назад +1

      @@anthonywritescode thanks!! I'm too busy watching other videos of yours, hadn't seen that. will do.

  • @pepitotrueno
    @pepitotrueno Год назад

    A good topic for a future video might be about typing.Never / typing.NoReturn, which was technically the correct return type for the small function you created!

    • @anthonywritescode
      @anthonywritescode  Год назад +1

      funny you say that -- ruclips.net/video/-zH0qqDtd4w/видео.html