bslatkin / effectivepython

Effective Python: Second Edition — Source Code and Errata for the Book
https://effectivepython.com
2.2k stars 710 forks source link

Item 3: (page 10, first line) Use of bytes and str types should be the other way round #109

Closed koucos closed 1 month ago

koucos commented 2 years ago

The first line on page 10 in 2nd ed. instead of ... "using the bytes.encode (for writing) and str.decode (for reading)" I think it should be the other way round ... i.e. "using the str.encode (for writing) and bytes.decode (for reading)" Thank you.

bslatkin commented 1 month ago

Thank you for the report! Yes this was mixed up. Deduping with #93