On Thursday, May 22, 2014 10:52:02 AM UTC-4, Maurice Waka wrote:
>
> I dont understand, which file....am also using python2.7...so the print is 
> not :print(mesage...')
>

In Python 2.x, "print" is a statement, not a function. When you do:

print(message)

it looks like you're calling a function, but I believe it's just an 
expression wrapped in parentheses (which simply returns the expression) put 
next to the print statement with no space in between. It is equivalent to:

print message

If you want to use the actual print() function from Python 3, you can do:

from __future__ import print_function

In any case, you won't be using the print function in web2py views (print 
is for sending output to a file stream or the console).

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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to