Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: python 2.7 and unicode (one more time) Date: Tue, 25 Nov 2014 08:23:31 +0200 Organization: A noiseless patient Spider Lines: 28 Message-ID: <87r3wrztlo.fsf@elektro.pacujo.net> References: <1416491999.209592.193345213.3A6FF9A4@webmail.messagingengine.com> <87ppch8zvx.fsf@elektro.pacujo.net> <87k32p6ow8.fsf@elektro.pacujo.net> <871towik8j.fsf@elektro.pacujo.net> <5470134c$0$12986$c3e8da3$5496439d@news.astraweb.com> <877fyn68m1.fsf@elektro.pacujo.net> <87sih913xe.fsf@elektro.pacujo.net> <87oarx11x8.fsf@elektro.pacujo.net> <5473b781$0$12988$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="ff5cf27ef3d5b31f034d3b72bdc27a41"; logging-data="18160"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+YdoVRzLXTtrK7nB31AVrv" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:2WpTRydXTK6cB8JW5T0IMB+fKBM= sha1:yLlBaajVwDT5TmEpg5PQ7Z/41fc= Xref: csiph.com comp.lang.python:81484 Steven D'Aprano : > Marko Rauhamaa wrote: > >>> Py3's byte strings are still strings, though. >> >> Hm. I don't think so. In a plain English sense, maybe, but that kind of >> usage can lead to confusion. > > Only if you are determined to confuse yourself. > > {...] > > In Python usage, "string" always refers to the `str` type, unless > prefixed with "byte", in which case it refers to the immutable > byte-string type (`str` in Python 2, `bytes` in Python 3.) You are saying what I'm saying. Byte strings are *not* strings. Prairie dogs are not dogs. No need to call dogs "domesticated dogs" to tell them apart from "prairie dogs". Marko