From 301679861a2440a10c9eac746cec86459f445ef9 Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Mon, 4 May 2015 14:55:10 -0700 Subject: remove all Octopress stuff --- source/_posts/2014-12-05-python-3-and-unicode.md | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 source/_posts/2014-12-05-python-3-and-unicode.md (limited to 'source/_posts/2014-12-05-python-3-and-unicode.md') diff --git a/source/_posts/2014-12-05-python-3-and-unicode.md b/source/_posts/2014-12-05-python-3-and-unicode.md deleted file mode 100644 index d7d871d8..00000000 --- a/source/_posts/2014-12-05-python-3-and-unicode.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -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). -- cgit v1.2.1