<div dir="ltr">On Fri, May 17, 2013 at 4:09 AM, Chris Angelico <span dir="ltr"><<a href="mailto:rosuav@gmail.com" target="_blank">rosuav@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On Fri, May 17, 2013 at 7:55 PM, Joao S. O. Bueno <<a href="mailto:jsbueno@python.org.br">jsbueno@python.org.br</a>> wrote:<br>


> On 16 May 2013 16:29, MRAB <<a href="mailto:python@mrabarnett.plus.com">python@mrabarnett.plus.com</a>> wrote:<br>
</div><div class="im">>> The suggestion was to use it in place of implicit string concatenation,<br>
>> which occurs only between string _literals_:<br>
>><br>
>> print ("Hello" . " World")<br>
>><br>
>> and is currently illegal ("SyntaxError: invalid syntax").<br>
><br>
> What is that? One thing that works in a way for literals and<br>
> in another way for expressions?<br>
> Sorry, but there is onlye one word for this: Insanity!<br>
<br>
</div>One of the things I love about Python is that a "thing" can be used in<br>
the same ways whether it's from a literal, a variable/name lookup, a<br>
function return value, a class member, an instance member, etc, etc,<br>
etc. (Sometimes this requires strange magic, like member function<br>
calling, but you still have the principle that "a=foo.bar(quux)" and<br>
"_=foo.bar; a=_(quux)" do the same thing.) So anything that makes<br>
str.str mean something weird gets a -1 from me. The proposals<br>
involving ellipsis have at least the virtue that it's clearly a<br>
syntactic element and not an operator, but I suspect the syntax will<br>
be more problematic than useful.<br>
<br>
If it looks like an operator, it should BE an operator.</blockquote><div><br></div><div>Just to point out that the "." is already overloaded in some cases in Python. Take a look at this literal: 1.2</div><div>Surely, that should mean the 2 attribute of the integer 1, correct? </div>

</div><br></div></div>