diff options
author | Zhiming Wang <zmwangx@gmail.com> | 2015-05-04 15:03:55 -0700 |
---|---|---|
committer | Zhiming Wang <zmwangx@gmail.com> | 2015-05-04 15:03:55 -0700 |
commit | ee374553f2ba385157eec9a816cf9b023fbfb18a (patch) | |
tree | 2972641f3de868f727f4210f97d461b4f4e1a2b5 /source/blog/2014-12-05-python-3-and-unicode.md | |
parent | 301679861a2440a10c9eac746cec86459f445ef9 (diff) | |
download | my_new_personal_website-ee374553f2ba385157eec9a816cf9b023fbfb18a.tar.xz my_new_personal_website-ee374553f2ba385157eec9a816cf9b023fbfb18a.zip |
process post metadata
Diffstat (limited to '')
-rw-r--r-- | source/blog/2014-12-05-python-3-and-unicode.md | 4 |
1 files changed, 1 insertions, 3 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 index d7d871d8..eb596956 100644 --- a/source/blog/2014-12-05-python-3-and-unicode.md +++ b/source/blog/2014-12-05-python-3-and-unicode.md @@ -1,8 +1,6 @@ --- -layout: post title: "Python 3 and Unicode" date: 2014-12-05 15:01:54 -0800 -comments: true -categories: +date-display: December 5, 2014 --- 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). |