Kind Regards, Abdur-Rahmaan Janhangeer compileralchemy.com <https://www.compileralchemy.com> | github <https://github.com/Abdur-rahmaanJ/> Mauritius
On Fri, Apr 3, 2020 at 2:21 AM Andrew Barnert <abarn...@yahoo.com> wrote: > On Apr 2, 2020, at 13:35, Abdur-Rahmaan Janhangeer <arj.pyt...@gmail.com> > wrote: > But nobody’s mentioned implementation here. Nobody’s saying you can’t have > this because it would be too hard to implement. > ... > That’s not about implementation; that’s about the key idea in your > proposal. > Ah ok i misunderstood. > That’s not an example. > Well i meant that there was no known module example if the feature did not exist yet. > Show us a module that you’d like to have a custom repr, and show us what > you’d like that custom repr to be, and show us that it looks good in other > contexts (a traceback, printing out sys.modules, etc.), or why it’s so good > in the REPL that it overcomes the cost of being less good in those > contexts. You may well have examples that are good enough. But if you don’t > show us your examples, we can only use our own imagination, and obviously > none of us are imagining anything nearly good enough to be worth it. Which > is our failure, not yours—but you want this implemented, and if nobody > backs your proposal because nobody imagines how useful it would be, you’re > not going to get it. > Well it's about having the ability to change the default <'long line where module is found'>. I find it ugly as the default representation of a package. If it's the default, maybe it can be changed/customised. Same spirit like the repr of an object is <__main__.A object at 0x0048E4D8>, but it can be customised.
_______________________________________________ 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/MCFLEPRRFYXPR4YNUSPANSEY3CPKT7DK/ Code of Conduct: http://python.org/psf/codeofconduct/