@@ -493,51 +493,63 @@ The :mod:`calendar` module exports the following data attributes:
493493
494494.. data :: month_name
495495
496- A sequence that represents the months of the year in the current locale
497- in the grammatical form used when the month is part of a complete date.
496+ A sequence that represents the months of the year in the current locale.
498497 This follows normal convention of January being month number 1, so it has
499498 a length of 13 and ``month_name[0] `` is the empty string.
500499
501500 >>> import calendar
502501 >>> list (calendar.month_name)
503502 ['', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
504503
504+ .. caution ::
505+
506+ In locales with alternative forms of month names, the :data: `month_name ` sequence
507+ may not be suitable when a month name stands by itself and not as part of a date.
508+ For instance, in Greek and in many Slavic and Baltic languages, :data: `month_name `
509+ will produce the month in genitive case. Use :data: `standalone_month_name ` for a form
510+ suitable for standalone use.
511+
505512
506513.. data :: month_abbr
507514
508515 A sequence that represents the abbreviated months of the year in the current
509- locale in the grammatical form used when the month is part of a complete date.
510- This follows normal convention of January being month number 1, so it has
511- a length of 13 and ``month_abbr[0] `` is the empty string.
516+ locale. This follows normal convention of January being month number 1, so
517+ it has a length of 13 and ``month_abbr[0] `` is the empty string.
512518
513519 >>> import calendar
514520 >>> list (calendar.month_abbr)
515521 ['', 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
516522
523+ .. caution ::
524+
525+ In locales with alternative forms of month names, the :data: `month_abbr ` sequence
526+ may not be suitable when a month name stands by itself and not as part of a date.
527+ Use :data: `standalone_month_abbr ` for a form suitable for standalone use.
528+
517529
518- .. data :: alt_month_name
530+ .. data :: standalone_month_name
519531
520532 A sequence that represents the months of the year in the current locale
521- in the grammatical form used when the month is named by itself if the locale
522- provides one. If the locale does not supply an alternative form, it falls back
523- to the behavior of :data: `month_name `.
533+ in the grammatical form used when a month name stands by itself if the locale
534+ provides one. If the locale does not supply an alternative form, it is equal to
535+ :data: `month_name `.
524536
525537 >>> import calendar
526- >>> list (calendar.alt_month_name )
538+ >>> list (calendar.standalone_month_name )
527539 ['', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
528540
529541 .. versionadded :: next
530542
531543
532- .. data :: alt_month_abbr
544+ .. data :: standalone_month_abbr
533545
534546 A sequence that represents the abbreviated months of the year in the current
535- locale in the grammatical form used when the month is named by itself if the
536- locale provides one. If the locale does not supply an alternative form, it falls
537- back to the behavior of :data: `month_abbr `.
547+ locale in the grammatical form used when a month name stands by itself if the
548+ locale provides one. If the locale does not supply an alternative form, it is equal to
549+ :data: `month_abbr `.
538550
539551 >>> import calendar
540- >>> list (calendar.alt_month_abbr )
552+ >>> list (calendar.standalone_month_abbr )
541553 ['', 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
542554
543555 .. versionadded :: next
0 commit comments