8000 Update iters.md by debdutgoswami · Pull Request #12 · Akuli/python-tutorial · GitHub
[go: up one dir, main page]

Skip to content

Update iters.md #12

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

Merged
merged 2 commits into from
Oct 15, 2019
Merged

Update iters.md #12

merged 2 commits into from
Oct 15, 2019

Conversation

debdutgoswami
Copy link
Contributor

Update NEW function added

I have added a new application of the iter() function. I have shown how we can check if an object in python is iterable or not.

Regards,
Debdut Goswami

I have added a new application of the iter() function. I have shown how we can check if an object in python is iterable or not.
@Akuli
Copy link
Owner
Akuli commented Oct 14, 2019

This looks quite nice. Can you put the new section before the generators section, and use except TypeError: instead of plain except: ?

@Akuli
Copy link
Owner
Akuli commented Oct 14, 2019

There are actually some funny special cases when this doesn't quite work right. Tkinter widgets are one example of this. It's very unlikely that anyone will actually run into this though, and not even worth mentioning IMO.

@debdutgoswami
Copy link
Contributor Author

No I mean sometimes for various user-defined objects, checking of these might be helpful. Anyway, I am gonna make the changes you proposed.

@debdutgoswami
Copy link
Contributor Author

done

@Akuli Akuli merged commit 865f136 into Akuli:master Oct 15, 2019
@debdutgoswami debdutgoswami deleted the patch-1 branch October 15, 2019 17:14
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

Successfully merging this pull request may close these issues.

2 participants
0