raw Strings from XML attributes

Terry Reedy tjreedy at udel.edu
Sat Jun 12 10:54:26 EDT 2004


> As Peter Otten points out, "rawness" is a concept that Python forgets as
> soon as a string is loaded into memory.

More specifically, "raw" is an alternate mode of interpreting/translating
string literals in program code as they are used to give value to a string
object.  Similarly, "text" is an alternative mode (for DOS/Win, not *nix,
don't know about Mac) for converting file bytes to a Python string.  In
other words, 'rawness' is a concept of action rather than a concept of
thingness.

Terry J. Reedy







More information about the Python-list mailing list