[Python-checkins] cpython (3.3): - Issue #16514: Fix regression causing a traceback when sys.path[0] is None

Terry Reedy tjreedy at udel.edu
Tue Nov 20 23:35:41 CET 2012


On 11/20/2012 3:35 PM, barry.warsaw wrote:

>           for entry in path:
> +            if not isinstance(entry, (str, bytes)):
> +                continue

Given that a non-(str,bytes) entry could indicate a programming error, 
should a warning be emitted before continuing?

Terry


More information about the Python-checkins mailing list