with + context managers (part1: the hard way) (intermediate - advanced) anthony explains

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 พ.ย. 2020
  • today I talk about the with statement and context managers as well as how to implement a context manager class.
    playlist: • anthony explains
    ==========
    twitch: / anthonywritescode
    dicsord: / discord
    twitter: / codewithanthony
    github: github.com/asottile
    stream github: github.com/anthonywritescode
    I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @sillybuttons925
    @sillybuttons925 3 ปีที่แล้ว +3

    Getting to James Powell level here :) love it

  • @thomashirtz
    @thomashirtz 3 ปีที่แล้ว +3

    Hey! nice video
    Small comment though, Is there a small mistake at the end ?
    We don't execute the __enter__ at ~15:50 (I guess it needs to be in the try)

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

      yeah looks like I plucked off `__enter__` but forgot to call it