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 | |
Guido van Rossum | e96bd3f | 1998-12-21 21:45:04 +0000 | [diff] [blame] | 4 | Below is a list of all relevant changes since release 1.5.1. Older |
| 5 | changes are in the file HISTORY. The most recent changes are listed |
| 6 | first. |
Guido van Rossum | 6100033 | 1997-08-15 04:39:58 +0000 | [diff] [blame] | 7 | |
Guido van Rossum | 1f83cce | 1997-10-06 21:04:35 +0000 | [diff] [blame] | 8 | A note on attributions: while I have sprinkled some names throughout |
Guido van Rossum | 7ea639b | 1997-11-26 16:36:28 +0000 | [diff] [blame] | 9 | here, I'm grateful to many more people who remain unnamed. You may |
Guido van Rossum | 1f83cce | 1997-10-06 21:04:35 +0000 | [diff] [blame] | 10 | find your name in the ACKS file. If you believe you deserve more |
| 11 | credit, let me know and I'll add you to the list! |
| 12 | |
| 13 | |
Guido van Rossum | 7ea639b | 1997-11-26 16:36:28 +0000 | [diff] [blame] | 14 | ====================================================================== |
| 15 | |
Guido van Rossum | c45cf02 | 1998-04-10 20:06:21 +0000 | [diff] [blame] | 16 | |
Guido van Rossum | e96bd3f | 1998-12-21 21:45:04 +0000 | [diff] [blame] | 17 | From 1.5.2a2 to 1.5.2b1 |
| 18 | ======================= |
| 19 | |
| 20 | Changes to intrinsics |
| 21 | --------------------- |
| 22 | |
| 23 | - New extension NotImplementedError, derived from RuntimeError. Not |
| 24 | used, but recommended use is for "abstract" methods to raise this. |
| 25 | |
| 26 | - The parser will now spit out a warning or error when -t or -tt is |
| 27 | used for parser input coming from a string, too. |
| 28 | |
| 29 | - The code generator now inserts extra SET_LINENO opcodes when |
| 30 | compiling multi-line argument lists. |
| 31 | |
| 32 | - When comparing bound methods, use identity test on the objects, not |
| 33 | equality test. |
| 34 | |
| 35 | New or improved ports |
| 36 | --------------------- |
| 37 | |
| 38 | - Chris Herborth has redone his BeOS port; it now works on PowerPC |
| 39 | (R3/R4) and x86 (R4 only). Threads work too in this port. |
| 40 | |
| 41 | Renaming |
| 42 | -------- |
| 43 | |
| 44 | - Thanks to Chris Herborth, the thread primitives now have proper Py* |
| 45 | names in the source code (they already had those for the linker, |
| 46 | through some smart macros; but the source still had the old, un-Py |
| 47 | names). |
| 48 | |
| 49 | Configuration/build changes |
| 50 | --------------------------- |
| 51 | |
| 52 | - Improved support for FreeBSD/3. |
| 53 | |
| 54 | - Check for pthread_detach instead of pthread_create in libc. |
| 55 | |
| 56 | - The makesetup script now searches EXECINCLUDEPY before INCLUDEPY. |
| 57 | |
| 58 | - Misc/Makefile.pre.in now also looks at Setup.thread and Setup.local. |
| 59 | Otherwise modules such as thread didn't get incorporated in extensions. |
| 60 | |
| 61 | New library modules |
| 62 | ------------------- |
| 63 | |
Guido van Rossum | de8b026 | 1998-12-22 16:41:09 +0000 | [diff] [blame] | 64 | - shlex.py by Eric Raymond provides a lexical analyzer class for |
| 65 | simple shell-like syntaxes. |
| 66 | |
| 67 | - netrc.py by Eric Raymond provides a parser for .netrc files. (The |
| 68 | undocumented Netrc class in ftplib.py is now obsolete.) |
| 69 | |
Guido van Rossum | e96bd3f | 1998-12-21 21:45:04 +0000 | [diff] [blame] | 70 | - codeop.py is a new module that contains the compile_command() |
| 71 | function that was previously in code.py. This is so that JPython can |
| 72 | provide its own version of this function, while still sharing the |
| 73 | higher-level classes in code.py. |
| 74 | |
| 75 | - turtle.py is a new module for simple turtle graphics. I'm still |
| 76 | working on it; let me know if you use this to teach Python to children |
| 77 | or other novices without prior programming experience. |
| 78 | |
| 79 | Obsoleted library modules |
| 80 | ------------------------- |
| 81 | |
| 82 | - poly.py and zmod.py have been moved to Lib/lib-old to emphasize |
| 83 | their status of obsoleteness. They don't do a particularly good job |
| 84 | and don't seem particularly relevant to the Python core. |
| 85 | |
| 86 | New tools |
| 87 | --------- |
| 88 | |
| 89 | - I've added IDLE: my Integrated DeveLopment Environment for Python. |
| 90 | Requires Tcl/Tk (and Tkinter). Works on Windows and Unix (and should |
| 91 | work on Macintosh, but I haven't been able to test it there; it does |
| 92 | depend on new features in 1.5.2 and perhaps even new features in |
| 93 | 1.5.2b1, especially the new code module). This is very much a work in |
| 94 | progress. I'd like to hear how people like it compared to PTUI (or |
| 95 | any other IDE they are familiar with). |
| 96 | |
| 97 | - New tools by Barry Warsaw: |
| 98 | |
| 99 | = audiopy: controls the Solaris Audio device |
| 100 | = pynche: The PYthonically Natural Color and Hue Editor |
| 101 | = world: Print mappings between country names and DNS country codes |
| 102 | |
| 103 | New demos |
| 104 | --------- |
| 105 | |
| 106 | - Demo/scripts/beer.py prints the lyrics to an arithmetic drinking |
| 107 | song. |
| 108 | |
| 109 | - Demo/tkinter/guido/optionmenu.py shows how to do an option menu in |
| 110 | Tkinter. (By Fredrik Lundh -- not by me!) |
| 111 | |
| 112 | Changes to the library |
| 113 | ---------------------- |
| 114 | |
| 115 | - compileall.py now avoids recompiling .py files that haven't changed; |
| 116 | it adds a -f option to force recompilation. |
| 117 | |
| 118 | - New version of xmllib.py by Sjoerd Mullender (0.2 with latest |
| 119 | patches). |
| 120 | |
| 121 | - nntplib.py: statparse() no longer lowercases the message-id. |
| 122 | |
| 123 | - types.py: use type(__stdin__) for FileType. |
| 124 | |
| 125 | - urllib.py: fix translations for filenames with "funny" characters. |
Guido van Rossum | de8b026 | 1998-12-22 16:41:09 +0000 | [diff] [blame] | 126 | Patch by Sjoerd Mullender. Note that if you subclass one of the |
| 127 | URLopener classes, and you have copied code from the old urllib.py, |
| 128 | your subclass may stop working. A long-term solution is to provide |
| 129 | more methods so that you don't have to copy code. |
Guido van Rossum | e96bd3f | 1998-12-21 21:45:04 +0000 | [diff] [blame] | 130 | |
| 131 | - cgi.py: In read_multi, allow a subclass to override the class we |
| 132 | instantiate when we create a recursive instance, by setting the class |
| 133 | variable 'FieldStorageClass' to the desired class. By default, this |
| 134 | is set to None, in which case we use self.__class__ (as before). |
| 135 | Also, a patch by Jim Fulton to pass additional arguments to recursive |
| 136 | calls to the FieldStorage constructor from its read_multi method. |
| 137 | |
| 138 | - UserList.py: In __getslice__, use self.__class__ instead of |
| 139 | UserList. |
| 140 | |
| 141 | - In SimpleHTTPServer.py, the server specified in test() should be |
| 142 | BaseHTTPServer.HTTPServer, in case the request handler should want to |
| 143 | reference the two attributes added by BaseHTTPServer.server_bind. (By |
| 144 | Jeff Rush, for Bobo). Also open the file in binary mode, so serving |
| 145 | images from a Windows box might actually work. |
| 146 | |
| 147 | - In CGIHTTPServer.py, the list of acceptable formats is -split- |
| 148 | on spaces but -joined- on commas, resulting in double commas |
| 149 | in the joined text. (By Jeff Rush.) |
| 150 | |
| 151 | - SocketServer.py, patch by Jeff Bauer: a minor change to declare two |
| 152 | new threaded versions of Unix Server classes, using the ThreadingMixIn |
| 153 | class: ThreadingUnixStreamServer, ThreadingUnixDatagramServer. |
| 154 | |
| 155 | - bdb.py: fix bomb on deleting a temporary breakpoint: there's no |
| 156 | method do_delete(); do_clear() was meant. By Greg Ward. |
| 157 | |
| 158 | - getopt.py: accept a non-list sequence for the long options (request |
| 159 | by Jack Jansen). Because it might be a common mistake to pass a |
| 160 | single string, this situation is treated separately. Also added |
| 161 | docstrings (copied from the library manual) and removed the (now |
| 162 | redundant) module comments. |
| 163 | |
| 164 | - tempfile.py: improvements to avoid security leaks. |
| 165 | |
| 166 | - code.py: moved compile_command() to new module codeop.py. |
| 167 | |
| 168 | - pickle.py: support pickle format 1.3 (binary float added). By Jim |
| 169 | Fulton. Also get rid of the undocumented obsolete Pickler dump_special |
| 170 | method. |
| 171 | |
| 172 | - uu.py: Move 'import sys' to top of module, as noted by Tim Peters. |
| 173 | |
| 174 | - imaplib.py: fix problem with some versions of IMAP4 servers that |
| 175 | choose to mix the case in their CAPABILITIES response. |
| 176 | |
| 177 | - cmp.py: use (f1, f2) as cache key instead of f1 + ' ' + f2. Noted |
| 178 | by Fredrik Lundh. |
| 179 | |
| 180 | Changes to extension modules |
| 181 | ---------------------------- |
| 182 | |
| 183 | - More doc strings for several modules were contributed by Chris |
| 184 | Petrilli: math, cmath, fcntl. |
| 185 | |
| 186 | - Fixed a bug in zlibmodule.c that could cause core dumps on |
| 187 | decompression of rarely occurring input. |
| 188 | |
| 189 | - cPickle.c: new version from Jim Fulton, with Open Source copyright |
| 190 | notice. Also, initialize self->safe_constructors early on to prevent |
| 191 | crash in early dealloc. |
| 192 | |
| 193 | - cStringIO.c: new version from Jim Fulton, with Open Source copyright |
| 194 | notice. Also fixed a core dump in cStringIO.c when doing seeks. |
| 195 | |
| 196 | - mpzmodule.c: fix signed character usage in mpz.mpz(stringobjecty). |
| 197 | |
| 198 | - readline.c: Bernard Herzog pointed out that rl_parse_and_bind |
| 199 | modifies its argument string (bad function!), so we make a temporary |
| 200 | copy. |
| 201 | |
| 202 | - sunaudiodev.c: Barry Warsaw added more smarts to get the device and |
| 203 | control pseudo-device, per audio(7I). |
| 204 | |
| 205 | Changes to tools |
| 206 | ---------------- |
| 207 | |
| 208 | - New, improved version of Barry Warsaw's Misc/python-mode.el (editing |
| 209 | support for Emacs). |
| 210 | |
| 211 | - tabnanny.py: added a -q ('quiet') option to tabnanny, which causes |
| 212 | only the names of offending files to be printed. |
| 213 | |
| 214 | - freeze: when printing missing modules, also print the module they |
| 215 | were imported from. |
| 216 | |
| 217 | - untabify.py: patch by Detlef Lannert to implement -t option |
| 218 | (set tab size). |
| 219 | |
| 220 | Changes to Tkinter |
| 221 | ------------------ |
| 222 | |
| 223 | - grid_bbox(): support new Tk API: grid bbox ?column row? ?column2 |
| 224 | row2? |
| 225 | |
| 226 | - _tkinter.c: RajGopal Srinivasan noted that the latest code (1.5.2a2) |
| 227 | doesn't work when running in a non-threaded environment. He added |
| 228 | some #ifdefs that fix this. |
| 229 | |
| 230 | Changes to the Python/C API |
| 231 | --------------------------- |
| 232 | |
| 233 | - Bumped API version number to 1008 -- enough things have changed! |
| 234 | |
| 235 | - There's a new macro, PyThreadState_GET(), which does the same work |
| 236 | as PyThreadState_Get() without the overhead of a function call (it |
| 237 | also avoids the error check). The two top calling locations of |
| 238 | PyThreadState_Get() have been changed to use this macro. |
| 239 | |
| 240 | - All symbols intended for export from a DLL or shared library are now |
| 241 | marked as such (with the DL_IMPORT() macro) in the header file that |
| 242 | declares them. This was needed for the BeOS port, and should also |
| 243 | make some other ports easier. The PC port no longer needs the file |
| 244 | with exported symbols (PC/python_nt.def). There's also a DL_EXPORT |
| 245 | macro which is only used for init methods in extension modules, and |
| 246 | for Py_Main(). |
| 247 | |
| 248 | Invisible changes to internals |
| 249 | ------------------------------ |
| 250 | |
| 251 | - Fixed a bug in new_buffersize() in fileobject.c which could |
| 252 | return a buffer size that was way too large. |
| 253 | |
| 254 | - Use PySys_WriteStderr instead of fprintf in most places. |
| 255 | |
| 256 | - dictobject.c: remove dead code discovered by Vladimir Marangozov. |
| 257 | |
| 258 | - tupleobject.c: make tuples less hungry -- an extra item was |
| 259 | allocated but never used. Tip by Vladimir Marangozov. |
| 260 | |
| 261 | - mymath.h: Metrowerks PRO4 finally fixes the hypot snafu. (Jack |
| 262 | Jansen) |
| 263 | |
| 264 | - import.c: Jim Fulton fixes a reference count bug in |
| 265 | PyEval_GetGlobals. |
| 266 | |
| 267 | - glmodule.c: check in the changed version after running the stubber |
| 268 | again -- this solves the conflict with curses over the 'clear' entry |
| 269 | point much nicer. (Jack Jansen had checked in the changes to cstubs |
| 270 | eons ago, but I never regenrated glmodule.c :-( ) |
| 271 | |
| 272 | - frameobject.c: fix reference count bug in PyFrame_New. Vladimir |
| 273 | Marangozov. |
| 274 | |
| 275 | - stropmodule.c: add a missing DECREF in an error exit. Submitted by |
| 276 | Jonathan Giddy. |
| 277 | |
| 278 | |
| 279 | ====================================================================== |
| 280 | |
| 281 | |
Guido van Rossum | e8c10f9 | 1998-10-17 19:43:13 +0000 | [diff] [blame] | 282 | From 1.5.2a1 to 1.5.2a2 |
| 283 | ======================= |
| 284 | |
| 285 | General |
| 286 | ------- |
| 287 | |
| 288 | - It is now a syntax error to have a function argument without a |
| 289 | default following one with a default. |
| 290 | |
| 291 | - __file__ is now set to the .py file if it was parsed (it used to |
| 292 | always be the .pyc/.pyo file). |
| 293 | |
| 294 | - Don't exit with a fatal error during initialization when there's a |
| 295 | problem with the exceptions.py module. |
| 296 | |
| 297 | - New environment variable PYTHONOPTIMIZE can be used to set -O. |
| 298 | |
| 299 | - New version of python-mode.el for Emacs. |
| 300 | |
| 301 | Miscellaneous fixed bugs |
| 302 | ------------------------ |
| 303 | |
| 304 | - No longer print the (confusing) error message about stack underflow |
| 305 | while compiling. |
| 306 | |
| 307 | - Some threading and locking bugs fixed. |
| 308 | |
| 309 | - When errno is zero, report "Error", not "Success". |
| 310 | |
| 311 | Documentation |
| 312 | ------------- |
| 313 | |
| 314 | - Documentation will be released separately. |
| 315 | |
| 316 | - Doc strings added to array and md5 modules by Chris Petrilli. |
| 317 | |
| 318 | Ports and build procedure |
| 319 | ------------------------- |
| 320 | |
| 321 | - Stop installing when a move or copy fails. |
| 322 | |
| 323 | - New version of the OS/2 port code by Jeff Rush. |
| 324 | |
| 325 | - The makesetup script handles absolute filenames better. |
| 326 | |
| 327 | - The 'new' module is now enabled by default in the Setup file. |
| 328 | |
| 329 | - I *think* I've solved the problem with the Linux build blowing up |
| 330 | sometimes due to a conflict between sigcheck/intrcheck and |
| 331 | signalmodule. |
| 332 | |
| 333 | Built-in functions |
| 334 | ------------------ |
| 335 | |
| 336 | - The second argument to apply() can now be any sequence, not just a |
| 337 | tuple. |
| 338 | |
| 339 | Built-in types |
| 340 | -------------- |
| 341 | |
| 342 | - Lists have a new method: L1.extend(L2) is equivalent to the common |
| 343 | idiom L1[len(L1):] = L2. |
| 344 | |
| 345 | - Better error messages when a sequence is indexed with a non-integer. |
| 346 | |
| 347 | - Bettter error message when calling a non-callable object (include |
| 348 | the type in the message). |
| 349 | |
| 350 | Python services |
| 351 | --------------- |
| 352 | |
| 353 | - New version of cPickle.c fixes some bugs. |
| 354 | |
| 355 | - pickle.py: improved instantiation error handling. |
| 356 | |
| 357 | - code.py: reworked quite a bit. New base class |
| 358 | InteractiveInterpreter and derived class InteractiveConsole. Fixed |
| 359 | several problems in compile_command(). |
| 360 | |
| 361 | - py_compile.py: print error message and continue on syntax errors. |
| 362 | Also fixed an old bug with the fstat code (it was never used). |
| 363 | |
| 364 | - pyclbr.py: support submodules of packages. |
| 365 | |
| 366 | String Services |
| 367 | --------------- |
| 368 | |
| 369 | - StringIO.py: raise the right exception (ValueError) for attempted |
| 370 | I/O on closed StringIO objects. |
| 371 | |
| 372 | - re.py: fixed a bug in subn(), which caused .groups() to fail inside |
| 373 | the replacement function called by sub(). |
| 374 | |
| 375 | - The struct module has a new format 'P': void * in native mode. |
| 376 | |
| 377 | Generic OS Services |
| 378 | ------------------- |
| 379 | |
| 380 | - Module time: Y2K robustness. 2-digit year acceptance depends on |
| 381 | value of time.accept2dyear, initialized from env var PYTHONY2K, |
| 382 | default 0. Years 00-68 mean 2000-2068, while 69-99 mean 1969-1999 |
| 383 | (POSIX or X/Open recommendation). |
| 384 | |
| 385 | - os.path: normpath(".//x") should return "x", not "/x". |
| 386 | |
| 387 | - getpass.py: fall back on default_getpass() when sys.stdin.fileno() |
| 388 | doesn't work. |
| 389 | |
| 390 | - tempfile.py: regenerate the template after a fork() call. |
| 391 | |
| 392 | Optional OS Services |
| 393 | -------------------- |
| 394 | |
| 395 | - In the signal module, disable restarting interrupted system calls |
| 396 | when we have siginterrupt(). |
| 397 | |
| 398 | Debugger |
| 399 | -------- |
| 400 | |
| 401 | - No longer set __args__; this feature is no longer supported and can |
| 402 | affect the debugged code. |
| 403 | |
| 404 | - cmd.py, pdb.py and bdb.py have been overhauled by Richard Wolff, who |
| 405 | added aliases and some other useful new features, e.g. much better |
| 406 | breakpoint support: temporary breakpoint, disabled breakpoints, |
| 407 | breakpoints with ignore counts, and conditions; breakpoints can be set |
| 408 | on a file before it is loaded. |
| 409 | |
| 410 | Profiler |
| 411 | -------- |
| 412 | |
| 413 | - Changes so that JPython can use it. Also fix the calibration code |
| 414 | so it actually works again |
| 415 | . |
| 416 | Internet Protocols and Support |
| 417 | ------------------------------ |
| 418 | |
| 419 | - imaplib.py: new version from Piers Lauder. |
| 420 | |
| 421 | - smtplib.py: change sendmail() method to accept a single string or a |
| 422 | list or strings as the destination (commom newbie mistake). |
| 423 | |
| 424 | - poplib.py: LIST with a msg argument fixed. |
| 425 | |
| 426 | - urlparse.py: some optimizations for common case (http). |
| 427 | |
| 428 | - urllib.py: support content-length in info() for ftp protocol; |
| 429 | support for a progress meter through a third argument to |
| 430 | urlretrieve(); commented out gopher test (the test site is dead). |
| 431 | |
| 432 | Internet Data handling |
| 433 | ---------------------- |
| 434 | |
| 435 | - sgmllib.py: support tags with - or . in their name. |
| 436 | |
| 437 | - mimetypes.py: guess_type() understands 'data' URLs. |
| 438 | |
| 439 | Restricted Execution |
| 440 | -------------------- |
| 441 | |
| 442 | - The classes rexec.RModuleLoader and rexec.RModuleImporter no |
| 443 | longer exist. |
| 444 | |
| 445 | Tkinter |
| 446 | ------- |
| 447 | |
| 448 | - When reporting an exception, store its info in sys.last_*. Also, |
| 449 | write all of it to stderr. |
| 450 | |
| 451 | - Added NS, EW, and NSEW constants, for grid's sticky option. |
| 452 | |
| 453 | - Fixed last-minute bug in 1.5.2a1 release: need to include "mytime.h". |
| 454 | |
| 455 | - Make bind variants without a sequence return a tuple of sequences |
| 456 | (formerly it returned a string, which wasn't very convenient). |
| 457 | |
| 458 | - Add image commands to the Text widget (these are new in Tk 8.0). |
| 459 | |
| 460 | - Added new listbox and canvas methods: {xview,yview}_{scroll,moveto}.) |
| 461 | |
| 462 | - Improved the thread code (but you still can't call update() from |
| 463 | another thread on Windows). |
| 464 | |
| 465 | - Fixed unnecessary references to _default_root in the new dialog |
| 466 | modules. |
| 467 | |
| 468 | - Miscellaneous problems fixed. |
| 469 | |
| 470 | |
| 471 | Windows General |
| 472 | --------------- |
| 473 | |
| 474 | - Call LoadLibraryEx(..., ..., LOAD_WITH_ALTERED_SEARCH_PATH) to |
| 475 | search for dependent dlls in the directory containing the .pyd. |
| 476 | |
| 477 | - In debugging mode, call DebugBreak() in Py_FatalError(). |
| 478 | |
| 479 | Windows Installer |
| 480 | ----------------- |
| 481 | |
| 482 | - Install zlib.dll in the DLLs directory instead of in the win32 |
| 483 | system directory, to avoid conflicts with other applications that have |
| 484 | their own zlib.dll. |
| 485 | |
| 486 | Test Suite |
| 487 | ---------- |
| 488 | |
| 489 | - test_long.py: new test for long integers, by Tim Peters. |
| 490 | |
| 491 | - regrtest.py: improved so it can be used for other test suites as |
| 492 | well. |
| 493 | |
| 494 | - test_strftime.py: use re to compare test results, to support legal |
| 495 | variants (e.g. on Linux). |
| 496 | |
| 497 | Tools and Demos |
| 498 | --------------- |
| 499 | |
| 500 | - Four new scripts in Tools/scripts: crlf.py and lfcr.py (to |
| 501 | remove/add Windows style '\r\n' line endings), untabify.py (to remove |
| 502 | tabs), and rgrep.yp (reverse grep). |
| 503 | |
| 504 | - Improvements to Tools/freeze/. Each Python module is now written to |
| 505 | its own C file. This prevents some compilers or assemblers from |
| 506 | blowing up on large frozen programs, and saves recompilation time if |
| 507 | only a few modules are changed. Other changes too, e.g. new command |
| 508 | line options -x and -i. |
| 509 | |
| 510 | - Much improved (and smaller!) version of Tools/scripts/mailerdaemon.py. |
| 511 | |
| 512 | Python/C API |
| 513 | ------------ |
| 514 | |
| 515 | - New mechanism to support extensions of the type object while |
| 516 | remaining backward compatible with extensions compiled for previous |
| 517 | versions of Python 1.5. A flags field indicates presence of certain |
| 518 | fields. |
| 519 | |
| 520 | - Addition to the buffer API to differentiate access to bytes and |
| 521 | 8-bit characters (in anticipation of Unicode characters). |
| 522 | |
| 523 | - New argument parsing format t# ("text") to indicate 8-bit |
| 524 | characters; s# simply means 8-bit bytes, for backwards compatibility. |
| 525 | |
| 526 | - New object type, bufferobject.c is an example and can be used to |
| 527 | create buffers from memory. |
| 528 | |
| 529 | - Some support for 64-bit longs, including some MS platforms. |
| 530 | |
| 531 | - Many calls to fprintf(stderr, ...) have been replaced with calls to |
| 532 | PySys_WriteStderr(...). |
| 533 | |
| 534 | - The calling context for PyOS_Readline() has changed: it must now be |
| 535 | called with the interpreter lock held! It releases the lock around |
| 536 | the call to the function pointed to by PyOS_ReadlineFunctionPointer |
| 537 | (default PyOS_StdioReadline()). |
| 538 | |
| 539 | - New APIs PyLong_FromVoidPtr() and PyLong_AsVoidPtr(). |
| 540 | |
| 541 | - Renamed header file "thread.h" to "pythread.h". |
| 542 | |
| 543 | - The code string of code objects may now be anything that supports the |
| 544 | buffer API. |
| 545 | |
| 546 | |
| 547 | ====================================================================== |
| 548 | |
| 549 | |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 550 | From 1.5.1 to 1.5.2a1 |
| 551 | ===================== |
| 552 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 553 | General |
| 554 | ------- |
| 555 | |
| 556 | - When searching for the library, a landmark that is a compiled module |
| 557 | (string.pyc or string.pyo) is also accepted. |
| 558 | |
| 559 | - When following symbolic links to the python executable, use a loop |
| 560 | so that a symlink to a symlink can work. |
| 561 | |
| 562 | - Added a hack so that when you type 'quit' or 'exit' at the |
| 563 | interpreter, you get a friendly explanation of how to press Ctrl-D (or |
| 564 | Ctrl-Z) to exit. |
| 565 | |
| 566 | - New and improved Misc/python-mode.el (Python mode for Emacs). |
| 567 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 568 | - Revert a new feature in Unix dynamic loading: for one or two |
| 569 | revisions, modules were loaded using the RTLD_GLOBAL flag. It turned |
| 570 | out to be a bad idea. |
| 571 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 572 | Miscellaneous fixed bugs |
| 573 | ------------------------ |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 574 | |
| 575 | - All patches on the patch page have been integrated. (But much more |
| 576 | has been done!) |
| 577 | |
| 578 | - Several memory leaks plugged (e.g. the one for classes with a |
| 579 | __getattr__ method). |
| 580 | |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 581 | - Removed the only use of calloc(). This triggered an obscure bug on |
| 582 | multiprocessor Sparc Solaris 2.6. |
| 583 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 584 | - Fix a peculiar bug that would allow "import sys.time" to succeed |
| 585 | (believing the built-in time module to be a part of the sys package). |
| 586 | |
| 587 | - Fix a bug in the overflow checking when converting a Python long to |
| 588 | a C long (failed to convert -2147483648L, and some other cases). |
| 589 | |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 590 | Documentation |
| 591 | ------------- |
| 592 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 593 | - Doc strings have been added to many extension modules: __builtin__, |
| 594 | errno, select, signal, socket, sys, thread, time. Also to methods of |
| 595 | list objects (try [].append.__doc__). A doc string on a type will now |
| 596 | automatically be propagated to an instance if the instance has methods |
| 597 | that are accessed in the usual way. |
| 598 | |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 599 | - The documentation has been expanded and the formatting improved. |
| 600 | (Remember that the documentation is now unbundled and has its own |
| 601 | release cycle though; see http://www.python.org/doc/.) |
| 602 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 603 | - Added Misc/Porting -- a mini-FAQ on porting to a new platform. |
| 604 | |
| 605 | Ports and build procedure |
| 606 | ------------------------- |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 607 | |
| 608 | - The BeOS port is now integrated. Courtesy Chris Herborth. |
| 609 | |
| 610 | - Symbol files for FreeBSD 2.x and 3.x have been contributed |
| 611 | (Lib/plat-freebsd[23]/*). |
| 612 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 613 | - Support HPUX 10.20 DCE threads. |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 614 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 615 | - Finally fixed the configure script so that (on SGI) if -OPT:Olimit=0 |
| 616 | works, it won't also use -Olimit 1500 (which gives a warning for every |
| 617 | file). Also support the SGI_ABI environment variable better. |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 618 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 619 | - The makesetup script now understands absolute pathnames ending in .o |
| 620 | in the module -- it assumes it's a file for which we have no source. |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 621 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 622 | - Other miscellaneous improvements to the configure script and |
| 623 | Makefiles. |
| 624 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 625 | - The test suite now uses a different sound sample. |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 626 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 627 | Built-in functions |
| 628 | ------------------ |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 629 | |
| 630 | - Better checks for invalid input to int(), long(), string.atoi(), |
| 631 | string.atol(). (Formerly, a sign without digits would be accepted as |
| 632 | a legal ways to spell zero.) |
| 633 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 634 | - Changes to map() and filter() to use the length of a sequence only |
| 635 | as a hint -- if an IndexError happens earlier, take that. (Formerly, |
| 636 | this was considered an error.) |
| 637 | |
| 638 | - Experimental feature in getattr(): a third argument can specify a |
| 639 | default (instead of raising AttributeError). |
| 640 | |
| 641 | - Implement round() slightly different, so that for negative ndigits |
| 642 | no additional errors happen in the last step. |
| 643 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 644 | - The open() function now adds the filename to the exception when it |
| 645 | fails. |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 646 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 647 | Built-in exceptions |
| 648 | ------------------- |
| 649 | |
| 650 | - New standard exceptions EnvironmentError and PosixError. |
| 651 | EnvironmentError is the base class for IOError and PosixError; |
| 652 | PosixError is the same as os.error. All this so that either exception |
| 653 | class can be instantiated with a third argument indicating a filename. |
| 654 | The built-in function open() and most os/posix functions that take a |
| 655 | filename argument now use this. |
| 656 | |
| 657 | Built-in types |
| 658 | -------------- |
| 659 | |
| 660 | - List objects now have an experimental pop() method; l.pop() returns |
| 661 | and removes the last item; l.pop(i) returns and removes the item at |
| 662 | i. Also, the sort() method is faster again. Sorting is now also |
| 663 | safer: it is impossible for the sorting function to modify the list |
| 664 | while the sort is going on (which could cause core dumps). |
| 665 | |
| 666 | - Changes to comparisons: numbers are now smaller than any other type. |
| 667 | This is done to prevent the circularity where [] < 0L < 1 < [] is |
| 668 | true. As a side effect, cmp(None, 0) is now positive instead of |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 669 | negative. This *shouldn't* affect any working code, but I've found |
| 670 | that the change caused several "sleeping" bugs to become active, so |
| 671 | beware! |
| 672 | |
| 673 | - Instance methods may now have other callable objects than just |
| 674 | Python functions as their im_func. Use new.instancemethod() or write |
| 675 | your own C code to create them; new.instancemethod() may be called |
| 676 | with None for the instance to create an unbound method. |
| 677 | |
| 678 | - Assignment to __name__, __dict__ or __bases__ of a class object is |
| 679 | now allowed (with stringent type checks); also allow assignment to |
| 680 | __getattr__ etc. The cached values for __getattr__ etc. are |
| 681 | recomputed after such assignments (but not for derived classes :-( ). |
| 682 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 683 | - Allow assignment to some attributes of function objects: func_code, |
| 684 | func_defaults and func_doc / __doc__. (With type checks except for |
| 685 | __doc__ / func_doc .) |
| 686 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 687 | Python services |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 688 | --------------- |
| 689 | |
| 690 | - New tests (in Lib/test): reperf.py (regular expression benchmark), |
| 691 | sortperf.py (list sorting benchmark), test_MimeWriter.py (test case |
| 692 | for the MimeWriter module). |
| 693 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 694 | - Generalized test/regrtest.py so that it is useful for testing other |
| 695 | packages. |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 696 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 697 | - The ihooks.py module now understands package imports. |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 698 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 699 | - In code.py, add a class that subsumes Fredrik Lundh's |
| 700 | PythonInterpreter class. The interact() function now uses this. |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 701 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 702 | - In rlcompleter.py, in completer(), return None instead of raising an |
| 703 | IndexError when there are no more completions left. |
| 704 | |
| 705 | - Fixed the marshal module to test for certain common kinds of invalid |
| 706 | input. (It's still not foolproof!) |
| 707 | |
| 708 | - In the operator module, add an alias (now the preferred name) |
| 709 | "contains" for "sequenceincludes". |
| 710 | |
| 711 | String Services |
| 712 | --------------- |
| 713 | |
| 714 | - In the string and strop modules, in the replace() function, treat an |
| 715 | empty pattern as an error (since it's not clear what was meant!). |
| 716 | |
| 717 | - Some speedups to re.py, especially the string substitution and split |
| 718 | functions. Also added new function/method findall(), to find all |
| 719 | occurrences of a given substring. |
| 720 | |
| 721 | - In cStringIO, add better argument type checking and support the |
| 722 | readonly 'closed' attribute (like regular files). |
| 723 | |
| 724 | - In the struct module, unsigned 1-2 byte sized formats no longer |
| 725 | result in long integer values. |
| 726 | |
| 727 | Miscellaneous services |
| 728 | ---------------------- |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 729 | |
| 730 | - In whrandom.py, added new method and function randrange(), same as |
| 731 | choice(range(start, stop, step)) but faster. This addresses the |
| 732 | problem that randint() was accidentally defined as taking an inclusive |
| 733 | range. Also, randint(a, b) is now redefined as randrange(a, b+1), |
| 734 | adding extra range and type checking to its arguments! |
| 735 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 736 | - Add some semi-thread-safety to random.gauss() (it used to be able to |
| 737 | crash when invoked from separate threads; now the worst it can do is |
| 738 | give a duplicate result occasionally). |
| 739 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 740 | - Some restructuring and generalization done to cmd.py. |
| 741 | |
| 742 | - Major upgrade to ConfigParser.py; converted to using 're', added new |
| 743 | exceptions, support underscore in section header and option name. No |
| 744 | longer add 'name' option to every section; instead, add '__name__'. |
| 745 | |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 746 | - In getpass.py, don't use raw_input() to ask for the password -- we |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 747 | don't want it to show up in the readline history! Also don't catch |
| 748 | interrupts (the try-finally already does all necessary cleanup). |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 749 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 750 | Generic OS Services |
| 751 | ------------------- |
| 752 | |
| 753 | - New functions in os.py: makedirs(), removedirs(), renames(). New |
| 754 | variable: linesep (the line separator as found in binary files, |
| 755 | i.e. '\n' on Unix, '\r\n' on DOS/Windows, '\r' on Mac. Do *not* use |
| 756 | this with files opened in (default) text mode; the line separator used |
| 757 | will always be '\n'! |
| 758 | |
| 759 | - Changes to the 'os.path' submodule of os.py: added getsize(), |
| 760 | getmtime(), getatime() -- these fetch the most popular items from the |
| 761 | stat return tuple. |
| 762 | |
| 763 | - In the time module, add strptime(), if it exists. (This parses a |
| 764 | time according to a format -- the inverse of strftime().) Also, |
| 765 | remove the call to mktime() from strftime() -- it messed up the |
| 766 | formatting of some non-local times. |
| 767 | |
| 768 | - In the socket module, added a new function gethostbyname_ex(). |
| 769 | Also, don't use #ifdef to test for some symbols that are enums on some |
| 770 | platforms (and should exist everywhere). |
| 771 | |
| 772 | Optional OS Services |
| 773 | -------------------- |
| 774 | |
| 775 | - Some fixes to gzip.py. In particular, the readlines() method now |
| 776 | returns the lines *with* trailing newline characters, like readlines() |
| 777 | of regular file objects. Also, it didn't work together with cPickle; |
| 778 | fixed that. |
| 779 | |
| 780 | - In whichdb.py, support byte-swapped dbhash (bsddb) files. |
| 781 | |
| 782 | - In anydbm.py, look at the type of an existing database to determine |
| 783 | which module to use to open it. (The anydbm.error exception is now a |
| 784 | tuple.) |
| 785 | |
| 786 | Unix Services |
| 787 | ------------- |
| 788 | |
| 789 | - In the termios module, in tcsetattr(), initialize the structure vy |
| 790 | calling tcgetattr(). |
| 791 | |
| 792 | - Added some of the "wait status inspection" macros as functions to |
| 793 | the posix module (and thus to the os module): WEXITSTATUS(), |
| 794 | WIFEXITED(), WIFSIGNALED(), WIFSTOPPED(), WSTOPSIG(), WTERMSIG(). |
| 795 | |
| 796 | - In the syslog module, make the default facility more intuitive |
| 797 | (matching the docs). |
| 798 | |
| 799 | Debugger |
| 800 | -------- |
| 801 | |
| 802 | - In pdb.py, support for setting breaks on files/modules that haven't |
| 803 | been loaded yet. |
| 804 | |
| 805 | Internet Protocols and Support |
| 806 | ------------------------------ |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 807 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 808 | - Changes in urllib.py; sped up unquote() and quote(). Fixed an |
| 809 | obscure bug in quote_plus(). Added urlencode(dict) -- convenience |
| 810 | function for sending a POST request with urlopen(). Use the getpass |
| 811 | module to ask for a password. Rewrote the (test) main program so that |
| 812 | when used as a script, it can retrieve one or more URLs to stdout. |
| 813 | Use -t to run the self-test. Made the proxy code work again. |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 814 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 815 | - In cgi.py, treat "HEAD" the same as "GET", so that CGI scripts don't |
| 816 | fail when someone asks for their HEAD. Also, for POST, set the |
| 817 | default content-type to application/x-www-form-urlencoded. Also, in |
| 818 | FieldStorage.__init__(), when method='GET', always get the query |
| 819 | string from environ['QUERY_STRING'] or sys.argv[1] -- ignore an |
| 820 | explicitly passed in fp. |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 821 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 822 | - The smtplib.py module now supports ESMTP and has improved standard |
| 823 | compliance, for picky servers. |
| 824 | |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 825 | - Improved imaplib.py. |
| 826 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 827 | - Fixed UDP support in SocketServer.py (it never worked). |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 828 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 829 | - Fixed a small bug in CGIHTTPServer.py. |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 830 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 831 | Internet Data handling |
| 832 | ---------------------- |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 833 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 834 | - In rfc822.py, add a new class AddressList. Also support a new |
| 835 | overridable method, isheader(). Also add a get() method similar to |
| 836 | dictionaries (and make getheader() an alias for it). Also, be smarter |
| 837 | about seekable (test whether fp.tell() works) and test for presence of |
| 838 | unread() method before trying seeks. |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 839 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 840 | - In sgmllib.py, restore the call to report_unbalanced() that was lost |
| 841 | long ago. Also some other improvements: handle <? processing |
| 842 | instructions >, allow . and - in entity names, and allow \r\n as line |
| 843 | separator. |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 844 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 845 | - Some restructuring and generalization done to multifile.py; support |
| 846 | a 'seekable' flag. |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 847 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 848 | Restricted Execution |
| 849 | -------------------- |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 850 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 851 | - Improvements to rexec.py: package support; support a (minimal) |
| 852 | sys.exc_info(). Also made the (test) main program a bit fancier (you |
| 853 | can now use it to run arbitrary Python scripts in restricted mode). |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 854 | |
| 855 | Tkinter |
| 856 | ------- |
| 857 | |
| 858 | - On Unix, Tkinter can now safely be used from a multi-threaded |
| 859 | application. (Formerly, no threads would make progress while |
| 860 | Tkinter's mainloop() was active, because it didn't release the Python |
| 861 | interpreter lock.) Unfortunately, on Windows, threads other than the |
| 862 | main thread should not call update() or update_idletasks() because |
| 863 | this will deadlock the application. |
| 864 | |
| 865 | - An interactive interpreter that uses readline and Tkinter no longer |
| 866 | uses up all available CPU time. |
| 867 | |
| 868 | - Even if readline is not used, Tk windows created in an interactive |
| 869 | interpreter now get continuously updated. (This even works in Windows |
| 870 | as long as you don't hit a key.) |
| 871 | |
| 872 | - New demos in Demo/tkinter/guido/: brownian.py, redemo.py, switch.py. |
| 873 | |
| 874 | - No longer register Tcl_finalize() as a low-level exit handler. It |
| 875 | may call back into Python, and that's a bad idea. |
| 876 | |
| 877 | - Allow binding of Tcl commands (given as a string). |
| 878 | |
| 879 | - Some minor speedups; replace explicitly coded getint() with int() in |
| 880 | most places. |
| 881 | |
| 882 | - In FileDialog.py, remember the directory of the selected file, if |
| 883 | given. |
| 884 | |
| 885 | - Change the names of all methods in the Wm class: they are now |
| 886 | wm_title(), etc. The old names (title() etc.) are still defined as |
| 887 | aliases. |
| 888 | |
| 889 | - Add a new method of interpreter objects, interpaddr(). This returns |
| 890 | the address of the Tcl interpreter object, as an integer. Not very |
| 891 | useful for the Python programmer, but this can be called by another C |
| 892 | extension that needs to make calls into the Tcl/Tk C API and needs to |
| 893 | get the address of the Tcl interpreter object. A simple cast of the |
| 894 | return value to (Tcl_Interp *) will do the trick. |
| 895 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 896 | Windows General |
| 897 | --------------- |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 898 | |
| 899 | - Don't insist on proper case for module source files if the filename |
| 900 | is all uppercase (e.g. FOO.PY now matches foo; but FOO.py still |
| 901 | doesn't). This should address problems with this feature on |
| 902 | oldfashioned filesystems (Novell servers?). |
| 903 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 904 | Windows Library |
| 905 | --------------- |
| 906 | |
| 907 | - os.environ is now all uppercase, but accesses are case insensitive, |
| 908 | and the putenv() calls made as a side effect of changing os.environ |
| 909 | are case preserving. |
| 910 | |
| 911 | - Removed samefile(), sameopenfile(), samestat() from os.path (aka |
| 912 | ntpath.py) -- these cannot be made to work reliably (at least I |
| 913 | wouldn't know how). |
| 914 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 915 | - Fixed os.pipe() so that it returns file descriptors acceptable to |
| 916 | os.read() and os.write() (like it does on Unix), rather than Windows |
| 917 | file handles. |
| 918 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 919 | - Added a table of WSA error codes to socket.py. |
| 920 | |
| 921 | - In the select module, put the (huge) file descriptor arrays on the |
| 922 | heap. |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 923 | |
| 924 | - The getpass module now raises KeyboardInterrupt when it sees ^C. |
| 925 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 926 | - In mailbox.py, fix tell/seek when using files opened in text mode. |
| 927 | |
| 928 | - In rfc822.py, fix tell/seek when using files opened in text mode. |
| 929 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 930 | - In the msvcrt extension module, release the interpreter lock for |
| 931 | calls that may block: _locking(), _getch(), _getche(). Also fix a |
| 932 | bogus error return when open_osfhandle() doesn't have the right |
| 933 | argument list. |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 934 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 935 | Windows Installer |
| 936 | ----------------- |
| 937 | |
| 938 | - The registry key used is now "1.5" instead of "1.5.x" -- so future |
| 939 | versions of 1.5 and Mark Hammond's win32all installer don't need to be |
| 940 | resynchronized. |
| 941 | |
| 942 | Windows Tools |
| 943 | ------------- |
| 944 | |
| 945 | - Several improvements to freeze specifically for Windows. |
| 946 | |
| 947 | Windows Build Procedure |
| 948 | ----------------------- |
| 949 | |
| 950 | - The VC++ project files and the WISE installer have been moved to the |
| 951 | PCbuild subdirectory, so they are distributed in the same subdirectory |
| 952 | where they must be used. This avoids confusion. |
| 953 | |
| 954 | - New project files for Windows 3.1 port by Jim Ahlstrom. |
| 955 | |
| 956 | - Got rid of the obsolete subdirectory PC/setup_nt/. |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 957 | |
| 958 | - The projects now use distinct filenames for the .exe, .dll, .lib and |
| 959 | .pyd files built in debug mode (by appending "_d" to the base name, |
| 960 | before the extension). This makes it easier to switch between the two |
| 961 | and get the right versions. There's a pragma in config.h that directs |
| 962 | the linker to include the appropriate .lib file (so python15.lib no |
| 963 | longer needs to be explicit in your project). |
| 964 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 965 | - The installer now installs more files (e.g. config.h). The idea is |
| 966 | that you shouldn't need the source distribution if you want build your |
| 967 | own extensions in C or C++. |
| 968 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 969 | Tools and Demos |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 970 | --------------- |
| 971 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 972 | - New script nm2def.py by Marc-Andre Lemburg, to construct |
| 973 | PC/python_nt.def automatically (some hand editing still required). |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 974 | |
| 975 | - New tool ndiff.py: Tim Peters' text diffing tool. |
| 976 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 977 | - Various and sundry improvements to the freeze script. |
| 978 | |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 979 | - The script texi2html.py (which was part of the Doc tree but is no |
| 980 | longer used there) has been moved to the Tools/scripts subdirectory. |
| 981 | |
| 982 | - Some generalizations in the webchecker code. There's now a |
| 983 | primnitive gui for websucker.py: wsgui.py. (In Tools/webchecker/.) |
| 984 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 985 | - The ftpmirror.py script now handles symbolic links properly, and |
| 986 | also files with multiple spaces in their names. |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 987 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 988 | - The 1.5.1 tabnanny.py suffers an assert error if fed a script whose |
| 989 | last line is both indented and lacks a newline. This is now fixed. |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 990 | |
| 991 | Python/C API |
| 992 | ------------ |
| 993 | |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 994 | - Added missing prototypes for PyEval_CallFunction() and |
| 995 | PyEval_CallMethod(). |
| 996 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 997 | - New macro PyList_SET_ITEM(). |
Guido van Rossum | f5475c9 | 1998-08-06 17:55:46 +0000 | [diff] [blame] | 998 | |
| 999 | - New macros to access object members for PyFunction, PyCFunction |
| 1000 | objects. |
| 1001 | |
| 1002 | - New APIs PyImport_AppendInittab() an PyImport_ExtendInittab() to |
| 1003 | dynamically add one or many entries to the table of built-in modules. |
| 1004 | |
| 1005 | - New macro Py_InitModule3(name, methods, doc) which calls |
| 1006 | Py_InitModule4() with appropriate arguments. (The -4 variant requires |
| 1007 | you to pass an obscure version number constant which is always the same.) |
| 1008 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 1009 | - New APIs PySys_WriteStdout() and PySys_WriteStderr() to write to |
| 1010 | sys.stdout or sys.stderr using a printf-like interface. (Used in |
| 1011 | _tkinter.c, for example.) |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 1012 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 1013 | - New APIs for conversion between Python longs and C 'long long' if |
| 1014 | your compiler supports it. |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 1015 | |
| 1016 | - PySequence_In() is now called PySequence_Contains(). |
| 1017 | (PySequence_In() is still supported for b/w compatibility; it is |
| 1018 | declared obsolete because its argument order is confusing.) |
| 1019 | |
| 1020 | - PyDict_GetItem() and PyDict_GetItemString() are changed so that they |
| 1021 | *never* raise an exception -- (even if the hash() fails, simply clear |
| 1022 | the error). This was necessary because there is lots of code out |
| 1023 | there that already assumes this. |
| 1024 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 1025 | - Changes to PySequence_Tuple() and PySequence_List() to use the |
| 1026 | length of a sequence only as a hint -- if an IndexError happens |
| 1027 | earlier, take that. (Formerly, this was considered an error.) |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 1028 | |
Guido van Rossum | 27b3bc3 | 1998-08-11 18:42:26 +0000 | [diff] [blame] | 1029 | - Reformatted abstract.c to give it a more familiar "look" and fixed |
| 1030 | many error checking bugs. |
| 1031 | |
| 1032 | - Add NULL pointer checks to all calls of a C function through a type |
| 1033 | object and extensions (e.g. nb_add). |
| 1034 | |
| 1035 | - The code that initializes sys.path now calls Py_GetPythonHome() |
| 1036 | instead of getenv("PYTHONHOME"). This, together with the new API |
| 1037 | Py_SetPythonHome(), makes it easier for embedding applications to |
| 1038 | change the notion of Python's "home" directory (where the libraries |
| 1039 | etc. are sought). |
| 1040 | |
| 1041 | - Fixed a very old bug in the parsing of "O?" format specifiers. |
Guido van Rossum | ab9d6f0 | 1998-08-10 22:01:13 +0000 | [diff] [blame] | 1042 | |
| 1043 | |
| 1044 | ====================================================================== |