While stack:

MRAB python at mrabarnett.plus.com
Fri Jun 1 15:08:47 EDT 2012


On 01/06/2012 18:59, David Shi wrote:
> Can any one clarify what "while stack:" mean?
>
By convention, an empty container is considered false and a non-empty
container true in Boolean tests.

Therefore, assuming that "stack" is a container, it means "while the
stack isn't empty".



More information about the Python-list mailing list