Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Closed
Description
Feature or enhancement
In Python 3.13 we added colour output to the new REPL, tracebacks and doctest, and in 3.14 to unittest andtest.regrtest, which can also be controlled with thePYTHON_COLORS,NO_COLOR andFORCE_COLOR environment variables:
- https://docs.python.org/3.14/whatsnew/3.14.html#unittest
- https://docs.python.org/3.14/using/cmdline.html#using-on-controlling-color
On macOS, thecal utility does something similar, but highlights today.
The calendar module has a CLI to print out a calendar to the terminal, but with no highlighting. Let's add it.
Linked PRs
- gh-128317: Highlight today in colour in calendar CLI output #128318
- gh-128317: Document
calendar.TextCalendar.formatweek#128353 - [3.13] gh-128317: Document
calendar.TextCalendar.formatweek(GH-128353) #128357 - [3.12] gh-128317: Document
calendar.TextCalendar.formatweek(GH-128353) #128358 - gh-128317: Move CLI calendar highlighting to private class #129625