gaogaotiantian / objprint

A library that can print Python objects in human readable format
Apache License 2.0
519 stars 43 forks source link

Improve `CodeType` printing #95

Closed WangGithubUser closed 1 year ago

WangGithubUser commented 1 year ago

Summary

CodeType in Python has a default __str__ and __repr__, but it is such unreadable, it only show the co_filename and co_firstlineno. In this PR, I add a special judge to filter out the CodeType object.

Before this PR:

image

After this PR:

image

Issue resolved: #94

WangGithubUser commented 1 year ago

The feature is not planned.Detail at comment in #94