|
Original |
Translation |
|
1129
|
ScriptInterpreterSource Registry
|
|
|
1130
|
Then, give your Python CGI-scripts the extension .py and put them in the cgi-bin directory.
|
|
|
1131
|
How do I keep editors from inserting tabs into my Python source?
|
|
|
1132
|
The FAQ does not recommend using tabs, and the Python style guide, :pep:`8`, recommends 4 spaces for distributed Python code; this is also the Emacs python-mode default.
|
|
|
1133
|
|
1134
|
If you suspect mixed tabs and spaces are causing problems in leading whitespace, run Python with the :option:`-t` switch or run ``Tools/Scripts/tabnanny.py`` to check a directory tree in batch mode.
|
|
|
1135
|
How do I check for a keypress without blocking?
|
|
|
1136
|
Use the msvcrt module. This is a standard Windows-specific extension module. It defines a function ``kbhit()`` which checks whether a keyboard hit is present, and ``getch()`` which gets one character without echoing it.
|
|
|
1137
|
How do I emulate os.kill() in Windows?
|
|
|
1138
|
Prior to Python 2.7 and 3.2, to terminate a process, you can use :mod:`ctypes`::
|
|