

@property
def idx(self):
    "\n        Return partname index as integer for tuple partname or None for\n        singleton partname, e.g. ``21`` for ``'/ppt/slides/slide21.xml'`` and\n        |None| for ``'/ppt/presentation.xml'``.\n        "
    filename = self.filename
    if (not filename):
        return None
    name_part = posixpath.splitext(filename)[0]
    match = self._filename_re.match(name_part)
    if (filename is None):
        return None
    if match.group(2):
        return int(match.group(2))
    return None

dataset/ETHPy150Open python-openxml/python-docx/docx/opc/packuri.py PackURI.idx/VarMisuse@58/149 `match`->`filename`