On Tue, Apr 23, 2013 at 8:22 AM, M.-A. Lemburg <mal at egenix.com> wrote: > Just as reminder: we have the general purpose > encode()/decode() functions in the codecs module: > > import codecs > r13 = codecs.encode('hello world', 'rot-13') > > These interface directly to the codec interfaces, without > enforcing type restrictions. The codec defines the supported > input and output types. As an implementation mechanism I see nothing wrong with this. I hope the codecs module lets you introspect the input and output types of a codec given by name? -- --Guido van Rossum (python.org/~guido)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4