python3 sintax

35 views
Skip to first unread message

António Ramos

unread,
Oct 19, 2020, 5:06:02 PM10/19/20
to web...@googlegroups.com
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

Jose C

unread,
Oct 19, 2020, 5:13:04 PM10/19/20
to web2py-users
The <> operator is deprecated in python3.  Use != instead.

António Ramos

unread,
Oct 19, 2020, 5:43:37 PM10/19/20
to web...@googlegroups.com
thank u :)


--
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/956703c4-e8f0-4c81-921d-df5aab5343dao%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages