blob: 921335ed91d54062562adb8c1655768a4cbc497e [file] [log] [blame]
Christian Heimesd8654cf2007-12-02 15:22:16 +00001.. highlightlang:: none
2
3.. _using-on-windows:
4
5*************************
6 Using Python on Windows
7*************************
8
9.. sectionauthor:: Robert Lehmann <lehmannro@gmail.com>
10
11This document aims to give an overview of Windows-specific behaviour you should
12know about when using Python on Microsoft Windows.
13
14
15Installing Python
16=================
17
18Unlike most Unix systems and services, Windows does not require Python natively
19and thus does not pre-install a version of Python. However, the CPython team
20has compiled Windows installers (MSI packages) with every `release
21<http://www.python.org/download/releases/>`_ for many years.
22
23With ongoing development of Python, some platforms that used to be supported
Christian Heimes380f7f22008-02-28 11:19:05 +000024earlier are no longer supported (due to the lack of users or developers).
Christian Heimesd8654cf2007-12-02 15:22:16 +000025Check :pep:`11` for details on all unsupported platforms.
26
Christian Heimesd8654cf2007-12-02 15:22:16 +000027* Up to 2.5, Python was still compatible with Windows 95, 98 and ME (but already
28 raised a deprecation warning on installation). For Python 2.6 (and all
29 following releases), this support was dropped and new releases are just
30 expected to work on the Windows NT family.
31* `Windows CE <http://pythonce.sourceforge.net/>`_ is still supported.
32* The `Cygwin <http://cygwin.com/>`_ installer offers to install the `Python
33 interpreter <http://cygwin.com/packages/python>`_ as well; it is located under
34 "Interpreters." (cf. `Cygwin package source
35 <ftp://ftp.uni-erlangen.de/pub/pc/gnuwin32/cygwin/mirrors/cygnus/
36 release/python>`_, `Maintainer releases
37 <http://www.tishler.net/jason/software/python/>`_)
38
39See `Python for Windows (and DOS) <http://www.python.org/download/windows/>`_
40for detailed information about platforms with precompiled installers.
41
42.. seealso::
43
44 `Python on XP <http://www.richarddooling.com/index.php/2006/03/14/python-on-xp-7-minutes-to-hello-world/>`_
45 "7 Minutes to "Hello World!""
46 by Richard Dooling, 2006
47
Sandro Tosi53bcd662011-10-31 17:46:04 +010048 `Installing on Windows <http://diveintopython.net/installing_python/windows.html>`_
Christian Heimesd8654cf2007-12-02 15:22:16 +000049 in "`Dive into Python: Python from novice to pro
Sandro Tosi53bcd662011-10-31 17:46:04 +010050 <http://diveintopython.net/index.html>`_"
Christian Heimesd8654cf2007-12-02 15:22:16 +000051 by Mark Pilgrim, 2004,
52 ISBN 1-59059-356-1
53
54 `For Windows users <http://swaroopch.com/text/Byte_of_Python:Installing_Python#For_Windows_users>`_
55 in "Installing Python"
56 in "`A Byte of Python <http://www.byteofpython.info>`_"
57 by Swaroop C H, 2003
58
59
60Alternative bundles
61===================
62
63Besides the standard CPython distribution, there are modified packages including
64additional functionality. The following is a list of popular versions and their
65key features:
66
67`ActivePython <http://www.activestate.com/Products/activepython/>`_
68 Installer with multi-platform compatibility, documentation, PyWin32
69
Georg Brandl495f7b52009-10-27 15:28:25 +000070`Enthought Python Distribution <http://www.enthought.com/products/epd.php>`_
Christian Heimesd8654cf2007-12-02 15:22:16 +000071 Popular modules (such as PyWin32) with their respective documentation, tool
Ezio Melotti0639d5a2009-12-19 23:26:38 +000072 suite for building extensible Python applications
Christian Heimesd8654cf2007-12-02 15:22:16 +000073
Christian Heimes255f53b2007-12-08 15:33:56 +000074Notice that these packages are likely to install *older* versions of Python.
75
Christian Heimesd8654cf2007-12-02 15:22:16 +000076
77
78Configuring Python
79==================
80
81In order to run Python flawlessly, you might have to change certain environment
82settings in Windows.
83
84
85Excursus: Setting environment variables
86---------------------------------------
87
Christian Heimes255f53b2007-12-08 15:33:56 +000088Windows has a built-in dialog for changing environment variables (following
Georg Brandl48310cd2009-01-03 21:18:54 +000089guide applies to XP classical view): Right-click the icon for your machine
90(usually located on your Desktop and called "My Computer") and choose
91:menuselection:`Properties` there. Then, open the :guilabel:`Advanced` tab
Christian Heimes255f53b2007-12-08 15:33:56 +000092and click the :guilabel:`Environment Variables` button.
Christian Heimesd8654cf2007-12-02 15:22:16 +000093
94In short, your path is:
95
96 :menuselection:`My Computer
97 --> Properties
98 --> Advanced
99 --> Environment Variables`
100
101In this dialog, you can add or modify User and System variables. To change
102System variables, you need non-restricted access to your machine
103(i.e. Administrator rights).
104
105Another way of adding variables to your environment is using the :command:`set`
106command::
107
108 set PYTHONPATH=%PYTHONPATH%;C:\My_python_lib
109
110To make this setting permanent, you could add the corresponding command line to
Christian Heimes255f53b2007-12-08 15:33:56 +0000111your :file:`autoexec.bat`. :program:`msconfig` is a graphical interface to this
112file.
Christian Heimesd8654cf2007-12-02 15:22:16 +0000113
114Viewing environment variables can also be done more straight-forward: The
115command prompt will expand strings wrapped into percent signs automatically::
116
117 echo %PATH%
118
119Consult :command:`set /?` for details on this behaviour.
120
121.. seealso::
122
123 http://support.microsoft.com/kb/100843
124 Environment variables in Windows NT
125
126 http://support.microsoft.com/kb/310519
127 How To Manage Environment Variables in Windows XP
128
Christian Heimes255f53b2007-12-08 15:33:56 +0000129 http://www.chem.gla.ac.uk/~louis/software/faq/q1.html
130 Setting Environment variables, Louis J. Farrugia
131
Christian Heimesd8654cf2007-12-02 15:22:16 +0000132
133Finding the Python executable
134-----------------------------
135
136Besides using the automatically created start menu entry for the Python
137interpreter, you might want to start Python in the DOS prompt. To make this
138work, you need to set your :envvar:`%PATH%` environment variable to include the
139directory of your Python distribution, delimited by a semicolon from other
140entries. An example variable could look like this (assuming the first two
141entries are Windows' default)::
142
Benjamin Peterson9bc93512008-09-22 22:10:59 +0000143 C:\WINDOWS\system32;C:\WINDOWS;C:\Python25
Christian Heimesd8654cf2007-12-02 15:22:16 +0000144
145Typing :command:`python` on your command prompt will now fire up the Python
146interpreter. Thus, you can also execute your scripts with command line options,
147see :ref:`using-on-cmdline` documentation.
148
149
150Finding modules
151---------------
152
153Python usually stores its library (and thereby your site-packages folder) in the
154installation directory. So, if you had installed Python to
155:file:`C:\\Python\\`, the default library would reside in
156:file:`C:\\Python\\Lib\\` and third-party modules should be stored in
157:file:`C:\\Python\\Lib\\site-packages\\`.
158
Georg Brandl7306ad52010-10-17 10:05:13 +0000159This is how :data:`sys.path` is populated on Windows:
Christian Heimesd8654cf2007-12-02 15:22:16 +0000160
Georg Brandl7306ad52010-10-17 10:05:13 +0000161* An empty entry is added at the start, which corresponds to the current
162 directory.
Christian Heimesd8654cf2007-12-02 15:22:16 +0000163
Georg Brandl7306ad52010-10-17 10:05:13 +0000164* If the environment variable :envvar:`PYTHONPATH` exists, as described in
165 :ref:`using-on-envvars`, its entries are added next. Note that on Windows,
166 paths in this variable must be separated by semicolons, to distinguish them
167 from the colon used in drive identifiers (``C:\`` etc.).
Christian Heimesd8654cf2007-12-02 15:22:16 +0000168
Georg Brandl7306ad52010-10-17 10:05:13 +0000169* Additional "application paths" can be added in the registry as subkeys of
170 :samp:`\\SOFTWARE\\Python\\PythonCore\\{version}\\PythonPath` under both the
171 ``HKEY_CURRENT_USER`` and ``HKEY_LOCAL_MACHINE`` hives. Subkeys which have
172 semicolon-delimited path strings as their default value will cause each path
173 to be added to :data:`sys.path`. (Note that all known installers only use
174 HKLM, so HKCU is typically empty.)
175
176* If the environment variable :envvar:`PYTHONHOME` is set, it is assumed as
177 "Python Home". Otherwise, the path of the main Python executable is used to
178 locate a "landmark file" (``Lib\os.py``) to deduce the "Python Home". If a
179 Python home is found, the relevant sub-directories added to :data:`sys.path`
180 (``Lib``, ``plat-win``, etc) are based on that folder. Otherwise, the core
181 Python path is constructed from the PythonPath stored in the registry.
182
183* If the Python Home cannot be located, no :envvar:`PYTHONPATH` is specified in
184 the environment, and no registry entries can be found, a default path with
185 relative entries is used (e.g. ``.\Lib;.\plat-win``, etc).
186
187The end result of all this is:
188
189* When running :file:`python.exe`, or any other .exe in the main Python
190 directory (either an installed version, or directly from the PCbuild
191 directory), the core path is deduced, and the core paths in the registry are
192 ignored. Other "application paths" in the registry are always read.
193
194* When Python is hosted in another .exe (different directory, embedded via COM,
195 etc), the "Python Home" will not be deduced, so the core path from the
196 registry is used. Other "application paths" in the registry are always read.
197
198* If Python can't find its home and there is no registry (eg, frozen .exe, some
199 very strange installation setup) you get a path with some default, but
200 relative, paths.
Christian Heimesd8654cf2007-12-02 15:22:16 +0000201
202
203Executing scripts
204-----------------
205
Vinay Sajipd89dae12012-06-24 11:23:07 +0100206As of Python 3.3, Python includes a launcher which facilitates running Python
207scripts. See :ref:`launcher` for more information.
208
209Executing scripts without the Python launcher
210---------------------------------------------
211
212Without the Python launcher installed, Python scripts (files with the extension
213``.py``) will be executed by :program:`python.exe` by default. This executable
214opens a terminal, which stays open even if the program uses a GUI. If you do
215not want this to happen, use the extension ``.pyw`` which will cause the script
216to be executed by :program:`pythonw.exe` by default (both executables are
217located in the top-level of your Python installation directory). This
218suppresses the terminal window on startup.
Christian Heimesd8654cf2007-12-02 15:22:16 +0000219
220You can also make all ``.py`` scripts execute with :program:`pythonw.exe`,
Georg Brandl2ee470f2008-07-16 12:55:28 +0000221setting this through the usual facilities, for example (might require
Christian Heimes2380ac72008-01-09 00:17:24 +0000222administrative rights):
Christian Heimesd8654cf2007-12-02 15:22:16 +0000223
Christian Heimes2380ac72008-01-09 00:17:24 +0000224#. Launch a command prompt.
225#. Associate the correct file group with ``.py`` scripts::
Georg Brandl48310cd2009-01-03 21:18:54 +0000226
Christian Heimes2380ac72008-01-09 00:17:24 +0000227 assoc .py=Python.File
Christian Heimesd8654cf2007-12-02 15:22:16 +0000228
Christian Heimes2380ac72008-01-09 00:17:24 +0000229#. Redirect all Python files to the new executable::
Georg Brandl48310cd2009-01-03 21:18:54 +0000230
Christian Heimes2380ac72008-01-09 00:17:24 +0000231 ftype Python.File=C:\Path\to\pythonw.exe "%1" %*
Christian Heimesd8654cf2007-12-02 15:22:16 +0000232
233
Vinay Sajipd89dae12012-06-24 11:23:07 +0100234.. _launcher:
235
236Python Launcher for Windows
237===========================
238
239.. versionadded:: 3.3
240
241The Python launcher for Windows is a utility which aids in the location and
242execution of different Python versions. It allows scripts (or the
243command-line) to indicate a preference for a specific Python version, and
244will locate and execute that version.
245
246Getting started
247---------------
248
249From the command-line
250^^^^^^^^^^^^^^^^^^^^^
251
252You should ensure the launcher is on your PATH - depending on how it was
253installed it may already be there, but check just in case it is not.
254
255From a command-prompt, execute the following command:
256
257::
258
259 py
260
261You should find that the latest version of Python 2.x you have installed is
262started - it can be exited as normal, and any additional command-line
263arguments specified will be sent directly to Python.
264
265If you have multiple versions of Python 2.x installed (e.g., 2.6 and 2.7) you
266will have noticed that Python 2.7 was started - to launch Python 2.6, try the
267command:
268
269::
270
271 py -2.6
272
273If you have a Python 3.x installed, try the command:
274
275::
276
277 py -3
278
279You should find the latest version of Python 3.x starts.
280
281From a script
282^^^^^^^^^^^^^
283
284Let's create a test Python script - create a file called ``hello.py`` with the
285following contents
286
287::
288
289 #! python
290 import sys
291 sys.stdout.write("hello from Python %s\n" % (sys.version,))
292
293From the directory in which hello.py lives, execute the command:
294
295::
296
297 py hello.py
298
299You should notice the version number of your latest Python 2.x installation
300is printed. Now try changing the first line to be:
301
302::
303
304 #! python3
305
306Re-executing the command should now print the latest Python 3.x information.
307As with the above command-line examples, you can specify a more explicit
308version qualifier. Assuming you have Python 2.6 installed, try changing the
309first line to ``#! python2.6`` and you should find the 2.6 version
310information printed.
311
312From file associations
313^^^^^^^^^^^^^^^^^^^^^^
314
315The launcher should have been associated with Python files (i.e. ``.py``,
316``.pyw``, ``.pyc``, ``.pyo`` files) when it was installed. This means that
317when you double-click on one of these files from Windows explorer the launcher
318will be used, and therefore you can use the same facilities described above to
319have the script specify the version which should be used.
320
321The key benefit of this is that a single launcher can support multiple Python
322versions at the same time depending on the contents of the first line.
323
324Shebang Lines
325-------------
326
327If the first line of a script file starts with ``#!``, it is known as a
328"shebang" line. Linux and other Unix like operating systems have native
329support for such lines and are commonly used on such systems to indicate how
330a script should be executed. This launcher allows the same facilities to be
331using with Python scripts on Windows and the examples above demonstrate their
332use.
333
334To allow shebang lines in Python scripts to be portable between Unix and
335Windows, this launcher supports a number of 'virtual' commands to specify
336which interpreter to use. The supported virtual commands are:
337
338* ``/usr/bin/env python``
339* ``/usr/bin/python``
340* ``/usr/local/bin/python``
341* ``python``
342
343For example, if the first line of your script starts with
344
345::
346
347 #! /usr/bin/python
348
349The default Python will be located and used. As many Python scripts written
350to work on Unix will already have this line, you should find these scripts can
351be used by the launcher without modification. If you are writing a new script
352on Windows which you hope will be useful on Unix, you should use one of the
353shebang lines starting with ``/usr``.
354
355Arguments in shebang lines
356--------------------------
357
358The shebang lines can also specify additional options to be passed to the
359Python interpreter. For example, if you have a shebang line:
360
361::
362
363 #! /usr/bin/python -v
364
365Then Python will be started with the ``-v`` option
366
367Customization
368-------------
369
370Customization via INI files
371^^^^^^^^^^^^^^^^^^^^^^^^^^^
372
373 Two .ini files will be searched by the launcher - ``py.ini`` in the
374 current user's "application data" directory (i.e. the directory returned
375 by calling the Windows function SHGetFolderPath with CSIDL_LOCAL_APPDATA)
376 and ``py.ini`` in the same directory as the launcher. The same .ini
377 files are used for both the 'console' version of the launcher (i.e.
378 py.exe) and for the 'windows' version (i.e. pyw.exe)
379
380 Customization specified in the "application directory" will have
381 precedence over the one next to the executable, so a user, who may not
382 have write access to the .ini file next to the launcher, can override
383 commands in that global .ini file)
384
385Customizing default Python versions
386^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
387
388In some cases, a version qualifier can be included in a command to dictate
389which version of Python will be used by the command. A version qualifier
390starts with a major version number and can optionally be followed by a period
391('.') and a minor version specifier. If the minor qualifier is specified, it
392may optionally be followed by "-32" to indicate the 32-bit implementation of
393that version be used.
394
395For example, a shebang line of ``#!python`` has no version qualifier, while
396``#!python3`` has a version qualifier which specifies only a major version.
397
398If no version qualifiers are found in a command, the environment variable
399``PY_PYTHON`` can be set to specify the default version qualifier - the default
400value is "2". Note this value could specify just a major version (e.g. "2") or
401a major.minor qualifier (e.g. "2.6"), or even major.minor-32.
402
403If no minor version qualifiers are found, the environment variable
404``PY_PYTHON{major}`` (where ``{major}`` is the current major version qualifier
405as determined above) can be set to specify the full version. If no such option
406is found, the launcher will enumerate the installed Python versions and use
407the latest minor release found for the major version, which is likely,
408although not guaranteed, to be the most recently installed version in that
409family.
410
411On 64-bit Windows with both 32-bit and 64-bit implementations of the same
412(major.minor) Python version installed, the 64-bit version will always be
413preferred. This will be true for both 32-bit and 64-bit implementations of the
414launcher - a 32-bit launcher will prefer to execute a 64-bit Python installation
415of the specified version if available. This is so the behavior of the launcher
416can be predicted knowing only what versions are installed on the PC and
417without regard to the order in which they were installed (i.e., without knowing
418whether a 32 or 64-bit version of Python and corresponding launcher was
419installed last). As noted above, an optional "-32" suffix can be used on a
420version specifier to change this behaviour.
421
422Examples:
423
424* If no relevant options are set, the commands ``python`` and
425 ``python2`` will use the latest Python 2.x version installed and
426 the command ``python3`` will use the latest Python 3.x installed.
427
428* The commands ``python3.1`` and ``python2.7`` will not consult any
429 options at all as the versions are fully specified.
430
431* If ``PY_PYTHON=3``, the commands ``python`` and ``python3`` will both use
432 the latest installed Python 3 version.
433
434* If ``PY_PYTHON=3.1-32``, the command ``python`` will use the 32-bit
435 implementation of 3.1 whereas the command ``python3`` will use the latest
436 installed Python (PY_PYTHON was not considered at all as a major
437 version was specified.)
438
439* If ``PY_PYTHON=3`` and ``PY_PYTHON3=3.1``, the commands
440 ``python`` and ``python3`` will both use specifically 3.1
441
442In addition to environment variables, the same settings can be configured
443in the .INI file used by the launcher. The section in the INI file is
444called ``[defaults]`` and the key name will be the same as the
445environment variables without the leading ``PY\_`` prefix (and note that
446the key names in the INI file are case insensitive.) The contents of
447an environment variable will override things specified in the INI file.
448
449For example:
450
451* Setting ``PY_PYTHON=3.1`` is equivalent to the INI file containing:
452
453::
454
455 [defaults]
456 python=3.1
457
458* Setting ``PY_PYTHON=3`` and ``PY_PYTHON3=3.1`` is equivalent to the INI file
459 containing:
460
461::
462
463 [defaults]
464 python=3
465 python3=3.1
466
467Diagnostics
468-----------
469
470If an environment variable ``PYLAUNCH_DEBUG`` is set (to any value), the
471launcher will print diagnostic information to stderr (i.e. to the console).
472While this information manages to be simultaneously verbose *and* terse, it
473should allow you to see what versions of Python were located, why a
474particular version was chosen and the exact command-line used to execute the
475target Python.
476
477
Christian Heimesd8654cf2007-12-02 15:22:16 +0000478Additional modules
479==================
480
481Even though Python aims to be portable among all platforms, there are features
482that are unique to Windows. A couple of modules, both in the standard library
483and external, and snippets exist to use these features.
484
485The Windows-specific standard modules are documented in
486:ref:`mswin-specific-services`.
487
488
489PyWin32
490-------
491
492The `PyWin32 <http://python.net/crew/mhammond/win32/>`_ module by Mark Hammond
493is a collection of modules for advanced Windows-specific support. This includes
Georg Brandl2ee470f2008-07-16 12:55:28 +0000494utilities for:
Christian Heimesd8654cf2007-12-02 15:22:16 +0000495
496* `Component Object Model <http://www.microsoft.com/com/>`_ (COM)
497* Win32 API calls
498* Registry
499* Event log
Georg Brandl495f7b52009-10-27 15:28:25 +0000500* `Microsoft Foundation Classes <http://msdn.microsoft.com/en-us/library/fe1cf721%28VS.80%29.aspx>`_ (MFC)
Christian Heimesd8654cf2007-12-02 15:22:16 +0000501 user interfaces
502
503`PythonWin <http://web.archive.org/web/20060524042422/
504http://www.python.org/windows/pythonwin/>`_ is a sample MFC application
505shipped with PyWin32. It is an embeddable IDE with a built-in debugger.
506
507.. seealso::
508
509 `Win32 How Do I...? <http://timgolden.me.uk/python/win32_how_do_i.html>`_
510 by Tim Golden
511
512 `Python and COM <http://www.boddie.org.uk/python/COM.html>`_
513 by David and Paul Boddie
514
515
516Py2exe
517------
518
519`Py2exe <http://www.py2exe.org/>`_ is a :mod:`distutils` extension (see
520:ref:`extending-distutils`) which wraps Python scripts into executable Windows
521programs (:file:`{*}.exe` files). When you have done this, you can distribute
522your application without requiring your users to install Python.
523
524
525WConio
526------
527
528Since Python's advanced terminal handling layer, :mod:`curses`, is restricted to
529Unix-like systems, there is a library exclusive to Windows as well: Windows
530Console I/O for Python.
531
532`WConio <http://newcenturycomputers.net/projects/wconio.html>`_ is a wrapper for
533Turbo-C's :file:`CONIO.H`, used to create text user interfaces.
534
535
536
537Compiling Python on Windows
538===========================
539
540If you want to compile CPython yourself, first thing you should do is get the
541`source <http://python.org/download/source/>`_. You can download either the
542latest release's source or just grab a fresh `checkout
Éric Araujo9be57232011-10-14 17:37:45 +0200543<http://docs.python.org/devguide/setup#checking-out-the-code>`_.
Christian Heimesd8654cf2007-12-02 15:22:16 +0000544
545For Microsoft Visual C++, which is the compiler with which official Python
546releases are built, the source tree contains solutions/project files. View the
547:file:`readme.txt` in their respective directories:
548
549+--------------------+--------------+-----------------------+
550| Directory | MSVC version | Visual Studio version |
551+====================+==============+=======================+
Christian Heimes2c181612007-12-17 20:04:13 +0000552| :file:`PC/VC6/` | 6.0 | 97 |
Christian Heimesd8654cf2007-12-02 15:22:16 +0000553+--------------------+--------------+-----------------------+
Benjamin Peterson9bc93512008-09-22 22:10:59 +0000554| :file:`PC/VS7.1/` | 7.1 | 2003 |
Christian Heimesd8654cf2007-12-02 15:22:16 +0000555+--------------------+--------------+-----------------------+
Benjamin Peterson9bc93512008-09-22 22:10:59 +0000556| :file:`PC/VS8.0/` | 8.0 | 2005 |
Christian Heimesd8654cf2007-12-02 15:22:16 +0000557+--------------------+--------------+-----------------------+
Benjamin Peterson9bc93512008-09-22 22:10:59 +0000558| :file:`PCbuild/` | 9.0 | 2008 |
Christian Heimesd8654cf2007-12-02 15:22:16 +0000559+--------------------+--------------+-----------------------+
560
561Note that not all of these build directories are fully supported. Read the
562release notes to see which compiler version the official releases for your
563version are built with.
564
565Check :file:`PC/readme.txt` for general information on the build process.
566
567
568For extension modules, consult :ref:`building-on-windows`.
569
570.. seealso::
571
572 `Python + Windows + distutils + SWIG + gcc MinGW <http://sebsauvage.net/python/mingw.html>`_
573 or "Creating Python extensions in C/C++ with SWIG and compiling them with
574 MinGW gcc under Windows" or "Installing Python extension with distutils
575 and without Microsoft Visual C++" by Sébastien Sauvage, 2003
576
Georg Brandl495f7b52009-10-27 15:28:25 +0000577 `MingW -- Python extensions <http://oldwiki.mingw.org/index.php/Python%20extensions>`_
Christian Heimesd8654cf2007-12-02 15:22:16 +0000578 by Trent Apted et al, 2007
579
580
581Other resources
582===============
583
584.. seealso::
585
586 `Python Programming On Win32 <http://www.oreilly.com/catalog/pythonwin32/>`_
587 "Help for Windows Programmers"
588 by Mark Hammond and Andy Robinson, O'Reilly Media, 2000,
589 ISBN 1-56592-621-8
590
591 `A Python for Windows Tutorial <http://www.imladris.com/Scripts/PythonForWindows.html>`_
592 by Amanda Birmingham, 2004
593
Vinay Sajipd89dae12012-06-24 11:23:07 +0100594 :pep:`397` - Python launcher for Windows
595 The proposal for the launcher to be included in the Python distribution.
596
597