conditionally creating functions within a class?

kaens apatheticagnostic at gmail.com
Sat May 26 15:00:48 EDT 2007


On 5/26/07, Steve Holden <steve at holdenweb.com> wrote:

> I have taken the liberty of copying this back to the list, since other
> people may have stringer opinions than I on your approach.
>
> Frankly, I wouldn't worry about the "expense" of declaring two classes.
> If you need SQL-handling and XML-handling code then just declare two
> classes (with inheritance from a common class if that makes sense) and
> stop worrying about cost. It really doesn't make sense to try and fiddle
> the class methods to accommodate the needs of a single instance.
>
> "Premature optimization is the root of all evil".
>
> regards
>   Steve
>
> PS: Many people prefer it when newsgroup conversations read linearly,
> with the most recent contributions at the bottom. That way a reader can
> easily "pick up the story".
>
>
>

Thanks, I've been reading this list in gmail, and occasionally I'll
forget to hit the "reply to all" button, and instead jut hit "reply",
which always makes me think of just using a freaking news-reader
instead.



More information about the Python-list mailing list