[web2py] Re: Which versions of GAE does Web2py Python 3.x support?
Good question. This needs to be tested. I am not sure On Wednesday, 29 May 2019 07:09:06 UTC-7, Carl Hunter Roach wrote: > > When Web2py first added GAE support live was pretty simple. Both supported > Python 2.x and GAE only had one edition. > > Now, GAE comes in Standard and Flexible Environment versions. > The Standard supports Python 2.x and 3.x but their implementations differ > to each other. > > Does Web2py using Python 3.x support GAE? > And if so, which GAE versions? > -- 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/daf31da0-6ce3-49cf-b364-821c68533098%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] python 3 / web2py 2.18.5 - Sequence of bytes expected error
When I try to run the above version under Apache (2.4), welcome app screen comes. When I click on 'Admin' button, an error message is displayed. Apache log shows the error as TypeError: sequence of byte string values expected, value of type str found\r, referer: http://localhost:85/welcome/default/index. I get the same error when I try to invoke admin application directly too. The application runs OK directly under web2py on console mode. Am I doing anything wrong? No coding has been added - other than changes in apache httpd conf. -- 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/bdc2788a-1d67-48ca-bc1f-cf987400d9bf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Python 3 - Traceback problems
Am I really the only one having this problem? Having the error ticket system not work seems like a pretty significant obstacle to using web2py with python 3.7 -- 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. For more options, visit https://groups.google.com/d/optout.
[web2py] Python 3 - Traceback problems
So I'm trying to finally move my web2py apps over to Python 3.7 before Python 2.7 reaches EOL and, while for the most part they're working fine, I am finding that when there is a problem the web2py Error ticket is just about useless (doesn't tell you where the error actually occurs) because web2py seems to be throwing its own exception while trying to handle the actual exception resulting in tracebacks that look like this: Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. Traceback (most recent call last): File "C:\FMSC_py3\web2py\gluon\restricted.py", line 220, in restricted exec(ccode, environment) pyodbc.DataError: ('22003', '[22003] [Microsoft][SQL Server Native Client 11.0][SQL Server]Arithmetic overflow error converting expression to data type int. (8115) (SQLExecDirectW)') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\FMSC_py3\web2py\gluon\restricted.py", line 141, in __init__ self.traceback = traceback.format_exc() AttributeError: 'NoneType' object has no attribute 'strip' I'm using Python 3.7.2 on Win7 with a freshly downloaded copy of the web2py source and can reproduce this very easily within the included Welcome App by adding this to the default.py controller def causeError(): deliberate_error= 1/0 return dict(deliberate_error=deliberate_error) Which results in the below ticket. Which, while it does say the correct "division by zero" error, doesn't contain anything else useful in the traceback to actually say where in the code the error happens. Error ticket for "welcome"Ticket ID 127.0.0.1.2019-02-01.10-10-20.33b63e41-eac2-4737-a257-37232cf4fb72 division by zeroVersion web2py™ Version 2.17.2-stable+timestamp.2018.10.06.18.54.02Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. Traceback (most recent call last): File "C:\FMSC_py3\web2py\gluon\restricted.py", line 220, in restricted except HTTP: ZeroDivisionError: division by zero During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\FMSC_py3\web2py\gluon\restricted.py", line 141, in __init__ self.traceback = traceback.format_exc() AttributeError: 'NoneType' object has no attribute 'strip' In file: C:\FMSC_py3\web2py\applications\welcome\controllers/default.py 1. at 0x03F546A8, file "C:\FMSC_py3\web2py\applications\welcome\controllers/default.py", line 8> This issue is making it very difficult to actually use web2py with Python 3 because when you inevitably make coding mistakes you cannot easily find them unlike under Python 2 where the web2py ticket's traceback tells you exactly where the issue is. -- 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. For more options, visit https://groups.google.com/d/optout.
[web2py] Python 3
Can I really use web2py with Python 3? I fell they are a lot of bugs...Is it better to stay in the version 2? thank you -- 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. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] PYTHON 3
On Wednesday, February 14, 2018 at 11:13:35 AM UTC-5, Ramos wrote: > > But appadmin.py is not my code... > Sorry, didn't notice that was in appadmin.py. But the same principle applies -- appadmin.py is a controller within your app, so when you upgrade the framework, you must also upgrade appadmin.py (as well as appadmin.html and web2py.js). The new version of appadmin.py has changed that line to: except Exception as e: Anthony -- 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. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] PYTHON 3
But appadmin.py is not my code... i got another error after fixing appadmin.py exception error. [image: Imagem inline 1] 2018-02-14 15:52 GMT+00:00 Anthony: > If you are running an app under Python 3, then the app code itself must be > valid Python 3 code. Under Python 3, your code should be: > > except Exception as e: > > If you are seeing errors in your app code, there's a good chance the > problem is that your old Python 2 code is no longer valid in Python 3. > There are tools to help you update your code to Python 3. > > Anthony > > > On Wednesday, February 14, 2018 at 10:40:10 AM UTC-5, Ramos wrote: >> >> got an error with python 3.6 >> Any help? >> >> [image: Imagem inline 1] >> >> 2018-02-12 20:59 GMT+00:00 LoveWeb2py : >> >>> With that said, Thank you for all of your hard work and to all the >>> contributors for making such a wonderful framework. :) >>> >>> >>> On Monday, February 12, 2018 at 3:58:30 PM UTC-5, LoveWeb2py wrote: Makes sense, Anthony. Please don't ever call anything web3py. It doesn't make any sense and all new users won't understand what it means. If you want to have a brainstorming session I'd be happy to help. I bet all the users on this forum have a lot of great ideas!! On Monday, February 12, 2018 at 3:44:13 PM UTC-5, Anthony wrote: > > On Sunday, February 11, 2018 at 4:10:45 PM UTC-5, Carlos Cesar > Caballero wrote: >> >> >> > PS: For the love of all that's holy, please don't name it web3py. >> > > The name "web3py" was just a placeholder name for a completely new > framework -- it was not intended to be the name for web2py with Python 3 > support. > > Anthony > -- >>> 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. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > 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. > For more options, visit https://groups.google.com/d/optout. > -- 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. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] PYTHON 3
If you are running an app under Python 3, then the app code itself must be valid Python 3 code. Under Python 3, your code should be: except Exception as e: If you are seeing errors in your app code, there's a good chance the problem is that your old Python 2 code is no longer valid in Python 3. There are tools to help you update your code to Python 3. Anthony On Wednesday, February 14, 2018 at 10:40:10 AM UTC-5, Ramos wrote: > > got an error with python 3.6 > Any help? > > [image: Imagem inline 1] > > 2018-02-12 20:59 GMT+00:00 LoveWeb2py: > >> With that said, Thank you for all of your hard work and to all the >> contributors for making such a wonderful framework. :) >> >> >> On Monday, February 12, 2018 at 3:58:30 PM UTC-5, LoveWeb2py wrote: >>> >>> Makes sense, Anthony. Please don't ever call anything web3py. It doesn't >>> make any sense and all new users won't understand what it means. If you >>> want to have a brainstorming session I'd be happy to help. I bet all the >>> users on this forum have a lot of great ideas!! >>> >>> On Monday, February 12, 2018 at 3:44:13 PM UTC-5, Anthony wrote: On Sunday, February 11, 2018 at 4:10:45 PM UTC-5, Carlos Cesar Caballero wrote: > > > > PS: For the love of all that's holy, please don't name it web3py. > The name "web3py" was just a placeholder name for a completely new framework -- it was not intended to be the name for web2py with Python 3 support. Anthony >>> -- >> 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. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] PYTHON 3
got an error with python 3.6 Any help? [image: Imagem inline 1] 2018-02-12 20:59 GMT+00:00 LoveWeb2py: > With that said, Thank you for all of your hard work and to all the > contributors for making such a wonderful framework. :) > > > On Monday, February 12, 2018 at 3:58:30 PM UTC-5, LoveWeb2py wrote: >> >> Makes sense, Anthony. Please don't ever call anything web3py. It doesn't >> make any sense and all new users won't understand what it means. If you >> want to have a brainstorming session I'd be happy to help. I bet all the >> users on this forum have a lot of great ideas!! >> >> On Monday, February 12, 2018 at 3:44:13 PM UTC-5, Anthony wrote: >>> >>> On Sunday, February 11, 2018 at 4:10:45 PM UTC-5, Carlos Cesar Caballero >>> wrote: > PS: For the love of all that's holy, please don't name it web3py. >>> >>> The name "web3py" was just a placeholder name for a completely new >>> framework -- it was not intended to be the name for web2py with Python 3 >>> support. >>> >>> Anthony >>> >> -- > 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. > For more options, visit https://groups.google.com/d/optout. > -- 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. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] PYTHON 3
With that said, Thank you for all of your hard work and to all the contributors for making such a wonderful framework. :) On Monday, February 12, 2018 at 3:58:30 PM UTC-5, LoveWeb2py wrote: > > Makes sense, Anthony. Please don't ever call anything web3py. It doesn't > make any sense and all new users won't understand what it means. If you > want to have a brainstorming session I'd be happy to help. I bet all the > users on this forum have a lot of great ideas!! > > On Monday, February 12, 2018 at 3:44:13 PM UTC-5, Anthony wrote: >> >> On Sunday, February 11, 2018 at 4:10:45 PM UTC-5, Carlos Cesar Caballero >> wrote: >>> >>> >>> > PS: For the love of all that's holy, please don't name it web3py. >>> >> >> The name "web3py" was just a placeholder name for a completely new >> framework -- it was not intended to be the name for web2py with Python 3 >> support. >> >> Anthony >> > -- 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. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] PYTHON 3
Makes sense, Anthony. Please don't ever call anything web3py. It doesn't make any sense and all new users won't understand what it means. If you want to have a brainstorming session I'd be happy to help. I bet all the users on this forum have a lot of great ideas!! On Monday, February 12, 2018 at 3:44:13 PM UTC-5, Anthony wrote: > > On Sunday, February 11, 2018 at 4:10:45 PM UTC-5, Carlos Cesar Caballero > wrote: >> >> >> > PS: For the love of all that's holy, please don't name it web3py. >> > > The name "web3py" was just a placeholder name for a completely new > framework -- it was not intended to be the name for web2py with Python 3 > support. > > Anthony > -- 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. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] PYTHON 3
On Sunday, February 11, 2018 at 4:10:45 PM UTC-5, Carlos Cesar Caballero wrote: > > > > PS: For the love of all that's holy, please don't name it web3py. > The name "web3py" was just a placeholder name for a completely new framework -- it was not intended to be the name for web2py with Python 3 support. Anthony -- 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. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] PYTHON 3
PS: For the love of all that's holy, please don't name it web3py. :) -- 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. For more options, visit https://groups.google.com/d/optout.
[web2py] PYTHON 3
Need to know if this is actually going to be happening soon. We're making critical design choices now and will be implementing next month. We currently use web2py, but obviously it doesn't support python3. PS: For the love of all that's holy, please don't name it web3py. Web2py v3 makes more sense. -- 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. For more options, visit https://groups.google.com/d/optout.
[web2py] python 3 web2py2.15.3 url lib has no get proxies
*HI* *trying to **use python 3 because I am having a lot of ascii decode issues...* *python 2.17.12 can run the scheduler no problem, but not python 3.5* *I was wondering how can I install getproxies attribute into the urllib module ?* *ben@x1*:*/home/www-data/web2py*$ python3 /home/www-data/web2py/web2py.py -K app-name web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2017 Version 2.15.3-stable+timestamp.2017.08.07.07.32.04 Database drivers available: pymysql, imaplib, psycopg2, sqlite3, pg8000 Traceback (most recent call last): File "/home/www-data/web2py/web2py.py", line 33, in gluon.widget.start(cron=True) File "/home/www-data/web2py/gluon/widget.py", line 1170, in start start_schedulers(options) File "/home/www-data/web2py/gluon/widget.py", line 1080, in start_schedulers urllib.getproxies() AttributeError: module 'urllib' has no attribute 'getproxies' -- 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. For more options, visit https://groups.google.com/d/optout.
[web2py] Python 3 brought me back.
Just wanted to say thank you to everyone involved in making web2py Python 3 compatible. Need to setup an internal application at work and having it compatible with existing codebase and environments made the decision to go with web2py easier. Have a nice summer. -- 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. For more options, visit https://groups.google.com/d/optout.
[web2py] Python 3 Migration
Hi, may I inquire about the status of python 3 migration? -- 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. For more options, visit https://groups.google.com/d/optout.
[web2py] Python 3 compatibility?
Hi, I'm interested (very interested) in a Python web framework that works with Python 3.x (3.3+, in particular). What is the status of web2py's py3 support? I found a late-2011 thread in this group where Massimo was betting that there would be a Python 2.8 and hence no pressing need to even care about 3.x. Me, I have no interest in 2.y, and if web2py doesn't support the current and in fact better version of Python then I will reluctantly have to look elsewhere. Thanks in advance, -- B -- --- 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. For more options, visit https://groups.google.com/groups/opt_out.
Re: [web2py] Python 3 is catching up to us...
Il 21/06/2012 07:30, Jason (spot) Brower ha scritto: Not a big deal still at this point but wanted to point out: http://www.noobslab.com/2012/06/ubuntu-1210-quantal-quetzal-alpha-1-is.html Python 2 will not be in Ubuntu by default anymore. BR, Jason well I agree but you're in the same situation if you plan to use a stable version of some distros such as CentOS for example in which python 2.6 is not yet supported :) M. --
Re: [web2py] Python 3 is catching up to us...
CENTOS 6 (released in 2011) has python 2.6.6 Regards On Thursday, 21 June 2012 08:39:52 UTC+2, Manuele wrote: Il 21/06/2012 07:30, Jason (spot) Brower ha scritto: Not a big deal still at this point but wanted to point out: http://www.noobslab.com/2012/06/ubuntu-1210-quantal-quetzal-alpha-1-is.html Python 2 will not be in Ubuntu by default anymore. BR, Jason well I agree but you're in the same situation if you plan to use a stable version of some distros such as CentOS for example in which python 2.6 is not yet supported :) M. --
Re: [web2py] Python 3 is catching up to us...
Luckily, it is now :) Red Hat EL = Scientific linux = CentOS version 5.x has python 2.4.3 version 6.x has python 2.6.6 Fedora 17 has python 2.7.3, while 3.x can be installed in parallel since Fedora 13. Just to note for anyone not aware how Red Hat works, all these older python versions get security updates backported to them. Regards On Thursday, June 21, 2012 8:39:52 AM UTC+2, Manuele wrote: Il 21/06/2012 07:30, Jason (spot) Brower ha scritto: Not a big deal still at this point but wanted to point out: http://www.noobslab.com/2012/06/ubuntu-1210-quantal-quetzal-alpha-1-is.html Python 2 will not be in Ubuntu by default anymore. BR, Jason well I agree but you're in the same situation if you plan to use a stable version of some distros such as CentOS for example in which python 2.6 is not yet supported :) M. On Thursday, June 21, 2012 8:39:52 AM UTC+2, Manuele wrote: Il 21/06/2012 07:30, Jason (spot) Brower ha scritto: Not a big deal still at this point but wanted to point out: http://www.noobslab.com/2012/06/ubuntu-1210-quantal-quetzal-alpha-1-is.html Python 2 will not be in Ubuntu by default anymore. BR, Jason well I agree but you're in the same situation if you plan to use a stable version of some distros such as CentOS for example in which python 2.6 is not yet supported :) M. --
[web2py] Python 3 is catching up to us...
Not a big deal still at this point but wanted to point out: http://www.noobslab.com/2012/06/ubuntu-1210-quantal-quetzal-alpha-1-is.html Python 2 will not be in Ubuntu by default anymore. BR, Jason --
Re: [web2py] Python 3 and the future of web2py
On Tuesday, July 12, 2011 12:29:19 AM UTC+2, Jonathan Lundell wrote: P3 needs some killer feature to motivate a migration, seems to me. Especially when we're hearing from web2py users who need/want to stick with 2.4… I think there are *many* Pythonistas with that view. I suppose that there won't be one single killer feature for 3, but rather a steady accumulation of small but useful additions. Regarding the need for a specific Python version: I have been able to get away so far with using my own custom Python for web2py deployments, even on shared hosting, so I pretty much choose which Python. I *really* don't want to use 2.4 any more, and even 2.5 has some gimpy restrictions on ** kwargs usage. My standard deploy is currently 2.6 just because I know all the libraries are available, but I am starting to use 2.7. At least one site is running on 2.7 right now.
Re: [web2py] Python 3 and the future of web2py
I know that Python 2.5 is the officially supported Python version of web2py, but I've been coding all of my stuff with the assumption that this will eventually change to Python 2.6, or even 2.7. I have applications running on both 2.6 and 2.7 in production. But since I'm using Ubuntu 10.04 Server to run most of my sites, Python 2.6.5 is my primary target until the next LTS version of Ubuntu Server. Although I've been hearing that the new version of Mac OS X Lion will have Python 2.7. I guess this all goes back to the fact that I think Python 3 is cool because it's new, and I'm sure I will start playing with it soon, but no distributions are really using or supporting it yet, so it probably will be another year or two before any serious Python 3 movement begins (not just with web2py). By then, there will probably some kind of huge speed boost, or, as you mention, an accumulation of small features that will entice more people to start switching to it. I know that it's been out for a while, but I still consider it to be somewhat beta since the barrier for entry is so high. I'm sure others feel the same way, but again, this will probably change soon.
Re: [web2py] Python 3 and the future of web2py
I suspect 2.6 is going to be popular for some time since that's what's in the current Ubuntu LTS (10.04).
Re: [web2py] Python 3 and the future of web2py
Also, python 2.6.5 is in RHEL 6 / SL 6 / CentOS 6, which many linux hosting/VPS companies will be using for years to come.
[web2py] Python 3 and the future of web2py
I read this on the announcement of the latest Python release: http://www.python.org/download/releases/3.2.1/ Since the final release of Python 2.7, the 2.x line will only receive bugfixes, and new features are developed for 3.x only. Does web2py have any plans to migrate to Python 3.x now that new features won't be developed for Python 2.x ?
Re: [web2py] Python 3 and the future of web2py
Hello Men's, still do not control everything that can offer web2py with Python 2.7, and I think we can not worry about versions, the important features are present, we need to master well web2py, python Guido cares about him. Ovidio Marinho Falcao Neto ovidio...@gmail.com 88269088 Paraiba-Brasil 2011/7/11 Francisco Costa m...@franciscocosta.com I read this on the announcement of the latest Python release: http://www.python.org/download/releases/3.2.1/ Since the final release of Python 2.7, the 2.x line will only receive bugfixes, and new features are developed for 3.x only. Does web2py have any plans to migrate to Python 3.x now that new features won't be developed for Python 2.x ?
Re: [web2py] Python 3 and the future of web2py
On Jul 11, 2011, at 6:32 AM, Francisco Costa wrote: I read this on the announcement of the latest Python release: http://www.python.org/download/releases/3.2.1/ Since the final release of Python 2.7, the 2.x line will only receive bugfixes, and new features are developed for 3.x only. Does web2py have any plans to migrate to Python 3.x now that new features won't be developed for Python 2.x ? Is there a compelling new feature in Python 3? I don't have enough experience with it to know.
Re: [web2py] Python 3 and the future of web2py
http://www.python.org/download/releases/3.2.1/ I highlighted the ones I am interested in below: - numerous improvements to the unittest module - PEP 3147 http://www.python.org/dev/peps/pep-3147, support for .pyc repository directories - PEP 3149 http://www.python.org/dev/peps/pep-3149, support for version tagged dynamic libraries - *PEP 3148 http://www.python.org/dev/peps/pep-3148, a new futures library for concurrent programming* - PEP 384 http://www.python.org/dev/peps/pep-0384, a stable ABI for extension modules - PEP 391 http://www.python.org/dev/peps/pep-0391, dictionary-based logging configuration - *an overhauled GIL implementation that reduces contention* - an extended email package that handles bytes messages - a much improved ssl module with support for SSL contexts and certificate hostname matching - a sysconfig module to access configuration information - additions to the shutil module, among them archive file support - many enhancements to configparser, among them mapping protocol support - improvements to pdb, the Python debugger - countless fixes regarding bytes/string issues; among them full support for a bytes environment (filenames, environment variables) - many consistency and behavior fixes for numeric operations
Re: [web2py] Python 3 and the future of web2py
Oh, I also watched a video from PyCon: the dictionary-based logging system is supposed to be the final word on how to do Python logging for all apps and users. Apparently there were a lot of custom-made in-house logging systems for many different projects, and they tried to make one to replace all the hacky ones. So we would probably use that too. I didn't bold it only because it isn't something I find especially interesting ;)
Re: [web2py] Python 3 and the future of web2py
I just realized you asked about Python *3* not 3.2! The stuff I posted was the delta from 3.1 to 3.2 only. To see what changes from 2 to 3, read here (isn't too long, worth skimming at the very least): http://docs.python.org/py3k/whatsnew/3.0.html
Re: [web2py] Python 3 and the future of web2py
On Jul 11, 2011, at 1:38 PM, cjrh caleb.hatti...@gmail.com wrote: I just realized you asked about Python 3 not 3.2! The stuff I posted was the delta from 3.1 to 3.2 only. To see what changes from 2 to 3, read here (isn't too long, worth skimming at the very least): http://docs.python.org/py3k/whatsnew/3.0.html Some of the stuff has found it's way into 2.7. The unittest improvements spring to mind, because I've been using them. P3 needs some killer feature to motivate a migration, seems to me. Especially when we're hearing from web2py users who need/want to stick with 2.4… That GIO video someone posted had GvR saying that they had no immediate plans to put P3 on GAE (they're doing 2.7). That kind of thing motivates me to put it back in the drawer and think about it in a year or two.