Message203391
Blacklisting by name is slow and it prevents a user from defining a codec with blacklisted name.
What if just add private attribute ("_not_text"?) to unsafe codecs? If a codec has this attribute, than it should not be used it text encoding/decoding. Checking an attribute is much faster than comparing with a couple of strings.
Another possibility is an inheriting all unsafe codecs from special class. |
|
Date |
User |
Action |
Args |
2013-11-19 15:41:40 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, lemburg, doerwalter, ncoghlan, vstinner, ezio.melotti |
2013-11-19 15:41:40 | serhiy.storchaka | set | messageid: <1384875700.08.0.383874659581.issue19619@psf.upfronthosting.co.za> |
2013-11-19 15:41:40 | serhiy.storchaka | link | issue19619 messages |
2013-11-19 15:41:40 | serhiy.storchaka | create | |
|