# this first def module can be "imported" by Python or requires() def show_v00(s1,s2,s3,s4): #by D@CC on 2023LDec24 #Purpose: to display (dump) the value of a variable if s4 : print("at",s1,",",s2+":",s3,":") #if end return None #def end show_v00(s1,s2,s3,s4) def show(s1,s2,s3,s4): return show_v00(s1,s2,s3,s4) #def end show(s1,s2,s3,s4) def requires_v00(inStr,vsn,prepIXreq,vsnList): if vsnList==[]: print("Error: requires- vsnList not produced by prepIX") return #if end if not prepIXreq=="import" : print("vsnList:",vsnList) #if end if len(vsnList)<3 : print(Error: in requires-vsnList too short from prepIX") #if end if not vsnList[2]=="ok" : print(Error: in requires-vsnList not ok by prepIX") #if end return #def end requires_v00() def Test_show_B_i() : # prepIX will remove all ## (double comments) # if the first prepIXreq = "import" isShow = True # enable the use of show for debugging prepIXreq="import" # "" to prepend or # "import" to import (non-verbose) #vsnList=[] # the unaugmented code before prepIX vsnList=["show","ok",0] #augmented by prepIX requires_v00("show(s1,s2,s3,s4)","v==0",prepIXreq,vsnList) p=38 # p is the current statement number: position firstName = "Henry" show(p+2,"firstName",firstName,isShow) return #def end Test_show_B_i.py if __name__ == "__main__" : Test_show_B_i() #if end # #Output: #at 40, firstName: Henry : #/Test_show_B_i.py # #***************************************************************** # (generated by prepIX as postpended comments) # ****LIST OF REQUIRED IX FUNCTION VERSIONS*********************** # Highest Loaded MD5 requires(parm1,parm2,parm3) # Vsn Avail. Vsn hash the call,vsnReq, prepRequest # ---- ---- ---- ----------------------------------- # v00 v00 None "show(s1,s2,s3,s4)","v==0","import" #*****************************************************************