You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Yi-Sheng Lien (Jira)" <ji...@apache.org> on 2023/07/10 13:41:00 UTC
[jira] [Assigned] (KAFKA-15155) Follow PEP 8 best practice in Python to check if a container is empty
[ https://issues.apache.org/jira/browse/KAFKA-15155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yi-Sheng Lien reassigned KAFKA-15155:
-------------------------------------
Assignee: Yi-Sheng Lien
> Follow PEP 8 best practice in Python to check if a container is empty
> ---------------------------------------------------------------------
>
> Key: KAFKA-15155
> URL: https://issues.apache.org/jira/browse/KAFKA-15155
> Project: Kafka
> Issue Type: Improvement
> Reporter: Divij Vaidya
> Assignee: Yi-Sheng Lien
> Priority: Trivial
> Labels: newbie
> Fix For: 3.6.0
>
>
> *This is a good task for first time contributors to Kafka*
> At release.py Line:94 and at Line:60, we don't follow PEP 8 [1] best practices.
> To check if a container or sequence (string, list, tuple) is empty, use if not val. Do not compare its length using if len(val) == 0
> [1] [https://peps.python.org/pep-0008/#programming-recommendations#:~:text=if%20not%20seq]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)