<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><span></span></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>Hi,</div><div><br>On 2015-01-21, at 0:20, Matthew Rocklin <<a href="mailto:mrocklin@gmail.com">mrocklin@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr">[...]<div><div style="font-family:monospace,monospace"><br></div><div><b><font face="arial, helvetica, sans-serif">What do people do now?</font></b></div></div></div></blockquote><div><br></div>Currently I use new empty types as symbols. E.g.:<div><br></div><div>class my_symbol: pass</div><div>x = my_symbol</div><div><br></div><div>if x == my_symbol: print("yes")</div><div><br></div><div>Probably there's a nicer way to do it, but the advantage of using types is they are obviously interned.</div><div><br></div><div>Regards,</div><div><br></div><div>Yawar</div><div><br></div></div></body></html>