Danek Duvall wrote:
Brock Pytlik wrote:
I basically see three options:
1) keep things the way they are
2) keep the function arguments the same but do a issubclass/isinstance
check and use a different branch depending on the results
3) have the function take two optional arguments and iterate over both
I don't have strong feelings about the way to go here. So, if someone
feels strongly, please speak up. If not, I'll probably go with 2.
If I were writing the code, I'd definitely choose door #2. I agree with
you on #3.
My problem with issubclass/isinstance is that they are rather expensive
for frequently called functions. A benchmark would be nice.
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss