0% found this document useful (0 votes)
9 views2 pages

Removed or Les RC

Uploaded by

diegohazael2005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

Removed or Les RC

Uploaded by

diegohazael2005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Removed

● The erroneous version at unittest.mock.__version__ has been removed.


● nntplib.NNTP: xpath() and xgtitle() methods have been removed.
These methods are deprecated since Python 3.3. Generally, these extensions
are not supported or not enabled by NNTP server administrators. For
xgtitle(), please use nntplib.NNTP.descriptions() or
nntplib.NNTP.description() instead. (Contributed by Dong-hee Na in
bpo-39366.)
● array.array: tostring() and fromstring() methods have been
removed. They were aliases to tobytes() and frombytes(), deprecated
since Python 3.2. (Contributed by Victor Stinner in bpo-38916.)
● The undocumented sys.callstats() function has been removed. Since
Python 3.7, it was deprecated and always returned None. It required a special
build option CALL_PROFILE which was already removed in Python 3.7.
(Contributed by Victor Stinner in bpo-37414.)
● The sys.getcheckinterval() and sys.setcheckinterval() functions
have been removed. They were deprecated since Python 3.2. Use
sys.getswitchinterval() and sys.setswitchinterval() instead.
(Contributed by Victor Stinner in bpo-37392.)
● The C function PyImport_Cleanup() has been removed. It was documented
as: «Empty the module table. For internal use only.» (Contributed by Victor
Stinner in bpo-36710.)
● _dummy_thread and dummy_threading modules have been removed. These
modules were deprecated since Python 3.7 which requires threading support.
(Contributed by Victor Stinner in bpo-37312.)
● aifc.openfp() alias to aifc.open(), sunau.openfp() alias to
sunau.open(), and wave.openfp() alias to wave.open() have been
removed. They were deprecated since Python 3.7. (Contributed by Victor
Stinner in bpo-37320.)
● 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. (Contributed
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

You might also like