Author msaghaei
Recipients msaghaei
Date 2009-07-01.16:14:04
SpamBayes Score 2.95347e-05
Marked as misclassified No
Message-id <1246464847.52.0.736883285817.issue6396@psf.upfronthosting.co.za>
In-reply-to
Content
When using a class instance as a mapping for the right hand value in a
sting format expression without conversion specifier, it seems logical
that the class has a __getitem__ method. Therefore following format
expression should raise an exception.

>>> class AClass(object):
...   pass
... 
>>> c = AClass()
>>> "a string with no conversion specifier" % c
'a string with no conversion specifier'
History
Date User Action Args
2009-07-01 16:14:07msaghaeisetrecipients: + msaghaei
2009-07-01 16:14:07msaghaeisetmessageid: <1246464847.52.0.736883285817.issue6396@psf.upfronthosting.co.za>
2009-07-01 16:14:04msaghaeilinkissue6396 messages
2009-07-01 16:14:04msaghaeicreate