The carbonbased lifeform Carsten Haese inspired comp.lang.python with: > On Sat, 2007-04-28 at 13:50 +0200, Theo v. Werkhoven wrote: >> Goodday, >> >> Something strange going on here. >> A piece of code I wrote bombs out in one of de directories under $HOME, >> but not in others. > > This usually means that the directory where your script doesn't work > contains some .py file that has the same name as a standard library > module that you need. Since the only import in your code snippet is > "from array import array", and calling array() raises the exception that > a list object is not callable, I am guessing that the culprit is a file > named array.py that defines a list called array. Rename that file.
And you were right on the spot too, Cartsen, see my reply to John. Thank you too. Cheers, Theo -- theo at van-werkhoven.nl ICQ:277217131 SuSE Linux linuxcounter.org: 99872 Jabber:muadib at jabber.xs4all.nl AMD XP3000+ 1024MB "ik _heb_ niets tegen Microsoft, ik heb iets tegen de uitwassen *van* Microsoft" -- http://mail.python.org/mailman/listinfo/python-list