© Joannah Nanjekye 2017
Joannah NanjekyePython 2 and 3 Compatibilityhttps://doi.org/10.1007/978-1-4842-2955-2_12

12. Standard Library Modules

Joannah Nanjekye
(1)
Kampala, Uganda
 
The Python standard library was reorganized to make it easier and consistent. Many of the modules were renamed to conform to PEP 8 and unify file-naming conventions. Others merged to put related modules in a common namespace. This chapter explores some of the renamed and reorganized modules and explains how to provide compatibility for them.

Tkinter

If you have tried creating programs using a graphical user interface, then you have come across Tkinter. It is a standard library module that functions as an interface to Tk, a small toolkit.
The module is called Tkinter in ...

Get Python 2 and 3 Compatibility: With Six and Python-Future Libraries now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.