{"id":5002,"date":"2013-06-18T14:03:17","date_gmt":"2013-06-18T13:03:17","guid":{"rendered":"http:\/\/www.walkingrandomly.com\/?p=5002"},"modified":"2013-06-18T14:03:17","modified_gmt":"2013-06-18T13:03:17","slug":"python-braces-not-a-chance","status":"publish","type":"post","link":"https:\/\/walkingrandomly.com\/?p=5002","title":{"rendered":"Python: Braces? Not a chance!"},"content":{"rendered":"<p>I was recently chatting to a research group who were considering moving to <a href=\"http:\/\/www.python.org\/\">Python<\/a> from <a href=\"http:\/\/www.mathworks.co.uk\/products\/matlab\/\">MATLAB<\/a> for some of their research software output.\u00a0 One team member was very worried about Python&#8217;s use of <a href=\"http:\/\/www.secnetix.de\/olli\/Python\/block_indentation.hawk\">indentation to denote blocks of code<\/a> and wondered if braces would ever find their way into the language?\u00a0 Another team member pointed out that this was extremely unlikely and invited us to attempt to import braces from the <a href=\"http:\/\/docs.python.org\/2\/library\/__future__.html\">__future__ module<\/a>.<\/p>\n<pre>&gt;&gt;&gt; from __future__ import braces\r\n  File \"\", line 1\r\nSyntaxError: not a chance<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I was recently chatting to a research group who were considering moving to Python from MATLAB for some of their research software output.\u00a0 One team member was very worried about Python&#8217;s use of indentation to denote blocks of code and wondered if braces would ever find their way into the language?\u00a0 Another team member pointed [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7,31],"tags":[],"class_list":["post-5002","post","type-post","status-publish","format-standard","hentry","category-programming","category-python"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3swhs-1iG","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/5002","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5002"}],"version-history":[{"count":1,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/5002\/revisions"}],"predecessor-version":[{"id":5007,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/5002\/revisions\/5007"}],"wp:attachment":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5002"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}