This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eallik
Recipients eallik
Date 2012-08-28.21:06:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1346187982.17.0.733777939563.issue15801@psf.upfronthosting.co.za>
In-reply-to
Content
>>> class Foo(object):
...     pass
... 
>>> "asdads" % Foo()
'asdads'


Doesn't look like it's supposed to be this way.

As per the documentation:

"If format requires a single argument, values may be a single non-tuple object. [5] Otherwise, values must be a tuple with exactly the number of items specified by the format string, or a single mapping object (for example, a dictionary)."

Tested and confirmed on 2.5, 2.6, 2.7 (both old and new style classes) and 3.2.
History
Date User Action Args
2012-08-28 21:06:22ealliksetrecipients: + eallik
2012-08-28 21:06:22ealliksetmessageid: <1346187982.17.0.733777939563.issue15801@psf.upfronthosting.co.za>
2012-08-28 21:06:21ealliklinkissue15801 messages
2012-08-28 21:06:21eallikcreate