Doing the "right thing" with timezones on Linux (patch)

Samuel A. Falvo II kc5tja at bigfoot.com
Mon Apr 5 15:38:05 EDT 1999


Jonathan Giddy wrote in message <7dp9tm$hv2$1 at towncrier.cc.monash.edu.au>...
>Guido van Rossum <guido at CNRI.Reston.VA.US> writes:
>
>I'm not sure whether it actually affects the code itself, but the comment
>#else /* !HAVE_TZNAME && !__GNU_LIBRARY__ */
>is actually:
>#else /* !HAVE_TZNAME || __GNU_LIBRARY__ */


Incorrect -- it should be:

#else /* !( HAVE_TZNAME || __GNU_LIBRARY__ ) */

Note the order of operations.  Unary ! has higher precedence than || in C.

Just thought I'd mention this... :)







More information about the Python-list mailing list