On this page
  1. calendar.IllegalWeekdayError
  2. Import
  3. Signature & Overview
  4. Methods & Attributes
  5. Usage
  6. Gotchas
  7. REPL Inspect

calendar.IllegalWeekdayError

Prev: calendar.IllegalMonthError | Up: calendar | Next: calendar.isleap
Rel: calendar.calendar, calendar.Calendar, calendar.Day, calendar.firstweekday
Ref: docs.python.org โ€” calendar.IllegalWeekdayError
Tags: #public #python3 #stdlib #calendar


Import

import calendar
from calendar import IllegalWeekdayError

Signature & Overview

calendar.IllegalWeekdayError(weekday)

calendar.IllegalWeekdayError class.

Methods & Attributes

Usage

import calendar

try:
    calendar.setfirstweekday(9)
except calendar.IllegalWeekdayError:
    assert True

Gotchas

REPL Inspect

from calendar import IllegalWeekdayError
help(IllegalWeekdayError)

Linked from

Related notes