A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-January/131073.html below:

[Python-Dev] Python3 "complexity"

[Python-Dev] Python3 "complexity" [Python-Dev] Python3 "complexity"Ben Finney ben+python at benfinney.id.au
Thu Jan 9 08:16:16 CET 2014
Nick Coghlan <ncoghlan at gmail.com> writes:

> On 9 January 2014 10:07, Ben Finney <ben+python at benfinney.id.au> wrote:
> > Kristján Valur Jónsson <kristjan at ccpgames.com> writes:
> >
> >> Believe it or not, sometimes you really don't care about encodings.
> >> Sometimes you just want to parse text files.
> >
> > Files don't contain text, they contain bytes. Bytes only become text
> > when filtered through the correct encoding.
[…]

> Set the mode to "rb", process it as binary. Done.

Which entails abandoning the stated goal of “just want to parse text
files” :-)

-- 
 \         “All television is educational television. The question is: |
  `\                           what is it teaching?” —Nicholas Johnson |
_o__)                                                                  |
Ben Finney

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4