supporting both strings and bytes in functions - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: General (https://python-forum.io/forum-1.html) +--- Forum: News and Discussions (https://python-forum.io/forum-31.html) +--- Thread: supporting both strings and bytes in functions (/thread-22829.html) |
supporting both strings and bytes in functions - Skaperen - Nov-28-2019 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. |