Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #10565 > unrolled thread

Re: Function "modes" vs. separate functions (was: PyWart: os.path needs immediate attention!)

Started byRustom Mody <rustompmody@gmail.com>
First post2011-07-30 07:45 +0530
Last post2011-07-30 12:56 +1000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  Re: Function "modes" vs. separate functions (was: PyWart: os.path needs immediate attention!) Rustom Mody <rustompmody@gmail.com> - 2011-07-30 07:45 +0530
    Re: Function "modes" vs. separate functions Ben Finney <ben+python@benfinney.id.au> - 2011-07-30 12:56 +1000

#10565 — Re: Function "modes" vs. separate functions (was: PyWart: os.path needs immediate attention!)

FromRustom Mody <rustompmody@gmail.com>
Date2011-07-30 07:45 +0530
SubjectRe: Function "modes" vs. separate functions (was: PyWart: os.path needs immediate attention!)
Message-ID<mailman.1648.1311992112.1164.python-list@python.org>
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?

[toc] | [next] | [standalone]


#10568 — Re: Function "modes" vs. separate functions

FromBen Finney <ben+python@benfinney.id.au>
Date2011-07-30 12:56 +1000
SubjectRe: Function "modes" vs. separate functions
Message-ID<87ipqkmq7h.fsf@benfinney.id.au>
In reply to#10565
Rustom Mody <rustompmody@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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web