|
Bill Janssen wrote: Bill Janssen <[email protected]> wrote:Dan Mahn <[email protected]> wrote: Thanks. Generally, I would tend to agree. I actually tried something like that, but I found that I had inadvertently been sending numeric values, in which case the str() was saving me. Considering that, I would rather just see something like ... k = quote_plus(k) if isinstance(k,(str,bytes)) else quote_plus(str(k)) if isinstance(v,(str,bytes)): l.append(k + "=" + quote_plus(v)) else: # just keep what's in the else I think it would be more compatible with existing code calling urlencode(). Additionally, I think it would be nice to allow selection of the quote_plus() string encoding parameters, but that was one of the other points I listed. A similar thing could be done when "not doseq", but the handling of "v" would be exactly like "k". - Dan |
_______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
