Guido van Rossum | f0b69f0 | 1997-08-15 02:50:47 +0000 | [diff] [blame] | 1 | What's new in this release? |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 2 | =========================== |
| 3 | |
| 4 | Below is a partial list of changes. This list is much more detailed than |
| 5 | previous; however it is still not complete. I did go through my CVS logs |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 6 | but ran out of time. Some changes made beteen Oct 1996 and April 1997 |
| 7 | have not yet been noted. |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 8 | |
| 9 | |
| 10 | Miscellaneous |
| 11 | ------------- |
| 12 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 13 | - The default module search path is now much saner. Both on Unix and |
| 14 | Windows, it is essentially derived from the path to the executable |
| 15 | (which can be overridden by setting the environment variable |
| 16 | $PYTHONHOME). The value of $PYTHONPATH on Windows is now inserted in |
| 17 | front of the default path, like in Unix (instead of overriding the |
| 18 | default path). On Windows, the directory containing the executable is |
| 19 | added to the end of the path. |
| 20 | |
| 21 | - On Unix, when using sys.argv[0] to insert the script directory in |
| 22 | front of sys.path, expand a symbolic link. You can now install a |
| 23 | program in a private directory and have a symbolic link to it in a |
| 24 | public bin directory, and it will put the private directory in the |
| 25 | module search path. Note that the symlink is expanded in sys.path[0] |
| 26 | but not in sys.argv[0], so you can still tell the name by which you |
| 27 | were invoked. |
| 28 | |
| 29 | - It is now recommended to use ``#!/usr/bin/env python'' instead of |
| 30 | ``#!/usr/local/bin/python'' at the start of executable scripts, except |
| 31 | for CGI scripts. It has been determined that the use of /usr/bin/env |
| 32 | is more portable than that of /usr/local/bin/python -- scripts almost |
| 33 | never have to be edited when the Python interpreter lives in a |
| 34 | non-standard place. Note that this doesn't work for CGI scripts since |
| 35 | the python executable often doesn't live in the HTTP server's default |
| 36 | search path. |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 37 | |
| 38 | - The silly -s command line option and the corresponding |
| 39 | PYTHONSUPPRESS environment variable (and the Py_SuppressPrint global |
| 40 | flag in the Python/C API) are gone. |
| 41 | |
| 42 | - Most problems on 64-bit platforms should now be fixed. Andrew |
| 43 | Kuchling helped. Some uncommon extension modules are still not |
| 44 | clean (image and audio ops?). |
| 45 | |
| 46 | - Fixed a bug where multiple anonymous tuple arguments would be mixed up |
| 47 | when using the debugger or profiler (reported by Just van Rossum). |
| 48 | The simplest example is ``def f((a,b),(c,d)): print a,b,c,d''; this |
| 49 | would print the wrong value when run under the debugger or profiler. |
| 50 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 51 | - The sort() methods for lists no longer uses the C library qsort(); I |
| 52 | wrote my own quicksort implementation, with help from Tim Peters. |
| 53 | This solves a bug in dictionary comparisons on some Solaris versions |
| 54 | when Python is built with threads, and makes sorting lists even |
| 55 | faster. |
| 56 | |
| 57 | - The hacks that the dictionary implementation used to speed up |
| 58 | repeated lookups of the same C string were removed; these were a |
| 59 | source of subtle problems and don't seem to serve much of a purpose |
| 60 | any longer. |
| 61 | |
| 62 | - All traces of support for the long dead access statement have been |
| 63 | removed from the sources. |
| 64 | |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 65 | - Plugged the two-byte memory leak in the tokenizer when reading an |
| 66 | interactive EOF. |
| 67 | |
| 68 | |
| 69 | Performance |
| 70 | ----------- |
| 71 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 72 | - It's much faster (almost twice for pystone.py -- see |
| 73 | Tools/scripts). See the entry on string interning below. |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 74 | |
| 75 | - Some speedup by using separate free lists for method objects (both |
| 76 | the C and the Python variety) and for floating point numbers. |
| 77 | |
| 78 | - Big speedup by allocating frame objects with a single malloc() call. |
| 79 | The Python/C API for frames is changed (you shouldn't be using this |
| 80 | anyway). |
| 81 | |
| 82 | - Significant speedup by inlining some common opcodes for common operand |
| 83 | types (e.g. i+i, i-i, and list[i]). Fredrik Lundh. |
| 84 | |
| 85 | - Small speedup by reordering the method tables of some common |
| 86 | objects (e.g. list.append is now first). |
| 87 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 88 | - Big optimization to the read() method of file objects. A read() |
| 89 | without arguments now attempts to use fstat to allocate a buffer of |
| 90 | the right size; for pipes and sockets, it will fall back to doubling |
| 91 | the buffer size. While that the improvement is real on all systems, |
| 92 | it is most dramatic on Windows. |
| 93 | |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 94 | |
| 95 | Documentation |
| 96 | ------------- |
| 97 | |
| 98 | - Many new pieces of library documentation were contributed, mostly by |
| 99 | Andrew Kuchling. Even cmath is now documented! There's also a |
| 100 | chapter of the library manual, "libundoc.tex", which provides a |
| 101 | listing of all undocumented modules, plus their status (e.g. internal, |
| 102 | obsolete, or in need of documentation). Also contributions by Sue |
| 103 | Williams, Skip Montanaro, and some module authors who succumbed to |
| 104 | pressure to document their own contributed modules :-). Note that |
| 105 | printing the documentation now kills fewer trees -- the margins have |
| 106 | been reduced. |
| 107 | |
| 108 | - I have started documenting the Python/C API. Unfortunately this project |
| 109 | hasn't been completed yet. It will be complete before the final release of |
| 110 | Python 1.5, though. At the moment, it's better to read the LaTeX source |
| 111 | than to attempt to run it through LaTeX and print the resulting dvi file. |
| 112 | |
| 113 | - The posix module (and hence os.py) now has doc strings! Thanks to Neil |
| 114 | Schemenauer. I received a few other contributions of doc strings. In most |
| 115 | other places, doc strings are still wishful thinking... |
| 116 | |
| 117 | |
| 118 | Language changes |
| 119 | ---------------- |
| 120 | |
| 121 | - Private variables with leading double underscore are now a permanent |
| 122 | feature of the language. (These were experimental in release 1.4. I have |
| 123 | favorable experience using them; I can't label them "experimental" |
| 124 | forever.) |
| 125 | |
| 126 | - There's new string literal syntax for "raw strings". Prefixing a string |
| 127 | literal with the letter r (or R) disables all escape processing in the |
| 128 | string; for example, r'\n' is a two-character string consisting of a |
| 129 | backslash followed by the letter n. This combines with all forms of string |
| 130 | quotes; it is actually useful for triple quoted doc strings which might |
| 131 | contain references to \n or \t. An embedded quote prefixed with a |
| 132 | backslash does not terminate the string, but the backslash is still |
| 133 | included in the string; for example, r'\'' is a two-character string |
| 134 | consisting of a backslash and a quote. (Raw strings are also |
| 135 | affectionately known as Robin strings, after their inventor, Robin |
| 136 | Friedrich.) |
| 137 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 138 | - There's a simple assert statement, and a new exception |
| 139 | AssertionError. For example, ``assert foo > 0'' is equivalent to ``if |
| 140 | not foo > 0: raise AssertionError''. Sorry, the text of the asserted |
| 141 | condition is not available; it would be too generate code for this. |
| 142 | However, the text is displayed as part of the traceback! There's also |
| 143 | a -O option to the interpreter that removes SET_LINENO instructions, |
| 144 | assert statements; it uses and produces .pyo files instead of .pyc |
| 145 | files (the line numbers are still available in the .pyo file, as a |
| 146 | separate table; but the removal of the SET_LINENO instructions means |
| 147 | that the debugger can't set breakpoints on lines in -O mode). In the |
| 148 | future it should be possible to write external bytecode optimizers |
| 149 | that create better optimized .pyo files. Without -O, the assert |
| 150 | statement actually generates code that first checks __debug__; if this |
| 151 | variable is false, the assertion is not checked. __debug__ is a |
| 152 | built-in variable whose value is initialized to track the -O flag |
| 153 | (it's true iff -O is not specified). With -O, no code is generated |
| 154 | for assert statements, nor for code of the form ``if __debug__: |
| 155 | <something>''. Sorry, no further constant folding happens. |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 156 | |
| 157 | |
| 158 | Changes to builtin features |
Guido van Rossum | f0b69f0 | 1997-08-15 02:50:47 +0000 | [diff] [blame] | 159 | --------------------------- |
| 160 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 161 | - There's a new exception FloatingPointError (used only by Lee Busby's |
| 162 | patches to catch floating point exceptions, at the moment). |
| 163 | |
| 164 | - The obsolete exception ConflictError has been deleted. |
| 165 | |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 166 | - There's a new function sys.exc_info() which returns the tuple |
| 167 | (sys.exc_type, sys.exc_value, sys.exc_traceback) in a thread-safe way. |
Guido van Rossum | f0b69f0 | 1997-08-15 02:50:47 +0000 | [diff] [blame] | 168 | |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 169 | - There's a new variable sys.executable, pointing to the executable file |
| 170 | for the Python interpreter. |
Guido van Rossum | f0b69f0 | 1997-08-15 02:50:47 +0000 | [diff] [blame] | 171 | |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 172 | - The semantics of try-except have changed subtly so that calling a |
| 173 | function in an exception handler that itself raises and catches an |
| 174 | exception no longer overwrites the sys.exc_* variables. This also |
| 175 | alleviates the problem that objects referenced in a stack frame that |
| 176 | caught an exception are kept alive until another exception is caught |
| 177 | -- the sys.exc_* variables are restored to their previous value when |
| 178 | returning from a function that caught an exception. |
Guido van Rossum | f0b69f0 | 1997-08-15 02:50:47 +0000 | [diff] [blame] | 179 | |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 180 | - There's a new "buffer" interface. Certain objects (e.g. strings and |
| 181 | arrays) now support the "buffer" protocol. Buffer objects are acceptable |
| 182 | whenever formerly a string was required for a write operation; mutable |
| 183 | buffer objects can be the target of a read operation using the call |
| 184 | f.readinto(buffer). A cool feature is that regular expression matching now |
| 185 | also work on array objects. Contribution by Jack Jansen. (Needs |
| 186 | documentation.) |
| 187 | |
| 188 | - String interning: dictionary lookups are faster when the lookup |
| 189 | string object is the same object as the key in the dictionary, not |
| 190 | just a string with the same value. This is done by having a pool of |
| 191 | "interned" strings. Most names generated by the interpreter are now |
| 192 | automatically interned, and there's a new built-in function intern(s) |
| 193 | that returns the interned version of a string. Interned strings are |
| 194 | not a different object type, and interning is totally optional, but by |
| 195 | interning most keys a speedup of about 15% was obtained for the |
| 196 | pystone benchmark. |
| 197 | |
| 198 | - Dictionary objects have several new methods; clear() and copy() have |
| 199 | the obvious semantics, while update(d) merges the contents of another |
| 200 | dictionary d into this one, overriding existing keys. BTW, the |
| 201 | dictionary implementation file is now called dictobject.c rather than |
| 202 | the confusing mappingobject.c. |
| 203 | |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 204 | - The intrinsic function dir() is much smarter; it looks in __dict__, |
| 205 | __members__ and __methods__. |
| 206 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 207 | - The intrinsic functions int(), long() and float() can now take a |
| 208 | string argument and then do the same thing as string.atoi(), |
| 209 | string.atol(), and string.atof(). No second 'base' argument is |
| 210 | allowed, and complex() does not take a string (nobody cared enough). |
| 211 | |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 212 | - When a module is deleted, its globals are now deleted in two phases. |
| 213 | In the first phase, all variables whose name begins with exactly one |
| 214 | underscore are replaced by None; in the second phase, all variables |
| 215 | are deleted. This makes it possible to have global objects whose |
| 216 | destructors depend on other globals. The deletion order within each |
| 217 | phase is still random. |
| 218 | |
| 219 | - It is no longer an error for a function to be called without a |
| 220 | global variable __builtins__ -- an empty directory will be provided |
| 221 | by default. |
| 222 | |
| 223 | - Guido's corollary to the "Don Beaudry hack": it is now possible to do |
| 224 | metaprogramming by using an instance as a base class. Not for the |
| 225 | faint of heart; and undocumented as yet, but basically if a base class |
| 226 | is an instance, its class will be instantiated to create the new |
| 227 | class. Jim Fulton will love it -- it also works with instances of his |
| 228 | "extension classes", since it is triggered by the presence of a |
| 229 | __class__ attribute on the purported base class. |
| 230 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 231 | - New optional parameter to the readlines() method of file objects. |
| 232 | This indicates the number of bytes to read (the actual number of bytes |
| 233 | read will be somewhat larger due to buffering reading until the end of |
| 234 | the line). Some optimizations have also been made to speed it up (but |
| 235 | not as much as read()). |
| 236 | |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 237 | |
| 238 | New extension modules |
| 239 | --------------------- |
| 240 | |
| 241 | - New extension modules cStringIO.c and cPickle.c, written by Jim |
| 242 | Fulton and other folks at Digital Creations. These are much more |
| 243 | efficient than their Python counterparts StringIO.py and pickle.py, |
| 244 | but don't support subclassing. cPickle.c clocks up to 1000 times |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 245 | faster than pickle.py; cStringIO.c's improvement is less dramatic but |
| 246 | still significant. The pickle.py module has been updated to make it |
| 247 | compatible with the new binary format that cPickle.c produces (by |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 248 | default it produces the old all-ASCII format compatible with the old |
| 249 | pickle.py, still much faster than pickle.py; it can read both |
| 250 | formats). A new helper module, copy_reg.py, is provided to register |
| 251 | extensions to the pickling code. (These are now identical to the |
| 252 | release 0.3 from Digital Creations.) |
| 253 | |
| 254 | - New extension module zlibmodule.c, interfacing to the free zlib |
| 255 | library (gzip compatible compression). There's also a module gzip.py |
| 256 | which provides a higher level interface. Written by Andrew Kuchling |
| 257 | and Jeremy Hylton. |
| 258 | |
| 259 | - New module readline; see the "miscellaneous" section above. |
| 260 | |
| 261 | - New Unix extension module resource.c, by Jeremy Hylton, provides |
| 262 | access to getrlimit(), getrusage(), setrusage(), getpagesize(), and |
| 263 | related symbolic constants. |
| 264 | |
| 265 | - New extension puremodule.c, by Barry Warsaw, which interfaces to the |
| 266 | Purify(TM) C API. See also the file Misc/PURIFY.README. It is also |
| 267 | possible to enable Purify by simply setting the PURIFY Makefile |
| 268 | variable in the Modules/Setup file. |
| 269 | |
| 270 | |
| 271 | Changes in extension modules |
| 272 | ---------------------------- |
| 273 | |
| 274 | - The struct extension module has several new features to control byte |
| 275 | order and word size. It supports reading and writing IEEE floats even |
| 276 | on platforms where this is not the native format. |
| 277 | |
| 278 | - The fcntl extension module now exports the needed symbolic |
| 279 | constants. (Formerly these were in FCNTL.py which was not available |
| 280 | or correct for all platforms.) |
| 281 | |
| 282 | - The extension modules dbm, gdbm and bsddb now check that the |
| 283 | database is still open before making any new calls. |
| 284 | |
| 285 | - Various modules now export their type object: socket.SocketType, |
| 286 | array.ArrayType. |
| 287 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 288 | - The socket module's accept() method now returns unknown addresses as |
| 289 | a tuple rather than raising an exception. (This can happen in |
| 290 | promiscuous mode.) Theres' also a new function getprotobyname(). |
| 291 | |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 292 | - The pthread support for the thread module now works on most platforms. |
| 293 | |
| 294 | - STDWIN is now officially obsolete. Support for it will eventually |
| 295 | be removed from the distribution. |
| 296 | |
| 297 | - The binascii extension module is now hopefully fully debugged. (XXX |
| 298 | Oops -- Fredril Lundh promised me a fix that I never received.) |
| 299 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 300 | - audioop.c: added a ratecv method |
| 301 | |
| 302 | - posixmodule.c: now exports the O_* flags (O_APPEND etc.). On |
| 303 | Windows, also O_TEXT and O_BINARY. The 'error' variable (the |
| 304 | exception is raises) is renamed -- its string value is now "os.error", |
| 305 | so newbies don't believe they have to import posix (or nt) to catch |
| 306 | it when they see os.error reported as posix.error. |
| 307 | |
| 308 | - A new version of the al (audio library) module for SGI was |
| 309 | contributed by Sjoerd Mullender. |
| 310 | |
| 311 | - The regex module has a new function get_syntax() which retrieves the |
| 312 | syntax setting set by set_syntax(). The code was also sanitized, |
| 313 | removing worries about unclean error handling. See also below for its |
| 314 | successor, re.py. |
| 315 | |
| 316 | - The "new" module (which creates new objects of various types) once |
| 317 | again has a fully functioning new.function() method. Dangerous as |
| 318 | ever! |
| 319 | |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 320 | |
| 321 | New library modules |
| 322 | ------------------- |
| 323 | |
| 324 | - New (still experimental) Perl-style regular expression module, |
| 325 | re.py, which uses a new interface for matching as well as a new |
| 326 | syntax; the new interface avoids the thread-unsafety of the regex |
| 327 | interface. This comes with a helper extension reopmodule.c and vastly |
| 328 | rewritten regexpr.c. Most work on this was done by Jeffrey Ollie, Tim |
| 329 | Peters, and Andrew Kuchling. See the documentation libre.tex. In |
| 330 | 1.5, the old regex module is still fully supported; in the future, it |
| 331 | will become obsolete. |
| 332 | |
| 333 | - New module gzip.py; see zlib above. |
| 334 | |
| 335 | - New module keyword.py exports knowledge about Python's built-in |
| 336 | keywords. (New version by Ka-Ping Yee.) |
| 337 | |
| 338 | - New module pprint.py (with documentation) which supports |
| 339 | pretty-printing of lists, tuples, & dictionaries recursively. By Fred |
| 340 | Drake. |
| 341 | |
| 342 | - New module code.py. The function code.compile_command() can |
| 343 | determine whether an interactively entered command is complete or not, |
| 344 | distinguishing incomplete from invalid input. |
| 345 | |
Guido van Rossum | 522578e | 1997-08-28 03:43:21 +0000 | [diff] [blame] | 346 | - There is now a library module xdrlib.py which can read and write the |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 347 | XDR data format as used by Sun RPC, for example. It uses the struct |
| 348 | module. |
| 349 | |
| 350 | |
| 351 | Changes in library modules |
| 352 | -------------------------- |
| 353 | |
| 354 | - Module codehack.py is now completely obsolete. |
| 355 | |
| 356 | - Revamped module tokenize.py is much more accurate and has an |
| 357 | interface that makes it a breeze to write code to colorize Python |
| 358 | source code. Contributed by Ka-Ping Yee. |
| 359 | |
| 360 | - In ihooks.py, ModuleLoader.load_module() now closes the file under |
| 361 | all circumstances. |
| 362 | |
| 363 | - The tempfile.py module has a new class, TemporaryFile, which creates |
| 364 | an open temporary file that will be deleted automatically when |
| 365 | closed. This works on Windows and MacOS as well as on Unix. (Jim |
| 366 | Fulton.) |
| 367 | |
| 368 | - Changes to the cgi.py module: Most imports are now done at the |
| 369 | top of the module, which provides a speedup when using ni (Jim |
| 370 | Fulton). The problem with file upload to a Windows platform is solved |
| 371 | by using the new tempfile.TemporaryFile class; temporary files are now |
| 372 | always opened in binary mode (Jim Fulton). The cgi.escape() function |
| 373 | now takes an optional flag argument that quotes '"' to '"'. It |
| 374 | is now possible to invoke cgi.py from a command line script, to test |
| 375 | cgi scripts more easily outside an http server. There's an optional |
| 376 | limit to the size of uploads to POST (Skip Montanaro). Added a |
| 377 | 'strict_parsing' option to all parsing functions (Jim Fulton). The |
| 378 | function parse_qs() now uses urllib.unquote() on the name as well as |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 379 | the value of fields (Clarence Gardner). The FieldStorage class now |
| 380 | has a __len__() method. |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 381 | |
| 382 | - httplib.py: the socket object is no longer closed; all HTTP/1.* |
| 383 | versions are now treated the same; and it is now thread-safe (by not |
| 384 | using the regex module). |
| 385 | |
| 386 | - BaseHTTPModule.py: treat all HTTP/1.* versions the same. |
| 387 | |
| 388 | - The popen2.py module is now rewritten using a class, which makes |
| 389 | access to the standard error stream and the process id of the |
| 390 | subprocess possible. |
| 391 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 392 | - Added timezone support to the rfc822.py module, in the form of a |
| 393 | getdate_tz() method and a parsedate_tz() function. Also added |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 394 | recognition of some non-standard date formats, by Lars Wirzenius. |
| 395 | |
| 396 | - mhlib.py: various enhancements, including almost compatible parsing |
| 397 | of message sequence specifiers without invoking a subprocess. Also |
| 398 | added a createmessage() method by Lars Wirzenius. |
| 399 | |
| 400 | - The StringIO.StringIO class now supports readline(nbytes). (Lars |
| 401 | Wirzenius.) (Of course, you should be using cStringIO for performance.) |
| 402 | |
| 403 | - UserDict.py supports the new dictionary methods as well. |
| 404 | |
| 405 | - Improvements for whrandom.py by Tim Peters: use 32-bit arithmetic to |
| 406 | speed it up, and replace 0 seed values by 1 to avoid degeneration. |
| 407 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 408 | - Module ftplib.py: added support for parsing a .netrc file (Fred |
| 409 | Drake). Also added an ntransfercmd() method to the FTP class, which |
| 410 | allows access to the expected size of a transfer when available, and a |
| 411 | parse150() function to the module which parses the corresponding 150 |
| 412 | response. |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 413 | |
| 414 | - urllib.py: the ftp cache is now limited to 10 entries. Added |
| 415 | quote_plus() method which is like qupte() but also replaces spaces |
| 416 | with '+', for encoding CGI form arguments. Catch all errors from the |
| 417 | ftp module. HTTP requests now add the Host: header line. The proxy |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 418 | variable names are now mapped to lower case, for Windows. The |
| 419 | spliturl() function no longer erroneously throws away all data past |
| 420 | the first newline. The basejoin() function now intereprets "../" |
| 421 | correctly. |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 422 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 423 | - shelve.py: use cPickle and cStringIO when available. Also added |
| 424 | a sync() method, which calls the database's sync() method if there is |
| 425 | one. |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 426 | |
| 427 | - The mimetools.py module now uses the available Python modules for |
| 428 | decoding quoted-printable, uuencode and base64 formats, rather than |
| 429 | creating a subprocess. |
| 430 | |
| 431 | - The python debugger (pdb.py, and its base class bdb.py) now support |
| 432 | conditional breakpoints. See the docs. |
| 433 | |
| 434 | - The modules base64.py, uu.py and quopri.py can now be used as simple |
| 435 | command line utilities. |
| 436 | |
| 437 | - Various small fixes to the nntplib.py module that I can't bother to |
| 438 | document in detail. |
| 439 | |
| 440 | - There is a cache for results in urlparse.urlparse(); its size limit |
| 441 | is set to 20 (not 2000 as it was in earlier alphas). |
| 442 | |
| 443 | - Sjoerd Mullender's mimify.py module now supports base64 encoding and |
| 444 | includes functions to handle the funny encoding you sometimes see in mail |
| 445 | headers. It is now documented. |
| 446 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 447 | - mailbox.py: Added BabylMailbox. Improved the way the mailbox is |
| 448 | gotten from the environment. |
| 449 | |
| 450 | - Many more modules now correctly open files in binary mode when this |
| 451 | is necessary on non-Unix platforms. |
| 452 | |
| 453 | - The copying functions in the undocumented module shutil.py are |
| 454 | smarter. |
| 455 | |
| 456 | - The Writer classes in the formatter.py module now have a flush() |
| 457 | method. |
| 458 | |
| 459 | - The Python bytecode disassembler module, dis.py, has been enhanced |
| 460 | quite a bit. There's now one main function, dis.dis(), which takes |
| 461 | almost any kind of object (function, module, class, instance, method, |
| 462 | code object) and disassembles it; without arguments it disassembles |
| 463 | the last frame of the last traceback. The other functions have |
| 464 | changed slightly, too. |
| 465 | |
| 466 | - The imghdr.py module recognizes new image types: BMP, PNG. |
| 467 | |
| 468 | - The string module has a new function replace(str, old, new, |
| 469 | [maxsplit]) which does substring replacements. It is actually |
| 470 | implemented in C in the strop module. The functions [r]find() an |
| 471 | [r]index() have an optional 4th argument indicating the end of the |
| 472 | substring to search, alsoo implemented by their strop counterparts. |
| 473 | (Remember, never import strop -- import string uses strop when |
| 474 | available with zero overhead.) |
| 475 | |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 476 | |
| 477 | Changes to the build process |
| 478 | ---------------------------- |
| 479 | |
| 480 | - The way GNU readline is configured is totally different. The |
| 481 | --with-readline configure option is gone. It is now an extension |
| 482 | module, which may be loaded dynamically. You must enable it (and |
| 483 | specify the correct linraries to link with) in the Modules/Setup file. |
| 484 | Importing the module installs some hooks which enable command line |
| 485 | editing. When the interpreter shell is invoked interactively, it |
| 486 | attempts to import the readline module; when this fails, the default |
| 487 | input mechanism is used. The hook variables are PyOS_InputHook and |
| 488 | PyOS_ReadlineFunctionPointer. (Code contributed by Lee Busby, with |
| 489 | ideas from William Magro.) |
| 490 | |
| 491 | - New build procedure: a single library, libpython1.5.a, is now built, |
| 492 | which contains absolutely everything except for a one-line main() |
| 493 | program (which calls Py_Main(argc, argv) to start the interpreter |
| 494 | shell). This makes life much simpler for applications that need to |
| 495 | embed Python. The serial number of the build is now included in the |
| 496 | version string (sys.version). |
| 497 | |
| 498 | - As far as I can tell, neither gcc -Wall nor the Microsoft compiler |
| 499 | emits a single warning any more when compiling Python. |
| 500 | |
| 501 | - A set of patches from Lee Busby has been integrated that make it |
| 502 | possible to catch floating point exceptions. Use the configure option |
| 503 | --with-fpectl to enable the patches; the extension modules fpectl and |
| 504 | fpetest provide control to enable/disable and test the feature, |
| 505 | respectively. |
| 506 | |
| 507 | - The support for shared libraries under AIX is now simpler and more |
| 508 | robust. Thanks to Vladimir Marangozov for revamping his own patches! |
| 509 | |
| 510 | - The Modules/makesetup script now reads a file Setup.local as well as |
| 511 | a file Setup. Most changes to the Setup script can be done by editing |
| 512 | Setup.local instead, which makes it easier to carry a particular setup |
| 513 | over from one release to the next. |
| 514 | |
| 515 | - The configure script is smarter about C compiler options; e.g. with |
| 516 | gcc it uses -O2 and -g when possible, and on some other platforms it |
| 517 | uses -Olimit 1500 to avoid a warning from the optimizer about the main |
| 518 | loop in ceval.c (which has more than 1000 basic blocks). |
| 519 | |
| 520 | - The configure script now detects whether malloc(0) returns a NULL |
| 521 | pointer or a valid block (of length zero). This avoids the nonsense |
| 522 | of always adding one byte to all malloc() arguments on most platforms. |
| 523 | |
| 524 | |
| 525 | Change to the Python/C API |
| 526 | -------------------------- |
| 527 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 528 | - I've completed the Grand Renaming, with the help of Roger Masse and |
| 529 | Barry Warsaw. This makes reading or debugging the code much easier. |
| 530 | Many other unrelated code reorganizations have also been carried out. |
| 531 | The allobjects.h header file is gone; instead, you would have to |
| 532 | include Python.h followed by rename2.h. But you're better off running |
| 533 | Tools/scripts/fixcid.py -s Misc/RENAME on your source, so you can omit |
| 534 | the rename2.h; it will disappear in the next release. |
| 535 | |
| 536 | - The API functions in the file cgensupport.c are no longer |
| 537 | supported. This file has been moved to Modules and is only ever |
| 538 | compiled when the SGI specific 'gl' module is built. |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 539 | |
| 540 | - PyObject_Compare() can now raise an exception. Check with |
| 541 | PyErr_Occurred(). The comparison function in an object type may also |
| 542 | raise an exception. |
| 543 | |
| 544 | - The slice interface uses an upper bound of INT_MAX when no explicit |
| 545 | upper bound is given (e.x. for a[1:]). It used to ask the object for |
| 546 | its length and do the calculations. |
| 547 | |
| 548 | - Support for multiple independent interpreters. See Doc/api.tex, |
| 549 | functions Py_NewInterpreter() and Py_EndInterpreter(). Since the |
| 550 | documentation is incomplete, also see the new Demo/pysvr example |
| 551 | (which shows how to use these in a threaded application) and the |
| 552 | source code. |
| 553 | |
| 554 | - There is now a Py_Finalize() function which "de-initializes" |
| 555 | Python. It is possible to completely restart the interpreter |
| 556 | repeatedly by calling Py_Finalize() followed by Py_Initialize(). A |
| 557 | change of functionality in Py_Initialize() means that it is now a |
| 558 | fatal error to call it while the interpreter is already initialized. |
| 559 | The old, half-hearted Py_Cleanup() routine is gone. Use of Py_Exit() |
| 560 | is deprecated (it is nothing more than Py_Finalize() followed by |
| 561 | exit()). |
| 562 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 563 | - There are no known memory leaks left. While Py_Finalize() doesn't |
| 564 | free *all* allocated memory (some of it is hard to track down), |
| 565 | repeated calls to Py_Finalize() and Py_Initialize() do not create |
| 566 | unaccessible heap blocks. |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 567 | |
| 568 | - There is now explicit per-thread state. (Inspired by, but not the |
| 569 | same as, Greg Stein's free threading patches.) |
| 570 | |
| 571 | - There is now better support for threading C applications. There are |
| 572 | now explicit APIs to manipulate the interpreter lock. Read the source |
| 573 | or the Demo/pysvr example; the new functions are |
| 574 | PyEval_{Acquire,Release}{Lock,Thread}(). |
| 575 | |
| 576 | - New wrappers around malloc() and friends: Py_Malloc() etc. call |
| 577 | malloc() and call PyErr_NoMemory() when it fails; PyMem_Malloc() call |
| 578 | just malloc(). Use of these wrappers could be essential if multiple |
| 579 | memory allocators exist (e.g. when using certain DLL setups under |
| 580 | Windows). (Idea by Jim Fulton.) |
| 581 | |
| 582 | - New C API PyImport_Import() which uses whatever __import__() hook |
| 583 | that is installed for the current execution environment. By Jim |
| 584 | Fulton. |
| 585 | |
| 586 | - It is now possible for an extension module's init function to fail |
| 587 | non-fatally, by calling one of the PyErr_* functions and returning. |
| 588 | |
| 589 | - The PyInt_AS_LONG() and PyFloat_AS_DOUBLE() macros now cast their |
| 590 | argument to the proper type, like the similar PyString macros already |
| 591 | did. (Suggestion by Marc-Andre Lemburg.) |
| 592 | |
| 593 | - Some of the Py_Get* function, like Py_GetVersion() (but not yet |
| 594 | Py_GetPath()) are now declared as returning a const char *. (More |
| 595 | should follow.) |
| 596 | |
| 597 | - Changed the run-time library to check for exceptions after object |
| 598 | comparisons. PyObject_Compare() can now return an exception; use |
| 599 | PyErr_Occurred() to check (there is *no* special return value). |
| 600 | |
| 601 | - PyFile_WriteString() and Py_Flushline() now return error indicators |
| 602 | instead of clearing exceptions. This fixes an obscure bug where using |
| 603 | these would clear a pending exception, discovered by Just van Rossum. |
| 604 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 605 | - PyArg_GetInt() is gone. |
| 606 | |
| 607 | - It's no longer necessary to include graminit.h when calling one of |
| 608 | the extended parser API functions. The three public grammar start |
| 609 | symbols are now in Python.h as Py_single_input, Py_file_input, and |
| 610 | Py_eval_input. |
| 611 | |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 612 | |
| 613 | Tkinter |
| 614 | ------- |
| 615 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 616 | - On popular demand, _tkinter once again installs a hook for readline |
| 617 | that processes certain Tk events while waiting for the user to type |
| 618 | (using PyOS_InputHook). |
| 619 | |
| 620 | - A patch by Craig McPheeters plugs the most obnoxious memory leaks, |
| 621 | caused by command definitions referencing widget objects beyond their |
| 622 | lifetime. |
| 623 | |
| 624 | - New standard dialog modules: tkColorChooser.py, tkCommonDialog.py, |
| 625 | tkMessageBox.py, tkFileDialog.py, tkSimpleDialog.py These interface |
| 626 | with the new Tk dialog scripts. Contributed by Fredrik Lundh. |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 627 | |
| 628 | - Tkinter.py: when the first Tk object is destroyed, it sets the |
| 629 | hiddel global _default_root to None, so that when another Tk object is |
| 630 | created it becomes the new default root. Other miscellaneous |
| 631 | changes and fixes. |
| 632 | |
| 633 | - The _tkinter.c extension module has been revamped. It now support |
| 634 | Tk versions 4.1 through 8.0; support for 4.0 has been dropped. It |
| 635 | works well under Windows and Mac (with the latest Tk ports to those |
| 636 | platforms). It also supports threading -- it is safe for one |
| 637 | (Python-created) thread to be blocked in _tkinter.mainloop() while |
| 638 | other threads modify widgets. (To make the changes visible, those |
| 639 | threads must use update_idletasks()method.) Unfortunately, on Windows |
| 640 | and Mac, Tk 8.0 no longer supports CreateFileHandler, so |
| 641 | _tkinter.createfilehandler is not available on those platforms. I |
| 642 | will have to rethink how to interface with Tcl's lower-level event |
| 643 | mechanism, or with its channels (which are like Python's file-like |
| 644 | objects). |
| 645 | |
| 646 | |
| 647 | Tools and Demos |
| 648 | --------------- |
| 649 | |
| 650 | - A new regression test suite is provided, which tests most of the |
| 651 | standard and built-in modules. The regression test is run by invoking |
| 652 | the script Lib/test/regrtest.py. Barry Warsaw wrote the test harnass; |
| 653 | he and Roger Masse contributed most of the new tests. |
| 654 | |
| 655 | - New tool: faqwiz -- the CGI script that is used to maintain the |
| 656 | Python FAQ (http://grail.cnri.reston.va.us/cgi-bin/faqw.py). In |
| 657 | Tools/faqwiz. |
| 658 | |
| 659 | - New tool: webchecker -- a simple extensible web robot that, when |
| 660 | aimed at a web server, checks that server for dead links. Available |
| 661 | are a command line utility as well as a Tkinter based GUI version. In |
| 662 | Tools/webchecker. A simplified version of this program is dissected |
| 663 | in my article in O'Reilly's WWW Journal, the issue on Scripting |
| 664 | Languages (Vol 2, No 2); Scripting the Web with Python (pp 97-120). |
| 665 | Includes a parser for robots.txt files by Skip Montanaro. |
| 666 | |
| 667 | - New small tools: cvsfiles.py (prints a list of all files under CVS |
| 668 | in a particular directory tree), treesync.py (a rather Guido-specific |
| 669 | script to synchronize two source trees, one on Windows NT, the other |
| 670 | one on Unix under CVS but accessible from the NT box), and logmerge.py |
| 671 | (sort a collection of RCS or CVS logs by date). In Tools/scripts. |
| 672 | |
| 673 | - The freeze script now also works under Windows (NT). Another |
| 674 | feature allows the -p option to be pointed at the Python source tree |
| 675 | instead of the installation prefix. This was loosely based on part of |
| 676 | xfreeze by Sam Rushing and Bill Tutt. |
| 677 | |
| 678 | - New examples (Demo/extend) that show how to use the generic |
| 679 | extension makefile (Misc/Makefile.pre.in). |
| 680 | |
| 681 | - Tools/scripts/h2py.py now supports C++ comments. |
| 682 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 683 | - Tools/scripts/pystone.py script is upgraded to version 1.1; there |
| 684 | was a bug in version 1.0 (distributed with Python 1.4) that leaked |
| 685 | memory. Also, in 1.1, the LOOPS variable is incremented to 10000. |
| 686 | |
| 687 | - Demo/classes/Rat.py completely rewritten by Sjoerd Mullender. |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 688 | |
| 689 | |
| 690 | Windows (NT and 95) |
| 691 | ------------------- |
| 692 | |
| 693 | - New project files for Developer Studio (Visual C++) 5.0 for Windows |
| 694 | NT (the old VC++ 4.2 Makefile is also still supported, but will |
| 695 | eventually be withdrawn due to its bulkiness). |
| 696 | |
| 697 | - See the note on the new module search path in the "Miscellaneous" section |
| 698 | above. |
| 699 | |
| 700 | - Support for Win32s (the 32-bit Windows API under Windows 3.1) is |
| 701 | basically withdrawn. If it still works for you, you're lucky. |
| 702 | |
| 703 | - There's a new extension module, msvcrt.c, which provides various |
| 704 | low-level operations defined in the Microsoft Visual C++ Runtime Library. |
| 705 | These include locking(), setmode(), get_osfhandle(), set_osfhandle(), and |
| 706 | console I/O functions like kbhit(), getch() and putch(). |
| 707 | |
| 708 | - The -u option not only sets the standard I/O streams to unbuffered |
| 709 | status, but also sets them in binary mode. |
| 710 | |
| 711 | - The, sys.prefix and sys.exec_prefix variables point to the directory |
| 712 | where Python is installed, or to the top of the source tree, if it was run |
| 713 | from there. |
| 714 | |
| 715 | - The ntpath module (normally used as os.path) supports ~ to $HOME |
| 716 | expansion in expanduser(). |
| 717 | |
| 718 | - The freeze tool now works on Windows. |
| 719 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 720 | - See also the Tkinter category for a sad note on |
| 721 | _tkinter.createfilehandler(). |
| 722 | |
| 723 | - The truncate() method for file objects now works on Windows. |
| 724 | |
| 725 | - Py_Initialize() is no longer called when the DLL is loaded. You |
| 726 | must call it yourself. (And you can't call it twice -- it's a fatal |
| 727 | error to call it when Python is already initialized.) |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 728 | |
| 729 | |
| 730 | Mac |
| 731 | --- |
| 732 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 733 | - As always, the Macintosh port will be done by Jack Jansen. He will |
| 734 | make a separate announcement for the Mac specific source code and the |
| 735 | binary distribution(s) when these are ready. |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 736 | |
| 737 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 738 | Fixed after 1.5a3 was released |
| 739 | ------------------------------ |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 740 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 741 | The following changes have been made to the source base after the |
| 742 | release of 1.5a3. These need to be merged into their respective |
| 743 | categories for the next release. |
Guido van Rossum | f0b69f0 | 1997-08-15 02:50:47 +0000 | [diff] [blame] | 744 | |
Guido van Rossum | 522578e | 1997-08-28 03:43:21 +0000 | [diff] [blame] | 745 | - faqwiz.py: version 0.8; Recognize https:// as URL; <html>...</html> |
| 746 | feature; better install instructions; removed faqmain.py (which was an |
| 747 | older version). |
| 748 | |
| 749 | - nntplib.py: Fixed some bugs reported by Lars Wirzenius (to Debian) |
| 750 | about the treatment of lines starting with '.'. Added a minimal test |
| 751 | function. |
| 752 | |
| 753 | - struct module: ignore most whitespace in format strings. |
| 754 | |
| 755 | - urllib.py: close the socket and temp file in URLopener.retrieve() so |
| 756 | that multiple retrievals using the same connection work. |
| 757 | |
| 758 | - Three new C API functions: |
| 759 | |
| 760 | - int PyErr_GivenExceptionMatches(obj1, obj2) |
| 761 | |
| 762 | Returns 1 if obj1 and obj2 are the same object, or if obj1 is an |
| 763 | instance of type obj2, or of a class derived from obj2 |
| 764 | |
| 765 | - int PyErr_ExceptionMatches(obj) |
| 766 | |
| 767 | Higher level wrapper around PyErr_GivenExceptionMatches() which uses |
| 768 | PyErr_Occurred() as obj1. This will be the more commonly called |
| 769 | function. |
| 770 | |
| 771 | - void PyErr_NormalizeException(typeptr, valptr, tbptr) |
| 772 | |
| 773 | Normalizes exceptions, and places the normalized values in the |
| 774 | arguments. If type is not a class, this does nothing. If type is a |
| 775 | class, then it makes sure that value is an instance of the class by: |
| 776 | |
| 777 | 1. if instance is of the type, or a class derived from type, it does |
| 778 | nothing. |
| 779 | |
| 780 | 2. otherwise it instantiates the class, using the value as an |
| 781 | argument. If value is None, it uses an empty arg tuple, and if |
| 782 | the value is a tuple, it uses just that. |
| 783 | |
| 784 | - Demo/metaclasses: new demo subdir explains metaclasses (read |
| 785 | index.html in a browser). |
| 786 | |
| 787 | - core interpreter: remove the distinction between tuple and list |
| 788 | unpacking; allow an arbitrary sequence on the right hand side of any |
| 789 | unpack instruction. (UNPACK_LIST and UNPACK_TUPLE now do the same |
| 790 | thing, which should really be called UNPACK_SEQUENCE.) |
| 791 | |
| 792 | - classes: Allow assignments to an instance's __dict__ or __class__, |
| 793 | so you can change ivars (including shared ivars -- shock horror) and |
| 794 | change classes dynamically. Also make the check on read-only |
| 795 | attributes of classes less draconic -- only the specials names |
| 796 | __dict__, __bases__, __name__ and __{get,set,del}attr__ can't be |
| 797 | assigned. |
| 798 | |
| 799 | - Two new built-in functions: issubclass() and isinstance(). Both |
| 800 | take classes as their second arguments. The former takes a class as |
| 801 | the first argument and returns true iff first is second, or is a |
| 802 | subclass of second. The latter takes any object as the first argument |
| 803 | and returns true iff first is an instance of the second, or any |
| 804 | subclass of second. |
| 805 | |
| 806 | - configure: Added configuration tests for presence of alarm(), |
| 807 | pause(), and getpwent(). |
| 808 | |
| 809 | - Doc/Makefile: changed latex2html targets. |
| 810 | |
| 811 | - classes: Reverse the search order for the Don Beaudry hook so that |
| 812 | the first class with an applicable hook wins. Makes more sense. |
| 813 | |
| 814 | - Changed the checks made in Py_Initialize() and Py_Finalize(). It is |
| 815 | now legal to call these more than once. The first call to |
| 816 | Py_Initialize() initializes, the first call to Py_Finalize() |
| 817 | finalizes. There's also a new API, Py_IsInitalized() which checks |
| 818 | whether we are already initialized (in case you want to leave things |
| 819 | as they were). |
| 820 | |
| 821 | - Completely disable the declarations for malloc(), realloc() and |
| 822 | free(). Any 90's C compiler has these in header files, and the tests |
| 823 | to decide whether to suppress the declarations kept failing on some |
| 824 | platforms. |
| 825 | |
| 826 | - *Before* (instead of after) signalmodule.o is added, remove both |
| 827 | intrcheck.o and sigcheck.o. This should get rid of warnings in ar or |
| 828 | ld on various systems. |
| 829 | |
| 830 | - Added reop to PC/config.c |
| 831 | |
| 832 | - configure: Decided to use -Aa -D_HPUX_SOURCE on HP-UX platforms. |
| 833 | Removed outdated HP-UX comments from README. Added Cray T3E comments. |
| 834 | |
| 835 | - Various renames of statically defined functions that had name |
| 836 | conflicts on some systems, e.g. strndup (GNU libc), join (Cray), |
| 837 | roundup (sys/types.h). |
| 838 | |
| 839 | - urllib.py: Interpret three slashes in file: URL as local file (for |
| 840 | Netscape on Windows/Mac). |
| 841 | |
| 842 | - copy.py: Make sure the objects returned by __getinitargs__() are |
| 843 | kept alive (in the memo) to avoid a certain kind of nasty crash. (Not |
| 844 | easily reproducable because it requires a later call to |
| 845 | __getinitargs__() to return a tuple that happens to be allocated at |
| 846 | the same address.) |
| 847 | |
| 848 | - Added definition of AR to toplevel Makefile. Renamed @buildno temp |
| 849 | file to buildno1. |
| 850 | |
| 851 | - Moved Include/assert.h to Parser/assert.h, which seems to be the |
| 852 | only place where it's needed. |
| 853 | |
| 854 | - Alas, the thread support for _tkinter didn't work. Withdrew it. |
| 855 | |
| 856 | - Tweaked the dictionary lookup code again for some more speed |
| 857 | (Vladimir Marangozov). |
| 858 | |
| 859 | - NT build: Changed the way python15.lib is included in the other |
| 860 | projects. Per Mark Hammond's suggestion, add it to the extra libs in |
| 861 | Settings instead of to the project's source files. |
| 862 | |
| 863 | - regrtest.py: Change default verbosity so that there are only three |
| 864 | levels left: -q, default and -v. In default mode, the name of each |
| 865 | test is now printed. -v is the same as the old -vv. -q is more quiet |
| 866 | than the old default mode. |
| 867 | |
| 868 | - Removed the old FAQ from the distribution. You now have to get it |
| 869 | from the web! |
| 870 | |
| 871 | - Removed the PC/make_nt.in file from the distribution; it is no |
| 872 | longer needed. |
| 873 | |
| 874 | - Changed the build sequence so that shared modules are built last. |
| 875 | This fixes things for AIX and doesn't hurt elsewhere. |
| 876 | |
| 877 | - Improved test for GNU MP v1 in mpzmodule.c |
Guido van Rossum | f0b69f0 | 1997-08-15 02:50:47 +0000 | [diff] [blame] | 878 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 879 | - fileobject.c: ftell() on Linux discards all buffered data; changed |
Guido van Rossum | 522578e | 1997-08-28 03:43:21 +0000 | [diff] [blame] | 880 | read() code to use lseek() instead to get the same effect |
Guido van Rossum | f0b69f0 | 1997-08-15 02:50:47 +0000 | [diff] [blame] | 881 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 882 | - configure.in, configure, importdl.c: NeXT sharedlib fixes |
Guido van Rossum | f0b69f0 | 1997-08-15 02:50:47 +0000 | [diff] [blame] | 883 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 884 | - tupleobject.c: PyTuple_SetItem asserts refcnt==1 |
Guido van Rossum | f0b69f0 | 1997-08-15 02:50:47 +0000 | [diff] [blame] | 885 | |
Guido van Rossum | 522578e | 1997-08-28 03:43:21 +0000 | [diff] [blame] | 886 | - resource.c: Different strategy regarding whether to declare |
| 887 | getrusage() and getpagesize() -- #ifdef doesn't work, Linux has |
| 888 | conflicting decls in its headers. Choice: only declare the return |
| 889 | type, not the argument prototype, and not on Linux. |
Guido van Rossum | f0b69f0 | 1997-08-15 02:50:47 +0000 | [diff] [blame] | 890 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 891 | - importdl.c, configure*: set sharedlib extensions properly for NeXT |
Guido van Rossum | f0b69f0 | 1997-08-15 02:50:47 +0000 | [diff] [blame] | 892 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 893 | - configure*, Makefile.in, Modules/Makefile.pre.in: AIX shared libraries |
| 894 | fixed; moved addition of PURIFY to LINKCC to configure |
Guido van Rossum | f0b69f0 | 1997-08-15 02:50:47 +0000 | [diff] [blame] | 895 | |
Guido van Rossum | 522578e | 1997-08-28 03:43:21 +0000 | [diff] [blame] | 896 | - reopmodule.c, regexmodule.c, regexpr.c, zlibmodule.c: needed casts |
| 897 | added to shup up various compilers. |
Guido van Rossum | f0b69f0 | 1997-08-15 02:50:47 +0000 | [diff] [blame] | 898 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 899 | - _tkinter.c: removed buggy mac #ifndef |
Guido van Rossum | f0b69f0 | 1997-08-15 02:50:47 +0000 | [diff] [blame] | 900 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 901 | - Doc: various Mac documentation changes, added docs for 'ic' module |
Guido van Rossum | f0b69f0 | 1997-08-15 02:50:47 +0000 | [diff] [blame] | 902 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 903 | - PC/make_nt.in: deleted |
Guido van Rossum | f0b69f0 | 1997-08-15 02:50:47 +0000 | [diff] [blame] | 904 | |
Guido van Rossum | 522578e | 1997-08-28 03:43:21 +0000 | [diff] [blame] | 905 | - test_time.py, test_strftime.py: tweaks to catch %Z (which may return |
| 906 | "") |
Guido van Rossum | f0b69f0 | 1997-08-15 02:50:47 +0000 | [diff] [blame] | 907 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 908 | - test_rotor.py: print b -> print `b` |
Guido van Rossum | f0b69f0 | 1997-08-15 02:50:47 +0000 | [diff] [blame] | 909 | |
Guido van Rossum | 2da391f | 1997-08-18 21:17:32 +0000 | [diff] [blame] | 910 | - Tkinter.py: (tagOrId) -> (tagOrId,) |