Skip to content
New issue

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

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

Already on GitHub? # to your account

Add readlines() check #22

Merged
merged 1 commit into from
Sep 30, 2022
Merged

Add readlines() check #22

merged 1 commit into from
Sep 30, 2022

Conversation

dosisod
Copy link
Owner

@dosisod dosisod commented Sep 30, 2022

You don't have to specify readlines() to iterate over a file object, you can simply iterate over the file object itself. This only applies if there is no argument to readlines().

See: https://docs.python.org/3/tutorial/inputoutput.html#methods-of-file-objects

You don't have to specify `readlines()` to iterate over a file object,
you can simply iterate over the file object itself. This only applies
if there is no argument to `readlines()`.

See: https://docs.python.org/3/tutorial/inputoutput.html#methods-of-file-objects
@dosisod dosisod self-assigned this Sep 30, 2022
@dosisod dosisod merged commit 66e6874 into master Sep 30, 2022
@dosisod dosisod deleted the readline-check branch September 30, 2022 01:26
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant