Re: None

jredford@lehman.com
Fri, 10 Dec 93 15:29:07 -0500

I wasnt going to get into this, bit it seems like another
opprotununity to bring up the topic of 'conventions'.

>> > [...] Now I use 'ignore'
>> > (void is too much like C casting...), and to get the same effect:
>> >
>> > ignore = os.system('...')
>> > del ignore
>> >
>> > Of course, normally the ignore get's chucked when you reassign it or the
>> > name space gets deleted.

>> I think I'm going to start using '_' as my own personal symbol for "junk":
>>
>> _ = os.system( cmd )
>>
>> [ Or does that look TOO Perl-ish ? ]
>>
>> I might think that 'ignore' is the name of the function to eat junk I
>> want to skip! ( In fact, in this particular instance, that's just what
>> I was doing: )

So, with void, ignore, dummy, and _ at least being proposed...
I use void. It seemed sensible. I did not do a 'del' or assign None to
it, because I dont think it is worth dealing with. _ looks needlessly
cryptic, regardless of what other langauges use it.

"Obviously" Python either needs a convention on how to do this, or a
language construct to do it.

--
John Redford (AKA GArrow) | 3,600 hours of tape.
jredford@lehman.com       | 5 cans of Scotchguard.