From: David G. <go...@us...> - 2002-10-18 05:50:19
|
gr...@us... wrote: > ok, This means, the specification says access language.labels > directly without checking for existance of the element. The specification doesn't (or didn't, until spec/howto/i18n.txt) say anything about this. The code does. It's just an implementation detail. > i still think this should be put into code not documentation. > > def label(self,internal_name): > return self.labels[internal_name) I don't see the difference. It looks like unnecessary indirection to me. > gives consistant behaviour over all accesses, because i would not > have read this specification, and definately checked for existance. I disagree. Let's move on. From this and previous discussions, it's obvious to me that we have different philosopies of programming, or we're misunderstanding each other. -- David Goodger <go...@us...> Open-source projects: - Python Docutils: http://docutils.sourceforge.net/ (includes reStructuredText: http://docutils.sf.net/rst.html) - The Go Tools Project: http://gotools.sourceforge.net/ |