in reply to Re: impose 'use bytes' on another package
in thread impose 'use bytes' on another package
It seems your len function expects to be working on strings of bytes ...Actually, it's the other way around, but I wasn't interested in dynamically converting bytes to characters or vice versa.
I was thinking it should be possible (without reverting to dirty tricks like eval-ing the code) to switch between unicode string and byte string interpretation at run time (or at least at compile time) in a separate module, without modifying the module code.
|
|---|