Home / Companies / Aerospike / Blog / Post Details
Content Deep Dive

Aerospike Python Client 2.0: Support for Python 3

Blog post from Aerospike

Post Details
Company
Date Published
Author
Jeff Boone
Word Count
539
Language
English
Hacker News Points
-
Summary

The Aerospike Python Client 2.0 introduces support for Python 3, making it compatible with versions 2.6, 2.7, 3.4, and 3.5. Key differences between Python 2 and 3 include changes in string handling, division operation behavior, the elimination of xrange() function, and altered syntax for raising and handling exceptions. The migration from Python 2 to 3 requires adjustments in code that uses Unicode, encodings, or binary data, as well as changes in file opening methods and exception handling. Tools like 2to3 can aid in the conversion process.