Message162589
> integers or 1-character strings? What about general mapping? Should
> any of them have 0xFFFE or '\uFFFE' represent an undefined mapping?
The documentation says that the parameter "can be a dictionary mapping
byte or a unicode string, which is treated as a lookup table". So
anything that supports GetItem with a small integer index can be passed.
It then says '... U+FFFE “characters” are treated as “undefined mapping”'.
So the answer to your last question is "yes". I hope that the answer to
your other questions follows from that (strictly speaking, it's only
U+FFFE, not 0xFFFE, that is documented as indicating an undefined
mapping; a patch should probably fix that).
(I also wonder where the support for LookupError comes from - that
appears to be undocumented) |
|
Date |
User |
Action |
Args |
2012-06-10 17:08:00 | loewis | set | recipients:
+ loewis, lemburg, doerwalter, eric.araujo, serhiy.storchaka |
2012-06-10 17:07:59 | loewis | link | issue14850 messages |
2012-06-10 17:07:59 | loewis | create | |
|