Gre7g Luterman writes on [EMAIL PROTECTED]: > For some reason, Python 2.3.x acts differently than 2.2.x with regard > to imports. > > Various files in tmda-cgi import TMDA's Defaults.py, which in turn > imports TMDA's Errors.py, Utils.py, and Version.py. Under 2.2.x this > worked fine, but 2.3.x wants "from TMDA import ____" statements > instead of "import ____" statements, EVEN THOUGH Errors.py, Utils.py, > and Version.py are all in the same directory as Defaults.py. > > I don't know why they would change that.
Can you provide a simple Python interpreter example(s) that illustrates the difference/problem? I'm not able to find anything in the ``What's New in Python 2.3'' document that explains this. > I believe it was R'twick Niceorgaw who recommended the above change to > Defaults.py, but I'm hesitant to make it myself as: > > [1] It will require re-validation TMDA to make sure it doesn't break > anything. Thank-you for not making this change to TMDA. > For the time being, I've put a nasty hack into tmda-cgi which forces > Defaults to do the "from TMDA" sort of imports. Man, you just > gotta' love a language that lets you do things like that! We can > always remove this hack later if Jason adds the "from TMDA" > statements in. I'm not going to change this in TMDA until post 1.0, but we can evaluate what needs to be done then. I'd like to understand the problem first though. _________________________________________________ tmda-workers mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-workers
