This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients belopolsky, christian.heimes, gvanrossum, maltehelmert, pitrou, rbp
Date 2008-02-24.15:57:56
SpamBayes Score 0.0012168065
Marked as misclassified No
Message-id <1203868677.33.0.694092443187.issue1040026@psf.upfronthosting.co.za>
In-reply-to
Content
I don't *use* Windows except for some computer games. But I'm doing some
development for Python on Windows in a VMWare box. I'm going to check HZ
for you. Give me a couple of minutes to boot the image.

How do you like this idea. Since HZ is only used in posix_times it's
fine to cache it in a local static var.

static PyObject *
posix_times(PyObject *self, PyObject *noargs)
{
	static int hz = -1;
	struct tms t;
	clock_t c;

	if (hz == -1) {
		/* Py_HZ may call sysconf(), cache the value */
		hz = Py_HZ;
	}
	errno = 0;
	...
History
Date User Action Args
2008-02-24 15:57:57christian.heimessetspambayes_score: 0.00121681 -> 0.0012168065
recipients: + christian.heimes, gvanrossum, belopolsky, maltehelmert, pitrou, rbp
2008-02-24 15:57:57christian.heimessetspambayes_score: 0.00121681 -> 0.00121681
messageid: <1203868677.33.0.694092443187.issue1040026@psf.upfronthosting.co.za>
2008-02-24 15:57:56christian.heimeslinkissue1040026 messages
2008-02-24 15:57:56christian.heimescreate