Re: Get dosctring without import

2010-02-26 Thread Ben Finney
Joan Miller writes: > On 26 feb, 12:35, Ben Finney wrote: > > A common convention is to have a ‘README’ text file, written in > > reStructuredText for rendering to various output formats as part of > > the documentation. You could then have the ‘setup.py’ program read > > the contents of that fi

Re: Get dosctring without import

2010-02-26 Thread Joan Miller
On 26 feb, 12:35, Ben Finney wrote: > Joan Miller writes: > > I use a function in 'setupy.py' to get automatically the description > > from the package's docstring, but there is a problem when you import a > > module that has to be built by cython (because it tries load a module > > that doesn't

Re: Get dosctring without import

2010-02-26 Thread Ben Finney
Joan Miller writes: > I use a function in 'setupy.py' to get automatically the description > from the package's docstring, but there is a problem when you import a > module that has to be built by cython (because it tries load a module > that doesn't exists). A simple approach (at least, simpler

Re: Get dosctring without import

2010-02-26 Thread Joan Miller
On 26 feb, 10:57, Peter Otten <__pete...@web.de> wrote: > Joan Miller wrote: > > When a package is imported, it gets the dosctring to store it in > > *__doc__*. > > > Does that funcion is built in python? because I would want use it to > > get the docstring without import a package > > Something to

Re: Get dosctring without import

2010-02-26 Thread Joan Miller
On 26 feb, 10:51, Ben Finney wrote: > Joan Miller writes: > > When a package is imported, it gets the dosctring to store it in > > *__doc__*. > > Joan, in this message and numerous others you've been following the > widespread convention of using asterisks ‘*’ to surround text you want > to empha

Re: Get dosctring without import

2010-02-26 Thread Peter Otten
Joan Miller wrote: > When a package is imported, it gets the dosctring to store it in > *__doc__*. > > Does that funcion is built in python? because I would want use it to > get the docstring without import a package Something to get you started: import ast def walk(root, stack): for nod

Re: Get dosctring without import

2010-02-26 Thread Ben Finney
Joan Miller writes: > When a package is imported, it gets the dosctring to store it in > *__doc__*. Joan, in this message and numerous others you've been following the widespread convention of using asterisks ‘*’ to surround text you want to emphasise. Normally that's good, but in a programming

Re: Get dosctring without import

2010-02-26 Thread Jean-Michel Pichavant
Joan Miller wrote: When a package is imported, it gets the dosctring to store it in *__doc__*. Does that funcion is built in python? because I would want use it to get the docstring without import a package Epydoc, a documentation builder is able to do so with the --parse-only option. You co

Re: Get dosctring without import

2010-02-26 Thread Diez B. Roggisch
Am 26.02.10 09:55, schrieb Joan Miller: When a package is imported, it gets the dosctring to store it in *__doc__*. Does that funcion is built in python? because I would want use it to get the docstring without import a package You'd need to write your own parser for that. All standard tools s

Get dosctring without import

2010-02-26 Thread Joan Miller
When a package is imported, it gets the dosctring to store it in *__doc__*. Does that funcion is built in python? because I would want use it to get the docstring without import a package -- http://mail.python.org/mailman/listinfo/python-list