Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the purpose of "is not None" in the the transform.py idiom? #157

Open
ptgolden opened this issue Oct 30, 2024 · 0 comments
Open
Assignees

Comments

@ptgolden
Copy link
Member

The Koza documentation suggests iterating through rows in a transform by writing the code:

while (row := koza_app.get_row()) is not None:

What is the purpose of is not None here? get_row() never seems to return None, only the result of a source's reader. That return, as far as I can tell, is always Dict[str, Any] and never None. The is not None is not hurting anything, but seems unnecessary?

@ptgolden ptgolden self-assigned this Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant