On Fri, Apr 3, 2020 at 7:30 AM Abdur-Rahmaan Janhangeer
<arj.pyt...@gmail.com> wrote:
>
>
> Kind Regards,
>
> Abdur-Rahmaan Janhangeer
> compileralchemy.com | github
> Mauritius
>
>
> On Thu, Apr 2, 2020 at 9:52 PM Brett Cannon <br...@python.org> wrote:
>>
>>
>> That's what help() is for. The __repr__ is meant to help during development 
>> with some succinct representation of the object (hence why they typically 
>> have an identifier to help tell equal objects apart). Including docstrings 
>> and such is not a goal for the repr and would make it no longer succinct.
>
>
> This means we have a __repr__ option in packages (Without Steven's snippet 
> above)?

You can mess with anything on a module if you subclass ModuleType and
stick your one into sys.modules. However, I'm not going to give you
the code, because I don't believe in helping people to do bad things
:) Use help, not repr.

ChrisA
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/Z6U62Z34M3TIRX65TDC7PDG7MW7GIDEP/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to