{"id":181,"date":"2011-09-14T16:18:18","date_gmt":"2011-09-14T20:18:18","guid":{"rendered":"http:\/\/fll-freak.com\/blog\/?p=181"},"modified":"2025-04-21T00:54:36","modified_gmt":"2025-04-21T04:54:36","slug":"python","status":"publish","type":"post","link":"https:\/\/fll-freak.com\/blog\/?p=181","title":{"rendered":"Python"},"content":{"rendered":"<p>I have been learning some Python here and there over the last few months. It is an interesting language and I think it has many great advantages for some applications. Without offending the Python diehards, I do not think it would be useful for high speed processing of data or graphics. For these tasks a compiled languge like C or C++ is the way to go. But for test or throwaway code it is great.<!--more--><\/p>\n<p>I had a simulator to write for work to test a serial interface. In the past I would have written it in C on either a PC or on an embedded processor. This time I elected to try it using Pythin on a PC. The code took a while to write only becuase I had no clue how to do structures and unions in Python. Turns out the &#8220;ctype&#8221; module is the way to go (or at least I think). When I started out I posted a querey on a Python forum and got the reply &#8220;And why would you think ctype will work?&#8221;. This caused me some consternation, but I proceeded and got it to work. Just goes to show you tha the Internet can sometimes be a good source of bad information.<\/p>\n<p>Must explore to languge more including its ability to be called by C or to call C routines. This might make a very valuable testing platform.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been learning some Python here and there over the last few months. It is an interesting language and I think it has many great advantages for some applications. Without offending the Python diehards, I do not think it &hellip; <a href=\"https:\/\/fll-freak.com\/blog\/?p=181\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,12],"tags":[],"class_list":["post-181","post","type-post","status-publish","format-standard","hentry","category-projects","category-software"],"_links":{"self":[{"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=181"}],"version-history":[{"count":3,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/181\/revisions"}],"predecessor-version":[{"id":187,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/181\/revisions\/187"}],"wp:attachment":[{"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}