[ZPT] floor div "//" not supported?

Tino Wildenhain tino at wildenhain.de
Fri Mar 19 14:10:51 EST 2004


Hi Marc

Marc Lindahl wrote:
> 
> On Friday, March 19, 2004, at 07:34  AM, Tino Wildenhain wrote:
> 
>> Hi Marc,
>>
>> Marc Lindahl schrieb:
>>
>>> I guess the floor division operator is not supported in TALES? (//) 
>>> or am I doing something wrong?
>>
>>
>> In Tales? How is tales related to python expressions?
>> The python expression name space should of
>> course work.
> 
> 
> that's where it didn't work...
> 
>>  Does it work in python scripts?
> 
> 
> nope....
> 
>   Script line 14
>     x = input // 1024
>                ^
> SyntaxError: invalid syntax
> 
> (actually pointing to the second slash)
> 

Here. zope2.7, python2.3.3 it works.
Maybe you are trying it with the wrong python
version?

Regards
Tino Wildenhain




More information about the ZPT mailing list