Attila-Mihaly Balazs added the comment:
Absolutely this. While it is good that there is at least some documentation (at
sys.settrace), it is not very explicit nor is it self evident that one should
look there (for example the PDB docs don't even mention settrace).
--
nosy: +A
New submission from Attila-Mihaly Balazs:
Doing the following in Python 2.7.12 does not work:
from __future__ import print_function
print(1, flush=True)
It says: "'flush' is an invalid keyword argument for this function"
While the following is a perfectly valid python 3k
Attila-Mihaly Balazs added the comment:
Hello,
A scenario where this would be needed (and where you can't just "execute the
script with the python from inside the pyvenv" to get it automatically
activate) is when running under mod_wsgi. There sometimes it is needed to
activate