Limit search to available items
Book Cover
E-book
Author Nanjekye, Joannah, author

Title Python 2 and 3 compatibility : with Six and Python-future libraries / Joannah Nanjekye
Published [United States] : Apress, 2017
New York, NY : Distributed to the Book trade worldwide by Springer
©2017

Copies

Description 1 online resource : illustrations
Contents 1. Printing and BackTick repr -- 2. Numbers -- 3. Setting Metaclasses -- 4. Strings and Bytes -- 5. Package Imports -- 6. Exceptions -- 7. HTML Processing -- 8. Working with Files -- 9. Custom Behavior of Classes -- 10. Collections and Iterators -- 11. More Built-ins -- 12. Standard Library Modules
Summary Discover clean ways to write code that will run on both Python 2 and 3. This book is tutorial-oriented with detailed examples of how to convert existing Python 2-compatible code to code that will run reliably on both Python 2 and 3. Although Python 3 is considered the future of Python, Python 2.x will be maintained for several more years, alongside Python 3, which is not backwards compatible. For those who need to support both versions, this book guides you through the process. Python 2 and 3 Compatibility explains the syntactical differences between Python 2 and 3, and how to use Python packages Python-Future and Six to implement neutral compatibility. Developers working on either small, medium, or large projects will appreciate the author's clear explanations, detailed examples, and clean techniques to help them extend support for both versions to their existing Python 2-compatible projects
Notes Includes index
Online resource; title from PDF title page (SpringerLink, viewed December 20, 2017)
Subject Python (Computer program language)
Programming & scripting languages: general.
COMPUTERS -- Programming Languages -- Python.
Python (Computer program language)
Form Electronic book
ISBN 9781484229552
148422955X