(self)
return self.toordinal() % 7 or 7
Return day of the week, where Monday == 1 ... Sunday == 7.
Return day of the week, where Monday == 1 ... Sunday == 7.
Return day of the week where Monday == 1 ... Sunday == 7 .
def isoweekday(self):
        "Return day of the week, where Monday == 1 ... Sunday == 7."
        # 1-Jan-0001 is a Monday
        return self.toordinal() % 7 or 7
def isoweekday ( self ) : # 1-Jan-0001 is a Monday return self . toordinal ( ) % 7 or 7