def _extend(M, sym):
 if (not sym):
  return ((M + 1), True)
 else:
  return (M, False)

def _extend ( M , sym ) : if ( not sym ) : return ( ( M + 1 ) , True ) else : return ( M , False )
extend window by 1 sample if needed for dft-even symmetry .