summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAlex Waygood <Alex.Waygood@Gmail.com>2022-05-06 10:15:18 (GMT)
committerGitHub <noreply@github.com>2022-05-06 10:15:18 (GMT)
commit6f18b86fda516df9ba7614423ba5c8d0fcf366ba (patch)
tree8fc0c398309b244439f65a22b22830b5df35e2a6 /Doc
parentcbc2c199a071d4d94b92c835324bf2ab721bb507 (diff)
downloadcpython-6f18b86fda516df9ba7614423ba5c8d0fcf366ba.zip
cpython-6f18b86fda516df9ba7614423ba5c8d0fcf366ba.tar.gz
cpython-6f18b86fda516df9ba7614423ba5c8d0fcf366ba.tar.bz2
gh-92332: Docs-only deprecation of `typing.Text` (GH-92351)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/typing.rst7
-rw-r--r--Doc/whatsnew/3.11.rst6
2 files changed, 13 insertions, 0 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 8808559..005a515 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -1976,6 +1976,11 @@ Other concrete types
.. versionadded:: 3.5.2
+ .. deprecated:: 3.11
+ Python 2 is no longer supported, and most type checkers also no longer
+ support type checking Python 2 code. Users should now use
+ :class:`str` instead of ``Text`` wherever possible.
+
Abstract Base Classes
---------------------
@@ -2687,3 +2692,5 @@ convenience. This is subject to change, and not all deprecations are listed.
| ``typing`` versions of standard | 3.9 | Undecided | :pep:`585` |
| collections | | | |
+----------------------------------+---------------+-------------------+----------------+
+| ``typing.Text`` | 3.11 | Undecided | :gh:`92332` |
++----------------------------------+---------------+-------------------+----------------+
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index 19ac867..f679100 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -1202,6 +1202,12 @@ Deprecated
For now, a deprecation warning is raised for such syntax.
(Contributed by Serhiy Storchaka in :gh:`91760`.)
+* :class:`typing.Text`, which exists solely to provide compatibility support
+ between Python 2 and Python 3 code, is now deprecated. Its removal is
+ currently unplanned, but users are encouraged to use :class:`str` instead
+ wherever possible.
+ (Contributed by Alex Waygood in :gh:`92332`.)
+
Removed
=======
28 Tcl is a high-level, general-purpose, interpreted, dynamic programming language. It was designed with the goal of being very simple but powerful.
summaryrefslogtreecommitdiffstats
path: root/tests/auto0/modules/mod2/test2-2.0.tm
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-06-16 17:06:25 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-06-16 17:06:25 (GMT)
commitfa88074963b9c9551a70632a1052b949a9b6b063 (patch)
treee3e15fd38cf337d8c764493b47867104a0f652b2 /tests/auto0/modules/mod2/test2-2.0.tm
parent0b3a8804eb9bbb738bda998ef6a5c729803f58d3 (diff)
downloadtcl-fa88074963b9c9551a70632a1052b949a9b6b063.zip
tcl-fa88074963b9c9551a70632a1052b949a9b6b063.tar.gz
tcl-fa88074963b9c9551a70632a1052b949a9b6b063.tar.bz2
[16828b3744] [vwait] *must* successfully undo its variable trace, or else
it risks corrupting memory. Namespace teardown complexities were giving the traces an opportunity to survive. Added another (arguably better) Tcl_UntraceVar() call to be sure we avoid this problem.