On Apr 14, 2010, at 12:47 PM, has wrote:
+1. It sounds like the OP's function is assigning values to 'k' at
some point, e.g. 'for k, v in d.items():...', which is a general
Python error, as you say. In which case, either pick a different
variable name or use 'import appscript' and
'appscript.k.KEYWORD_NAME'.
Thanks so much has. I haven't confirmed it, but I believe my trouble is:
for k in kids:
later in the function. I'll know this evening after I've made some
other changes to my script.
The "appscript.k.KEYWORD_NAME" is a helpful bit of namespace
knowledge, although lord knows I can avoid "k" as a variable name in
the future.
Best wishes,
Charles
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG