1. Home
  2. Computing & Technology
  3. Python

A Guide to Text vs Data in Python 3.0

From , former About.com Guide

1 of 4

A Bit of Background

Python 3.0 represents not a nuancing or revision of previous Python versions but a significant change in philosophy of how the language should operate. By far, most of the changes are in the internals of the language, operational aspects that are largely hidden by the interpreter. These changes are nonetheless far reaching and cannot help but be manifest in the syntax of the language. One of the most important places where the language has changed is in giving full support to Unicode by default. See "Full Unicode Support" for background to this guide.

The distinction between text as str and data as bytes carries through every part of Python 3.0. It is not relevant just to the way variables are assigned or how information is received. The distinction is all-encompassing. This guide will give you a feel for how far-reaching the consequences of the disctinction are and how you can best navigate problems that might arise from it.

Explore Python
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Python
  4. Python 3.0
  5. Learn Python - Moving to 3.0 - Text and Data in Python 3.0

©2009 About.com, a part of The New York Times Company.

All rights reserved.