Calendar documentation omits different_locale

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.

3 Likes

It’s an intentional omission, yes.

A

2 Likes