The framework is compatible with both.  
However, your own code may only be compatible with one or the other - 
that's up to you.
Once you get to know what the differences are, you can scan the code pretty 
easily yourself.  Still, the 2to3 is helpful if you have lots of code.
One simplistic approach is simply to make a copy of your app,  try it under 
python 3, and fix what is broken.
Important:  anyone making such a conversion is being increasingly 
encouraged to also consider porting it to py4web.  This is a steeper 
learning curve,  but it may be a better long term solution.

On Saturday, 12 December 2020 at 17:37:44 UTC Tele Tom wrote:

> I'm looking to run 2to3 to upgrade my python code.  How do I get it?  Is 
> it easy to do?  Is it worth it?
>
> Can I run my web2py 2.21.1 with python 2.7 or must I use python 3?
>
> thanks
> Davey
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/1a05b6a6-0c93-4d63-9472-300f6650b23cn%40googlegroups.com.

Reply via email to