Removed in Python 3.0:
- tuple parameter unpacking
- backticks (use
repr()
) <>
(use!=
)exec
as a keyword- trailing
L
in integer literals - leading
u
in string literals - support for
__members__
- support for
__methods__
- star imports inside functions
__oct__
(use__index__
)__hex__
(use__index__
)__nonzero__
(use__bool__
)apply()
(use*args
)callable()
(was it readded later or what)coerce()
execfile()
(useexec
)file
type (useopen()
)reduce()
(usefunctools.reduce
)reload()
(useimp.reload()
)dict.has_key()
(usein
operator)- relative imports not starting with
.
- python 2 classes
sys.maxint
(usesys.maxsize
)sys.exitfunc()
sys.exc_clear()
sys.exc_type
sys.exc_value
sys.exc_traceback
array.array.read()
array.array.write()
operator.sequenceIncludes()
operator.isCallable()
thread.acquire_lock()
thread.release()
random.jumpahead()
basestring
(usestr
)sets
(useset
)os.tmpnam()
(usetempfile
module)os.tempnam()
(usetempfile
module)os.tmpfile()
(usetempfile
module)- unbound methods
string.letters
(usestring.ascii_letters
)string.lowercase
(usestring.ascii_lowercase
)string.uppercase
(usestring.ascii_uppercase
)StandardError
PyNumber_Coerce()
PyNumber_CoerceEx()
PyMember_Get()
PyMember_Set()
METH_OLDARGS
WITH_CYCLE_GC
gopherlib
md5
cfmfile
cl
mimetools
MimeWriter
mimify
multifile
posixfile
rfc822
sha
sv
timing
al
- IRIX related:
AL/al
cd/CD
cddb
cdplayer
cl/CL/CL_old
DEVICE/GL/gl/cgen/cgensuport
ERRNO
FILE
FL/fl/flp
fm
GET
GLWS
imgfile
IN
IOCTL
jpeg
panel
panelparser
readcd
SV
torgb
WAIT
- Mac related:
_builtinSuites
Audio_mac
aepack
aetools
aetypes
applesingle
appletrawmain
appletrunner
argvemulator
autoGIL
bgenlocations
bundlebuilder
Carbon
CodeWarrior
ColorPicker
EasyDialogs
Explorer
Finder
findertools
FrameWork
gensuitemodule
ic
icglue
icopen
macerrors
MacOS
macostools
macresource
MiniAEFrame
Nav
Netscape
OSATerminology
pimp
PixMapWrapper
StdSuites
SystemEvents
Terminal
terminalcommand
videoreader
W
- Solaris related:
SUNAUDIODEV/sunaudiodev
audiodev
imputil
mutex
stringold
sunaudio
toaiff
user
new
pure
test.testall
Bastion/rexec
bsddb185
Canvas
commands
compiler
dircache
dl
fpformat
htmllib
ihooks
imageop
linuxaudiodev
mhlib
popen2
sgmllib
sre
stat
statvfs
thread
urllib
UserDict
UserList/UserString
bsddb3
- HTTP 0.9 support in
urllib.request
andhttp.client
configparser.ConfigParser
sys.setfilesystemencoding()
("because it had a flawed design")string.maketrans()
contextlib.nested()
PyEval_CallObject
for function declaration--with-wctype-functions
optionO?
format fromPyArg_Parse
functionsPyCObject
typePyArg_Parse*()
functions:t#
format (uses#
ors*
)w
andw#
formats (usew*
)
-Q
command-line flag--with-wide-unicode
./configure
flagpydoc.serve()
- Tk GUI for
pydoc
- OSF support
strict
argument toemail.parser.Parser
unittest.TestCase.assertSameElements
decimal.Context._clamp
smtplib.SSLFakeFile
ast.__version__
Py_buffer.smalltable
pdb.print()
- OS/2 support
- Windows 2000 support
- support for Windows systems where
COMSPEC
points tocommand.com
- VMS support
SO
makefile macro- unmaintained
Misc/TextMate
andMisc/vim
directories importlib.PyLoader
importlib.PyPycLoader
strict
argument forhttp.client.HTTPConnection
andhttp.client.HTTPSConnection
urllib.request.Request
methods:add_data
has_data
get_data
get_type
get_host
get_selector
set_proxy
get_origin_req_host
is_unverifiable
marshal.TYPE_INT64
difflib.SequenceMatcher.isbjunk()
difflib.SequenceMatcher.isbpopular()
pydoc.Scanner
_gestalt
moduleplatform._mac_ver_lookup
platform._mac_ver_gstalt
platform._bcd2str
- hardcodd copies of certain
stat
constants that were included in thetarfile
module
PyThreadState.tick_counter
PyFrameObject.f_tstate
asyncio.JoinableQueue
email.__version__
ftplib.Netrc
- the concept of
.pyo
files datetime.time
is no longer falsy at UTC midnightstrict
mode and argument ofhtml.parser.HTMLParser
,HTMLParser.error()
andHTMLParserError
make touch
build target
PyMemoryViewObject.format
PyObject_REPR
macro
default_format
attribute fordistutils.command.sdist.sdist
- 3DES from the default cipher suites in the
ssl
module inspect.getmoduleinfo()
traceback
module:Ignore
usage
modname
fullmodname
find_lines_from_code
find_lines
find_strings
find_executable_lines
tkinter.tk_menuBar()
tkinter.tk_bindForTraversal()
asynchat.fifo
- function call opcodes:
CALL_FUNCTION_VAR
CALL_FUNCTION_VAR_KW
MAKE_CLOSURE
PyExc_RecursionErrorInst
IN
CDROM
DLFCN
TYPES
CDIO
STROPTS
- support for building
--without-threads
os.stat_float_times()
exclude
argument intarfile.TarFile.add()
ntpath.splitunc()
plistlib.Plist
plistlib.Dict
plistlib._InternalDict
asyncio.windows_utils.socketpair()
distutils.install_misc
fpetcl
moduleSTORE_ANNOTATION
opcodeCALL_PROFILE
build option
BREAK_LOOP
opcodeCONTINUE_LOOP
opcodeSETUP_LOOP
opcodeSETUP_EXCEPT
opcode- importing ABCs from
collections
(import fromcollections.abc
instead) - the
macpath
module platform.popen()
time.clock()
pyvenv
script (in favor ofpython -m venv
)cgi.parse_qs
cgi.parse_qsl
cgi.escape
tarfile.filemode
xml.etree.ElementTree.XMLParser.doctype()
- "unicode_internal" codec
bufsize
kwarg forfileinput.input()
andfileinput.FileInput()
sys.set_coroutine_wrapper()
sys.get_coroutine_wrapper()
__str__
implementations forbool
,int
,complex
,float
(and a few classes from the stdlib); they now inherit it fromobject
and base it on the__repr__
method- header files and functions related to pgen
- one
Py_ssize_t
member fromPyGC_Head
(reducing the size of GC tracked objects (like tuples, lists, or dicts) 4 or 8 bytes) m
flag for pymallocPyByteArray_Init()
PyByteArray_Fini()
- duality of
Modules/Setup
andModules/Setup.dist
PyEval_ReInitThreads()
- daemon threads from
concurrent.futures.ThreadPoolExecutor
andconcurrent.futures.ProcessPoolExecutor
unittest.mock.__version__
nntplib.NNTP.xpath()
nntplib.NNTP.xgtitle()
array.array.tostring()
array.array.fromstring()
sys.callstats()
sys.getcheckinterval()
sys.setcheckinterval()
_dummy_thread
module_dummy_threading
moduleaifc.openfp()
alias toaifc.open()
sunau.openfp()
alias tosunau.open()
wave.openfp()
alias towave.open()
threading.Thread.isAlive()
(useis_alive()
)xml.etree.ElementTree.getchildren()
xml.etree.ElementTree.getiterator()
- old
plistlib
API base64.encodestring()
alias (usebase64.encodebytes()
)base64.decodestring()
alias (usebase64.decodebytes()
)fractions.gcd()
(usemath.gcd()
)buffering
parameter ofbz2.BZ2File
encoding
parameter ofjson.loads()
sys.getcounts()
-X showalloccount
NamedTuple._field_types
symtable.SymbolTable.has_exec()
asyncio.Task.current_task()
asyncio.Task.all_tasks()
html.parser.HTMLParser.unescape()
COUNT_ALLOCS
build macro
PyImport_Cleanup()
PyGen_NeedsFinalizing()
PyConfig.show_alloc_count
PyIndex_Check()
macroPyFPE_START_PROTECT()
macro ofpyfpe.h
PyFPE_END_PROTECT()
macro ofpyfpe.h
PyTypeObject.tp_print
_PyRuntime.getframe
hook_PyThreadState_GetFrame
macroPyThreadFrameGetter
typePyAsyncGen_ClearFreeLists()
PyContext_ClearFreeList()
PyDict_ClearFreeList()
PyFloat_ClearFreeList()
PyFrame_ClearFreeList()
PyList_ClearFreeList()
PyMethod_ClearFreeList()
PyCFunction_ClearFreeList()
PySet_ClearFreeList()
PyTuple_ClearFreeList()
PyUnicode_ClearFreeList()
_PyUnicode_ClearStaticStrings()
Py_UNICODE_MATCH
_PyBytes_InsertThousandsGroupingLocale
_PyBytes_InsertThousandsGrouping
_Py_InitializeFromArgs
_Py_InitializeFromWideArgs
_PyFloat_Repr
_PyFloat_Digits
_PyFloat_DigitsInit
PyFrame_ExtendStack
_PyAIterWrapper_Type
PyNullImporter_Type
PyCmpWrapper_Type
PySortWrapper_Type
PyNoArgsFunction
distutils.bdist_wininst
complex.__int__
complex.__float__
complex.__floordiv__
complex.__mod__
complex.__divmod__
complex.__rfloordiv__
complex.__rmod__
complex.__rdivmod__
_markupbase.ParserBase.error()
unicodedata.ucnhash_CAPI
parser
moduleformatter
modulecollections.abc
aliases fromcollections
loop
parameter from most ofasyncio
's API
PyParser_SimpleParseStringFlags
PyParser_SimpleParseStringFlagsFilename
PyParser_SimpleParseFileFlags
PyNode_Compile
PyModule_GetWarningsModule()
struct _node
Py_FrozenMain
Py_UNICODE_str*
manipulatingPy_UNICODE*
stringsPyUnicode_GetMax()
PyLong_FromUnicode()
PyUnicode_AsUnicodeCopy()
_Py_CheckRecursionLimit
Py_ALLOW_RECURSION
macroPy_END_ALLOW_RECURSION
macroPyInterpreterState.recursion_critical
PyOS_InitInterrupts()
PyAST_Validate()
symtable.h
header file and the undocumented functions:PyST_GetScope()
PySymtable_Build()
PySymtable_BuildObject()
PySymtable_Free
Py_SymtableString()
Py_SymtableStringObject()
PyOS_ReadlineFunctionPointer()
- compiler and parser functions using
struct _mod
type:PyAST_Compile()
PyAST_CompileEx()
PyAST_CompileObject()
PyFuture_FromAST()
PyFuture_FromASTObject()
PyParser_ASTFromFile()
PyParser_ASTFromFileObject()
PyParser_ASTFromFilename()
PyParser_ASTFromString()
PyParser_ASTFromStringObject()
pyarena.h
header file with functions:PyArena_New()
PyArena_Free()
PyArena_Malloc()
PyArena_AddPyObject()
PyThreadState.use_tracing
exc_type
andexc_traceback
from exceptionsCOPY_DICT_WITHOUT_KEYS
GEN_START
smtpd.MailmanProxy
binhex
modulebinascii.a2b_hqx()
binascii.b2a_hqx()
binascii.rlecode_hqx()
binascii.rledecode_hqx()
distutils.bdist_msi
reuse_address
parameter ofasyncio.loop.create_datagram.endpoint()
("due to significant security concerns")__getitem__
fromxml.dom.pulldom.DOMEventStream
,wsgiref.util.FileWrapper
, andfileinput.FileInput
gettext
functions:lgettext
ldgettext
lngettext
ldngettext
bind_textdomain_codeset
output_charset()
set_output_charset()
codeset
parameter oftranslation()
codeset
parameter ofinstall()
@asyncio.coroutine
asyncio.coroutine.CoroWrapper
_tkinter.TkappType.split()
inspect.getargspec()
inspect.formatargspec()
inspect.Signature.from_builtin
inspect.Signature.from_function
- namespace package support from unittest directory
__class_getitem__
method frompathlib.PurePath
float.__set_format__()
--experimental-isolated-subinterpreters
configure flag- Pynche (The Pythonically Natural Color and Hue Editor) from
Tools/scripts
--with-tcltk-includes
--with-tcltk-libs
Py_UNICODE
encoder APIsPyFrameObject
structure fields:f_back
f_blockstack
f_builtins
f_code
f_gen
f_globals
f_iblock
f_lasti
f_lineno
f_locals
f_stackdepth
f_state
f_trace
f_trace_lines
f_trace_opcodes
f_localsplus
f_valuestack
PyThreadState
struct members:frame
tracing
recursion_depth
stackcheck_counter
PyFrame_BlockSetup()
PyFrame_BlockPop()
- math macros using the
errno
variable:Py_ADJUST_ERANGE1()
Py_ADJUST_ERANGE2()
Py_OVERFLOWED()
Py_SET_ERANGE_IF_OVERFLOW()
Py_SET_ERRNO_ON_MATH_ERROR()
Py_UNICODE_COPY()
macroPy_UNICODE_FILL()
macropystrhex.h
header filePy_FORCE_DOUBLE()
macroPyHeapType_GET_MEMBERS()
macroHAVE_PY_SET_53BIT_PRECISION
macro
wstr
andwstr_length
members from Unicode objects (reduces object size by 8 or 16 bytes)LOAD_METHOD
instructionunittest
:TestCase
aliases:failUnless
failIf
failUnlessEqual
failIfEqual
failUnlessAlmostEqual
failIfAlmostEqual
failUnlessRaises
assert_
assertEquals
assertNotEquals
assertAlmostEquals
assertNotAlmostEquals
assertRegexpMatches
assertRaisesRegexp
assertNotRegexpMatches
TestCase.assertDictContainsSubset
use_load_tests
parameter inTestLoader.loadTestsFromModule
_TextTestResult
alias
filename
attribute/argument forconfigparser.ParsingError
configparser.SafeConfigParser
configparser.ConfigParser.readfp()
sqlite3.enable_shared_cache()
sqlite3.OptimizedUnicode
smtpd
moduleio.OpenWrapper
_pyio.OpenWrapper
ssl.RAND_pseudo_bytes()
filename
attribute ofgzip.GzipFile
ssl.match_hostname()
locale.format()
hashlib.pbkdf2_hmac()
xml.etree.ElementTree.Element.copy()
zipimport.find_loader()
zipimport.find_module()
ssl.wrap_socket()
importlib.util.set_package
suspicious
rule from doc MakefileDoc/tools/rstlint.py
(in favor ofsphinx-lint
)- non-integral value support for
randrange()