Amit Mendapara schrieb:
 > Again, I'm too, agree with Arner. Try to follow Python conventions as
 > much as possible.
 >
 > startsWith => startswith
 > endsWith => endswith

By the way, one (new) useful feature of Python's startswith is that you 
can also pass a tuple of substrings (prefixes) instead of only one. So 
maybe you can accept arrays as well. And I would also make the actual 
string the first argument (kind of "self"). Then you can also easily add 
more parameters (like optional start and end index for the search etc.).

-- Christoph

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to