Oops you are right. You have to go with

META(**{'_http-equiv':'content-type','_content':'text/
html','_charset':'utf-8'})

then

On Mar 24, 12:51 pm, DenesL <[email protected]> wrote:
> On Mar 24, 9:10 am, mdipierro <[email protected]> wrote:
>
> > META(_charset='utf-8')
>
> True
>
> but
>
> > META(_http-equiv='content-type',_content='text/html',_charset='utf-8')
>
> causes a SyntaxError: keyword can't be an expression...
> since it interprets the dash as a minus sign.
>
> _http-equiv is not a valid Python identifier because of the dash and
> it can not be used as a keyword.
>
> Identifiers and keywords have the following lexical definition:
> (letter|"_")(letter|digit|"_")*
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to