Message162589
| Author |
loewis |
| Recipients |
doerwalter, eric.araujo, lemburg, loewis, serhiy.storchaka |
| Date |
2012年06月10日.17:07:59 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<4FD4D46E.1000709@v.loewis.de> |
| In-reply-to |
<1339343965.18692.39.camel@raxxla> |
| Content |
> 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) |
|