comparison Doc/texinputs/python.sty @ 7898:6a0299ebccef legacy-trunk

Data attributes of objects should not be indexed with trailing parentheses!
author Fred Drake <fdrake@acm.org>
date Tue, 07 Apr 1998 19:32:40 +0000
parents db1e49d51fe1
children 011ae71fea96
comparison
equal deleted inserted replaced
7897:df636ded2e70 7898:6a0299ebccef
422 % object data attribute -------------------------------------------------- 422 % object data attribute --------------------------------------------------
423 % \begin{memberdesc}[classname]{membername} 423 % \begin{memberdesc}[classname]{membername}
424 \newcommand{\memberline}[2][\@classbadkey]{% 424 \newcommand{\memberline}[2][\@classbadkey]{%
425 \ifx#1\@undefined 425 \ifx#1\@undefined
426 \memberlineni{#2} 426 \memberlineni{#2}
427 \withsubitem{(\@thisclass\ attribute)}{\ttindex{#2()}} 427 \withsubitem{(\@thisclass\ attribute)}{\ttindex{#2}}
428 \else 428 \else
429 \memberlineni{#2} 429 \memberlineni{#2}
430 \withsubitem{(#1 attribute)}{\ttindex{#2()}} 430 \withsubitem{(#1 attribute)}{\ttindex{#2}}
431 \fi 431 \fi
432 } 432 }
433 \newenvironment{memberdesc}[2][\@classbadkey]{ 433 \newenvironment{memberdesc}[2][\@classbadkey]{
434 \begin{fulllineitems} 434 \begin{fulllineitems}
435 \ifx#1\@undefined 435 \ifx#1\@undefined