[Python-Dev] Where's time.daylight???

Guido van Rossum guido@python.org
Fri, 19 Jul 2002 15:10:30 -0400


> [Barry, in python-checkins]
> > I've noticed one breakage already I believe.  On my systems (RH6.1 and
> > RH7.3) time.daylight as disappeared.
> > 
> > I don't think test_time.py actually tests this parameter, but
> > test_email.py which is what's failing for me:
> [...]
> 
> Yup, time.daylight has disappeared.  But the bizarre thing is that if
> I roll back to rev. 1.129, it's *still* gone!  Even rev 1.128 still
> doesn't fix this.  I wonder if something in configure changed???

Alas, this is the effect of defining _XOPEN_SOURCE in configure.in.
This somehow has the effect of not defining these symbols in
pyconfig.h:

HAVE_STRUCT_TM_TM_ZONE
HAVE_TM_ZONE
HAVE_TZNAME

I'm going to remove the _XOPEN_SOURCE define; Jeremy and Martin can
try to figure out what the right thing is for Tru64.

--Guido van Rossum (home page: http://www.python.org/~guido/)