Jack Jansen | b952651 | 2001-12-27 23:01:18 +0000 | [diff] [blame] | 1 | Changes in 2.2 since 2.1.1 |
Jack Jansen | 028f2d5 | 2001-08-29 22:04:08 +0000 | [diff] [blame] | 2 | ---------------------------- |
Jack Jansen | ecbc1cc | 1998-01-06 12:13:16 +0000 | [diff] [blame] | 3 | |
Jack Jansen | 26d7c14 | 2000-09-11 22:47:12 +0000 | [diff] [blame] | 4 | These release notes refer to Mac-specific changes only. See NEWS (in the Misc folder) |
Jack Jansen | b952651 | 2001-12-27 23:01:18 +0000 | [diff] [blame] | 5 | for machine-independent changes. |
Jack Jansen | 5d528b7 | 2001-10-23 22:22:09 +0000 | [diff] [blame] | 6 | |
Jack Jansen | ecbc1cc | 1998-01-06 12:13:16 +0000 | [diff] [blame] | 7 | |
Jack Jansen | 028f2d5 | 2001-08-29 22:04:08 +0000 | [diff] [blame] | 8 | - 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 Jansen | b3be216 | 2001-11-30 14:16:36 +0000 | [diff] [blame] | 13 | port to Mach-O/OSX Python later. |
Jack Jansen | b952651 | 2001-12-27 23:01:18 +0000 | [diff] [blame] | 14 | - All toolbox modules have been updated to Universal Headers 3.4. |
Jack Jansen | 6bc62c4 | 2001-12-20 20:41:45 +0000 | [diff] [blame] | 15 | - Toolbox modules are weaklinked against InterfaceLib (for PPC builds) and raise |
Jack Jansen | b952651 | 2001-12-27 23:01:18 +0000 | [diff] [blame] | 16 | an exception when you call an unimplemented one on an old MacOS. |
Jack Jansen | 028f2d5 | 2001-08-29 22:04:08 +0000 | [diff] [blame] | 17 | - On input MacPython now accepts either \n (unix style) or \r (mac style) newlines |
Jack Jansen | f7e5714 | 2001-09-08 21:38:26 +0000 | [diff] [blame] | 18 | for text files. This behaviour can be turned off with a preference. |
Jack Jansen | b3be216 | 2001-11-30 14:16:36 +0000 | [diff] [blame] | 19 | This is an experimental feature; again: feedback is requested. |
Jack Jansen | b952651 | 2001-12-27 23:01:18 +0000 | [diff] [blame] | 20 | - The IDE looks better on OS X, but still not as good as on OS9. |
Jack Jansen | b3be216 | 2001-11-30 14:16:36 +0000 | [diff] [blame] | 21 | - Command-dot handling has been improved a lot: scripts are now much easier to interrupt, |
Jack Jansen | 6bc62c4 | 2001-12-20 20:41:45 +0000 | [diff] [blame] | 22 | 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 Jansen | b952651 | 2001-12-27 23:01:18 +0000 | [diff] [blame] | 26 | - time.time() returns positive values again. |
Jack Jansen | 028f2d5 | 2001-08-29 22:04:08 +0000 | [diff] [blame] | 27 | - 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 Jansen | b3be216 | 2001-11-30 14:16:36 +0000 | [diff] [blame] | 29 | This module will later also do the right thing in Mach-O/OSX Python. |
Jack Jansen | 6bc62c4 | 2001-12-20 20:41:45 +0000 | [diff] [blame] | 30 | - (Carbon only) experimental modules Carbon.CG (CoreGraphics) and CarbonEvt have |
Jack Jansen | b952651 | 2001-12-27 23:01:18 +0000 | [diff] [blame] | 31 | been added. |
Jack Jansen | b3be216 | 2001-11-30 14:16:36 +0000 | [diff] [blame] | 32 | - A new, experimental module hfsplus is included, which gives access to some of the |
Jack Jansen | 6bc62c4 | 2001-12-20 20:41:45 +0000 | [diff] [blame] | 33 | functionality of the HFS+ API. |
Jack Jansen | b952651 | 2001-12-27 23:01:18 +0000 | [diff] [blame] | 34 | - A new, experimental module gives access to Carbon Events. |
Jack Jansen | 028f2d5 | 2001-08-29 22:04:08 +0000 | [diff] [blame] | 35 | - Threads had a stack that was too small for many serious Python applications (20K). |
Jack Jansen | b3be216 | 2001-11-30 14:16:36 +0000 | [diff] [blame] | 36 | They now get 64K. There is still no overflow check, though. |
| 37 | - Garbage collection and the gc module have (finally) been enabled. |
Jack Jansen | 028f2d5 | 2001-08-29 22:04:08 +0000 | [diff] [blame] | 38 | - EasyDialogs.ProgressBar now has indeterminate progressbars if you specify maxval=0. |
Jack Jansen | b3be216 | 2001-11-30 14:16:36 +0000 | [diff] [blame] | 39 | This is also the new default. Patch supplied by Dean Draayer. |
Jack Jansen | f7e5714 | 2001-09-08 21:38:26 +0000 | [diff] [blame] | 40 | - 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 Jansen | b3be216 | 2001-11-30 14:16:36 +0000 | [diff] [blame] | 42 | 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 Jansen | 5d528b7 | 2001-10-23 22:22:09 +0000 | [diff] [blame] | 47 | - 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 Jansen | 26d7c14 | 2000-09-11 22:47:12 +0000 | [diff] [blame] | 54 | |
Jack Jansen | 26d7c14 | 2000-09-11 22:47:12 +0000 | [diff] [blame] | 55 | Known problems |
| 56 | -------------- |
| 57 | |
Jack Jansen | c1218bc | 2001-04-25 22:11:24 +0000 | [diff] [blame] | 58 | This list is probably incomplete, more problems may be listed on the MacPython homepage, |
Jack Jansen | 26d7c14 | 2000-09-11 22:47:12 +0000 | [diff] [blame] | 59 | http://www.cwi.nl/~jack/macpython.html. |
| 60 | |
Jack Jansen | 6bc62c4 | 2001-12-20 20:41:45 +0000 | [diff] [blame] | 61 | - MacPython 2.2 (and MacPython 2.1) will not run correctly on a multiprocessor MacOS X |
Jack Jansen | cbed91b | 2001-08-03 13:31:36 +0000 | [diff] [blame] | 62 | machine, it will quickly deadlock during I/O operations. The GUSI I/O library is suspected, |
Jack Jansen | b952651 | 2001-12-27 23:01:18 +0000 | [diff] [blame] | 63 | hints/clues/workarounds are solicited. This problem also occurs intermittently on fast |
| 64 | OS X single-processor machines. |
Jack Jansen | 9de05f4 | 2001-03-20 23:30:38 +0000 | [diff] [blame] | 65 | - Tkinter does not work under Carbon. |
Jack Jansen | 26d7c14 | 2000-09-11 22:47:12 +0000 | [diff] [blame] | 66 | - The IDE and Tkinter do not work together. Run tkinter programs under PythonInterpreter. |
Jack Jansen | 4c52203 | 2001-03-08 23:07:16 +0000 | [diff] [blame] | 67 | - Tkinter file events do not work, unless you have opened the file through Tcl (but then |
| 68 | you cannot access it from Python). |
Jack Jansen | 6bc62c4 | 2001-12-20 20:41:45 +0000 | [diff] [blame] | 69 | - The IDE object and class browser look funny on OSX, but they work fine. |
Jack Jansen | c1218bc | 2001-04-25 22:11:24 +0000 | [diff] [blame] | 70 | - Aliases may not work in sys.path entries. |
Jack Jansen | 4c52203 | 2001-03-08 23:07:16 +0000 | [diff] [blame] | 71 | - PythonInterpreter used interactively will eat a lot of processor cycles. You should use |
Jack Jansen | c1218bc | 2001-04-25 22:11:24 +0000 | [diff] [blame] | 72 | PythonIDE for interactive work and PythonInterpreter for scripts only. This is especially |
| 73 | true under OSX. |
Jack Jansen | cbed91b | 2001-08-03 13:31:36 +0000 | [diff] [blame] | 74 | - 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). |