Merge pull request #2091 from boqwxp/printattrs