Re: unicode by default



Ian Kelly wrote:

Ian, Benjamin, thanks much.

The `unicode' class was renamed to `str', and a stripped-down version
of the 2.X `str' class was renamed to `bytes'.

... thank you, this is very helpful.

> If I do not specify any code points above ascii 0xFF does any of this
> matter anyway?

You mean 0x7F, and probably, due to the need to explicitly encode and decode.

Yes, actually, I did... and from Benjamin's reply it seems that this matters only if I am working with bytes. Is it true that if I am working without using bytes sequences that I will not need to care about the encoding anyway, unless of course I need to specify a unicode code point?

Thanks again.

kind regards,
m harris

.



Relevant Pages

  • Re: Idiom of removing a particular character from a String?
    ... is rather the expected behavior of slice. ... str = "hello" ... This is partly a matter of laziness on my part, ... Kind regards ...
    (comp.lang.ruby)
  • Re: C as a scripting language
    ... Still think C is best for scripting? ... This is a matter of taste but it *really* looks horrible. ... str = replicate ...
    (comp.lang.c)
  • Re: char cannot be dereferenced
    ... > primitive ie equals(String str) ... > For that matter you must make the two objects of the same type to make ... And if I want to compare a string of vouwels ... So I need to count the vouwels in a word... ...
    (comp.lang.java.programmer)
  • Re: comparing the first half of a string to the second half
    ... is a duplicate of the first part of the string, and if so I just want the ... first half (or the second for that matter). ... str   = 'Cyano The CatCyano The Cat' ...
    (comp.lang.ruby)
  • Re: Just a quick one
    ... In fact, most types can be converted like so, str(), list, dict, ... You can always do "help" in Python for more verbose ... > Hi Benjamin, ... How do I remove the brackets form the list? ...
    (comp.lang.python)