A Developer's Guide to Python 3.0: Numbers, Strings, and Data
Python 3.0 makes critical—and not-backwardly-compatible—changes to data types. Find out how these changes will affect your code.
by Gigi Sayfan
April 7, 2009
he first article in this series covered important changes to the core language and its type system. This article focuses on how Python 3.0 treats the basic data types: numbers, text, and binary data.
PEP 237: Unifying Long Integers and Integers
Python 2.x has two integral types: int and long. The int type is limited to the machine's "native" word size (32 or 64 bit in modern machines). Operations on the int type can overflow and result in OverflowError exceptions (before Python 2.2). In contrast, the long type is limited only by the amount of available memory, and could conceptually represent any integer.
It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com. Already a member?
To become a member of DevX.com create your Member Profile by completing the form below. Membership is free!