New submission from Mahmoud <sagh...@med.mui.ac.ir>: 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' ---------- messages: 89987 nosy: msaghaei severity: normal status: open title: No conversion specifier in the string, no __getitem__ method in the right hand value versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6396> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com