Function "modes" vs. separate functions

Ben Finney ben+python at benfinney.id.au
Fri Jul 29 22:56:18 EDT 2011


Rustom Mody <rustompmody at gmail.com> writes:

> Ben Finney said:
> > But this is all getting rather generic and abstract. What specific
> > real-world examples do you have in mind?
>
> regex match vs regex search?

That's not showing a real-world example. Where is the code which is
prone to “lots of shared code but can't refactor it to a common
function”?

-- 
 \        “I fly Air Bizarre. You buy a combination one-way round-trip |
  `\    ticket. Leave any Monday, and they bring you back the previous |
_o__)     Friday. That way you still have the weekend.” —Steven Wright |
Ben Finney



More information about the Python-list mailing list