On Wed, Mar 21, 2012 at 5:52 PM, Steve Howell <showel...@yahoo.com> wrote: > On the one hand, you say that "push(stack, item)" reads quite > differently from "stack.push(item)". > > On the other hand, you say they are "so close to identical as makes no > odds." > > I'm trying to make sense of that. Are you saying that the way the two > idioms read makes no odds, despite reading quite differently?
If you're designing a language (or, often, a library/module), you can choose either option without greatly annoying your users. As a programmer, I use both types of API all the time. Yes, they read differently, but neither is confusing, and you can easily grok that they do the same thing. ChrisA -- http://mail.python.org/mailman/listinfo/python-list