This is a pull request I’m currently working on:
I appreciate the review and feedback that I received. Unfortunately, I’m not sure how to improve the docs paragraph. I already tried to be as precise as possible. So I was hoping someone with more experience regarding writing docs can give me a hint or advice which sentence needs change and which part can stay the way it is?
Here are the reprlib.Repr.indent
features that I tried to describe in the docs paragraph:
>>> from reprlib import aRepr
>>> example = {"one": ["two", "three"], 4: "five"}
>>> aRepr.indent = None
>>> print(aRepr.repr(example))
{'one': ['two', 'three'], 4: 'five'}
>>> aRepr.indent = 2
>>> print(aRepr.repr(example))
{
'one': [
'two',
'three',
],
4: 'five',
}
>>> aRepr.indent = 4
>>> print(aRepr.repr(example))
{
'one': [
'two',
'three',
],
4: 'five',
}
>>> aRepr.indent = "...."
>>> print(aRepr.repr(example))
{
....'one': [
........'two',
........'three',
....],
....4: 'five',
}
>>>