Member-only story

What modules are deprecated in Python version 3.12?

Crystal X
3 min readOct 27, 2023

--

Python version 3.12 was released on 2 October 2023 and has recently been put on the Microsoft store for free. I normally use Google Colab, which is a free online Jupyter Notebook hosted by Google but, sometimes just for fun, I use Python’s IDLE, which is an interpreter that comes with Python when it is installed. I had previously installed Python 3.11 on my laptop, but for the sake of keeping abreast of technology, decided to uninstall Python 3.11 and install 3.12.

With Python version 3.12 freshly installed on my laptop, I thought it would be a good idea to check and see what modules have been deprecated from this version of the language.

The modules that have been deprecated are as follows:-

Argparse has been deprecated and will be removed from version 3.14.

The following ast features have been deprecated and will be removed in version 3.14:-

  1. ast.Num
  2. ast.Str
  3. ast.Bytes
  4. ast.NameConstant
  5. ast.Ellipsis

The following features in asyncio are deprecated:-

  1. The child watcher classes asyncio.MultiLoopChildWatcher, asyncio.FastChildWatcher, asyncio.AbstractChildWatcher and asyncio.SafeChildWatcher are deprecated and will be removed in Python 3.14.
  2. asyncio.set_child_watcher(), asyncio.get_child_watcher(), asyncio.AbstractEventLoopPolicy.set_child_watcher()…

--

--

Crystal X
Crystal X

Written by Crystal X

I have over five decades experience in the world of work, being in fast food, the military, business, non-profits, and the healthcare sector.

No responses yet