{"id":1151,"date":"2023-05-01T02:21:59","date_gmt":"2023-05-01T06:21:59","guid":{"rendered":"https:\/\/www.sofastatistics.com\/blog\/?p=1151"},"modified":"2023-05-01T02:21:59","modified_gmt":"2023-05-01T06:21:59","slug":"the-when-of-python","status":"publish","type":"post","link":"http:\/\/www.sofastatistics.com\/blog\/the-when-of-python\/","title":{"rendered":"The When of Python"},"content":{"rendered":"\n<p>SOFA Statistics (and SOFA Lite) are both written in Python. SOFA Statistics was originally written in Python2 and ported into Python3. SOFA Lite is being written in Python 3.11 from the ground up and tries to use the best features that modern Python provides. Not all features added to Python recently are good features and sometimes it is hard to know which of multiple alternatives should be used &#8211; for example, should we use collections.namedtuple, typing.namedtuple, or dataclasses.dataclass? Which is where the When of Python project comes in &#8211; tag line:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Shrinking Python to fit our brains by providing guidance on when to use language features (and when not to)<\/p>\n<\/blockquote>\n\n\n\n<p>Find out more at <a href=\"https:\/\/whenof.python.nz\/blog\">https:\/\/whenof.python.nz\/blog<\/a> and try out the demo app at <a href=\"https:\/\/whenof.python.nz\">https:\/\/whenof.python.nz<\/a>. The project can also be followed at <a href=\"https:\/\/twitter.com\/WhenOfPython\">https:\/\/twitter.com\/WhenOfPython<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.sofastatistics.com\/blog\/wp-content\/uploads\/2023\/05\/Screenshot-from-2023-05-01-18-13-54.png\"><img loading=\"lazy\" decoding=\"async\" width=\"608\" height=\"895\" src=\"https:\/\/www.sofastatistics.com\/blog\/wp-content\/uploads\/2023\/05\/Screenshot-from-2023-05-01-18-13-54.png\" alt=\"\" class=\"wp-image-1152\" srcset=\"http:\/\/www.sofastatistics.com\/blog\/wp-content\/uploads\/2023\/05\/Screenshot-from-2023-05-01-18-13-54.png 608w, http:\/\/www.sofastatistics.com\/blog\/wp-content\/uploads\/2023\/05\/Screenshot-from-2023-05-01-18-13-54-204x300.png 204w\" sizes=\"auto, (max-width: 608px) 100vw, 608px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>SOFA Statistics (and SOFA Lite) are both written in Python. SOFA Statistics was originally written in Python2 and ported into Python3. SOFA Lite is being written in Python 3.11 from the ground up and tries to use the best features that modern Python provides. Not all features added to Python recently are good features and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5],"tags":[11,12],"class_list":["post-1151","post","type-post","status-publish","format-standard","hentry","category-developers","category-python","tag-python","tag-whenofpython"],"_links":{"self":[{"href":"http:\/\/www.sofastatistics.com\/blog\/wp-json\/wp\/v2\/posts\/1151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.sofastatistics.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.sofastatistics.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.sofastatistics.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sofastatistics.com\/blog\/wp-json\/wp\/v2\/comments?post=1151"}],"version-history":[{"count":3,"href":"http:\/\/www.sofastatistics.com\/blog\/wp-json\/wp\/v2\/posts\/1151\/revisions"}],"predecessor-version":[{"id":1155,"href":"http:\/\/www.sofastatistics.com\/blog\/wp-json\/wp\/v2\/posts\/1151\/revisions\/1155"}],"wp:attachment":[{"href":"http:\/\/www.sofastatistics.com\/blog\/wp-json\/wp\/v2\/media?parent=1151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.sofastatistics.com\/blog\/wp-json\/wp\/v2\/categories?post=1151"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.sofastatistics.com\/blog\/wp-json\/wp\/v2\/tags?post=1151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}