ash16 / TYTS

0 stars 1 forks source link

Don't Use "len(SEQUENCE)" to Determine If a Sequence Is Empty #25

Open ShenxiuWu opened 5 years ago

ShenxiuWu commented 5 years ago

https://github.com/ash16/TYTS/blob/c13ea69e5337df93cd12c7e8b882b7c2734511ba/test_pyqt.py#L22-L24

Do not use “len(SEQUENCE)” to determine if a sequence is empty. Instead of comparing the length to 0, rely on the fact that empty sequences are false.