[Pythonmac-SIG] py2app = newbie path confusion
layne.bilyeu at robbstucky.net
Wed Apr 19 15:38:23 CEST 2006
Many thanks to you Bob.
You're a community treasure.
> Also note that the Image module probably isn't broken (don't have
> PIL installed at the moment, can't check). Constants don't
> automagically just insert themselves into your script. You should
> be able to reference it with Image.BICUBIC.
yes, referencing Image.BICUBIC works correctly.
As usual my problems lie with the scope. I'm forming the opinion that
"from XXX import *" should be banned from all introduction, tutorial
and example materials. It encourages naive assumptions about things
automagically inserting themselves into your namespace. Everything
seems simple when following the examples. But when you try
paraphrasing them for your own work, it blows up in your face.
It would be better to provide beginners an understanding of
namespaces from the start.
More information about the Pythonmac-SIG