[issue21731] Calendar Problem with Windows (XP)

2021-12-06 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> locale.py resetlocale throws exception on Windows (getdefaultlocale returns value not usable in setlocale) ___ Python tracker

[issue21731] Calendar Problem with Windows (XP)

2014-06-12 Thread Jürgen B
(_locale.LC_TIME, self.oldlocale) #juebo _locale.setlocale(_locale.LC_TIME, '') Well, I am absolute new to Python. So could anybody look over it -- components: Library (Lib) messages: 220341 nosy: Juebo priority: normal severity: normal status: open title: Calendar Problem with Windows (XP) type

[issue21731] Calendar Problem with Windows (XP)

2014-06-12 Thread R. David Murray
R. David Murray added the comment: The code is mostly correct as it exists in the calendar module. You are running into issue 10466. Per my comment in that issue, it may be possible to put a workaround into the calendar module, but your suggestion isn't it, since your code would leave the

[issue21731] Calendar Problem with Windows (XP)

2014-06-12 Thread Jürgen B
Jürgen B added the comment: Yes, Issue 10466 seems to be the same problem. One could fix this one instance higher, not necessarily in Calendar.py. As I said, I have no idea about Python (not yet). You could code this and I would test it. -- ___

Re: Calendar Problem

2009-11-04 Thread Carsten Haese
Victor Subervi wrote: That's what I initially had. My server, that I am in the process of leaving, rejected that syntax. What version of Python does that server use? The calendar.Calendar class first appeared in Python 2.5. I suspect your server is using an older version. -- Carsten Haese

Calendar Problem

2009-11-03 Thread Victor Subervi
Hi; I have the following: import calendar, datetime myCal = calendar.calendar(6) today = datetime.date.today() day = today.day mo = today.month yr = today.year month = myCal.monthdayscalendar(yr, mo) The last line throws errors no matter how I try and tweak it. The current incarnation complains

Re: Calendar Problem

2009-11-03 Thread Dave Angel
MichaB Klich wrote: Dnia wtorek 03 listopada 2009 o 20:50:10 Victor Subervi napisał(a): Hi; I have the following: import calendar, datetime myCal =alendar.calendar(6) today =atetime.date.today() day =oday.day mo =oday.month yr =oday.year month =yCal.monthdayscalendar(yr, mo) The last