⊙ virtualenv test Julian@Macnetic
Using real prefix '/usr/local/Cellar/pypy/5.9.0/libexec'
Path not in prefix '/Users/Julian/.local/share/virtualenvs/mkenv/include' '/usr/local/Cellar/pypy/5.9.0/libexec'
New pypy executable in /Users/Julian/Desktop/test/bin/pypy
Installing setuptools, pip, wheel...test/bin/pip install ptpython
done.
~/Desktop
⊙ test/bin/pip install ptpython Julian@Macnetic
Collecting ptpython
Using cached ptpython-0.41-py2-none-any.whl
Collecting docopt (from ptpython)
Collecting jedi>=0.9.0 (from ptpython)
Using cached jedi-0.11.0-py2.py3-none-any.whl
Collecting prompt-toolkit<2.0.0,>=1.0.14 (from ptpython)
Using cached prompt_toolkit-1.0.15-py2-none-any.whl
Collecting pygments (from ptpython)
Using cached Pygments-2.2.0-py2.py3-none-any.whl
Collecting parso==0.1.0 (from jedi>=0.9.0->ptpython)
Using cached parso-0.1.0-py2.py3-none-any.whl
Collecting six>=1.9.0 (from prompt-toolkit<2.0.0,>=1.0.14->ptpython)
Using cached six-1.11.0-py2.py3-none-any.whl
Collecting wcwidth (from prompt-toolkit<2.0.0,>=1.0.14->ptpython)
Using cached wcwidth-0.1.7-py2.py3-none-any.whl
Installing collected packages: docopt, parso, jedi, six, wcwidth, prompt-toolkit, pygments, ptpython
Successfully installed docopt-0.6.2 jedi-0.11.0 parso-0.1.0 prompt-toolkit-1.0.15 ptpython-0.41 pygments-2.2.0 six-1.11.0 wcwidth-0.1.7
~/Desktop
⊙ test/bin/ptpython Julian@Macnetic
>>> type("foo")
<type 'str'>
>>>
~/Desktop
⊙ test/bin/python -m ptpython Julian@Macnetic
>>> type("foo")
<type 'unicode'>
At best, this is just inconsistent with running
ptpythonthe binary, where it will not apply, but at worst,unicode_literalsis a horrible footgun misfeature :(.