MCPcopy Create free account
hub / github.com/dateutil/dateutil / __init__

Method __init__

src/dateutil/rrule.py:70–74  ·  view source on GitHub ↗
(self, wkday, n=None)

Source from the content-addressed store, hash-verified

68 This version of weekday does not allow n = 0.
69 """
70 def __init__(self, wkday, n=None):
71 if n == 0:
72 raise ValueError("Can't create weekday with n==0")
73
74 super(weekday, self).__init__(wkday, n)
75
76
77MO, TU, WE, TH, FR, SA, SU = weekdays = tuple(weekday(x) for x in range(7))

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected