Don't know how to debug doc of Poset...

2 views
Skip to first unread message

Florent Hivert

unread,
Mar 21, 2010, 2:03:09 PM3/21/10
to Sage Devel
Hi there,

Since sage-4.3.3 asking for Poset? doesn't print the docstring. I've no
idea where to start to debug this issue. Any suggestion ?

Cheers,

Florent

John H Palmieri

unread,
Mar 21, 2010, 3:38:11 PM3/21/10
to sage-devel
On Mar 21, 11:03 am, Florent Hivert <florent.hiv...@univ-rouen.fr>
wrote:

>       Hi there,
>
>    Since sage-4.3.3 asking for Poset? doesn't print the docstring. I've no
> idea where to start to debug this issue. Any suggestion ?

The problem is with the "sphinxify" function; for some reason it
doesn't work on this docstring with "text" output. A quick hack to
make it work: apply this patch to sagenb/misc/sphinxify:

diff -r 464ea285a887 -r 162f6ef3f0f9 sagenb/misc/sphinxify.py
--- a/sagenb/misc/sphinxify.py Mon Mar 08 21:12:54 2010 -0800
+++ b/sagenb/misc/sphinxify.py Sun Mar 21 12:32:34 2010 -0700
@@ -135,6 +135,9 @@
else:
output = docstring

+ if format == 'text' and len(docstring) > 0 and len(output) == 0:
+ output = docstring
+
if temp_confdir:
shutil.rmtree(confdir, ignore_errors=True)
shutil.rmtree(srcdir, ignore_errors=True)


I don't know what the underlying cause is, though.

--
John

Reply all
Reply to author
Forward
0 new messages