Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cd05ca9

Browse files
committed
Remove unnecessary blank line in long code sample.
Remove a confusing article.
1 parent 1c8d0e0 commit cd05ca9

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

Doc/ext.tex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ \section{Keyword Parsing with \sectcode{PyArg_ParseTupleAndKeywords()}}
781781

782782
\strong{Note:} Nested tuples cannot be parsed when using keyword
783783
arguments! Keyword parameters passed in which are not present in the
784-
\var{kwlist} will cause a \exception{TypeError} to be raised.
784+
\var{kwlist} will cause \exception{TypeError} to be raised.
785785

786786
Here is an example module which uses keywords, based on an example by
787787
Geoff Philbrick (\email{[email protected]}):
@@ -825,8 +825,7 @@ \section{Keyword Parsing with \sectcode{PyArg_ParseTupleAndKeywords()}}
825825
initkeywdarg()
826826
{
827827
/* Create the module and add the functions */
828-
Py_InitModule("keywdarg", keywdarg_methods);
829-
828+
Py_InitModule("keywdarg", keywdarg_methods);
830829
}
831830
\end{verbatim}
832831

Doc/ext/ext.tex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ \section{Keyword Parsing with \sectcode{PyArg_ParseTupleAndKeywords()}}
781781

782782
\strong{Note:} Nested tuples cannot be parsed when using keyword
783783
arguments! Keyword parameters passed in which are not present in the
784-
\var{kwlist} will cause a \exception{TypeError} to be raised.
784+
\var{kwlist} will cause \exception{TypeError} to be raised.
785785

786786
Here is an example module which uses keywords, based on an example by
787787
Geoff Philbrick (\email{[email protected]}):
@@ -825,8 +825,7 @@ \section{Keyword Parsing with \sectcode{PyArg_ParseTupleAndKeywords()}}
825825
initkeywdarg()
826826
{
827827
/* Create the module and add the functions */
828-
Py_InitModule("keywdarg", keywdarg_methods);
829-
828+
Py_InitModule("keywdarg", keywdarg_methods);
830829
}
831830
\end{verbatim}
832831

0 commit comments

Comments
 (0)