When I'm typing something like this in PyCharm IDE 3.0.2 Community Edition (Python 2.7.x):
directory = '/home/user/dir'
samples_list = os.walk(directory).next()[1]
I get warning in IDE Unresolved attribute reference 'next' for class 'Iterable'.
So, I want to know if this is error because of IDE (http://youtrack.jetbrains.com/issue/PY-11401) or I should do something with my code.
UPD1: Unfortunately, this is a bug in Pycharm PY-12017
os.walk(directory)is of typegenerator, notIterable(and there is no class calledIterablein the standard library.) - unutbuIterablesas though it were the name of the class? - unutbucollectionsabstract base class - Martijn Pieters