<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Bug in Micropython. &#x27;#&#x27; causes Syntax error on Core]]></title><description><![CDATA[<p dir="auto">Version v1.9.8  Core</p>
<p dir="auto">The following code will cause a syntax error when run</p>
<p dir="auto">x = "#"<br />
print(x)</p>
<p dir="auto">I guess the interpreter thinks the # string is the start of a comment.</p>
<p dir="auto">Why did I need this? I am trying to send the GRBL command "$#" to the GRBL stepmotor module. (which is one of the commands it accepts).</p>
<p dir="auto">Workaround</p>
<p dir="auto">x=b'\x23'.decode()<br />
grbl.g_code('$'+x)</p>
]]></description><link>https://community.m5stack.com/topic/4404/bug-in-micropython-causes-syntax-error-on-core</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Mar 2026 05:56:12 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4404.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 30 Jun 2022 11:44:25 GMT</pubDate><ttl>60</ttl></channel></rss>