tag:blogger.com,1999:blog-10051549.post7817678263660362519..comments2008-07-08T09:22:46.681-04:00Comments on ProcrastiBlog: Tweaking an RSS Feed in PythonChrishttp://www.blogger.com/profile/09497993096630160212noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-10051549.post-69668345406042165692008-06-09T09:34:00.000-04:002008-06-09T09:34:00.000-04:00Thanks for the tip. I don't think "ns={}" was a re...Thanks for the tip. I don't think "ns={}" was a real problem (because it wasn't being mutated), but I've fixed the script anyway.Chrishttps://www.blogger.com/profile/09497993096630160212noreply@blogger.comtag:blogger.com,1999:blog-10051549.post-70999962472838406822008-06-09T03:38:00.000-04:002008-06-09T03:38:00.000-04:00Interesting post.Please note that you should not s...Interesting post.<BR/><BR/>Please note that you should not specify default values for function arguments that are objects - e.g. the "ns" argument being assigned an empty dictionary object. The reason is that the default value is evaluated only once rather than on every call. <BR/><BR/>See the "important warning" in the official <A HREF="http://docs.python.org/tut/node6.html#SECTION006710000000000000000" REL="nofollow">Python tutorial</A>.Anonymousnoreply@blogger.com