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.




_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to