From c7db85e5baf133a55adbd668dd9d963a4e73c6a8 Mon Sep 17 00:00:00 2001 From: Matthew Brett Date: Mon, 15 May 2017 16:11:48 +0100 Subject: RF: remove main clause Does not work, and shouldn't be there. --- numpy/core/getlimits.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'numpy/core/getlimits.py') diff --git a/numpy/core/getlimits.py b/numpy/core/getlimits.py index f74b45790..e450a660d 100644 --- a/numpy/core/getlimits.py +++ b/numpy/core/getlimits.py @@ -558,13 +558,3 @@ class iinfo(object): return "%s(min=%s, max=%s, dtype=%s)" % (self.__class__.__name__, self.min, self.max, self.dtype) -if __name__ == '__main__': - f = finfo(ntypes.single) - print('single epsilon:', f.eps) - print('single tiny:', f.tiny) - f = finfo(ntypes.float) - print('float epsilon:', f.eps) - print('float tiny:', f.tiny) - f = finfo(ntypes.longfloat) - print('longfloat epsilon:', f.eps) - print('longfloat tiny:', f.tiny) -- cgit v1.2.1