Re:PyPy 4.0.0 Released – A Jit with SIMD Vectorization and More
by scardine on Thursday October 29, 2015 @05:18PM
(#10474374)
In variable names, for example. You can do this:
In Python 2:
[ Parent
| on HN ]
Re:PyPy 4.0.0 Released – A Jit with SIMD Vectorization and More
by auscompgeek on Thursday October 29, 2015 @09:33PM
(#10475654)
Python 2.7.10 (850edf14b2c7, Oct 29 2015, 17:32:05)
[PyPy 4.0.0 with GCC 5.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>> π = 3.14
File "<stdin>", line 1
π = 3.14
^
SyntaxError: Unknown character
Are you sure you weren't trying it in Python 3 (or PyPy3) rather than PyPy?
Re:PyPy 4.0.0 Released – A Jit with SIMD Vectorization and More
by takeda on Friday October 30, 2015 @03:57PM
(#10480160)
I'm getting same result as scardine:
Python 2.7.8 (default, Sep 30 2014, 15:34:38) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> π = 3.14
File "<stdin>", line 1
π = 3.14
^
SyntaxError: invalid syntax
>>>
also: Python 3.4.1 (default, May 23 2014, 17:48:28) [GCC] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> π = 3.14
>>> print(π)
3.14