Re: Unicode strings and invalid codepoints
Robert J Budzynski <[email protected]>
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <[email protected]> |
On 09.03.2015 09:08, Martin Bähr wrote: > Excerpts from Chris Angelico's message of 2015-03-09 03:52:14 +0100: >> Are there situations in which it's necessary to be able to store these >> kinds of noncharacters in a string? > strings may be just binary data. > why should binary data in a string literal be an error? > > greetings, martin. > Python (v3) has different datatypes for (Unicode) strings - sequences of characters, and byte strings. I don't think anyone has suggested that any sort of binary data in a (byte) string should be an error. -- RJ Budzyński