00:02:12.495,00:02:15.495 Matt Niznik: Python is nice and "raises" an exception. Other languages "throw" them. 00:02:22.636,00:02:25.636 Heather Cronk: :-D 00:08:57.356,00:09:00.356 Lewis Grasso: Segmentation Fault 00:10:17.485,00:10:20.485 Matt Niznik: except is equivalent to catch is many other languages 00:10:34.795,00:10:37.795 Matt Niznik: (It trips me up a lot) 00:19:41.722,00:19:44.722 Matt Niznik: Looks like exceptions started with Lisp (in the 60s!) and I would wager C++ sort of normalized them 00:25:20.142,00:25:23.142 Heather Cronk: In my experience, it's useful during code development to catch very little to see the many ways your code can fail and then decide what you want to catch and how you want to catch it 00:26:23.055,00:26:26.055 Alan Brammer - NOAA Affiliate: >>> from pathlib import Path >>> mypath = Path("path/to/my/file") >>> mypath.stat().st_size == 0 # True if empty 00:26:23.709,00:26:26.709 Heather Cronk: os.stat can tell you how big a file is without opening 00:27:01.973,00:27:04.973 Matt Niznik: ^^ That's what I'd do too 00:27:06.748,00:27:09.748 Heather Cronk: same 00:28:34.076,00:28:37.076 Matt Niznik: Lol I meant I'd do what Heather said but didn't notice Alan had a similar one 00:29:10.651,00:29:13.651 Heather Cronk: it makes it hard for other people to run/debug your code when except is a blanket -- re-learned that one recently 00:31:05.579,00:31:08.579 Wisnu Setiadi: Thank you!