What way is the best to check an empty list?
andrew at acooke.org
Wed Mar 25 22:48:07 CET 2009
Martin P. Hellwig wrote:
> Raymond Hettinger wrote:
>> On Mar 25, 7:38 am, srinivasan srinivas <sri_anna... at yahoo.co.in>
>>> if not A:
>> PEP 8 recommends the latter.
> I can't seem to find where this recommendation is mentioned or implied.
it's the next-to-last sub-item, just before the references.
More information about the Python-list