print("main.pb proto file") # the "proto-build-module" ############################################ def request(fcall,strMsg="",v=""): if v=="": return if not strMsg=="": print("ErrRequest:",fcall,": ",strMsg) return strMsg #def end request request("request(s,s,v)") ############################################ def clock_i(): print("This is clock.") #def end clock_i request("clock_i()") ############################################ def show(objName,obj,isShow): if not isShow: return if not isinstance(objName,str): print("Error S01 in show Name is not a str:",objname) if isinstance(obj, str) or isinstance(obj,list) or isinstance(obj,int)or isinstance(obj,bool): print(objName,":",obj,":") else: typeObj=type(obj) print("Error S02 in show obj is not a str, list, int nor bool:",objName,"type:",typeObj,"value:",obj) return #def end show request("show(s,s,B,v)") ############################################ request("showY(s,s,B,v)","does NOT exist.") ############################################ def getI(i): print("to enter N, type N letters, then hit Enter") print("(A letter means any character eg 'u').") chr="" i=len(input()) print("you entered N=",i) return i print("main.pb proto-build-module") isShow=True strName="D@CC" show("strName",strName,isShow) for k in range(15): print() print("choices follow (max:12):") #list of requests: print(1,'request()') print(2,'clock_i()') print(3,'show()') print(4,'request("showY(s,s,B,v)","does NOT exist.")()') print("Enter N to select program.") i=0 i=getI(i) if i==1: request() if i==2: clock_i() if i==3: show() if i==4: request("showY(s,s,B,v)","does NOT exist.")() #main.py (created by prepIX.py v01o04) # on 2023-05-18 T 12:57:12