next up previous contents
Next: 5.12 General Efficiency Hints Up: 5.11 Numbers Previous: 5.11.10 Interactions With Local

5.11.11 Representation of Characters

     

Python also uses a non-descriptor representation for characters when convenient. This improves the efficiency of string manipulation, but is otherwise pretty invisible; characters have an immediate descriptor representation, so there is not a great penalty for converting a character to a descriptor. Nonetheless, it may sometimes be helpful to declare character-valued variables as base-character.



Raymond Toy
Mon Jul 14 09:11:27 EDT 1997