Jaymon / pout

Python pretty print on steroids
MIT License
29 stars 0 forks source link

Value.body_value() method #72

Closed Jaymon closed 6 months ago

Jaymon commented 2 years ago

Right now, most of the body is generated in string_value, the 2.0.0 upgrade brought some supporting methods like prefix_value and finalize_value but it would be great if we could add body_value and have string_value call it.

This will setup being able to standardize some of the stranger looking values like dict_proxy, MappingViewValue, and ArrayValue so that basically everything has the same basic format:

<KEY> = <TYPE> <MEMORY_ADDRESS>
<LEFT_WRAPPER>
    <BODY>
<RIGHT_WRAPPER>
(<META INFORMATION>)