Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by mambelli

  1. mambelli

    Static variables in Python?

    Here is an alternative using a variable local to the function: def prtlines(line, isfirst = [ True ]): if isfirst[0]: # do something first time function is called isfirst = [ False ] # rest of function Call the function using: prtlines(line) If you want to reset and...

Part and Inventory Search

Back
Top