I am editing Python scripts using Emacs, and I always put this at the beginning of my scripts:
#!/usr/bin/env python
Recommended (at least not discouraged) in PEP 0236 .
However, I just found that pydoc does not recognize (ignore) it correctly:
$ pydoc myscript.py Help on module myscript: NAME myscript -
Is there any way to fix this? Or a good alternative to using -*- coding: utf-8 -*- ?
I am using Python 2.6
Frank source share