Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f1c9869

Browse files
committed
Avoid a 301 permanent redirect.
Part of SF patch #773007. Also fixed a number of mostly cosmetic markup errors.
1 parent 644a08c commit f1c9869

1 file changed

Lines changed: 18 additions & 16 deletions

File tree

Doc/mac/using.tex

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ \chapter{Using Python on a Mac OS 9 Macintosh \label{using}}
22
\sectionauthor{Bob Savage}{[email protected]}
33

44
Using Python on a Macintosh, especially on Mac OS 9 (MacPython-OSX
5-
includes a complete unix Python) can seem like something completely
5+
includes a complete \UNIX{} Python) can seem like something completely
66
different than using it on a \UNIX-like or Windows system. Most of the
77
Python documentation, both the ``official'' documentation and published
88
books, describe only how Python is used on these systems, causing
@@ -28,11 +28,12 @@ \section{Getting and Installing MacPython-OSX \label{getting-OSX}}
2828
\begin{itemize}
2929
\item A \file{MacPython-2.3} folder in your \file{Applications}
3030
folder. In here you find the PythonIDE Integrated Development Environment;
31-
PythonLauncher, which handles double-clicking Python scripts from the Finder; and
32-
the Package Manager.
31+
PythonLauncher, which handles double-clicking Python scripts from
32+
the Finder; and the Package Manager.
3333

34-
\item A fairly standard unix commandline Python interpreter in
35-
\file{/usr/local/bin/python}, but without the usual \file{/usr/local/lib/python}.
34+
\item A fairly standard \UNIX{} commandline Python interpreter in
35+
\file{/usr/local/bin/python}, but without the usual
36+
\file{/usr/local/lib/python}.
3637

3738
\item A framework \file{/Library/Frameworks/Python.framework}, where
3839
all the action really is, but which you usually do not have to be aware of.
@@ -44,8 +45,8 @@ \section{Getting and Installing MacPython-OSX \label{getting-OSX}}
4445
which you can access through its help menu. If you are completely new to
4546
Python you should start reading the IDE introduction in that document.
4647

47-
If you are familiar with Python on other unix platforms you should read the
48-
section on running Python scripts from the unix shell.
48+
If you are familiar with Python on other \UNIX{} platforms you should
49+
read the section on running Python scripts from the \UNIX{} shell.
4950

5051
\subsection{How to run a Python script}
5152

@@ -55,14 +56,14 @@ \subsection{How to run a Python script}
5556

5657
If you want to run Python scripts from the Terminal window command line
5758
or from the Finder you first need an editor to create your script.
58-
Mac OS X comes with a number of standard unix command line editors,
59+
Mac OS X comes with a number of standard \UNIX{} command line editors,
5960
\program{vi} and \program{emacs} among them. If you want a more Mac-like
6061
editor \program{BBEdit} or \program{TextWrangler} from Bare Bones Software
61-
(see \url{http://www.barebones.com}) are good choices. Their freeware
62-
\program{BBEdit Lite} is officially discontinued but still available.
63-
\program{AppleWorks} or any other word processor that can save files
64-
in ASCII is also a possibility, but \program{TextEdit} is not: it saves in .rtf
65-
format only.
62+
(see \url{http://www.barebones.com/products/bbedit/index.shtml}) are
63+
good choices. Their freeware \program{BBEdit Lite} is officially
64+
discontinued but still available. \program{AppleWorks} or any other
65+
word processor that can save files in ASCII is also a possibility, but
66+
\program{TextEdit} is not: it saves in \file{.rtf} format only.
6667

6768
To run your script from the Terminal window you must make sure that
6869
\file{/usr/local/bin} is in your shell search path before \file{/usr/bin},
@@ -90,8 +91,9 @@ \subsection{Running scripts with a GUI \label{osx-gui-scripts}}
9091

9192
\subsection{configuration}
9293

93-
MacPython honours all standard unix environment variables such as \envvar{PYTHONPATH},
94-
but setting these variables for programs started from the Finder is non-standard
94+
MacPython honours all standard \UNIX{} environment variables such as
95+
\envvar{PYTHONPATH}, but setting these variables for programs started
96+
from the Finder is non-standard
9597
as the Finder does not read your \file{.profile} or \file{.cshrc} at startup.
9698
You need to create a file \file{\textasciitilde /.MacOSX/environment.plist}.
9799
See Apple's Technical Document QA1067 for details.
@@ -103,7 +105,7 @@ \section{Getting and Installing MacPython-OS9 \label{getting}}
103105

104106
The most recent release version as well as possible newer experimental
105107
versions are best found at the MacPython page maintained by Jack
106-
Jansen: \url{http://www.cwi.nl/\textasciitilde jack/macpython.html}.
108+
Jansen: \url{http://homepages.cwi.nl/\textasciitilde jack/macpython.html}.
107109

108110
Please refer to the \file{README} included with your distribution for
109111
the most up-to-date instructions.

0 commit comments

Comments
 (0)