{"id":3882,"date":"2021-02-23T19:58:21","date_gmt":"2021-02-23T19:58:21","guid":{"rendered":"http:\/\/www.stafforini.com\/quotes\/?p=3882"},"modified":"2021-02-23T19:58:21","modified_gmt":"2021-02-23T19:58:21","slug":"al-sweigart","status":"publish","type":"post","link":"https:\/\/www.stafforini.com\/quotes\/?p=3882","title":{"rendered":"Al Sweigart"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote\"><p>Note that the convention for importing <code>pathlib<\/code> is to run <code>from pathlib import Path<\/code>, since otherwise we\u2019d have to enter <code>pathlib.Path<\/code> everywhere <code>Path<\/code> shows up in our code. Not only is this extra typing redundant, but it\u2019s also redundant.<\/p><\/blockquote>\n\n\n\n<p>Al Sweigart, <em>Automate the Boring Stuff with Python: Practical Programming for Total Beginners<\/em>, 2nd ed., San Francisco, 2020, p. 203<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Note that the convention for importing pathlib is to run from pathlib import Path, since otherwise we\u2019d have to enter pathlib.Path everywhere Path shows up in our code. Not only is this extra typing redundant, but it\u2019s also redundant. Al Sweigart, Automate the Boring Stuff with Python: Practical Programming for Total Beginners, 2nd ed., San [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2422],"tags":[556,2421],"_links":{"self":[{"href":"https:\/\/www.stafforini.com\/quotes\/index.php?rest_route=\/wp\/v2\/posts\/3882"}],"collection":[{"href":"https:\/\/www.stafforini.com\/quotes\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stafforini.com\/quotes\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stafforini.com\/quotes\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stafforini.com\/quotes\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3882"}],"version-history":[{"count":1,"href":"https:\/\/www.stafforini.com\/quotes\/index.php?rest_route=\/wp\/v2\/posts\/3882\/revisions"}],"predecessor-version":[{"id":3883,"href":"https:\/\/www.stafforini.com\/quotes\/index.php?rest_route=\/wp\/v2\/posts\/3882\/revisions\/3883"}],"wp:attachment":[{"href":"https:\/\/www.stafforini.com\/quotes\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3882"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stafforini.com\/quotes\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3882"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stafforini.com\/quotes\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}