Guido van Rossum | 635649f | 1994-11-10 23:04:51 +0000 | [diff] [blame] | 1 | =================================== |
Guido van Rossum | 5426ab3 | 1995-01-17 17:00:47 +0000 | [diff] [blame] | 2 | ==> Release 1.2 <== |
Guido van Rossum | 635649f | 1994-11-10 23:04:51 +0000 | [diff] [blame] | 3 | =================================== |
| 4 | |
Guido van Rossum | 635649f | 1994-11-10 23:04:51 +0000 | [diff] [blame] | 5 | |
Guido van Rossum | 04cba5b | 1995-03-09 14:44:51 +0000 | [diff] [blame] | 6 | - Virtually all known bugs have been fixed. For example the |
| 7 | pow(2,2,3L) bug on Linux has been fixed. Also the re-entrancy |
| 8 | problems with __del__ have been fixed. |
Guido van Rossum | 635649f | 1994-11-10 23:04:51 +0000 | [diff] [blame] | 9 | |
Guido van Rossum | 5426ab3 | 1995-01-17 17:00:47 +0000 | [diff] [blame] | 10 | - Most known memory leaks have been fixed. |
Guido van Rossum | 635649f | 1994-11-10 23:04:51 +0000 | [diff] [blame] | 11 | |
Guido van Rossum | 5426ab3 | 1995-01-17 17:00:47 +0000 | [diff] [blame] | 12 | - Phase 2 of the Great Renaming has been executed. The header files |
| 13 | now use the new names (PyObject instead of object, etc.). The linker |
| 14 | also sees the new names. Most source files still use the old names, |
| 15 | by virtue of the rename2.h header file. If you include Python.h, you |
| 16 | only see the new names. Dynamically linked modules have to be |
| 17 | recompiled. |
Guido van Rossum | 061f182 | 1994-10-06 16:03:45 +0000 | [diff] [blame] | 18 | |
Guido van Rossum | 5426ab3 | 1995-01-17 17:00:47 +0000 | [diff] [blame] | 19 | - The hooks for implementing "safe-python" (better called "restricted |
| 20 | execution") are in place. Specifically, the import statement is |
| 21 | implemented by calling the built-in function __import__, and the |
| 22 | built-in names used in a particular scope are taken from the |
| 23 | dictionary __builtins__ in that scope's global dictionary. See also |
| 24 | the new module rexec.py. |
Guido van Rossum | 061f182 | 1994-10-06 16:03:45 +0000 | [diff] [blame] | 25 | |
Guido van Rossum | 5426ab3 | 1995-01-17 17:00:47 +0000 | [diff] [blame] | 26 | - The import statement now supports the syntax "import a.b.c" and |
| 27 | "from a.b.c import name". No meaningful implementation exists, but |
| 28 | one can be prototyped by replacing the built-in __import__ function. |
Guido van Rossum | 061f182 | 1994-10-06 16:03:45 +0000 | [diff] [blame] | 29 | |
Guido van Rossum | 5426ab3 | 1995-01-17 17:00:47 +0000 | [diff] [blame] | 30 | - All machinery used by the import statement (or the built-in |
| 31 | __import__ function) is now exposed through the new built-in module |
| 32 | "imp". All dynamic loading machinery is moved to the new file |
| 33 | importdl.c. |
Guido van Rossum | ac5a4e3 | 1994-10-11 15:04:57 +0000 | [diff] [blame] | 34 | |
Guido van Rossum | 5426ab3 | 1995-01-17 17:00:47 +0000 | [diff] [blame] | 35 | - Persistent storage is supported through the use of the module |
| 36 | "pickle" and "shelve" (implemented in Python). Read the .py files for |
| 37 | more info. There's also a "copy" module implementing deepcopy and |
| 38 | normal (shallow) copy operations. |
Guido van Rossum | 061f182 | 1994-10-06 16:03:45 +0000 | [diff] [blame] | 39 | |
Guido van Rossum | 5426ab3 | 1995-01-17 17:00:47 +0000 | [diff] [blame] | 40 | - Documentation strings for many objects types are accessible through |
| 41 | the __doc__ attribute. Modules, classes and functions support special |
| 42 | syntax to initialize the __doc__ attribute: if the first statement |
| 43 | consists of just a string literal, that string literal becomes the |
| 44 | value of the __doc__ attribute. The default __doc__ attribute is |
| 45 | None. Documentation strings are also supported for built-in |
| 46 | functions, types and modules; however this feature hasn't been widely |
| 47 | used yet. See the 'new' module for an example. |
Guido van Rossum | 061f182 | 1994-10-06 16:03:45 +0000 | [diff] [blame] | 48 | |
Guido van Rossum | 5426ab3 | 1995-01-17 17:00:47 +0000 | [diff] [blame] | 49 | - The __coerce__ and __cmp__ methods for user-defined classes once |
| 50 | again work as expected. As an example, there's a new standard class |
| 51 | Complex in the library. |
Guido van Rossum | 061f182 | 1994-10-06 16:03:45 +0000 | [diff] [blame] | 52 | |
Guido van Rossum | 5426ab3 | 1995-01-17 17:00:47 +0000 | [diff] [blame] | 53 | - The functions posix.popen() and posix.fdopen() now have an optional |
| 54 | third argument to specify the buffer size, and default their second |
| 55 | (mode) argument to 'r' -- in analogy to the builtin open() function. |
Guido van Rossum | 061f182 | 1994-10-06 16:03:45 +0000 | [diff] [blame] | 56 | |
Guido van Rossum | 5426ab3 | 1995-01-17 17:00:47 +0000 | [diff] [blame] | 57 | - Improved support for the Apple Macintosh, e.g. interfaces to (a few) |
| 58 | resource mananger functions, get/set file type and creator, gestalt, |
| 59 | sound manager, speech manager, MacTCP, comm toolbox, and the think C |
| 60 | console library. (Sorry, no Mac binary yet. Will try to produce one |
| 61 | shortly, plus instructions on how to compile with THINK C 6.0.) |
Guido van Rossum | 061f182 | 1994-10-06 16:03:45 +0000 | [diff] [blame] | 62 | |
Guido van Rossum | 5426ab3 | 1995-01-17 17:00:47 +0000 | [diff] [blame] | 63 | - Used autoconf 2.0 to generate the configure script. Adapted |
| 64 | configure.in to use the new features in autoconf 2.0. |
Guido van Rossum | 061f182 | 1994-10-06 16:03:45 +0000 | [diff] [blame] | 65 | |
Guido van Rossum | 04cba5b | 1995-03-09 14:44:51 +0000 | [diff] [blame] | 66 | - It should now build on the NeXT without intervention, even on the |
| 67 | 3.3 Sparc pre-release. |
| 68 | |
| 69 | - __import__ is now called with 4 arguments: |
| 70 | (modulename, globals, locals, fromlist) |
| 71 | |
| 72 | - Characters passed to isspace() and friends are masked to nonnegative |
| 73 | values |
| 74 | |
| 75 | - Correctly compute pow(-3.0, 3) |
| 76 | |
| 77 | - Fix portability problems with getopt (configure now checks for a |
| 78 | non-GNU getopt) |
| 79 | |
| 80 | - Don't add frozenmain.o to libPython.a |
| 81 | |
| 82 | - Exceptions can now be classes |
| 83 | |
| 84 | - The socket module exports a long list of socket related symbols |
| 85 | |
| 86 | - Lots of Mac specific changes (this area of the source is not |
| 87 | completed!) |
| 88 | |
| 89 | - When a module object is deleted, it clears out its own dictionary |
| 90 | (this fixes a circularity in the references between functions and |
| 91 | their global dictionary) |
| 92 | |
| 93 | - Changed the error handling by [new]getargs() e.g. for "O&" |
| 94 | |
| 95 | - Dynamic loading of modules using shared libraries is supported for |
| 96 | several new platforms |
| 97 | |
| 98 | - Support "O&" in mkvalue() |
| 99 | |
| 100 | - Extension to findmethod(): findmethodinchain() (where a chain is a |
| 101 | linked list of methodlist arrays) |
| 102 | |
| 103 | - Callable() function is now public |
| 104 | |
| 105 | |
| 106 | Known bugs still remaining: |
| 107 | --------------------------- |
| 108 | |
| 109 | - There's still a memory leak in threads; bigger when |
| 110 | thread.exit_thread() is used |
| 111 | |
Guido van Rossum | 061f182 | 1994-10-06 16:03:45 +0000 | [diff] [blame] | 112 | |
Guido van Rossum | a85d053 | 1994-01-26 17:24:14 +0000 | [diff] [blame] | 113 | --Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl> |
| 114 | URL: <http://www.cwi.nl/cwi/people/Guido.van.Rossum.html> |