[Tutor] question about glob.glob() implementation
D-Man
dsh8290@rit.edu
Fri, 16 Feb 2001 10:44:02 -0500
On Fri, Feb 16, 2001 at 01:19:31AM -0700, Bruce Sass wrote:
| On Thu, 15 Feb 2001, Sean 'Shaleh' Perry wrote:
[snip]
|
| b d action
| - - ------
| 0 0 skip
| 0 1 do
| 1 0 do
| 1 1 do
|
| Since it can't be simplified, both terms are necessary.
|
Couldn't it be reduced to
if (not b) and (not d) :
skip
else :
do
or
if b or d :
do
else :
skip
?
I don't know if that would make any improvement, but ...
-D