blob: ce67bdb84009c4b7dc689bd85a41a11318cfd3df [file] [log] [blame]
Jack Jansenb9526512001-12-27 23:01:18 +00001Changes in 2.2 since 2.1.1
Jack Jansen028f2d52001-08-29 22:04:08 +00002----------------------------
Jack Jansenecbc1cc1998-01-06 12:13:16 +00003
Jack Jansen26d7c142000-09-11 22:47:12 +00004These release notes refer to Mac-specific changes only. See NEWS (in the Misc folder)
Jack Jansenb9526512001-12-27 23:01:18 +00005for machine-independent changes.
Jack Jansen5d528b72001-10-23 22:22:09 +00006
Jack Jansenecbc1cc1998-01-06 12:13:16 +00007
Jack Jansen028f2d52001-08-29 22:04:08 +00008- The main change is that all toolbox modules have moved to a package called Carbon.
9 So things like "import Res" should be changed to "from Carbon import Res", and
10 "from Res import *" to "from Carbon.Res import *". Please see the readme file for
11 some open questions and join the discussions on pythonmac-sig if you have anything
12 to contribute. Aside from reducing clutter this change will also benefit the
Jack Jansenb3be2162001-11-30 14:16:36 +000013 port to Mach-O/OSX Python later.
Jack Jansenb9526512001-12-27 23:01:18 +000014- All toolbox modules have been updated to Universal Headers 3.4.
Jack Jansen6bc62c42001-12-20 20:41:45 +000015- Toolbox modules are weaklinked against InterfaceLib (for PPC builds) and raise
Jack Jansenb9526512001-12-27 23:01:18 +000016 an exception when you call an unimplemented one on an old MacOS.
Jack Jansen028f2d52001-08-29 22:04:08 +000017- On input MacPython now accepts either \n (unix style) or \r (mac style) newlines
Jack Jansenf7e57142001-09-08 21:38:26 +000018 for text files. This behaviour can be turned off with a preference.
Jack Jansenb3be2162001-11-30 14:16:36 +000019 This is an experimental feature; again: feedback is requested.
Jack Jansenb9526512001-12-27 23:01:18 +000020- The IDE looks better on OS X, but still not as good as on OS9.
Jack Jansenb3be2162001-11-30 14:16:36 +000021- Command-dot handling has been improved a lot: scripts are now much easier to interrupt,
Jack Jansen6bc62c42001-12-20 20:41:45 +000022 and they only scan for cmd-. while in the foreground.
23- "Copy" from the MacPython console window was always disabled. Fixed.
24- This release should run on MacOS 8.1 again.
25- A new, rather different GUSI I/O library is used.
Jack Jansenb9526512001-12-27 23:01:18 +000026- time.time() returns positive values again.
Jack Jansen028f2d52001-08-29 22:04:08 +000027- There is a new module macresource which makes it easier to open a resource file
28 accompanying your script when the script is not (yet) converted to an applet.
Jack Jansenb3be2162001-11-30 14:16:36 +000029 This module will later also do the right thing in Mach-O/OSX Python.
Jack Jansen6bc62c42001-12-20 20:41:45 +000030- (Carbon only) experimental modules Carbon.CG (CoreGraphics) and CarbonEvt have
Jack Jansenb9526512001-12-27 23:01:18 +000031 been added.
Jack Jansenb3be2162001-11-30 14:16:36 +000032- A new, experimental module hfsplus is included, which gives access to some of the
Jack Jansen6bc62c42001-12-20 20:41:45 +000033 functionality of the HFS+ API.
Jack Jansenb9526512001-12-27 23:01:18 +000034- A new, experimental module gives access to Carbon Events.
Jack Jansen028f2d52001-08-29 22:04:08 +000035- Threads had a stack that was too small for many serious Python applications (20K).
Jack Jansenb3be2162001-11-30 14:16:36 +000036 They now get 64K. There is still no overflow check, though.
37- Garbage collection and the gc module have (finally) been enabled.
Jack Jansen028f2d52001-08-29 22:04:08 +000038- EasyDialogs.ProgressBar now has indeterminate progressbars if you specify maxval=0.
Jack Jansenb3be2162001-11-30 14:16:36 +000039 This is also the new default. Patch supplied by Dean Draayer.
Jack Jansenf7e57142001-09-08 21:38:26 +000040- There are new preferences for enabling old-style division warnings and for
41 accepting unix-style newlines in text input files. These can also be set during
Jack Jansenb3be2162001-11-30 14:16:36 +000042 startup, and in addition you can select very verbose import tracing.
43- The NavServices override for StandardFile has moved from early startup to the
44 time you import macfs. This speeds up MacPython startup.
45- Various outdated scripts have been moved to :Mac:Unsupported.
46- Various outdated items from :Mac:Lib:test have been removed.
Jack Jansen5d528b72001-10-23 22:22:09 +000047- C Developers: you know have control over the Python console if you are embedding
48 MacPython in another application, thanks to Alexandre Parenteau. :Mac:Demo:embed.html
49 has very minimal documentation.
50- BuildCGIApplet works again.
51- The CodeWarrior OSA suite missed quit(). It is back.
52- Contrib:morefindertools is gone, the functionality has been integrated into
53 the standard module findertools.py.
Jack Jansen26d7c142000-09-11 22:47:12 +000054
Jack Jansen26d7c142000-09-11 22:47:12 +000055Known problems
56--------------
57
Jack Jansenc1218bc2001-04-25 22:11:24 +000058This list is probably incomplete, more problems may be listed on the MacPython homepage,
Jack Jansen26d7c142000-09-11 22:47:12 +000059http://www.cwi.nl/~jack/macpython.html.
60
Jack Jansen6bc62c42001-12-20 20:41:45 +000061- MacPython 2.2 (and MacPython 2.1) will not run correctly on a multiprocessor MacOS X
Jack Jansencbed91b2001-08-03 13:31:36 +000062 machine, it will quickly deadlock during I/O operations. The GUSI I/O library is suspected,
Jack Jansenb9526512001-12-27 23:01:18 +000063 hints/clues/workarounds are solicited. This problem also occurs intermittently on fast
64 OS X single-processor machines.
Jack Jansen9de05f42001-03-20 23:30:38 +000065- Tkinter does not work under Carbon.
Jack Jansen26d7c142000-09-11 22:47:12 +000066- The IDE and Tkinter do not work together. Run tkinter programs under PythonInterpreter.
Jack Jansen4c522032001-03-08 23:07:16 +000067- Tkinter file events do not work, unless you have opened the file through Tcl (but then
68 you cannot access it from Python).
Jack Jansen6bc62c42001-12-20 20:41:45 +000069- The IDE object and class browser look funny on OSX, but they work fine.
Jack Jansenc1218bc2001-04-25 22:11:24 +000070- Aliases may not work in sys.path entries.
Jack Jansen4c522032001-03-08 23:07:16 +000071- PythonInterpreter used interactively will eat a lot of processor cycles. You should use
Jack Jansenc1218bc2001-04-25 22:11:24 +000072 PythonIDE for interactive work and PythonInterpreter for scripts only. This is especially
73 true under OSX.
Jack Jansencbed91b2001-08-03 13:31:36 +000074- AliasMenu 2.2 conflicts with the Carbon version of Python. This is most likely a problem
75 with AliasMenu (which is from 1999, and thus predates Carbon altogether).