diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-05-29 15:54:55 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-05-29 15:54:55 (GMT) |
commit | d68f5171ebb2f3404548c846523e9e43308a4130 (patch) | |
tree | e04245cfbfd036be2c9f8b30c09459ddbbe27710 /Misc | |
parent | e85ee8d815ed5fa3cbbc2770cd09bcbaf605182c (diff) | |
download | cpython-d68f5171ebb2f3404548c846523e9e43308a4130.zip cpython-d68f5171ebb2f3404548c846523e9e43308a4130.tar.gz cpython-d68f5171ebb2f3404548c846523e9e43308a4130.tar.bz2 |
As discussed on python-dev, add a mechanism to indicate features
that are in the process of deprecation (PendingDeprecationWarning).
Docs could be improved.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -6,6 +6,12 @@ Type/class unification and new-style classes Core and builtins +- A new warning PendingDeprecationWarning was added to provide + direction on features which are in the process of being deprecated. + The warning will not be printed by default. To see the pending + deprecations, use -Walways::PendingDeprecationWarning:: + as a command line option or warnings.filterwarnings() in code. + - A new type object, 'string', is added. This is a common base type for 'str' and 'unicode', and can be used instead of types.StringTypes, e.g. to test whether something is "a string": |