Lines Matching refs:Python
8 Python on Windows FAQ
15 .. XXX need review for Python 3.
21 How do I run a Python program under Windows?
44 D:\YourName\Projects\Python>
48 running Python programs.
50 You need to realize that your Python scripts have to be processed by another
51 program called the Python *interpreter*. The interpreter reads your script,
53 program. So, how do you arrange for the interpreter to handle your Python?
68 Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32
73 Python statements or expressions interactively and have them executed or
74 evaluated while you wait. This is one of Python's strongest features. Check it
85 calculator. When you want to end your interactive Python session,
91 --> Programs --> Python 3.x --> Python (command line)` that results in you
98 Python script to it. You'll have to give either an absolute or a
99 relative path to the Python script. Let's say your Python script is
106 So now you'll ask the ``py`` command to give your script to Python by
113 How do I make Python scripts executable?
116 On Windows, the standard Python installer already associates the .py
117 extension with a file type (Python.File) and gives that file type an open
118 command that runs the interpreter (``D:\Program Files\Python\python.exe "%1"
123 Why does Python sometimes take so long to start?
126 Usually Python starts very quickly on Windows, but occasionally there are bug
127 reports that Python suddenly begins to take a long time to start up. This is
128 made even more puzzling because Python will work fine on other Windows systems
140 How do I make an executable from a Python script?
152 write Python "import foo", and Python will search for foo.pyd (as well as
165 How can I embed Python into a Windows application?
168 Embedding the Python interpreter in a Windows app can be summarized as follows:
170 1. Do **not** build Python into your .exe file directly. On Windows, Python must
173 typically installed in ``C:\Windows\System``. *NN* is the Python version, a
174 number such as "33" for Python 3.3.
176 You can link to Python in two different ways. Load-time linking means
185 in :file:`python{NN}.dll` (that is, Python's C API's) using pointers obtained
187 pointers transparent to any C code that calls routines in Python's C API.
191 2. If you use SWIG, it is easy to create a Python "extension module" that will
192 make the app's data and methods available to Python. SWIG will handle just
205 into Python! (This is the second key undocumented fact.)
207 4. In short, you can use the following code to initialize the Python interpreter
212 #include <Python.h>
214 Py_Initialize(); // Initialize Python.
218 5. There are two problems with Python's C API which will become apparent if you
247 6. Using a Python shell script to put up a Python interpreter window from inside
251 window to the Python interpreter. You can redirect Python's i/o to _any_
252 object that supports read and write, so all you need is a Python object
255 How do I keep editors from inserting tabs into my Python source?
258 The FAQ does not recommend using tabs, and the Python style guide, :pep:`8`,
259 recommends 4 spaces for distributed Python code; this is also the Emacs
267 Python raises :exc:`IndentationError` or :exc:`TabError` if mixed tabs
283 This can occur on Python 3.5 and later when using Windows 8.1 or earlier without all updates having…