Pre-PEP: Refusing to guess in string formatting operations
cben at techunix.technion.ac.il
Mon Mar 17 11:25:35 CET 2003
In article <mailman.1047489020.2461.python-list at python.org>, Jp Calderone wrote:
>On Wed, Mar 12, 2003 at 02:58:40PM +0000, Michael Hudson wrote:
> > Jp Calderone <exarkun at intarweb.us> writes:
> > > In retrospect, I would rather have the method named __mod__. It is the
> > > only thing that -really- makes sense, and it clears up two related warts:
> > > using the % operator on strings calls no function reachable from Python, and
> > > subclasses of str cannot override the % behavior.
> > This is fixed in 2.3, I'm fairly sure.
> Well, that's a pleasant surprise. I guess a PEP wasn't needed after all.
Hehe, I still have that half of the PEP on my HD, which I wrote before
installing 2.3 just to make sure I won't make a fool of myself :-).
Beni Cherniavsky <cben at tx.technion.ac.il>
More information about the Python-list