Undocumented feature - should be documented.

Nov. 1, 2013
6:49 a.m.
According to the FM: "str.translate(map) Return a copy of the s where all characters have been mapped through the map which must be a dictionary of Unicode ordinals (integers) to Unicode ordinals, strings or None. Unmapped characters are left untouched. Characters mapped to None are deleted." So 'acxd'.translate(' '*97 + 'sdfg') should raise an exception, as the map is NOT a dictionary. However it runs and returns 'sfxg' This is a very nice feature - let's document it! -- Bob Gailer 919-636-4239 Chapel Hill NC
4156
Age (days ago)
4156
Last active (days ago)
0 comments
1 participants
participants (1)
-
bob gailer