Phillip Pearson - Second p0st

tech notes and web hackery from the guy that brought you bzero, python community server, the blogging ecosystem, the new zealand coffee review and the internet topic exchange

2005-8-3

Array access in UserTalk

A question for the UserTalk hackers: are the following identical?

  • foo.bar.baz
  • foo.bar["baz"]
  • foo.bar.["baz"]

Update: I think I've sorted this out. All three of those are equal, BUT if you want to get the 3rd entry in table foo.bar, you have to do it like this: foo.bar[3].

... more like this: []