You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@serhiy-storchaka what do you think the expected behavior for this should be? Looking at the docs, it seems to imply os.fwalk should mimic os.walk, however I agree that silently producing an iterator is probably not the best way to deal with this. Also, would there be any backward compatibility concerns for folks who are relying on this feature in os.walk, if we decide to modify it?
os.walk()
silently produces an empty iterator if the argument is not a path to directory:It can causes bugs like #99203, when a function produces some incorrect result instead of raising an exception.
The text was updated successfully, but these errors were encountered: