A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-October/129792.html below:

[Python-Dev] Coding practice for context managers

[Python-Dev] Coding practice for context managers [Python-Dev] Coding practice for context managersR. David Murray rdmurray at bitdance.com
Mon Oct 21 12:59:27 CEST 2013
On Sun, 20 Oct 2013 19:49:24 -0700, Ethan Furman <ethan at stoneleaf.us> wrote:
> On 10/20/2013 07:42 PM, Raymond Hettinger wrote:
> >
> > In short, I recommend that efforts be directed at improving help() rather than limiting introspection by way of less clean coding practices.
> 
> +1

I'm also +1 on improving help instead of using wrapper classes.

> We also have the option of adding a custom __dir__ to change what help() displays.

I think you'd want to be careful about __dir__ also interfering with
introspection if it is used *just* to make the help cleaner.

--David
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4