12 from __future__
import print_function
15 VERSION =
'DSPython --- 00.03.03 --- 2012 June 25'
22 assert sys.version_info[:2] >= (2, 6), \
23 (
'DSPython require Python 2.6 or better (*work on Python 3*)', sys.version)
74 DS_mail =
'olivier_pirson_opi@yahoo.fr'
77 DS_web =
'http://www.opimedia.be/DS/'
86 """Renvoie True si n est un entier naturel (Integral >= 0) tenant sur 32 bits (< 2**32),
92 return isinstance(n, numbers.Integral)
and (4294967295 >= n >= 0)
97 """Renvoie True si n est un entier naturel (Integral >= 0),
103 return isinstance(n, numbers.Integral)
and (n >= 0)
110 if __name__ ==
'__main__':
112 """Test du paquetage"""
117 debug.test_begin(VERSION, __debug__, header=
'Package ')
119 print(
'DS_mail ==', repr(DS_mail)); sys.stdout.flush()
120 print(
'DS_web ==', repr(DS_web)); sys.stdout.flush()
124 print(
'nat32_is()...', end=
''); sys.stdout.flush()
143 print(
'ok'); sys.stdout.flush()
146 print(
'natural_is()...', end=
''); sys.stdout.flush()
163 print(
'ok'); sys.stdout.flush()