Why return None?
Paul Rubin
http
Thu Aug 26 03:27:37 EDT 2004
Peter Hansen <peter at engcorp.com> writes:
> > instance, I can't say move(Vector([a,b,c]).normalize()), I have to do
> > a = Vector([a,b,c])
> > a.normalize()
> > move(a)
>
> By the way, the second version is much more readable than the first,
That's a matter of opinion. The lines are shorter but there are three
times as many of them. I think programmers ought to be able to make
their own choices about this. There are a lot of different styles
that are equally legitimate.
More information about the Python-list
mailing list