[Python-ideas] Syntax for dedented strings
Michael Foord
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>
>> wrote:
>> > Unless you regularly inspect instance.__doc__ by hand (not via help),
>> I'm
>> > not sure what you hope to accomplish here.
>>
>> One trick I did discover thanks to this thread: 'pydoc.pager =
>> pydoc.plainpager'
>>
>>
> 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
text there.
All the best,
Michael
> All the best,
>
> Michael
>
>
>
>> Eliminates the potentially annoying behaviour where help() takes over
>> the entire terminal window and doesn't appear in the scrollback
>> history.
>>
>> Cheers,
>> Nick.
>>
>> --
>> Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
>> _______________________________________________
>> Python-ideas mailing list
>> Python-ideas at python.org
>> http://mail.python.org/mailman/listinfo/python-ideas
>>
>
>
>
> --
>
> http://www.voidspace.org.uk/
>
> 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
>
>
>
--
http://www.voidspace.org.uk/
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...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20110817/7ed1a3cd/attachment.html>
More information about the Python-ideas
mailing list