<p dir="ltr"><br>
On Feb 16, 2014 1:11 AM, "Marko Rauhamaa" <<a href="mailto:marko@pacujo.net">marko@pacujo.net</a>> wrote:<br>
><br>
> Marko Rauhamaa <<a href="mailto:marko@pacujo.net">marko@pacujo.net</a>>:<br>
><br>
> > Conceptually, the "everything is a reference" and the "small"/"big"<br>
> > distinction are equivalent (produce the same outcomes). The question<br>
> > is, which model is easier for a beginner to grasp.<br>
><br>
> Case in point, if everything is a reference, how come:<br>
><br>
>    >>> "hello".__str__()<br>
>    'hello'<br>
>    >>> 1.__str__()<br>
>    SyntaxError: invalid syntax</p>
<p dir="ltr">You need parentheses around the 1. Otherwise you confuse the lexer, which thinks you're starting a float literal.</p>
<p dir="ltr">>>> (1).__str__()<br>
'1'<br>
</p>