{"id":483645,"date":"2026-05-26T11:15:00","date_gmt":"2026-05-26T11:15:00","guid":{"rendered":"https:\/\/livelycity.com\/switzerland\/duck-typing-in-python-writing-flexible-and-decoupled-code\/"},"modified":"2026-05-26T11:15:00","modified_gmt":"2026-05-26T11:15:00","slug":"duck-typing-in-python-writing-flexible-and-decoupled-code","status":"publish","type":"post","link":"https:\/\/livelycity.com\/switzerland\/duck-typing-in-python-writing-flexible-and-decoupled-code\/","title":{"rendered":"Duck Typing in Python: Writing Flexible and Decoupled Code"},"content":{"rendered":"<p>In this tutorial, you&#8217;ll learn about duck typing in Python. It&#8217;s a typing system based on objects&#8217; behaviors rather than on inheritance. By taking advantage of duck typing, you can create flexible and decoupled sets of Python classes that you can use together or individually.<\/p>\n<p><a href=\"https:\/\/realpython.com\/duck-typing-python\/\" target=\"_blank\" class=\"\">https:\/\/realpython.com\/duck-typing-python\/<\/a>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you&#8217;ll learn about duck typing in Python. It&#8217;s a typing system based on objects&#8217; behaviors rather than on inheritance. By taking advantage&#8230;<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-483645","post","type-post","status-publish","format-standard","hentry","category-kunsthaus-zurich-ch","wpcat-11-id"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/posts\/483645","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/comments?post=483645"}],"version-history":[{"count":0,"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/posts\/483645\/revisions"}],"wp:attachment":[{"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/media?parent=483645"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/categories?post=483645"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/tags?post=483645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}