Message169300
| 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:22 | eallik | set | recipients:
+ eallik |
| 2012年08月28日 21:06:22 | eallik | set | messageid: <1346187982.17.0.733777939563.issue15801@psf.upfronthosting.co.za> |
| 2012年08月28日 21:06:21 | eallik | link | issue15801 messages |
| 2012年08月28日 21:06:21 | eallik | create |
|