Check out the new USENIX Web site.
[ActiveState] Method call and attribute access

The Python::Object package provides an AUTOLOAD method that simplifies method calls and attribute access.
  $o->foo;                # getattr($o, "foo")
  $o->foo(42);            # setattr($o, "foo" => 42)
  $o->foo("bar", "baz");  # funcall(getattr($o, "foo"),
                          #         "bar", "baz")

This mechanism also provides the means for passing keyword arguments and automatically unwrapping lists and dictionaries if called in list context.

  for ($o->method_returning_a_list) {
      ...
  }

 www.ActiveState.com 11/32 ««/\»»