is @ operator popular now?
Chris Angelico
rosuav at gmail.com
Sat Jul 15 09:11:35 EDT 2017
On Sat, Jul 15, 2017 at 11:05 PM, Peter Otten <__peter__ at web.de> wrote:
> Matt Wheeler wrote:
>
>>> as the title says. has @ been used in projects?
>
> numpy, probably?
>
>> Strictly speaking, @ is not an operator.
>
> In other words it's not popular, not even widely known.
>
> Compare:
>
> $ python3.4 -c '__peter__ at web.de'
> File "<string>", line 1
> __peter__ at web.de
> ^
> SyntaxError: invalid syntax
> $ python3.5 -c '__peter__ at web.de'
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> NameError: name '__peter__' is not defined
>
> Starting with 3.5 my email address is valid Python syntax. Now I'm waiting
> for the __peter__ builtin ;)
And you'll have to 'import web' too.
I've no idea what 'web.de' would be and what happens when you matmul it by you.
ChrisA
More information about the Python-list
mailing list