next up previous contents index
Next: General Efficiency Hints Up: Numbers Previous: Interactions With Local Call   Contents   Index


Representation of Characters

characters strings

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.



Peter Van Eynde 2000-02-08