For review: PEP 308 - If-then-else expression

Michael Hudson mwh at python.net
Sat Feb 8 13:10:34 EST 2003


Dale Strickland-Clark <dale at riverhall.NOTHANKS.co.uk> writes:

> Michael Hudson <mwh at python.net> wrote:
> 
> >Dale Strickland-Clark <dale at riverhall.NOTHANKS.co.uk> writes:
> >
> >> I am quite surprised at the number of people who have missed important
> >> points in this proposal and at the amount of prejudice against
> >> suggestions that have already appeared in other languages.
> >
> >I'm prejudiced against change, and proud of it.  Not to the extent of
> >opposing all change without consideration, but my default opinion of
> >any change is "no thanks" and the merits of any change have to
> >overcome that.
> 
> Then you are against language development. Why not just take your
> current download of Python and leave?

Because I'm interested in developemnt of the standard library or
optimizations of the VM, perhaps?

> >And then there's the fact that I really don't think this change is an
> >enhancement.
> 
> You have an odd understanding of enhancement, then.

In that I disagree with you?

> >    def get_arg(self, default=1):
> >        """Return any prefix argument that the user has supplied,
> >        returning `default' if there is None.  `default' defaults
> >        (groan) to 1."""
> >        if self.arg is None:
> >            return default
> >        else:
> >            return self.arg
> 
> Yuck! An pointless function that boils down to:
> 
> self.arg or default

No.  No points for spotting why, either.

> in current parlance. Or the same after the proposal. Not a good
> example. Are you paid by the code-line?

Of course not.

Cheers,
M.

-- 
  Also, remember to put the galaxy back when you've finished, or an
  angry mob of astronomers will come round and kneecap you with a
  small telescope for littering. 
       -- Simon Tatham, ucam.chat, from Owen Dunn's review of the year




More information about the Python-list mailing list