Python Forum

Full Version: supporting both strings and bytes in functions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
in all my functions (Skaperens Function Collections) that take strings and return strings, i want to also support bytes and bytearray types, returning the same, without having to use different names. suggestions on doing this? i do know how, but interested in other people's thoughts.