[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: rev 5762 - branches/cvs2svn-kfogel/tools/cvs2svn

From: Greg Stein <gstein_at_lyra.org>
Date: 2003-04-30 00:16:26 CEST

On Tue, Apr 29, 2003 at 04:22:20PM -0500, Karl Fogel wrote:
> Greg Stein <gstein@lyra.org> writes:
>...
> > I've never been clear why string.rjust exists. You can just do:
> >
> > self.dumpfile.write('%16d' % (length + props_len))
>
> That'd be simpler, will do. It's what I would have done in C... Maybe
> I instinctively avoided it in Python or something :-).

hehe... most likely, just unsure whether it works as you'd like. Before
posting, I actually double-checked the string.rjust() vs the % operator in
an interactive Python session.

Those interactive sessions are da bom... :-)

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 30 00:15:55 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.