[Tutor] problem importing class
Kent Johnson
kent37 at tds.net
Thu Oct 26 19:45:36 CEST 2006
Danny Yoo wrote:
> Hi Shawn,
>
> It looks like people have identified the problem, that your site.py module
> isn't being found because it conflicts with something from Python's
> Standard Library.
>
> This isn't the first time this kind of problem has hit people. This
> problem is well known and is the subject of a Python Enhancement Proposal
> (PEP 328). If you're using Python 2.5, you can use a new feature called
> 'absolute_import' to avoid the import problem. See:
>
> http://docs.python.org/whatsnew/pep-328.html
>
> for more details.
Hmm, I don't see how that would help since AFAICT shawn's site.py is not
in a package. Or maybe I don't understand what you are suggesting?
Kent
More information about the Tutor
mailing list