<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
> > And I guess this is subjective: conversely, the API you're proposing<br>
> > doesn't feel Pythonic to me. :-) I'd like the hear the opinion of other<br>
> > python-dev readers.<br>
><br>
> I agree with Mark: the proposed median, median.low, etc., doesn't feel<br>
> right. Is there any example of doing this in the stdlib? I suggest just<br>
> median(), median_low(), etc.<br>
<br>
</div>I too prefer the median_low naming rather than median.low. I'm not<br>
sure I can articulate why, but certainly the fact that that latter<br>
isn't used anywhere else in the stdlib that I can think of is<br>
probably a lot of it :)<br>
<br>
Perhaps the underlying thought is that we don't use classes pure<br>
function namespaces: we expect classes to be something more than<br>
that.<br></blockquote><div><br></div><div>Certainly. Python does not force the "everything is a class" philosophy of Java and Ruby. Classes have their uses, but namespacing isn't it. There are modules for namespaces.<br>
<br>Eli<br><br></div><div><br><br> </div></div></div></div>