@property<EOL><INDENT>def ref_n(self):<DEDENT>
try:<EOL><INDENT>return int(self.ref)<EOL><DEDENT>except ValueError:<EOL><INDENT>return None<EOL><DEDENT>
returns an integer, either from the `seq` instance variable if it's a number,
or None otherwise