Skip to content

Commit 26898c3

Browse files
committed
ignore description details in autogen/doc.py,parser.py
1 parent 4dbff5d commit 26898c3

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

autogen/doc.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,7 @@ def get_raw_doc(function):
263263
<BLANKLINE>
264264
@[label se:cos]
265265
Cosine of @[dollar]x@[dollar].
266-
<BLANKLINE>
267-
<BLANKLINE>
268-
The library syntax is @[startcode]GEN @[startbold]gcos@[endbold](GEN x, long prec)@[endcode].
269-
<BLANKLINE>
270-
<BLANKLINE>
271-
<BLANKLINE>
266+
...
272267
>>> get_raw_doc("abcde")
273268
Traceback (most recent call last):
274269
...

autogen/parser.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@ def read_pari_desc():
3535
3636
>>> from autogen.parser import read_pari_desc
3737
>>> D = read_pari_desc()
38-
>>> D["cos"] == { 'class': 'basic',
38+
>>> Dcos = D["cos"]
39+
>>> if "description" in Dcos: _ = Dcos.pop("description")
40+
>>> Dcos.pop("doc").startswith('cosine of $x$.')
41+
True
42+
>>> Dcos == { 'class': 'basic',
3943
... 'cname': 'gcos',
40-
... 'doc': 'cosine of $x$.',
4144
... 'function': 'cos',
4245
... 'help': 'cos(x): cosine of x.',
4346
... 'prototype': 'Gp',

0 commit comments

Comments
 (0)