Skip to content

Platform notes

These notes describe runtime support and limitations.

Python limitations

PyICU 2.16 has three binding limitations, also documented in the Python README:

  • week_info() omits the weekend days. PyICU doesn't bind ICU's getDayOfWeekType / isWeekend, and the no-hardcoded-data rule forbids a fallback table — so it returns first_day + minimal_days only.
  • relative_duration(numeric="auto") returns the numeric form ("1 day ago", not "yesterday") — PyICU doesn't cleanly expose ICU's "auto" word-forms. The numeric="auto" option therefore has no effect.
  • supported_values() covers timeZone/collation/numberingSystem/unit/transliterator but not currency/calendar.

Locale data

Cosmo reads locale data from ICU instead of maintaining hardcoded tables. Data updates follow the runtime or bundled ICU version. Updating Cosmo alone does not necessarily update locale data.