summaryrefslogtreecommitdiff
path: root/Misc/NEWS
Commit message (Collapse)AuthorAgeFilesLines
* Changed the extended slice example to show that you can reverse aGuido van Rossum2002-06-131-2/+2
| | | | string with a [::-1] slice.
* SF bug 567538: Generator can crash the interpreter (Finn Bock).Guido van Rossum2002-06-121-0/+3
| | | | | | | | | | This was a simple typo. Strange that the compiler didn't catch it! Instead of WHY_CONTINUE, two tests used CONTINUE_LOOP, which isn't a why_code at all, but an opcode; but even though 'why' is declared as an enum, comparing it to an int is apparently not even worth a warning -- not in gcc, and not in VC++. :-( Will fix in 2.2 too.
* This is my nearly two year old patchMichael W. Hudson2002-06-111-0/+4
| | | | | | | | | [ 400998 ] experimental support for extended slicing on lists somewhat spruced up and better tested than it was when I wrote it. Includes docs & tests. The whatsnew section needs expanding, and arrays should support extended slices -- later.
* Patch #488073: AtheOS port.Martin v. Löwis2002-06-111-0/+2
|
* Record the latest fixes.Guido van Rossum2002-06-101-0/+9
|
* Patch #505375: Make doc strings optional.Martin v. Löwis2002-06-091-0/+4
|
* Add timeout mode. Clarify gnu_getopt.Guido van Rossum2002-06-071-1/+7
|
* Patch 473512: add GNU style scanning as gnu_getopt.Martin v. Löwis2002-06-061-0/+2
|
* Address SF bug 519621: slots weren't traversed by GC.Guido van Rossum2002-06-041-0/+6
| | | | | | | | | | | | | | While I was at it, I added a tp_clear handler and changed the tp_dealloc handler to use the clear_slots helper for the tp_clear handler. Also tightened the rules for slot names: they must now be proper identifiers (ignoring the dirty little fact that <ctype.h> is locale sensitive). Also set mp->flags = READONLY for the __weakref__ pseudo-slot. Most of this is a 2.2 bugfix candidate; I'll apply it there myself.
* Fiddle wording.Michael W. Hudson2002-06-041-3/+4
|
* Fix SF bug #557436, TclError is a str should be an ExceptionNeal Norwitz2002-06-041-0/+4
| | | | Make Tkinter.TclError derive from Exception, it was a string.
* Add constants BOM_UTF8, BOM_UTF16, BOM_UTF16_LE, BOM_UTF16_BE,Walter Dörwald2002-06-041-0/+6
| | | | | | | | | | BOM_UTF32, BOM_UTF32_LE and BOM_UTF32_BE that represent the Byte Order Mark in UTF-8, UTF-16 and UTF-32 encodings for little and big endian systems. The old names BOM32_* and BOM64_* were off by a factor of 2. This closes SF bug http://www.python.org/sf/555360
* Surprising fix for SF bug 563060: module can be used as base class.Guido van Rossum2002-06-041-0/+7
| | | | | | | | | | | | | | Change the module constructor (module_init) to have the signature __init__(name:str, doc=None); this prevents the call from type_new() to succeed. While we're at it, prevent repeated calling of module_init for the same module from leaking the dict, changing the semantics so that __dict__ is only initialized if NULL. Also adding a unittest, test_module.py. This is an incompatibility with 2.2, if anybody was instantiating the module class before, their argument list was probably empty; so this can't be backported to 2.2.x.
* Change name from string to basestringNeal Norwitz2002-05-311-2/+2
|
* As discussed on python-dev, add a mechanism to indicate featuresNeal Norwitz2002-05-291-0/+6
| | | | | that are in the process of deprecation (PendingDeprecationWarning). Docs could be improved.
* This is patchMichael W. Hudson2002-05-271-0/+3
| | | | | | | [ 559250 ] more POSIX signal stuff Adds support (and docs and tests and autoconfery) for posix signal mask handling -- sigpending, sigprocmask and sigsuspend.
* - A new type object, 'string', is added. This is a common base typeGuido van Rossum2002-05-241-0/+6
| | | | | | | for 'str' and 'unicode', and can be used instead of types.StringTypes, e.g. to test whether something is "a string": isinstance(x, string) is True for Unicode and 8-bit strings. This is an abstract base class and cannot be instantiated directly.
* Add a bit of news about the email package fixes.Barry Warsaw2002-05-201-0/+6
|
* Noted SF patch 552452 adding degree/radian conversions to mathmodule.c.Raymond Hettinger2002-05-131-0/+2
|
* Noted change in ftplib 1.68 closing SF patch 553277.Raymond Hettinger2002-05-121-0/+7
|
* Remove news about PyMalloc_*. Do we need to say anything aboutNeil Schemenauer2002-05-081-6/+1
| | | | pymalloc?
* Patch #552433: Special-case tuples. Avoid sub-type checking for lists.Martin v. Löwis2002-05-081-0/+4
| | | | | Avoid checks for negative indices and duplicate checks for support of the sequence protocol.
* Fix typosAndrew M. Kuchling2002-05-071-13/+11
|
* random.gauss() uses a piece of hidden state used by nothing else,Tim Peters2002-05-051-0/+7
| | | | | | | | | | | and the .seed() and .whseed() methods failed to reset it. In other words, setting the seed didn't completely determine the sequence of results produced by random.gauss(). It does now. Programs repeatedly mixing calls to a seed method with calls to gauss() may see different results now. Bugfix candidate (random.gauss() has always been broken in this way), despite that it may change results.
* Added notes related to the removal of deprecated features of the xrange type.Fred Drake2002-05-021-0/+9
|
* Added note about using the documentation build tools under Cygwin.Fred Drake2002-05-021-0/+3
|
* Add Pickler.clear_memo() so the pickle and cPickle modules are more similar.Fred Drake2002-05-011-0/+3
|
* Mostly in SequenceMatcher.{__chain_b, find_longest_match}:Tim Peters2002-04-291-2/+11
| | | | | | | | | | | | This now does a dynamic analysis of which elements are so frequently repeated as to constitute noise. The primary benefit is an enormous speedup in find_longest_match, as the innermost loop can have factors of 100s less potential matches to worry about, in cases where the sequences have many duplicate elements. In effect, this zooms in on sequences of non-ubiquitous elements now. While I like what I've seen of the effects so far, I still consider this experimental. Please give it a try!
* Clarify that the strip changes also apply to Unicode.Guido van Rossum2002-04-261-3/+3
|
* - New builtin function enumerate(x), from PEP 279. Example:Guido van Rossum2002-04-261-0/+4
| | | | | enumerate("abc") is an iterator returning (0,"a"), (1,"b"), (2,"c"). The argument can be an arbitrary iterable object.
* PyNumber_CoerceEx: this took a shortcut (not doing anything) when theGuido van Rossum2002-04-261-0/+4
| | | | | | | | | | | | | | | | | | | | | left and right type were of the same type and not classic instances. This shortcut is dangerous for proxy types, because it means that coerce(Proxy(1), Proxy(2.1)) leaves Proxy(1) unchanged rather than turning it into Proxy(1.0). In an ever-so-slight change of semantics, I now only take the shortcut when the left and right types are of the same type and don't have the CHECKTYPES feature. It so happens that classic instances have this flag, so the shortcut is still skipped in this case (i.e. nothing changes for classic instances). Proxies also have this flag set (otherwise implementing numeric operations on proxies would become nightmarish) and this means that the shortcut is also skipped there, as desired. It so happens that int, long and float also have this flag set; that means that e.g. coerce(1, 1) will now invoke int_coerce(). This is fine: int_coerce() can deal with this, and I'm not worried about the performance; int_coerce() is only invoked when the user explicitly calls coerce(), which should be rarer than rare.
* If Py_OptimizeFlag is false then always evaluate assert conditions, don'tNeil Schemenauer2002-04-261-0/+4
| | | | test __debug__ at runtime. Closes SF patch #548833.
* SF patch 546244 by John Williams: add Text.dump() method.Guido van Rossum2002-04-231-0/+2
|
* SF patch [ 545523 ] patch for 514433 bsddb.dbopen (NULL)Anthony Baxter2002-04-231-0/+4
| | | | | | | | | | | | closes SF #514433 can now pass 'None' as the filename for the bsddb.*open functions, and you'll get an in-memory temporary store. docs are ripped out of the bsddb dbopen man page. Fred may want to clean them up. Considering this for 2.2, but not 2.1.
* Enable universal newlines on Windows. Note that NEWS needs more words!Tim Peters2002-04-211-0/+3
|
* Added note about new distutils commands.Marc-André Lemburg2002-04-171-0/+9
|
* Windows installer: disabled Wise's "delete in-use files" uninstallTim Peters2002-04-161-0/+4
| | | | | | | | option. It was the cause of at least one way UNWISE.EXE could vanish (install a python; uninstall it; install it again; reboot the machine; abracadabra the uinstaller is gone). Bugfix candidate, but I'll backport it myself.
* Apply the second version of SF patch http://www.python.org/sf/536241Walter Dörwald2002-04-151-0/+4
| | | | | | | | | | Add a method zfill to str, unicode and UserString and change Lib/string.py accordingly. This activates the zfill version in unicodeobject.c that was commented out and implements the same in stringobject.c. It also adds the test for unicode support in Lib/string.py back in and uses repr() instead() of str() (as it was before Lib/string.py 1.62)
* Add news about deprecated complex ops.Guido van Rossum2002-04-151-0/+4
|
* Patch #543447: Add posix.mknod.Martin v. Löwis2002-04-141-0/+2
|
* News for strip methods.Guido van Rossum2002-04-131-0/+4
|
* Add news about memory managent APIs changing.Neil Schemenauer2002-04-121-0/+5
|
* News about dict.pop().Guido van Rossum2002-04-121-0/+3
|
* Patch #512005: getrusage() returns struct-like object.Martin v. Löwis2002-04-081-1/+2
|
* - A type can now inherit its metatype from its base type. Previously,Guido van Rossum2002-04-081-0/+7
| | | | | | | | | | when PyType_Ready() was called, if ob_type was found to be NULL, it was always set to &PyType_Type; now it is set to base->ob_type, where base is tp_base, defaulting to &PyObject_Type. - PyType_Ready() accidentally did not inherit tp_is_gc; now it does. Bugfix candidate.
* - Changed new-style class instantiation so that when C's __new__Guido van Rossum2002-04-061-0/+4
| | | | | method returns something that's not a C instance, its __init__ is not called. [SF bug #537450]
* Some more news.Guido van Rossum2002-04-061-0/+4
|
* Comment about UTF-16 changes.Marc-André Lemburg2002-04-051-0/+6
|
* SF bug 497854: Short-cuts missing for All UsersTim Peters2002-04-041-1/+6
| | | | | | Fix Windows-specific install glitch. Tested on Win2K, but I can't test on XP. Already checked in to the release22-maint branch.
* Add note about changes in xml.sax.expatreader.Fred Drake2002-04-041-0/+4
|