runing my app from python 2.7.5 to 3.5.9

49 views
Skip to first unread message

António Ramos

unread,
Dec 30, 2019, 6:43:38 AM12/30/19
to web...@googlegroups.com
Hello i have my app on webfaction running with python 2.7.5.
Webfaction has python 3.5.9 installed.
Can i just start my app with python 3.5.9 ?
will it change any file that can destroy invalidate running it back again with 2.7 in case something will break ?

Regards
António

Lovedie JC

unread,
Dec 30, 2019, 9:11:02 AM12/30/19
to web...@googlegroups.com
Most functions/modules will work. Some may require some code changes such as print in 2.7 is:
 'print variable' 
But in 3.6 is a function as:
 'print (variable)'
Some module are deprecated or changed to different folders.... Depending on your needs. 
I did change to 3.6 with minimal changes to code. 

--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CAEM0BxM1pp9WO_TAvawAp8qDUt%2BAfcaQ8ZqeALRK_RXL2WTCkw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages