bpo-34067: Include a more easily understood example for nullcontext by banool · Pull Request #8158 · python/cpython

When trying to let a few friends know about contextlib.nullcontext, they "didn't get it" based on the example in the docs. I feel that including examples that do and don't use enter_result can help new users understand the intention of nullcontext as a no-op context manager.

I also noticed that normally italics are used for an argument, so I fixed that up on line 155.

https://bugs.python.org/issue34067