[ python-Bugs-1700132 ] import and capital letters

SourceForge.net noreply at sourceforge.net
Mon Apr 16 07:09:53 CEST 2007


Bugs item #1700132, was opened at 2007-04-13 17:06
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1700132&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Interpreter Core
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: omsynge (omsynge)
Assigned to: Nobody/Anonymous (nobody)
Summary: import and capital letters

Initial Comment:
Interactive and relative paths allow unlimited
(Or at least I have not found a limit yet) number of characters to be uppercase. This is fine, but when the python interpreter reads directories from PYTHONPATH with 3 capital letters you then get a failure to locate the files.

I have replicated this issue with python 2.2 and python 2.4. These where with red hat el3 and ubuntu (Some version not sure which)

and an example

import dcacheYaimInstallerTest.logger as logger

works fine in interactive or relative paths, but not when installed via an RPM.


import dcacheYaimInstallertest.logger as logger

is just fine in both scenarios. 

This bug cost me some hours to trace and would have cost more had I not had a lot of experience of packaging, so I would be pleased if this could be fixed in all versions of Python.

Regards

Owen








----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2007-04-16 07:09

Message:
Logged In: YES 
user_id=21627
Originator: NO

I cannot reproduce the problem. The import statement works fine for me
when I create 

/usr/lib/python2.4/site-packages/dcacheYaimInstallerTest/logger.py

Can you share the RPM file that causes the problem?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1700132&group_id=5470


More information about the Python-bugs-list mailing list