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

for line in filename #10

Open
Jelleas opened this issue Nov 2, 2020 · 0 comments
Open

for line in filename #10

Jelleas opened this issue Nov 2, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@Jelleas
Copy link
Contributor

Jelleas commented Nov 2, 2020

Enorm gekke constructie, maar ik zie hem nu bij een redelijk aantal inzendingen:

with open(filename) as f:
     for line in filename:
           line = f.readline()

En shit, het werkt ook, want alle datastukken uit TinyAdv.dat en SmallAdv.dat zijn korter dan de filename lang is. Kunnen we net 1 of 2 kamers toevoegen zodat de checks toch falen? :)

@Jelleas Jelleas added the enhancement New feature or request label Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant