homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Support case-insensitive file extensions on Windows in importlib
Type: behavior Stage: resolved
Components: Windows Versions: Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: brett.cannon Nosy List: brett.cannon, eric.snow, georg.brandl, python-dev
Priority: release blocker Keywords:

Created on 2012年04月14日 20:10 by brett.cannon, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Messages (4)
msg158279 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2012年04月14日 20:10
Importlib doesn't cover case-insensitivity on file extensions under Windows (see test.test_import.test_import: http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.x/builds/41/steps/test/logs/stdio). Should add a test to test_importlib and then fix (but only for Windows; apparently this isn't honoured under OS X even though it is case-insensitive).
msg158296 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2012年04月14日 23:05
OK, is supporting this really necessary? It's a special case on Windows only; even OS X which is also case-insensitive doesn't support this.
But if it does need to be supported, then does someone know if this extends to all module types or only .py and .pyw files (e.g. do .pyc files need this along with extension modules)? If there is no special-casing to that extent then _PathFinder.find_module() will need to cache all files with lowercase file extensions no matter what PYTHONCASEOK says on Windows. That way the performance is only costly at cache building time and there is no expensive checking for all other OSs.
msg158848 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012年04月20日 16:53
New changeset a32be109bd86 by Brett Cannon in branch 'default':
Issue #14581: Windows users are allowed to import modules w/o taking
http://hg.python.org/cpython/rev/a32be109bd86 
msg158859 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2012年04月20日 17:40
http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.x/builds/98/steps/test/logs/stdio suggests this fix worked.
History
Date User Action Args
2022年04月11日 14:57:29adminsetnosy: + georg.brandl
github: 58786
2012年04月20日 17:40:58brett.cannonsetstatus: open -> closed
messages: + msg158859

assignee: brett.cannon
resolution: fixed
stage: needs patch -> resolved
2012年04月20日 16:53:21python-devsetnosy: + python-dev
messages: + msg158848
2012年04月14日 23:05:32brett.cannonsetmessages: + msg158296
2012年04月14日 21:15:38eric.snowsetnosy: + eric.snow
2012年04月14日 20:10:20brett.cannoncreate

AltStyle によって変換されたページ (->オリジナル) /