[Python-Dev] [Python-checkins] cpython: Issue #14581: Windows users are allowed to import modules w/o taking

Terry Reedy tjreedy at udel.edu
Fri Apr 20 20:09:16 CEST 2012


On 4/20/2012 12:53 PM, brett.cannon wrote:
> http://hg.python.org/cpython/rev/a32be109bd86
> changeset:   76428:a32be109bd86
> user:        Brett Cannon<brett at python.org>
> date:        Fri Apr 20 12:53:14 2012 -0400
> summary:
>    Issue #14581: Windows users are allowed to import modules w/o taking
> the file suffix's case into account, even when doing a case-sensitive
> import.

> +                name, dot, suffix = item.partition('.')

Should this be .rpartition in case there is more than one . in the name?

tjr


More information about the Python-Dev mailing list