Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-16 Thread Terry Reedy
On 7/7/2010 2:27 PM, Georg Brandl wrote: Am 07.07.2010 19:53, schrieb Éric Araujo: I promised to write a PEP about that some time in the future. (Probably after 3.2 final.) It seems that projects putting Sphinxy reST in their doc are using automatic doc generation. This is however not

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-16 Thread Georg Brandl
Am 16.07.2010 22:55, schrieb Terry Reedy: On 7/7/2010 2:27 PM, Georg Brandl wrote: Am 07.07.2010 19:53, schrieb Éric Araujo: I promised to write a PEP about that some time in the future. (Probably after 3.2 final.) It seems that projects putting Sphinxy reST in their doc are using

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-10 Thread Ron Adam
On 07/07/2010 12:30 PM, Georg Brandl wrote: Am 07.07.2010 18:09, schrieb Michael Foord: I would say that the major use of docstrings is for interactive help - so interactive readability should be *the most important* (but perhaps not only) factor when considering how to format standard

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-09 Thread Georg Brandl
Am 09.07.2010 00:01, schrieb Fred Drake: On Thu, Jul 8, 2010 at 5:42 PM, Alexander Belopolsky alexander.belopol...@gmail.com wrote: I am against mark-up in doc-strings, but this problem can be easily solved by placing a magic character at __doc__[0] to indicate that the rest is (mini)reST.

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-09 Thread Martin Geisler
Georg Brandl g.bra...@gmx.net writes: Am 08.07.2010 17:44, schrieb Martin Geisler: Steve Holden st...@holdenweb.com writes: Martin Geisler wrote: Stephen J. Turnbull step...@xemacs.org writes: Just ask Martin, there are too many possibilities here to worry about. If maybe we want it,

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-09 Thread Fred Drake
On Fri, Jul 9, 2010 at 2:51 AM, Georg Brandl g.bra...@gmx.net wrote: Yes, but[tm] it is not always easy to find the correct module to look for __docformat__ when given an object. True. That PEP was written before decorators were common, in particular. That's changed the landscape in

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-09 Thread Barry Warsaw
On Jul 07, 2010, at 12:50 PM, Brett Cannon wrote: On Wed, Jul 7, 2010 at 11:46, Antoine Pitrou solip...@pitrou.net wrote: On Wed, 7 Jul 2010 14:12:17 -0400 Barry Warsaw ba...@python.org wrote: On Jul 07, 2010, at 07:30 PM, Georg Brandl wrote: Overall, I think that we can make stdlib

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-09 Thread Brett Cannon
On Fri, Jul 9, 2010 at 06:28, Barry Warsaw ba...@python.org wrote: On Jul 07, 2010, at 12:50 PM, Brett Cannon wrote: On Wed, Jul 7, 2010 at 11:46, Antoine Pitrou solip...@pitrou.net wrote: On Wed, 7 Jul 2010 14:12:17 -0400 Barry Warsaw ba...@python.org wrote: On Jul 07, 2010, at 07:30 PM,

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-09 Thread Barry Warsaw
On Jul 09, 2010, at 11:55 AM, Brett Cannon wrote: I think this is going to be something our crazy FLUFL likes but the kids don't. =) Don't worry. If you're lucky, you'll get old too. Your eyes will go bad and your mind will think more about tapioca. By then you might even remember that the

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-08 Thread Martin Geisler
Stephen J. Turnbull step...@xemacs.org writes: Benjamin Peterson writes: 2010/7/7 Stephen J. Turnbull step...@xemacs.org: Antoine Pitrou writes:     http://selenic.com/hg/file/tip/mercurial/minirst.py     Given that Mercurial is GPL, this is probably of no use to us,  

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-08 Thread Steve Holden
Martin Geisler wrote: Stephen J. Turnbull step...@xemacs.org writes: Benjamin Peterson writes: 2010/7/7 Stephen J. Turnbull step...@xemacs.org: Antoine Pitrou writes: http://selenic.com/hg/file/tip/mercurial/minirst.py Given that Mercurial is GPL, this is

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-08 Thread Martin Geisler
Steve Holden st...@holdenweb.com writes: Martin Geisler wrote: Stephen J. Turnbull step...@xemacs.org writes: Just ask Martin, there are too many possibilities here to worry about. If maybe we want it, and he is willing to contribute the parts he wrote to Python under Python's license,

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-08 Thread Georg Brandl
Am 08.07.2010 17:44, schrieb Martin Geisler: Steve Holden st...@holdenweb.com writes: Martin Geisler wrote: Stephen J. Turnbull step...@xemacs.org writes: Just ask Martin, there are too many possibilities here to worry about. If maybe we want it, and he is willing to contribute the parts

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-08 Thread Fred Drake
On Thu, Jul 8, 2010 at 5:21 PM, Georg Brandl g.bra...@gmx.net wrote: Problem is, in the case of help() we have no way of knowing whether the given __doc__ string is supposed to be (mini)reST.  Of course, reverting to showing the plain content on parsing errors is one possibility, but I can

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-08 Thread Alexander Belopolsky
On Thu, Jul 8, 2010 at 5:21 PM, Georg Brandl g.bra...@gmx.net wrote: .. Problem is, in the case of help() we have no way of knowing whether the given __doc__ string is supposed to be (mini)reST. I am against mark-up in doc-strings, but this problem can be easily solved by placing a magic

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-08 Thread Fred Drake
On Thu, Jul 8, 2010 at 5:42 PM, Alexander Belopolsky alexander.belopol...@gmail.com wrote: I am against mark-up in doc-strings, but this problem can be easily solved by placing a magic character at __doc__[0] to indicate that the rest is  (mini)reST. Or __docformat__ can be set appropriately.

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-08 Thread Steve Holden
Fred Drake wrote: On Thu, Jul 8, 2010 at 5:42 PM, Alexander Belopolsky alexander.belopol...@gmail.com wrote: I am against mark-up in doc-strings, but this problem can be easily solved by placing a magic character at __doc__[0] to indicate that the rest is (mini)reST. Or __docformat__ can

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-08 Thread Stephen J. Turnbull
Steve Holden writes: That is _so_ Python 2 ;-) High praise! ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

[Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread C. Titus Brown
Hi all, over on the fellowship o' the packaging mailing list, one of our GSoC students (merwok) asked about how much formatting info should go into Python stdlib docstrings. Right now the stdlib docstrings are primarily text, AFAIK; but with the switch to Sphinx for the official Python docs,

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Shashwat Anand
On Wed, Jul 7, 2010 at 9:24 PM, C. Titus Brown c...@msu.edu wrote: Hi all, over on the fellowship o' the packaging mailing list, one of our GSoC students (merwok) asked about how much formatting info should go into Python stdlib docstrings. Right now the stdlib docstrings are primarily

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread C. Titus Brown
On Wed, Jul 07, 2010 at 09:36:10PM +0530, Shashwat Anand wrote: On Wed, Jul 7, 2010 at 9:24 PM, C. Titus Brown c...@msu.edu wrote: Hi all, over on the fellowship o' the packaging mailing list, one of our GSoC students (merwok) asked about how much formatting info should go into Python

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Michael Foord
On 07/07/2010 17:06, Shashwat Anand wrote: On Wed, Jul 7, 2010 at 9:24 PM, C. Titus Brown c...@msu.edu mailto:c...@msu.edu wrote: Hi all, over on the fellowship o' the packaging mailing list, one of our GSoC students (merwok) asked about how much formatting info should go

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread C. Titus Brown
On Wed, Jul 07, 2010 at 05:09:40PM +0100, Michael Foord wrote: On 07/07/2010 17:06, Shashwat Anand wrote: On Wed, Jul 7, 2010 at 9:24 PM, C. Titus Brown c...@msu.edu mailto:c...@msu.edu wrote: Hi all, over on the fellowship o' the packaging mailing list, one of our GSoC

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Shashwat Anand
On Wed, Jul 7, 2010 at 9:39 PM, Michael Foord fuzzy...@voidspace.org.ukwrote: On 07/07/2010 17:06, Shashwat Anand wrote: On Wed, Jul 7, 2010 at 9:24 PM, C. Titus Brown c...@msu.edu wrote: Hi all, over on the fellowship o' the packaging mailing list, one of our GSoC students (merwok)

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Georg Brandl
Am 07.07.2010 18:09, schrieb Michael Foord: Hi all, over on the fellowship o' the packaging mailing list, one of our GSoC students (merwok) asked about how much formatting info should go into Python stdlib docstrings. Right now the stdlib docstrings are primarily text,

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Senthil Kumaran
On Wed, Jul 7, 2010 at 11:00 PM, Georg Brandl g.bra...@gmx.net wrote: Agreed.  However, reST doesn't need to be less readable if the specific inline markup is not used.  For example, using `identifier` to refer to a function or *var* to refer to a variable (which is already done at quite a few

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Éric Araujo
I promised to write a PEP about that some time in the future. (Probably after 3.2 final.) Nice. It seems that projects putting Sphinxy reST in their doc are using automatic doc generation. This is however not always the best way to make good doc, as demonstrated by Python’s hand-written,

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Barry Warsaw
On Jul 07, 2010, at 07:30 PM, Georg Brandl wrote: Overall, I think that we can make stdlib docstrings valid reST -- even if it's reST without much markup -- but valid, so that people pulling in stdlib doc- strings into Sphinx docs won't get ugly warnings. What I would *not* like to see is heavy

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Robert Kern
On 7/7/10 1:53 PM, Éric Araujo wrote: I promised to write a PEP about that some time in the future. (Probably after 3.2 final.) Nice. It seems that projects putting Sphinxy reST in their doc are using automatic doc generation. This is however not always the best way to make good doc, as

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Georg Brandl
Am 07.07.2010 19:53, schrieb Éric Araujo: I promised to write a PEP about that some time in the future. (Probably after 3.2 final.) Nice. It seems that projects putting Sphinxy reST in their doc are using automatic doc generation. This is however not always the best way to make good

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Alexander Belopolsky
On Wed, Jul 7, 2010 at 2:12 PM, Barry Warsaw ba...@python.org wrote: .. Does it make sense to add (reST-style) epydoc markup for API signatures? E.g. def create_foo(name, parent=None):    Create the named foo.    The named foo must not already exist, but if optional `parent` is given,    

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Antoine Pitrou
On Wed, 7 Jul 2010 14:12:17 -0400 Barry Warsaw ba...@python.org wrote: On Jul 07, 2010, at 07:30 PM, Georg Brandl wrote: Overall, I think that we can make stdlib docstrings valid reST -- even if it's reST without much markup -- but valid, so that people pulling in stdlib doc- strings into

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Fred Drake
On Wed, Jul 7, 2010 at 2:27 PM, Georg Brandl g.bra...@gmx.net wrote: I know, and this is what I originally intended for Sphinx.  However, the calls for automatic doc generation are very loud, and it's understandable that most project can't afford writing their documentation twice. The ability

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Brett Cannon
On Wed, Jul 7, 2010 at 11:46, Antoine Pitrou solip...@pitrou.net wrote: On Wed, 7 Jul 2010 14:12:17 -0400 Barry Warsaw ba...@python.org wrote: On Jul 07, 2010, at 07:30 PM, Georg Brandl wrote: Overall, I think that we can make stdlib docstrings valid reST -- even if it's reST without much

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Brett Cannon
On Wed, Jul 7, 2010 at 10:30, Georg Brandl g.bra...@gmx.net wrote: Am 07.07.2010 18:09, schrieb Michael Foord:     Hi all,     over on the fellowship o' the packaging mailing list, one of our GSoC students     (merwok) asked about how much formatting info should go into Python stdlib    

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Georg Brandl
Am 07.07.2010 20:12, schrieb Barry Warsaw: On Jul 07, 2010, at 07:30 PM, Georg Brandl wrote: Overall, I think that we can make stdlib docstrings valid reST -- even if it's reST without much markup -- but valid, so that people pulling in stdlib doc- strings into Sphinx docs won't get ugly

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Martin Geisler
C. Titus Brown c...@msu.edu writes: I guess docutils isn't in the stdlib (should it be?) or else we could modify 'help' to use it to prepare a straight text formatting. We're using light-weight ReST markup in the Mercurial help texts and transform it into straight text upon display in the

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Georg Brandl
Am 07.07.2010 21:11, schrieb Fred Drake: On Wed, Jul 7, 2010 at 2:27 PM, Georg Brandl g.bra...@gmx.net wrote: I know, and this is what I originally intended for Sphinx. However, the calls for automatic doc generation are very loud, and it's understandable that most project can't afford

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Georg Brandl
Am 07.07.2010 21:52, schrieb Brett Cannon: On Wed, Jul 7, 2010 at 10:30, Georg Brandl g.bra...@gmx.net wrote: Am 07.07.2010 18:09, schrieb Michael Foord: Hi all, over on the fellowship o' the packaging mailing list, one of our GSoC students (merwok) asked about how much

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Antoine Pitrou
On Wed, 07 Jul 2010 22:58:47 +0200 Martin Geisler m...@lazybytes.net wrote: C. Titus Brown c...@msu.edu writes: I guess docutils isn't in the stdlib (should it be?) or else we could modify 'help' to use it to prepare a straight text formatting. We're using light-weight ReST markup in

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Michael Foord
On 07/07/2010 21:54, Georg Brandl wrote: Am 07.07.2010 20:12, schrieb Barry Warsaw: On Jul 07, 2010, at 07:30 PM, Georg Brandl wrote: Overall, I think that we can make stdlib docstrings valid reST -- even if it's reST without much markup -- but valid, so that people pulling in

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Fred Drake
On Wed, Jul 7, 2010 at 4:58 PM, Georg Brandl g.bra...@gmx.net wrote: Let's say we were okay with giving up single-source docs, It's not clear that this is a goal. one potential problem is that autodoc needs to import the modules in question, which can become a problem, on one hand for

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Stephen J. Turnbull
Antoine Pitrou writes: http://selenic.com/hg/file/tip/mercurial/minirst.py Given that Mercurial is GPL, this is probably of no use to us, unfortunately. Given that Martin apparently is the only or main author, I don't see a problem as long as he's willing. Martin?

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Benjamin Peterson
2010/7/7 Stephen J. Turnbull step...@xemacs.org: Antoine Pitrou writes:     http://selenic.com/hg/file/tip/mercurial/minirst.py     Given that Mercurial is GPL, this is probably of no use to us,   unfortunately. Given that Martin apparently is the only or main author, I don't see a

Re: [Python-Dev] query: docstring formatting in python distutils code

2010-07-07 Thread Stephen J. Turnbull
Benjamin Peterson writes: 2010/7/7 Stephen J. Turnbull step...@xemacs.org: Antoine Pitrou writes:     http://selenic.com/hg/file/tip/mercurial/minirst.py     Given that Mercurial is GPL, this is probably of no use to us,   unfortunately. Given that Martin apparently is