from datetime import date
from datetime import timedelta
a = date.today() - timedelta(1)
# a above is a tuple and not datetime
# Since I am a C programmer, I would expect python to cast back to datetime
# but it is casting it to a tuple
Can you please tell me why this is happening? and also how I can see that the operation above results in a datetime?
I am a python newbie, sorry if this is a trivial thing, but I am stuck here for a while!
Thanks