Python Language Renamed modules


Example

A few modules in the standard library have been renamed:

Old nameNew name
_winregwinreg
ConfigParserconfigparser
copy_regcopyreg
Queuequeue
SocketServersocketserver
_markupbasemarkupbase
reprreprlib
test.test_supporttest.support
Tkintertkinter
tkFileDialogtkinter.filedialog
urllib / urllib2urllib, urllib.parse, urllib.error, urllib.response, urllib.request, urllib.robotparser

Some modules have even been converted from files to libraries. Take tkinter and urllib from above as an example.

Compatibility

When maintaining compatibility between both Python 2.x and 3.x versions, you can use the future external package to enable importing top-level standard library packages with Python 3.x names on Python 2.x versions.