Len

Wraps Foo.length or another function as python's ___len__ function.

Requires signature

Py_ssize_t length();

This is a limitation of the C/Python API.

  1. template Len()
    template Len () {}
  2. template Len(alias fn)

Meta