Author belopolsky
Recipients agthorr, belopolsky, christian.heimes, gregory.p.smith, mark.dickinson, pitrou, ronaldoussoren, steven.daprano, stutzbach, tshepang, vajrasky
Date 2013-08-05.18:38:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAP7h-xY7EWPn0GBgpK0bs=Y304v-4=Cyovt=FpcfMJSnxAV9QQ@mail.gmail.com>
In-reply-to <51FFEB73.7060803@pearwood.info>
Content
On Mon, Aug 5, 2013 at 2:14 PM, Steven D'Aprano <report@bugs.python.org>wrote:

> > As you say, there's no state to be stored.  So why not simply have
> separate functions `median`, `median_low`, `median_high`, `median_grouped`,
> etc.?
>
> Why have a pseudo-namespace median_* when we could have a real namespace
> median.* ?

I am with Steven on this one.  Note that these functions are expected to be
used interactively and with standard US keyboards "." is much easier to
type than "_".

My only objection is to having a class xyz such that isinstance(xyz(..),
xyz) is false.  While this works with CPython, it may present problems for
other implementations.
History
Date User Action Args
2013-08-05 18:38:31belopolskysetrecipients: + belopolsky, gregory.p.smith, ronaldoussoren, mark.dickinson, pitrou, agthorr, christian.heimes, stutzbach, steven.daprano, tshepang, vajrasky
2013-08-05 18:38:31belopolskylinkissue18606 messages
2013-08-05 18:38:31belopolskycreate