blob: 5a693c592274db196bdd0ae652259587f4a61797 [file] [log] [blame]
Jack Jansen61c32fe1995-08-31 13:56:36 +00001 Changes since Python 1.2 for the mac
2 ------------------------------------
3These relnotes are relative to the last "official" MacPython release,
4not to the intermediate releases.
5- PPC python now uses a shared library organization. This allows the
Jack Jansen05249f96f1995-09-01 11:49:11 +00006 creation of dynamically loadable extension modules (contact me) and
7 creation of python applets (see mkapplet.py). A number of previously
Jack Jansen61c32fe1995-08-31 13:56:36 +00008 builtin modules are now dynamically loaded. Dynamically loaded
9 modules are distributed in the PlugIns folder.
Jack Jansen05249f96f1995-09-01 11:49:11 +000010- Python modules can live in 'PYC ' resources (with a name equal to the
11 module name, so many modules can live in a single file). If you put a
12 file (in stead of a folder) in sys.path its resources will be searched.
13 See the PackLibDir script for creating such a file.
14- new binhex module (partially working, hexbin has problems)
Jack Jansen61c32fe1995-08-31 13:56:36 +000015- Python now has a Preferences file, editable with
16 EditPythonPrefs. Remembered are the python 'home folder' and the
17 initial value for sys.path. If no preferences file is found a simple
18 one is created.
19 NOTE: this only works correctly if you start python the first time
20 from the correct folder.
21- new img modules, to read/write/convert images in various formats
22- new MacOS toolbox modules: AE, Ctl, Dlg, Event, List, Qd, Res, Snd
23 and Win. These provide access to various of the MacOS toolbox
24 interfaces. No documentation yet, but the __doc__ strings provide at
25 least the calling sequence (and Inside Mac will give you the
26 semantics). Minimal demos are provided for most toolbox interfaces,
27 and the 'scripts' directory has some more examples.
28- AppleEvent client interfaces can be generated from aete/aeut
29 resources. No support for objects yet, nor for server interfaces.
30- Lib:mac:FrameWork.py has an application framework (under
31 construction).
32- (PPC Only) support for building Python applets: tiny standalone
33 python applications.
34- fp = open(filename, '*r') opens resource-fork of a file for reading
35 (and similar for writing).
36- option-dragging a file to the interpreter (or immedeately pressing
37 <option> after launching python) will bring up an Options dialog
38 allowing you to set options like import-tracing, etc.
39- MacOS module method added: GetErrorString(OSErr) -> error string
40- There is now a numbering convention for resource-ID's:
41 128-255 Resources used by the interpreter itself
42 256-511 Resources used by standard modules
43 512- Resources for applications
44- macfs module changes:
45 - StandardGetFile without type arguments now shows all files
46 - PromptGetFile(prompt, ...) is like StandardGetFile but with a
47 prompt
48 - GetDirectory (let user select a folder) added
49 - GetFInfo and SetFInfo methods of FSSpec objects get/set finder
50 info. FInfo objects have attributes Creator, Type, etc.
51 - FindFolder (locate trash/preferences/etc) added
52- mactcp/macdnr changes: bug fix wrt idle-loop.
53- EditPythonPrefs script: change initial sys.path and python home
54 folder
55- (PPC only) MkPluginAliases: Setup aliases for dynamically loadable
56 modules that live in a single shared library
57- PackLibDir: Convert Lib directory to a single resource file
58 containing all .pyc code
59- fixfiletypes: Set file types based on file extension over a whole
60 tree.
61- RunLibScript: Run any script as main program, optionally redirecting
62 stdin/stdout, supplying arguments, etc.
63- binhextree: Binhex all files in a tree, depending on the extension.
64- (PPC only) mkapplet: Create a python applet from a sourcefile and
65 (optional) resourcefile.
66