aboutsummaryrefslogtreecommitdiff
path: root/source/blog/2014-12-05-python-3-and-unicode.md
blob: d7d871d8a0653495228f80adc1e016120d4d45ab (plain)
1
2
3
4
5
6
7
8
---
layout: post
title: "Python 3 and Unicode"
date: 2014-12-05 15:01:54 -0800
comments: true
categories: 
---
I never realized that in Python 3 Unicode is the default; in particular, `str` in Python 3 is practically equivalent to `unicode` in Python 2. This might be the *one thing* that convince me to migrate. `str.encode()`, `str.decode()`, `unicode.encode()`, `unicode.decode()`, etc. are so confusing that I'm never 100% sure what I'm doing (only-occasionally-used-but-unavoidable-and-worst-of-all-very-confusing "features" are nightmares).