New submission from Brett Cannon <>:

If you look at
 you will notice that the generator for importlib.resources.contents() return 
an empty list. While the intent was to have no values be returned by 
contents(), by virtue of being a generator that empty list is actually being 
returned as a value.

assignee: brett.cannon
components: Library (Lib)
messages: 315155
nosy: barry, brett.cannon
priority: normal
severity: normal
stage: test needed
status: open
title: importlib.resources.contents() incorrectly yields an empty list
type: behavior
versions: Python 3.7, Python 3.8

Python tracker <>
Python-bugs-list mailing list

Reply via email to