Path 1: 2 calls (0.67)

'bar' (2)

object (2)

'the cake is a lie' (1) None (1)

KeyError (1)

1def pop(self, name: str, default: t.Any = _sentinel) -> t.Any:
2        """Get and remove an attribute by name. Like :meth:`dict.pop`.
3
4        :param name: Name of attribute to pop.
5        :param default: Value to return if the attribute is not present,
6            instead of raising a ``KeyError``.
7
8        .. versionadded:: 0.11
9        """
10        if default is _sentinel:
11            return self.__dict__.pop(name)
12        else:
13            return self.__dict__.pop(name, default)
            

Path 2: 1 calls (0.33)

'bar' (1)

'more cake' (1)

'more cake' (1)

1def pop(self, name: str, default: t.Any = _sentinel) -> t.Any:
2        """Get and remove an attribute by name. Like :meth:`dict.pop`.
3
4        :param name: Name of attribute to pop.
5        :param default: Value to return if the attribute is not present,
6            instead of raising a ``KeyError``.
7
8        .. versionadded:: 0.11
9        """
10        if default is _sentinel:
11            return self.__dict__.pop(name)
12        else:
13            return self.__dict__.pop(name, default)