Kyle McMartin added the comment:

Hacky patch at adding support for querying these values from nl_langinfo, and a 
new exported function from the locale module to return a guess at the first day 
of the week appropriate for Calendar.firstdayofweek

After writing this, I think it might be better to implement this as another 
hash, so keys can be queried and objects directly returned. I'll take a look at 
that approach soon.

Of course, all this is contingent on having support from libc, and it seems 
only Linux currently has this, and the *BSDs (and hence OS X via FreeBSD) do 
not. I'll look into that as well.

----------
keywords: +patch
nosy: +jkkm
Added file: http://bugs.python.org/file29819/cpython-add-first-day-of-week.diff

_______________________________________
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