On Wed, Dec 17, 2008 at 5:11 PM, Arnar Birgisson <[email protected]> wrote: > One comment about startsWith, endsWith, contains etc.. currently they > take first the haystack and then the needle (I'm talking about > parameter order). Perhaps switching this could benefit the usecase > where this is used with partial? > > my_namesakes = filter(partial(contains, 'Arnar'), list_of_names);
This is a good point. I think I'll change my ways. Watch out for the next commit... :-) > The module should define constants like ascii_chars, digits etc. as > per http://www.python.org/doc/2.3/lib/module-string.html -- also > split, join (although they are included in js as native methods - > having functions can be convenient for map & friends). That might be an idea. With the same "reversed" parameter order as the ones above of course. > For padRight and padLeft - I prefer the Python names ljust, rjust (and > center). Ah, well... I didn't look too hard into Python here. Just googled various name ideas and picked the most popular one (think it was from some MS API actually)... ;-) Cheers, /Per --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---
