Re: Assigning 'nochage' to a variable.

2005-09-07 Thread Terry Hancock
On Sunday 04 September 2005 06:34 pm, Terry Reedy wrote: resembling the 'Z'-state of a electronic tri-state output? Not familiar with that. Tri-state logic gate outputs can do one of three things: 1) They can drive the voltage to 0.0 0 2) They can drive the voltage to VCC 1 3) They can

Re: Assigning 'nochage' to a variable.

2005-09-05 Thread [EMAIL PROTECTED]
Thanks for the suggestions, although I'll probably continue to use: var1 = 17 var1 = func1(var1) print var1 and have func1 return the input value if no change is required. It's *almost* as nice as if there was a Nochange value available.. BR /CF --

Re: Assigning 'nochage' to a variable.

2005-09-05 Thread [EMAIL PROTECTED]
Oh, right I see you also thought of that. (Sorry, didnt read your entire mail.) -- http://mail.python.org/mailman/listinfo/python-list

Re: Assigning 'nochage' to a variable.

2005-09-05 Thread Bengt Richter
On 5 Sep 2005 02:19:05 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks for the suggestions, although I'll probably continue to use: var1 = 17 var1 = func1(var1) print var1 and have func1 return the input value if no change is required. It's *almost* as nice as if there was a

Assigning 'nochage' to a variable.

2005-09-04 Thread [EMAIL PROTECTED]
Has anyone else felt a desire for a 'nochange' value resembling the 'Z'-state of a electronic tri-state output? var1 = 17 var1 = func1() # func1() returns 'nochange' this time print var1 # prints 17 It would be equivalent to: var1 = 17 var2, bool1 = func1() if bool1: var1 =

Re: Assigning 'nochage' to a variable.

2005-09-04 Thread Terry Reedy
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Has anyone else felt a desire for a 'nochange' value No. resembling the 'Z'-state of a electronic tri-state output? Not familiar with that. var1 = 17 var1 = func1() # func1() returns 'nochange' this time