calendar documentation omits `different_locale`.
import calendar
with calendar.different_locale(“de_DE”):
german_months = [calendar.month_name[i] for i in range(1, 13)]
# german_months now contains the German month names
calendar documentation omits `different_locale`.
import calendar
with calendar.different_locale(“de_DE”):
german_months = [calendar.month_name[i] for i in range(1, 13)]
# german_months now contains the German month names
It’s probably only meant as an internal helper, not for users outside of the library.
It’s an intentional omission, yes.
A