• The$_{isAlive()}$ method of$_{threading.Thread}$ has been removed. It was deprecated since Python 3.8. Use is_alive() instead. (Contributed by Dong-hee Na in bpo-37804.) • Methods getchildren() and getiterator() of classes $_{ElementTree}$and $_{Element}$in the ElementTree module have been removed. They were deprecated in Python 3.2. Use iter(x) or list(x) instead of x.getchildren() and x.iter() or list(x.iter()) instead of x. getiterator() . (Contributed by Serhiy Storchaka in bpo-36543.) • The old plistlib API has been removed, it was deprecated since Python 3.4. Use the load() , loads() , dump() , and dumps() functions. Additionally, the use_builtin_types parameter was removed, standard bytes objects are always used instead. (Contributed by Jon Janzen in bpo-36409.) • The C function$_{PyGen_NeedsFinalizing}$ has been removed. It was not documented, tested, or used anywhere within CPython after the implementation of PEP 442 . Patch by Joannah Nanjekye. (Contributed by Joannah Nanjekye in bpo-15088) • base64.encodestring() and base64.decodestring() , aliases deprecated since Python 3.1, have been removed: use base64.encodebytes() and base64.decodebytes() instead. (Con- tributed by Victor Stinner in bpo-39351.) • fractions.gcd() function has been removed, it was deprecated since Python 3.5 (bpo-22486): use math.gcd() instead. (Contributed by Victor Stinner in bpo-39350.) • The buffering parameter of bz2.BZ2File has been removed. Since Python 3.0, it was ignored and using it emitted a$_{DeprecationWarning}$ . Pass an open file object to control how the file is opened. (Contributed by Victor Stinner in bpo-39357.) • The encoding parameter of$_{json.loads()}$ has been removed. As of Python 3.1, it was deprecated and ignored; using it has emitted a$_{DeprecationWarning}$since Python 3.8. (Contributed by Inada Naoki in bpo-39377) • with (await asyncio.lock): and with (yield from asyncio.lock): statements are not longer supported, use$_{async with lock}$instead. The same is correct for$_{asyncio.Condition}$ and$_{asyncio.Semaphore}$. (Contributed by Andrew Svetlov in bpo-34793.) • The sys.getcounts() function, the -X showalloccount command line option and the show_alloc_count field of the C structure PyConfig have been removed. They required a special Python build by defining$_{COUNT_ALLOCS}$ macro. (Contributed by Victor Stinner in bpo-39489.) • The$_{_field_types}$ attribute of the$_{typing.NamedTuple}$ class has been removed. It was deprecated since Python 3.8. Use the$_{__annotations__}$ attribute instead. (Contributed by Serhiy Storchaka in bpo- 40182.) • The$_{symtable.SymbolTable.has_exec()}$ method has been removed. It was deprecated since 2006, and only returning$_{False}$ when it’s called. (Contributed by Batuhan Taskaya in bpo-40208) • The$_{asyncio.Task.current_task()}$ and$_{asyncio.Task.all_tasks()}$ have been removed. They were deprecated since Python 3.7 and you can use$_{asyncio.current_task()}$ and$_{asyncio.}$ all_tasks() instead. (Contributed by Rémi Lapeyre in bpo-40967) • The$_{unescape()}$ method in the$_{html.parser.HTMLParser}$class has been removed (it was depre- cated since Python 3.4). html.unescape() should be used for converting character references to the corresponding unicode characters. 16