{"id":41971,"date":"2021-07-24T15:36:57","date_gmt":"2021-07-24T15:36:57","guid":{"rendered":"https:\/\/www.oracletutoring.ca\/blog\/?p=41971"},"modified":"2021-07-31T22:32:52","modified_gmt":"2021-07-31T22:32:52","slug":"python-batteries-included","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/python-batteries-included\/","title":{"rendered":"Python: &#8216;batteries included&#8217;"},"content":{"rendered":"\n<h2>Self-tutoring about Python, but also life: the tutor reflects&#8230;.<\/h2>\n<p>\nI&#8217;ve been working on a second degree the past couple of years. I&#8217;m done now, but for a work experience course. I&#8217;ll share more about that in coming posts.<\/p>\n<p>One language my Comp Sci courses didn&#8217;t focus on much is, somewhat ironically, Python. Industry loves it, but only one half of one course I took concentrated on Python; that course was split between Python and C#.<\/p>\n<p>The upshot is that now, looking for work, I have to learn Python myself, since that&#8217;s what so many workplaces want. It&#8217;s not a problem; it&#8217;s just how it is.<\/p>\n<p>Python is a lovable language &#8211; likely the friendliest I&#8217;ve encountered. Moreover, it follows a &#8216;batteries included&#8217; (I didn&#8217;t originate that phrase, relative to Python; everyone says it) mindset: functions you might need are almost all easily available via the <em>import<\/em> command.<\/p>\n<p>Yes, the batteries are included, but you have to put them in. Today I wanted to reload a module, but first had to import the import library (no joke):\n<\/p>\n<p style=\"font-family:monospace\">\nimport importlib<br>\nimportlib.reload(the_module)\n<\/p>\n<p>Python &#8212; you&#8217;ve got to love it:)<\/p>\n<p>Source:<\/p>\n<p><a href=\"https:\/\/www.python.org\/dev\/peps\/pep-0206\/\">python.org<\/a><\/p>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/1254370\/reimport-a-module-in-python-while-interactive\">stackoverflow.com<\/a><\/p>\nJack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.\n","protected":false},"excerpt":{"rendered":"<p>Self-tutoring about Python, but also life: the tutor reflects&#8230;. I&#8217;ve been working on a second degree the past couple of years. I&#8217;m done now, but for a work experience course. I&#8217;ll share more about that in coming posts. One language &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/python-batteries-included\/\"> <span class=\"screen-reader-text\">Python: &#8216;batteries included&#8217;<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1856],"tags":[],"class_list":["post-41971","post","type-post","status-publish","format-standard","hentry","category-python"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/41971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=41971"}],"version-history":[{"count":5,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/41971\/revisions"}],"predecessor-version":[{"id":42005,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/41971\/revisions\/42005"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=41971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=41971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=41971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}