Archives by date

You are browsing the site archives by date.

Adam’s Debugging Adventures: The Immutable Mutable Object

Here’s a puzzle for you, Python fans: [adamw@adam dnf (master %)]$ python3 Python 3.6.5 (default, Apr 23 2018, 22:53:50) [GCC 8.0.1 20180410 (Red Hat 8.0.1-0.21)] on linux Type “help”, “copyright”, “credits” or “license” for more information. >>> from dnf.conf import MainConf >>> mc = MainConf() >>> print(mc.group_package_types) [‘mandatory’, ‘default’, ‘conditional’] >>> mc.group_package_types.append(‘foo’) >>> print(mc.group_package_types) [‘mandatory’, […]