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

Skip to content

Commit 0e03f58

Browse files
committed
Add Jack Jansen's explanation of the MacOS X changes
1 parent 1da6eb0 commit 0e03f58

1 file changed

Lines changed: 43 additions & 7 deletions

File tree

Doc/whatsnew/whatsnew22.tex

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -741,15 +741,51 @@ \section{Other Changes and Fixes}
741741

742742
\begin{itemize}
743743

744+
\item The code for the MacOS port for Python, maintained by Jack
745+
Jansen, is now kept in the main Python CVS tree, and many changes
746+
have been made to support MacOS X.
747+
748+
The most significant change is the ability to build Python as a
749+
framework, enabled by supplying the \longprogramopt{enable-framework}
750+
option to the configure script when compiling Python. According to
751+
Jack Jansen, ``This installs a self-contained Python installation plus
752+
the OSX framework "glue" into
753+
\file{/Library/Frameworks/Python.framework} (or another location of
754+
choice). For now there is little immediate added benefit to this
755+
(actually, there is the disadvantage that you have to change your PATH
756+
to be able to find Python), but it is the basis for creating a
757+
full-blown Python application, porting the MacPython IDE, possibly
758+
using Python as a standard OSA scripting language and much more.''
759+
760+
Most of the MacPython toolbox modules, which interface to MacOS APIs
761+
such as windowing, QuickTime, scripting, etc. have been ported to OS
762+
X, but they've been left commented out in setup.py. People who want
763+
to experiment with these modules can uncomment them manually.
764+
765+
% Jack's original comments:
766+
%The main change is the possibility to build Python as a
767+
%framework. This installs a self-contained Python installation plus the
768+
%OSX framework "glue" into /Library/Frameworks/Python.framework (or
769+
%another location of choice). For now there is little immedeate added
770+
%benefit to this (actually, there is the disadvantage that you have to
771+
%change your PATH to be able to find Python), but it is the basis for
772+
%creating a fullblown Python application, porting the MacPython IDE,
773+
%possibly using Python as a standard OSA scripting language and much
774+
%more. You enable this with "configure --enable-framework".
775+
776+
%The other change is that most MacPython toolbox modules, which
777+
%interface to all the MacOS APIs such as windowing, quicktime,
778+
%scripting, etc. have been ported. Again, most of these are not of
779+
%immedeate use, as they need a full application to be really useful, so
780+
%they have been commented out in setup.py. People wanting to experiment
781+
%can uncomment them. Gestalt and Internet Config modules are enabled by
782+
%default.
783+
784+
744785
\item Keyword arguments passed to builtin functions that don't take them
745786
now cause a \exception{TypeError} exception to be raised, with the
746787
message "\var{function} takes no keyword arguments".
747788

748-
\item The code for the Mac OS port for Python, maintained by Jack
749-
Jansen, is now kept in the main Python CVS tree.
750-
% XXX should expand this with all of Jack's recent changes (ask him for
751-
% a summary)
752-
753789
\item A new script, \file{Tools/scripts/cleanfuture.py} by Tim
754790
Peters, automatically removes obsolete \code{__future__} statements
755791
from Python source code.
@@ -822,7 +858,7 @@ \section{Acknowledgements}
822858
The author would like to thank the following people for offering
823859
suggestions and corrections to various drafts of this article: Fred
824860
Bremmer, Keith Briggs, Fred L. Drake, Jr., Carel Fellinger, Mark
825-
Hammond, Marc-Andr\'e Lemburg, Tim Peters, Neil Schemenauer, Guido van
826-
Rossum.
861+
Hammond, Jack Jansen, Marc-Andr\'e Lemburg, Tim Peters, Neil
862+
Schemenauer, Guido van Rossum.
827863

828864
\end{document}

0 commit comments

Comments
 (0)