aboutsummaryrefslogtreecommitdiff
path: root/source/blog/2014-12-05-python-3-and-unicode.md
diff options
context:
space:
mode:
Diffstat (limited to 'source/blog/2014-12-05-python-3-and-unicode.md')
-rw-r--r--source/blog/2014-12-05-python-3-and-unicode.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blog/2014-12-05-python-3-and-unicode.md b/source/blog/2014-12-05-python-3-and-unicode.md
new file mode 100644
index 00000000..d7d871d8
--- /dev/null
+++ b/source/blog/2014-12-05-python-3-and-unicode.md
@@ -0,0 +1,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).