How to use 'iter in python' in Python

Every line of 'iter in python' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
168def py__iter__(self, contextualized_node=None):
169 if contextualized_node is not None:
170 from jedi.inference import analysis
171 analysis.add(
172 contextualized_node.context,
173 'type-error-not-iterable',
174 contextualized_node.node,
175 message="TypeError: '%s' object is not iterable" % self)
176 return iter([])
46def __iter__(self):
47 """"""
48 return self

Related snippets