Re:Why Python 3 Exists
by squeaky-clean on Thursday December 17, 2015 @02:45PM
(#10753943)
Because I'd like to be able to use the googleads Python client library within Python 3 without needing to fix 62,000 lines of code? I guess you could call that laziness if you want.
[ Parent
| on HN ]
You just simply use it, if specific argument require python 2 sting you simply call bytes() on it.
For example
old_function(bytes(myarg))
if it needs to be a literal:
old_function(b"literal")
That's what I do, and works for me so far.