> > > quote_from_bytes = quote >> > > So either name can be used on either input type, with the idea being that > you should use quote on a str, and quote_from_bytes on a bytes. Is this a > good idea or should it be rewritten so each function permits only one input > type? > > so you can use quote_from_bytes on strings? I assumed Guido meant it was okay to have quote accept string/byte input and have a function that was redundant but limited in what it accepted (i.e. quote_from_bytes accepts only bytes)
I suppose your implementation doesn't break anything... it just strikes me as "odd"
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com