@@ -393,13 +393,22 @@ The :mod:`calendar` module exports the following data attributes:
393
393
394
394
.. data :: day_name
395
395
396
- An array that represents the days of the week in the current locale.
396
+ A sequence that represents the days of the week in the current locale,
397
+ where Monday is day number 0.
398
+
399
+ >>> import calendar
400
+ >>> list (calendar.day_name)
401
+ ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']
397
402
398
403
399
404
.. data :: day_abbr
400
405
401
- An array that represents the abbreviated days of the week in the current locale.
406
+ A sequence that represents the abbreviated days of the week in the current locale,
407
+ where Mon is day number 0.
402
408
409
+ >>> import calendar
410
+ >>> list (calendar.day_abbr)
411
+ ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
403
412
404
413
.. data :: MONDAY
405
414
TUESDAY
@@ -426,17 +435,24 @@ The :mod:`calendar` module exports the following data attributes:
426
435
427
436
.. data :: month_name
428
437
429
- An array that represents the months of the year in the current locale. This
438
+ A sequence that represents the months of the year in the current locale. This
430
439
follows normal convention of January being month number 1, so it has a length of
431
440
13 and ``month_name[0] `` is the empty string.
432
441
442
+ >>> import calendar
443
+ >>> list (calendar.month_name)
444
+ ['', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
445
+
433
446
434
447
.. data :: month_abbr
435
448
436
- An array that represents the abbreviated months of the year in the current
449
+ A sequence that represents the abbreviated months of the year in the current
437
450
locale. This follows normal convention of January being month number 1, so it
438
451
has a length of 13 and ``month_abbr[0] `` is the empty string.
439
452
453
+ >>> import calendar
454
+ >>> list (calendar.month_abbr)
455
+ ['', 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
440
456
441
457
.. data :: JANUARY
442
458
FEBRUARY
0 commit comments