I prefer design 1. We don't know anything about the algorithms that you have in mind, so there is no obvious benefit for introducing the classes Search and Edit. With design 1, the Library object appears as a facade behind which you can implement arbitrary complex and flexible algorithms.
Also I don't think it's a good idea to use nested classes in general. There is no gain in nesting classes and they will be more accessible if you implement them linearly at module level.
Gribouillis 1,391 Programming Explorer Team Colleague
Gribouillis 1,391 Programming Explorer Team Colleague
lllllIllIlllI commented: Thanks +2
lllllIllIlllI commented: Nice :) +2
chavanak commented: One person whom I was able to rely on!! +0
Gribouillis 1,391 Programming Explorer Team Colleague
Gribouillis 1,391 Programming Explorer Team Colleague
gdr969 commented: helped with resolving problem +0
kiddo39 commented: Thanks! +1
A_Dubbs commented: Good help, very knowledgeable +1
Gribouillis 1,391 Programming Explorer Team Colleague
scru commented: obviously +4
Gribouillis 1,391 Programming Explorer Team Colleague
Gribouillis 1,391 Programming Explorer Team Colleague
pythonuser18 commented: Thanks a million! +0
Gribouillis 1,391 Programming Explorer Team Colleague
Dixtosa commented: thx +0