I recently attempted to subclass the datetime.date object resulting in
horror and confusion, before submitting to a has-a relationship.
That's all fine and dandy, but out of curiosity I'd like to know what
I was attempting to allow more flexible instancing of an object, like
if len(kw) + len(args) > 1:
today = datetime.date.today()
if m is None:
m = today.month
if y is None:
y = today.year
However, it wasn't having the desired effect. Indeed, I could still
only instance it with 3 variables lest I get errors, and when I did
call it with 3 variables it didn't reflect the order change I had
implemented. Indeed, the properties were already set before it even
got to the construct method.
Is there some kind of built in I'm missing here?