% sign in python?

Steven Howe howe.steven at gmail.com
Thu Jul 17 16:04:16 EDT 2008


Terry Reedy wrote:
>
>
> korean_dave wrote:
>> What does this operator do? Specifically in this context
>>
>> test.log( "[[Log level %d: %s]]" % ( level, msg ), description )
>>
>> (Tried googling and searching, but the "%" gets interpreted as an
>> operation and distorts the search results)
>
> Having seen a number of comments like this over the years (about the 
> difficulty of searching for symbol meanings), I just started, last 
> night, a symbol index listing nearly all Python syntax uses of 
> non-alpha-or-digit ascii symbols.  When I finish and upload it 
> somewhere, I will post an announcement with the link.
>
> tjr
>
> -- 
> http://mail.python.org/mailman/listinfo/python-list
>
I thought, in this contexted, it was  mapping operator.
sph



More information about the Python-list mailing list