Re: [web2py] Re: python3 sintax

2020-10-19 Thread António Ramos
thank u :)


Em seg., 19 de out. de 2020 às 22:13, Jose C 
escreveu:

>
>
> On Monday, 19 October 2020 22:06:02 UTC+1, Ramos wrote:
>>
>> can someone help ? understant why this worked in python 2.7 and not python 
>> 3.6
>>
>>   File 
>> "/home/ramos/apps/fileit/web2py/applications/fileit/views/default/user.html",
>>  line 75
>> if 'HELP' in globals() and globals()['HELP']<>[]:
>>  ^
>> SyntaxError: invalid syntax
>>
>>
>
> The <> operator is deprecated in python3.  Use != instead.
>
> --
> 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/956703c4-e8f0-4c81-921d-df5aab5343dao%40googlegroups.com
> 
> .
>

-- 
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/CAEM0BxPEtjuuOMxJPkWSG4bfcYA-V_cai4zXe%2B6%2BB9r0r0Szsw%40mail.gmail.com.


[web2py] Re: python3 sintax

2020-10-19 Thread Jose C


On Monday, 19 October 2020 22:06:02 UTC+1, Ramos wrote:
>
> can someone help ? understant why this worked in python 2.7 and not python 
> 3.6   
>
>   File 
> "/home/ramos/apps/fileit/web2py/applications/fileit/views/default/user.html", 
> line 75
> if 'HELP' in globals() and globals()['HELP']<>[]:
>  ^
> SyntaxError: invalid syntax
>
>

The <> operator is deprecated in python3.  Use != instead. 

-- 
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/956703c4-e8f0-4c81-921d-df5aab5343dao%40googlegroups.com.