|
1 | | -This is Python release 1.5 beta 1 |
| 1 | +This is Python release 1.5 beta 2 |
2 | 2 | ================================== |
3 | 3 |
|
| 4 | +The official release date for this version is Friday, December 12, |
| 5 | +1997. |
| 6 | + |
| 7 | + |
4 | 8 | What's new in this release? |
5 | 9 | --------------------------- |
6 | 10 |
|
@@ -72,31 +76,60 @@ Misc/NEWS. Some highlights: |
72 | 76 | defined by Python now have a "Py" or "_Py" prefix, and the same is |
73 | 77 | true for most macros and typedefs. |
74 | 78 |
|
75 | | -If you were an alpha tester, here are the most relevant changes since |
76 | | -1.5a4 (of course all known bugs have been fixed, leaks plugged, and |
77 | | -some documentation has been added). The full list of changes since |
78 | | -1.5a4 is presented at the end of the Misc/NEWS file. |
| 79 | +If you previously downloaded 1.5b1, here are the most relevant changes |
| 80 | +since then (of course all known bugs have been fixed, leaks plugged, |
| 81 | +and some documentation has been added). The full list of changes |
| 82 | +since 1.5b1 is presented at the end of the Misc/NEWS file. |
| 83 | + |
| 84 | + - Thanks to all who contributed doc strings for library modules! |
| 85 | + |
| 86 | + - The portability problems caused by indented preprocessor commands |
| 87 | + and C++ style comments should be gone now. |
| 88 | + |
| 89 | + - Lots of improvements to python-mode.el again. |
79 | 90 |
|
80 | | - - Package directories now *require* the presence of __init__.py (or |
81 | | - .pyc/.pyo as applicable). Packages can now contain shared |
82 | | - library modules. |
| 91 | + - Changes in pickle.py and cPickle.c: when unpickling an instance of |
| 92 | + a class that doesn't define the __getinitargs__() method, the |
| 93 | + __init__() constructor is no longer called. This makes a much |
| 94 | + larger group of classes picklable by default, but may occasionally |
| 95 | + change semantics. To force calling __init__() on unpickling, define |
| 96 | + a __getinitargs__() method. Other changes too, in particular |
| 97 | + cPickle now handles classes defined in packages correctly. The |
| 98 | + same change applies to copying instances with copy.py. |
83 | 99 |
|
84 | | - - New module 'fileinput' to iterate over the lines of a list of files. |
| 100 | + - Locale support in the "re" (Perl regular expressions) module. Use |
| 101 | + the flag re.L (or re.LOCALE) to enable locale-specific matching |
| 102 | + rules for \w and \b. The in-line syntax for this flag is (?L). |
85 | 103 |
|
86 | | - - New module 'locale' for localized number formatting and string case |
87 | | - sensitivity. |
| 104 | + - The built-in function isinstance(x, y) now also succeeds when y is |
| 105 | + a type object and type(x) is y. |
88 | 106 |
|
89 | | - - New module 'xmllib' to parse XML files. |
| 107 | + - repr() and str() of class and instance objects now reflect the |
| 108 | + package/module in which the class is defined. |
90 | 109 |
|
91 | | - - Some more support for Tk extensions (PIL, TIX, BLT, TOGL). |
| 110 | + - Module "ni" has been removed. (If you really need it, it's been |
| 111 | + renamed to "ni1". Let me know if this causes any problems for you. |
| 112 | + Package authors are encouraged to write __init__.py files that |
| 113 | + support both ni and 1.5 package support, so the same version can be |
| 114 | + used with Python 1.4 as well as 1.5.) |
92 | 115 |
|
93 | | - - Fixed address list parsing in module 'rfc822'. |
| 116 | + - The thread module is now automatically included when threads are |
| 117 | + configured. (You must remove it from your existing Setup file, |
| 118 | + since it is now in its own Setup.thread file.) |
94 | 119 |
|
95 | | - - More deployment (and only one fix) for the 're' module. |
| 120 | + - New command line option "-x" to skip the first line of the script; |
| 121 | + handy to make executable scripts on non-Unix platforms. |
96 | 122 |
|
97 | | - - New Python mode for Emacs. |
| 123 | + - In importdl.c, add the RTLD_GLOBAL to the dlopen() flags. I |
| 124 | + haven't checked how this affects things, but it should make symbols |
| 125 | + in one shared library available to the next one. |
98 | 126 |
|
99 | | - - OS/2 support. |
| 127 | + - The Windows configuration adds a new main program, "pythonw", and |
| 128 | + registers a new extension, ".pyw" that invokes this. This is a |
| 129 | + standard Python interpreter that does not pop up a console window; |
| 130 | + handy for pure Tkinter applications. All output to the original |
| 131 | + stdout and stderr is lost; reading from the original stdin yields |
| 132 | + EOF. |
100 | 133 |
|
101 | 134 |
|
102 | 135 | If you don't read instructions |
|
0 commit comments