Izidor Matušov added the comment:

Yes, I need to find out calendar-week-start-day information based on the 
current locale.

Or in the other words, I need to find out what the correct parameter for 
calendar.Calendar([firstweekday]) object is. With locale en_US it should be 
Sunday, with locale sk_SK it should be Monday, and so on.

I guess it could be find out from LC_TIME locale.

There is already API for such small bits of information:

<documentation>
locale.localeconv()
Returns the database of the local conventions as a dictionary. This dictionary 
has the following strings as keys:
</documentation>

However, there is no category for LC_TIME so far.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17659>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to