> I thought that upgrading is not that simple.
It depends.
If you have Python 2 code that deals with a lot of text in byte form, and it's
kind of vague where you convert from bytes to strings, you may have a bad time.
Otherwise, it may not be that bad. I ported around 500k lines of Python 2 to
> item = input()
> if item != -1:
If you try this in the REPL, you'll see that 'item' is a string. You're
trying to compare it to an integer, which will always fail.
The cheapest way to fix this is probably:
if item != '-1':
Best,
G
--
https://
> nginx is the current hotness. CGI has not been hotness since the mid 90s.
Serverless is the new hotness, and serverless is CGI. Technology is cyclical.
--
https://mail.python.org/mailman/listinfo/python-list