diff --git a/case-study-porting-chardet-to-python-3.html b/case-study-porting-chardet-to-python-3.html index 4a84ccd..ce6fb63 100644 --- a/case-study-porting-chardet-to-python-3.html +++ b/case-study-porting-chardet-to-python-3.html @@ -717,7 +717,7 @@ for line in open(f, 'rb'): elif (self._mInputState == ePureAscii) and self._escDetector.search(self._mLastChar + aBuf): TypeError: Can't convert 'bytes' object to str implicitly
... -
© 2001-4, 2009 ℳark Pilgrim, CC-BY-3.0 +
© 2001-4, 2009 ℳark Pilgrim, CC-BY-SA-3.0
-Dive Into Python 3 will cover Python 3 and its differences from Python 2. Compared to the original Dive Into Python, it will be about 50% revised and 50% new material. I will publish drafts online as I go. The final version will be published on paper by Apress. The book will remain online under the CC-BY-3.0 license. +
Dive Into Python 3 will cover Python 3 and its differences from Python 2. Compared to the original Dive Into Python, it will be about 50% revised and 50% new material. I will publish drafts online as I go. The final version will be published on paper by Apress. The book will remain online under the CC-BY-SA-3.0 license.
Here’s what I’ve written so far:
There is a changelog, a feed, and discussion on Reddit. During development, you can download the book by cloning the Mercurial repository:
you@localhost:~$ hg clone http://hg.diveintopython3.org/ diveintopython3-
The final version will be downloadable as HTML and PDF. +
The final version will be downloadable as HTML and PDF.
This site is optimized for Lynx just because fuck you.
I’m told it also looks good in graphical browsers.
-
© 2001-4, 2009 ℳark Pilgrim, CC-BY-3.0 +
© 2001-4, 2009 ℳark Pilgrim, CC-BY-SA-3.0
None
+A short digression is in order. Put aside your first Python program for just a minute, and let's talk about datatypes. Every variable has a datatype, even though you don't declare it explicitly. Based on each variable's original assignment, Python figures out what type it is and keeps tracks of that internally. @@ -247,8 +248,7 @@ KeyError: 'db.diveintopython3.org' >>> x == y True -
© 2001-4, 2009 ℳark Pilgrim, CC-BY-3.0 +
© 2001-4, 2009 ℳark Pilgrim, CC-BY-SA-3.0