[Python-ideas] Syntax for dedented strings
fuzzyman at gmail.com
Wed Aug 17 15:31:06 CEST 2011
On 17 August 2011 13:58, Michael Foord <fuzzyman at gmail.com> wrote:
> On 17 August 2011 04:33, Nick Coghlan <ncoghlan at gmail.com> wrote:
>> On Wed, Aug 17, 2011 at 9:36 AM, Steven D'Aprano <steve at pearwood.info>
>> > Unless you regularly inspect instance.__doc__ by hand (not via help),
>> > not sure what you hope to accomplish here.
>> One trick I did discover thanks to this thread: 'pydoc.pager =
> Thanks Nick, that does make help substantially less annoying. I'll add it
> to my python startup.
Although `help(klass)` is still (often) way too verbose if I *just* want to
see the class docstring (help shows all methods and their docstrings too).
And as you can't modify a class docstring there's no way to fix indented
All the best,
> All the best,
>> Eliminates the potentially annoying behaviour where help() takes over
>> the entire terminal window and doesn't appear in the scrollback
>> Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
>> Python-ideas mailing list
>> Python-ideas at python.org
> May you do good and not evil
> May you find forgiveness for yourself and forgive others
> May you share freely, never taking more than you give.
> -- the sqlite blessing http://www.sqlite.org/different.html
May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing http://www.sqlite.org/different.html
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas