Lines Matching refs:Python
8 Python on Windows FAQ
15 .. XXX need review for Python 3.
19 How do I run a Python program under Windows?
42 D:\YourName\Projects\Python>
46 running Python programs.
48 You need to realize that your Python scripts have to be processed by another
49 program called the Python *interpreter*. The interpreter reads your script,
51 program. So, how do you arrange for the interpreter to handle your Python?
66 Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32
71 Python statements or expressions interactively and have them executed or
72 evaluated while you wait. This is one of Python's strongest features. Check it
83 calculator. When you want to end your interactive Python session,
89 --> Programs --> Python 3.x --> Python (command line)` that results in you
96 Python script to it. You'll have to give either an absolute or a
97 relative path to the Python script. Let's say your Python script is
104 So now you'll ask the ``py`` command to give your script to Python by
111 How do I make Python scripts executable?
114 On Windows, the standard Python installer already associates the .py
115 extension with a file type (Python.File) and gives that file type an open
116 command that runs the interpreter (``D:\Program Files\Python\python.exe "%1"
121 Why does Python sometimes take so long to start?
124 Usually Python starts very quickly on Windows, but occasionally there are bug
125 reports that Python suddenly begins to take a long time to start up. This is
126 made even more puzzling because Python will work fine on other Windows systems
138 How do I make an executable from a Python script?
142 that allows you to create console and GUI executables from Python code.
144 Python 2.x-based executables, does not yet support Python 3 but a version that
153 write Python "import foo", and Python will search for foo.pyd (as well as
166 How can I embed Python into a Windows application?
169 Embedding the Python interpreter in a Windows app can be summarized as follows:
171 1. Do _not_ build Python into your .exe file directly. On Windows, Python must
174 typically installed in ``C:\Windows\System``. *NN* is the Python version, a
175 number such as "33" for Python 3.3.
177 You can link to Python in two different ways. Load-time linking means
186 in :file:`python{NN}.dll` (that is, Python's C API's) using pointers obtained
188 pointers transparent to any C code that calls routines in Python's C API.
195 2. If you use SWIG, it is easy to create a Python "extension module" that will
196 make the app's data and methods available to Python. SWIG will handle just
209 into Python! (This is the second key undocumented fact.)
211 4. In short, you can use the following code to initialize the Python interpreter
218 Py_Initialize(); // Initialize Python.
222 5. There are two problems with Python's C API which will become apparent if you
251 6. Using a Python shell script to put up a Python interpreter window from inside
255 window to the Python interpreter. You can redirect Python's i/o to _any_
256 object that supports read and write, so all you need is a Python object
259 How do I keep editors from inserting tabs into my Python source?
262 The FAQ does not recommend using tabs, and the Python style guide, :pep:`8`,
263 recommends 4 spaces for distributed Python code; this is also the Emacs
271 Python raises :exc:`IndentationError` or :exc:`TabError` if mixed tabs