Advertisement

Python 2 and 3 Compatibility

With Six and Python-Future Libraries

  • Joannah Nanjekye

Table of contents

  1. Front Matter
    Pages i-xxix
  2. Joannah Nanjekye
    Pages 1-10
  3. Joannah Nanjekye
    Pages 11-19
  4. Joannah Nanjekye
    Pages 21-30
  5. Joannah Nanjekye
    Pages 31-46
  6. Joannah Nanjekye
    Pages 47-52
  7. Joannah Nanjekye
    Pages 53-58
  8. Joannah Nanjekye
    Pages 59-63
  9. Joannah Nanjekye
    Pages 65-68
  10. Joannah Nanjekye
    Pages 69-79
  11. Joannah Nanjekye
    Pages 81-94
  12. Joannah Nanjekye
    Pages 95-109
  13. Joannah Nanjekye
    Pages 111-125
  14. Back Matter
    Pages 127-129

About this book

Introduction

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.

Keywords

Python 3 Compatibility Python-Future Python Six Library Programming package Library modules Classes Python 2 and 3 Python Neutral Support

Authors and affiliations

  • Joannah Nanjekye
    • 1
  1. 1.KampalaUganda

Bibliographic information