File: test_latex_output.tex

package info (click to toggle)
sphinx-toolbox 3.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,924 kB
  • sloc: python: 11,636; sh: 26; javascript: 25; makefile: 16
file content (724 lines) | stat: -rw-r--r-- 34,066 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
<%- set open_smart_quote = "\\textquotesingle{}" if (3, 5) > sphinx_version >= (4, 2) else "‘" -%>
<%- set close_smart_quote = "\\textquotesingle{}" if (3, 5) > sphinx_version >= (4, 2) else "’" -%>
<%- set open_smart_quote_b = "\\textquotesingle{}" if sphinx_version >= (4, 2) else "‘" -%>
<%- set close_smart_quote_b = "\\textquotesingle{}" if sphinx_version >= (4, 2) else "’" -%>
<%- set hline = "\\sphinxhline" if sphinx_version >= (5, 3) else "\\hline" -%>
<%- set sphinxparam = "sphinxparam" if sphinx_version >= (6, 2) else "emph" -%>
<%- if sphinx_version >= (7, 1) -%>
<%- set sphinxparamcomma = "\\sphinxparamcomma \\sphinxparam" -%>
<%- elif sphinx_version >= (6, 2) -%>
<%- set sphinxparamcomma = ", \\sphinxparam" -%>
<%- else -%>
<%- set sphinxparamcomma = ", \\emph" -%>
<%- endif -%>
<%- macro sphinx6x_2nd(char) -%>
<% if (7, 2) > sphinx_version >= (6, 2) %>,<<char>><% endif %>
<%- endmacro -%>
<%- set sphinx81_linebreak = "\n" if sphinx_version >= (8, 1) else "" -%>
%% Generated by Sphinx.
\def\sphinxdocclass{report}
\documentclass[letterpaper,10pt,english]{sphinxmanual}
\ifdefined\pdfpxdimen
   \let\sphinxpxdimen\pdfpxdimen\else\newdimen\sphinxpxdimen
\fi \sphinxpxdimen=.75bp\relax
<% if sphinx_version >= (4, 0) %>\ifdefined\pdfimageresolution
    \pdfimageresolution= \numexpr \dimexpr1in\relax/\sphinxpxdimen\relax
\fi
%% let collapsable pdf bookmarks panel have high depth per default
\PassOptionsToPackage{bookmarksdepth=5}{hyperref}<% if sphinx_version >= (5, 3) %>
<% endif %><% if sphinx_version >= (6, 0) %>
\PassOptionsToPackage{booktabs}{sphinx}
\PassOptionsToPackage{colorrows}{sphinx}<% endif %>
<% endif %>
\PassOptionsToPackage{warn}{textcomp}
\usepackage[utf8]{inputenc}
\ifdefined\DeclareUnicodeCharacter
% support both utf8 and utf8x syntaxes
  \ifdefined\DeclareUnicodeCharacterAsOptional
    \def\sphinxDUC#1{\DeclareUnicodeCharacter{"#1}}
  \else
    \let\sphinxDUC\DeclareUnicodeCharacter
  \fi
  \sphinxDUC{00A0}{\nobreakspace}
  \sphinxDUC{2500}{\sphinxunichar{2500}}
  \sphinxDUC{2502}{\sphinxunichar{2502}}
  \sphinxDUC{2514}{\sphinxunichar{2514}}
  \sphinxDUC{251C}{\sphinxunichar{251C}}
  \sphinxDUC{2572}{\textbackslash}
\fi
\usepackage{cmap}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amssymb,amstext}
\usepackage{babel}

<%+ if sphinx_version >= (4, 0) %>

\usepackage{tgtermes}
\usepackage{tgheros}
\renewcommand{\ttdefault}{txtt}

<% else %>

\usepackage{times}
\expandafter\ifx\csname T@LGR\endcsname\relax
\else
% LGR was declared as font encoding
  \substitutefont{LGR}{\rmdefault}{cmr}
  \substitutefont{LGR}{\sfdefault}{cmss}
  \substitutefont{LGR}{\ttdefault}{cmtt}
\fi
\expandafter\ifx\csname T@X2\endcsname\relax
  \expandafter\ifx\csname T@T2A\endcsname\relax
  \else
  % T2A was declared as font encoding
    \substitutefont{T2A}{\rmdefault}{cmr}
    \substitutefont{T2A}{\sfdefault}{cmss}
    \substitutefont{T2A}{\ttdefault}{cmtt}
  \fi
\else
% X2 was declared as font encoding
  \substitutefont{X2}{\rmdefault}{cmr}
  \substitutefont{X2}{\sfdefault}{cmss}
  \substitutefont{X2}{\ttdefault}{cmtt}
\fi
<% endif %>

\usepackage[Bjarne]{fncychap}
\usepackage{sphinx}
<% if sphinx_version >= (4, 0) %>
\fvset{fontsize=auto}
<% else %>
\fvset{fontsize=\small}
<% endif -%>
\usepackage{geometry}


% Include hyperref last.
\usepackage{hyperref}
% Fix anchor placement for figures with captions.
\usepackage{hypcap}% it must be loaded after hyperref.
% Set up styles of URL: it should be placed after hyperref.
\urlstyle{same}


\usepackage{sphinxmessages}



\newcommand\thesymbolfootnote{\fnsymbol{footnote}}\let\thenumberfootnote\thefootnote

\makeatletter
\newcolumntype{\Xx}[2]{>{\raggedright\arraybackslash}p{\dimexpr
    (\linewidth-\arrayrulewidth)*#1/#2-\tw@\tabcolsep-\arrayrulewidth\relax}}
\makeatother


\title{Python}
\date{Mar 11, 2021}
\release{}
\author{unknown}
\newcommand{\sphinxlogo}{\vbox{}}
\renewcommand{\releasename}{}
\makeindex
\begin{document}

<% if sphinx_version >= (5, 0) %>\ifdefined\shorthandoff
  \ifnum\catcode`\=\string=\active\shorthandoff{=}\fi
  \ifnum\catcode`\"=\active\shorthandoff{"}\fi
\fi

<% endif %>\pagestyle{empty}
\sphinxmaketitle
\pagestyle{plain}
\sphinxtableofcontents
\pagestyle{normal}
\phantomsection\label{\detokenize{index::doc}}

\index{module@\spxentry{module}!string@\spxentry{string}}\index{string@\spxentry{string}!module@\spxentry{module}}
A collection of string constants.

Public module variables:

whitespace \textendash{} a string containing all ASCII whitespace
ascii\_lowercase \textendash{} a string containing all ASCII lowercase letters
ascii\_uppercase \textendash{} a string containing all ASCII uppercase letters
ascii\_letters \textendash{} a string containing all ASCII letters
digits \textendash{} a string containing all ASCII decimal digits
hexdigits \textendash{} a string containing all ASCII hexadecimal digits
octdigits \textendash{} a string containing all ASCII octal digits
punctuation \textendash{} a string containing all ASCII punctuation characters
printable \textendash{} a string containing all ASCII characters considered printable


\vspace{10px}


\sphinxstylestrong{Classes:}


\vspace{-5px}



\begin{savenotes}<% if sphinx_version >= (5, 3) %>
\sphinxatlongtablestart
\sphinxthistablewithglobalstyle
\sphinxthistablewithnovlinesstyle
<% endif %><% if sphinx_version >= (6, 2) %>\makeatletter
  \LTleft \@totalleftmargin plus1fill
  \LTright\dimexpr\columnwidth-\@totalleftmargin-\linewidth\relax plus1fill
\makeatother
\begin{longtable}{\Xx{3}{10}\Xx{7}{10}}<% elif sphinx_version >= (5, 3) %>\begin{longtable}[c]{\Xx{3}{10}\Xx{7}{10}}<% else %>\sphinxatlongtablestart\begin{longtable}[c]{\Xx{3}{10}\Xx{7}{10}}<% endif %><% if sphinx_version >= (5, 3) %>
\sphinxtoprule
<% else %>
\hline

<% endif %>\endfirsthead

\multicolumn{2}{c}<% if sphinx_version >= (5, 3) %>{\sphinxnorowcolor
    \makebox[0pt]<% else %>%
{\makebox[0pt]<% endif %>{\sphinxtablecontinued{\tablename\ \thetable{} \textendash{} continued from previous page}}<% if sphinx_version >= (5, 3) %>%
<% endif %>}\\
<% if sphinx_version >= (5, 3) %>\sphinxtoprule
<% else %>\hline

<% endif %>\endhead

<% if sphinx_version >= (5, 3) %>\sphinxbottomrule<% else %>\hline<% endif%>
\multicolumn{2}{r}{<% if sphinx_version >= (5, 3) %>\sphinxnorowcolor
    <% endif %>\makebox[0pt][r]{\sphinxtablecontinued{continues on next page}}<% if sphinx_version >= (5, 3) %>%
<% endif %>}\\
\endfoot

\endlastfoot<% if sphinx_version >= (5, 3) %>
\sphinxtableatstartofbodyhook<% endif%>

{\hyperref[\detokenize{index:string.Template}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{Template}}}}}(template)
&
A string class for supporting \$\sphinxhyphen{}substitutions.
\\
<% if sphinx_version >= (5, 3) %>\sphinxbottomrule<% else %>\hline<% endif %>
\end{longtable}<% if sphinx_version >= (5, 3) %>
\sphinxtableafterendhook
<% endif %>\sphinxatlongtableend<% if sphinx_version >= (5, 3) %>
<% endif %>\end{savenotes}

\sphinxstylestrong{Functions:}


\vspace{-5px}



\begin{savenotes}<% if sphinx_version >= (5, 3) %>
<% endif %>\sphinxatlongtablestart<% if sphinx_version >= (5, 3) %>
\sphinxthistablewithglobalstyle
\sphinxthistablewithnovlinesstyle
<% endif %><% if sphinx_version >= (6, 2) %>\makeatletter
  \LTleft \@totalleftmargin plus1fill
  \LTright\dimexpr\columnwidth-\@totalleftmargin-\linewidth\relax plus1fill
\makeatother
\begin{longtable}{\Xx{3}{10}\Xx{7}{10}}<% else %>\begin{longtable}[c]{\Xx{3}{10}\Xx{7}{10}}<% endif %><% if sphinx_version >= (5, 3) %>
\sphinxtoprule
<% else %>
\hline

<% endif %>\endfirsthead

\multicolumn{2}{c}<% if sphinx_version >= (5, 3) %>{\sphinxnorowcolor
    \makebox[0pt]<% else %>%
{\makebox[0pt]<% endif %>{\sphinxtablecontinued{\tablename\ \thetable{} \textendash{} continued from previous page}}<% if sphinx_version >= (5, 3) %>%
<% endif %>}\\
<% if sphinx_version >= (5, 3) %>\sphinxtoprule
<% else %>\hline

<% endif %>\endhead

<% if sphinx_version >= (5, 3) %>\sphinxbottomrule<% else %>\hline<% endif%>
\multicolumn{2}{r}{<% if sphinx_version >= (5, 3) %>\sphinxnorowcolor
    <% endif %>\makebox[0pt][r]{\sphinxtablecontinued{continues on next page}}<% if sphinx_version >= (5, 3) %>%
<% endif %>}\\
\endfoot

\endlastfoot<% if sphinx_version >= (5, 3) %>
\sphinxtableatstartofbodyhook<% endif%>

{\hyperref[\detokenize{index:string.capwords}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{capwords}}}}}(s {[},sep{]})
&
Split the argument into words using split, capitalize each word using capitalize, and join the capitalized words using join.
\\
<% if sphinx_version >= (5, 3) %>\sphinxbottomrule<% else %>\hline<% endif %>
\end{longtable}<% if sphinx_version >= (5, 3) %>
\sphinxtableafterendhook
<% endif %>\sphinxatlongtableend<% if sphinx_version >= (5, 3) %>
<% endif %>\end{savenotes}
\index{Template (class in string)@\spxentry{Template}\spxextra{class in string}}

\begin{fulllineitems}
\phantomsection\label{\detokenize{index:string.Template}}
<%- if sphinx_version > (4, 5) %>
\pysigstartsignatures
<% endif -%>
\pysiglinewithargsret<% if sphinx_version >= (8, 1) %>
<% endif %>{\sphinxbfcode{\sphinxupquote{<% if sphinx_version >= (8, 2) %>\DUrole{k}{class}<% else %>class<% endif %><% if sphinx_version >= (4, 3) %>\DUrole{w<<sphinx6x_2nd('w')>>}{<% if sphinx_version < (7, 2) %> <% endif %> }<% else %> <% endif %>}}\sphinxcode{\sphinxupquote{string.}}\sphinxbfcode{\sphinxupquote{Template}}}<< sphinx81_linebreak >>{\<< sphinxparam >>{\DUrole{n<<sphinx6x_2nd("n")>>}{template}}}<< sphinx81_linebreak >>{}
<% if sphinx_version > (4, 5) %>\pysigstopsignatures
<% endif -%>
A string class for supporting \$\sphinxhyphen{}substitutions.

\end{fulllineitems}

\index{capwords() (in module string)@\spxentry{capwords()}\spxextra{in module string}}

\begin{fulllineitems}
\phantomsection\label{\detokenize{index:string.capwords}}
<%- if sphinx_version > (4, 5) %>
\pysigstartsignatures
<% endif -%>
\pysiglinewithargsret<< sphinx81_linebreak >>{\sphinxcode{\sphinxupquote{string.}}\sphinxbfcode{\sphinxupquote{capwords}}}<< sphinx81_linebreak >>{\<<sphinxparam>>{<% if sphinx_version >= (4, 3)%>\DUrole{n<< sphinx6x_2nd('n') >>}{s}}<% else %>s}<% endif %>\sphinxoptional{<<sphinxparamcomma>>{<% if sphinx_version >= (4, 3)%>\DUrole{n<<sphinx6x_2nd("n")>>}{sep}}<% else %>sep}<% endif %>}}<< sphinx81_linebreak >>{{
<%- if sphinx_version >= (4, 4) %> $\rightarrow$ string}}
<%- else %> $\rightarrow$ {\hyperref[\detokenize{index:module-string}]{\sphinxcrossref{string}}}}}
<%- endif -%>
<%- if sphinx_version > (4, 5) %>
\pysigstopsignatures
<%- endif %>
Split the argument into words using split, capitalize each
word using capitalize, and join the capitalized words using
join.  If the optional second argument sep is absent or None,
runs of whitespace characters are replaced by a single space
and leading and trailing whitespace are removed, otherwise
sep is used to split and join the words.

\end{fulllineitems}

<% if sphinx_version < (7, 2) %>\phantomsection\label{\detokenize{index:module-textwrap}}<% endif -%>
\index{module@\spxentry{module}!textwrap@\spxentry{textwrap}}\index{textwrap@\spxentry{textwrap}!module@\spxentry{module}}
<%- if sphinx_version >= (7, 2) %>\phantomsection\label{\detokenize{index:module-textwrap}}<% endif %>
Text wrapping and filling.


\vspace{10px}


\sphinxstylestrong{Classes:}


\vspace{-5px}



\begin{savenotes}<% if sphinx_version >= (5, 3) %>
<% endif %>\sphinxatlongtablestart<% if sphinx_version >= (5, 3) %>
\sphinxthistablewithglobalstyle
\sphinxthistablewithnovlinesstyle
<% endif %><% if sphinx_version >= (6, 2) %>\makeatletter
  \LTleft \@totalleftmargin plus1fill
  \LTright\dimexpr\columnwidth-\@totalleftmargin-\linewidth\relax plus1fill
\makeatother
\begin{longtable}{\Xx{4}{10}\Xx{60}{100}}<% else %>\begin{longtable}[c]{\Xx{4}{10}\Xx{60}{100}}<% endif %><% if sphinx_version >= (5, 3) %>
\sphinxtoprule
<% else %>
\hline

<% endif %>\endfirsthead

\multicolumn{2}{c}<% if sphinx_version >= (5, 3) %>{\sphinxnorowcolor
    \makebox[0pt]<% else %>%
{\makebox[0pt]<% endif %>{\sphinxtablecontinued{\tablename\ \thetable{} \textendash{} continued from previous page}}<% if sphinx_version >= (5, 3) %>%
<% endif %>}\\
<% if sphinx_version >= (5, 3) %>\sphinxtoprule
<% else %>\hline

<% endif %>\endhead

<% if sphinx_version >= (5, 3) %>\sphinxbottomrule<% else %>\hline<% endif%>
\multicolumn{2}{r}{<% if sphinx_version >= (5, 3) %>\sphinxnorowcolor
    <% endif %>\makebox[0pt][r]{\sphinxtablecontinued{continues on next page}}<% if sphinx_version >= (5, 3) %>%
<% endif %>}\\
\endfoot

\endlastfoot<% if sphinx_version >= (5, 3) %>
\sphinxtableatstartofbodyhook<% endif%>

{\hyperref[\detokenize{index:textwrap.TextWrapper}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{TextWrapper}}}}}({[}width, initial\_indent, <% if sphinx_version >= (4, 2) %>...<% else %>…<% endif %>{]})
&
Object for wrapping/filling text.
\\
<% if sphinx_version >= (5, 3) %>\sphinxbottomrule<% else %>\hline<% endif %>
\end{longtable}<% if sphinx_version >= (5, 3) %>
\sphinxtableafterendhook
<% endif %>\sphinxatlongtableend<% if sphinx_version >= (5, 3) %>
<% endif %>\end{savenotes}

\sphinxstylestrong{Functions:}


\vspace{-5px}



\begin{savenotes}<% if sphinx_version >= (5, 3) %>
<% endif %>\sphinxatlongtablestart<% if sphinx_version >= (5, 3) %>
\sphinxthistablewithglobalstyle
\sphinxthistablewithnovlinesstyle
<% endif %><% if sphinx_version >= (6, 2) %>\makeatletter
  \LTleft \@totalleftmargin plus1fill
  \LTright\dimexpr\columnwidth-\@totalleftmargin-\linewidth\relax plus1fill
\makeatother
\begin{longtable}{\Xx{4}{10}\Xx{60}{100}}<% else %>\begin{longtable}[c]{\Xx{4}{10}\Xx{60}{100}}<% endif %><% if sphinx_version >= (5, 3) %>
\sphinxtoprule
<% else %>
\hline

<% endif %>\endfirsthead

\multicolumn{2}{c}<% if sphinx_version >= (5, 3) %>{\sphinxnorowcolor
    \makebox[0pt]<% else %>%
{\makebox[0pt]<% endif %>{\sphinxtablecontinued{\tablename\ \thetable{} \textendash{} continued from previous page}}<% if sphinx_version >= (5, 3) %>%
<% endif %>}\\
<% if sphinx_version >= (5, 3) %>\sphinxtoprule
<% else %>\hline

<% endif %>\endhead

<% if sphinx_version >= (5, 3) %>\sphinxbottomrule<% else %>\hline<% endif%>
\multicolumn{2}{r}{<% if sphinx_version >= (5, 3) %>\sphinxnorowcolor
    <% endif %>\makebox[0pt][r]{\sphinxtablecontinued{continues on next page}}<% if sphinx_version >= (5, 3) %>%
<% endif %>}\\
\endfoot

\endlastfoot<% if sphinx_version >= (5, 3) %>
\sphinxtableatstartofbodyhook<% endif%>

{\hyperref[\detokenize{index:textwrap.dedent}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{dedent}}}}}(text)
&
Remove any common leading whitespace from every line in \sphinxtitleref{text}.
\\
<< hline >>
{\hyperref[\detokenize{index:textwrap.fill}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{fill}}}}}(text{[}, width{]})
&
Fill a single paragraph of text, returning a new string.
\\
<< hline >>
{\hyperref[\detokenize{index:textwrap.indent}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{indent}}}}}(text, prefix{[}, predicate{]})
&
Adds <<open_smart_quote_b>>prefix<<close_smart_quote_b>> to the beginning of selected lines in <<open_smart_quote_b>>text<<close_smart_quote_b>>.
\\
<< hline >>
{\hyperref[\detokenize{index:textwrap.shorten}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{shorten}}}}}(text, width, **kwargs)
&
Collapse and truncate the given text to fit in the given width.
\\
<< hline >>
{\hyperref[\detokenize{index:textwrap.wrap}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{wrap}}}}}(text{[}, width{]})
&
Wrap a single paragraph of text, returning a list of wrapped lines.
\\
<% if sphinx_version >= (5, 3) %>\sphinxbottomrule<% else %>\hline<% endif %>
\end{longtable}<% if sphinx_version >= (5, 3) %>
\sphinxtableafterendhook
<% endif %>\sphinxatlongtableend<% if sphinx_version >= (5, 3) %>
<% endif %>\end{savenotes}
\index{TextWrapper (class in textwrap)@\spxentry{TextWrapper}\spxextra{class in textwrap}}

\begin{fulllineitems}
\phantomsection\label{\detokenize{index:textwrap.TextWrapper}}
<%- if sphinx_version > (4, 5) %>
\pysigstartsignatures
<% endif -%>
\pysiglinewithargsret<% if sphinx_version >= (8, 1) %>
<% endif %>{\sphinxbfcode{\sphinxupquote{<% if sphinx_version >= (8, 2) %>\DUrole{k}{class}<% else %>class<% endif %><% if sphinx_version >= (4, 3) %>\DUrole{w<< sphinx6x_2nd('w') >>}{<% if sphinx_version < (7, 2) %> <% endif %> }<% else %> <% endif -%>}}\sphinxcode{\sphinxupquote{textwrap.}}\sphinxbfcode{\sphinxupquote{TextWrapper}}}
<<- sphinx81_linebreak >>{\<< sphinxparam >>{\DUrole{n<< sphinx6x_2nd('n') >>}{width}\DUrole{o<< sphinx6x_2nd('o') >>}{=}\DUrole{default_value}{70}}<<sphinxparamcomma>>{\DUrole{n<< sphinx6x_2nd('n') >>}{initial\_indent}\DUrole{o<< sphinx6x_2nd('o') >>}{=}\DUrole{default_value}{\textquotesingle{}\textquotesingle{}}}<<sphinxparamcomma>>{\DUrole{n<< sphinx6x_2nd('n') >>}{subsequent\_indent}\DUrole{o<< sphinx6x_2nd('o') >>}{=}\DUrole{default_value}{\textquotesingle{}\textquotesingle{}}}<<sphinxparamcomma>>{\DUrole{n<< sphinx6x_2nd('n') >>}{expand\_tabs}\DUrole{o<< sphinx6x_2nd('o') >>}{=}\DUrole{default_value}{True}}<<sphinxparamcomma>>{\DUrole{n<< sphinx6x_2nd('n') >>}{replace\_whitespace}\DUrole{o<< sphinx6x_2nd('o') >>}{=}\DUrole{default_value}{True}}<<sphinxparamcomma>>{\DUrole{n<< sphinx6x_2nd('n') >>}{fix\_sentence\_endings}\DUrole{o<< sphinx6x_2nd('o') >>}{=}\DUrole{default_value}{False}}<<sphinxparamcomma>>{\DUrole{n<< sphinx6x_2nd('n') >>}{break\_long\_words}\DUrole{o<< sphinx6x_2nd('o') >>}{=}\DUrole{default_value}{True}}<<sphinxparamcomma>>{\DUrole{n<< sphinx6x_2nd('n') >>}{drop\_whitespace}\DUrole{o<< sphinx6x_2nd('o') >>}{=}\DUrole{default_value}{True}}<<sphinxparamcomma>>{\DUrole{n<< sphinx6x_2nd('n') >>}{break\_on\_hyphens}\DUrole{o<< sphinx6x_2nd('o') >>}{=}\DUrole{default_value}{True}}<<sphinxparamcomma>>{\DUrole{n<< sphinx6x_2nd('n') >>}{tabsize}\DUrole{o<< sphinx6x_2nd('o') >>}{=}\DUrole{default_value}{8}}<<sphinxparamcomma>>{
<%- if sphinx_version >= (8, 2) %>\DUrole{keyword-only-separator}<% endif %>
<%- if sphinx_version >= (8, 2) %>{<% endif %>\DUrole{o<< sphinx6x_2nd('o') >>}{<% if sphinx_version >= (8, 2) %>\sphinxstyleabbreviation{*} (Keyword\sphinxhyphen{}only parameters separator (PEP 3102))}<% else %>*<% endif %>}}<<sphinxparamcomma>>{\DUrole{n<< sphinx6x_2nd('n') >>}{max\_lines}\DUrole{o<< sphinx6x_2nd('o') >>}{=}\DUrole{default_value}{None}}<<sphinxparamcomma>>{\DUrole{n<< sphinx6x_2nd('n') >>}{placeholder}\DUrole{o<< sphinx6x_2nd('o') >>}{=}\DUrole{default_value}{\textquotesingle{} {[}...{]}\textquotesingle{}}}}<< sphinx81_linebreak >>{}
<% if sphinx_version > (4, 5) %>\pysigstopsignatures
<% endif -%>
Object for wrapping/filling text.  The public interface consists of
the wrap() and fill() methods; the other methods are just there for
subclasses to override in order to tweak the default behaviour.
If you want to completely replace the main wrapping algorithm,
you’ll probably have to override \_wrap\_chunks().
\begin{description}
<% if sphinx_version >= (5, 0) %>\sphinxlineitem<% else %>\item[<% endif %>{Several instance attributes control various aspects of wrapping:}<% if sphinx_version < (5, 0) %>] \leavevmode<% endif %>\begin{description}
<% if sphinx_version >= (5, 0) %>\sphinxlineitem<% else %>\item[<% endif %>{width (default: 70)}<% if sphinx_version < (5, 0) %>] \leavevmode<% endif %>
the maximum width of wrapped lines (unless break\_long\_words
is false)

<% if sphinx_version >= (5, 0) %>\sphinxlineitem<% else %>\item[<% endif %>{initial\_indent (default: “”)}<% if sphinx_version < (5, 0) %>] \leavevmode<% endif %>
string that will be prepended to the first line of wrapped
output.  Counts towards the line’s width.

<% if sphinx_version >= (5, 0) %>\sphinxlineitem<% else %>\item[<% endif %>{subsequent\_indent (default: “”)}<% if sphinx_version < (5, 0) %>] \leavevmode<% endif %>
string that will be prepended to all lines save the first
of wrapped output; also counts towards each line’s width.

<% if sphinx_version >= (5, 0) %>\sphinxlineitem<% else %>\item[<% endif %>{expand\_tabs (default: true)}<% if sphinx_version < (5, 0) %>] \leavevmode<% endif %>
Expand tabs in input text to spaces before further processing.
Each tab will become 0 .. ‘tabsize’ spaces, depending on its position
in its line.  If false, each tab is treated as a single character.

<% if sphinx_version >= (5, 0) %>\sphinxlineitem<% else %>\item[<% endif %>{tabsize (default: 8)}<% if sphinx_version < (5, 0) %>] \leavevmode<% endif %>
Expand tabs in input text to 0 .. ‘tabsize’ spaces, unless
‘expand\_tabs’ is false.

<% if sphinx_version >= (5, 0) %>\sphinxlineitem<% else %>\item[<% endif %>{replace\_whitespace (default: true)}<% if sphinx_version < (5, 0) %>] \leavevmode<% endif %>
Replace all whitespace characters in the input text by spaces
after tab expansion.  Note that if expand\_tabs is false and
replace\_whitespace is true, every tab will be converted to a
single space!

<% if sphinx_version >= (5, 0) %>\sphinxlineitem<% else %>\item[<% endif %>{fix\_sentence\_endings (default: false)}<% if sphinx_version < (5, 0) %>] \leavevmode<% endif %>
Ensure that sentence\sphinxhyphen{}ending punctuation is always followed
by two spaces.  Off by default because the algorithm is
(unavoidably) imperfect.

<% if sphinx_version >= (5, 0) %>\sphinxlineitem<% else %>\item[<% endif %>{break\_long\_words (default: true)}<% if sphinx_version < (5, 0) %>] \leavevmode<% endif %>
Break words longer than ‘width’.  If false, those words will not
be broken, and some lines might be longer than ‘width’.

<% if sphinx_version >= (5, 0) %>\sphinxlineitem<% else %>\item[<% endif %>{break\_on\_hyphens (default: true)}<% if sphinx_version < (5, 0) %>] \leavevmode<% endif %>
Allow breaking hyphenated words. If true, wrapping will occur
preferably on whitespaces and right after hyphens part of
compound words.

<% if sphinx_version >= (5, 0) %>\sphinxlineitem<% else %>\item[<% endif %>{drop\_whitespace (default: true)}<% if sphinx_version < (5, 0) %>] \leavevmode<% endif %>
Drop leading and trailing whitespace from lines.

<% if sphinx_version >= (5, 0) %>\sphinxlineitem<% else %>\item[<% endif %>{max\_lines (default: None)}<% if sphinx_version < (5, 0) %>] \leavevmode<% endif %>
Truncate wrapped lines.

<% if sphinx_version >= (5, 0) %>\sphinxlineitem<% else %>\item[<% endif %>{placeholder (default: ‘ {[}…{]}’)}<% if sphinx_version < (5, 0) %>] \leavevmode<% endif %>
Append to the last line of truncated text.

\end{description}

\end{description}


\vspace{10px}


\sphinxstylestrong{Methods:}


\vspace{-5px}



\begin{savenotes}<% if sphinx_version >= (5, 3) %>
<% endif %>\sphinxatlongtablestart<% if sphinx_version >= (5, 3) %>
\sphinxthistablewithglobalstyle
\sphinxthistablewithnovlinesstyle
<% endif %><% if sphinx_version >= (6, 2) %>\makeatletter
  \LTleft \@totalleftmargin plus1fill
  \LTright\dimexpr\columnwidth-\@totalleftmargin-\linewidth\relax plus1fill
\makeatother
\begin{longtable}{\Xx{4}{10}\Xx{60}{100}}<% else %>\begin{longtable}[c]{\Xx{4}{10}\Xx{60}{100}}<% endif %><% if sphinx_version >= (5, 3) %>
\sphinxtoprule
<% else %>
\hline

<% endif %>\endfirsthead

\multicolumn{2}{c}<% if sphinx_version >= (5, 3) %>{\sphinxnorowcolor
    \makebox[0pt]<% else %>%
{\makebox[0pt]<% endif %>{\sphinxtablecontinued{\tablename\ \thetable{} \textendash{} continued from previous page}}<% if sphinx_version >= (5, 3) %>%
<% endif %>}\\
<% if sphinx_version >= (5, 3) %>\sphinxtoprule
<% else %>\hline

<% endif %>\endhead

<% if sphinx_version >= (5, 3) %>\sphinxbottomrule<% else %>\hline<% endif%>
\multicolumn{2}{r}{<% if sphinx_version >= (5, 3) %>\sphinxnorowcolor
    <% endif %>\makebox[0pt][r]{\sphinxtablecontinued{continues on next page}}<% if sphinx_version >= (5, 3) %>%
<% endif %>}\\
\endfoot

\endlastfoot<% if sphinx_version >= (5, 3) %>
\sphinxtableatstartofbodyhook<% endif%>

{\hyperref[\detokenize{index:textwrap.TextWrapper.fill}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{fill}}}}}(text)
&
Reformat the single paragraph in <<open_smart_quote_b>>text<<close_smart_quote_b>> to fit in lines of no more than <<open_smart_quote_b>>self.width<<close_smart_quote_b>> columns, and return a new string containing the entire wrapped paragraph.
\\
<< hline >>
{\hyperref[\detokenize{index:textwrap.TextWrapper.wrap}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{wrap}}}}}(text)
&
Reformat the single paragraph in <<open_smart_quote_b>>text<<close_smart_quote_b>> so it fits in lines of no more than <<open_smart_quote_b>>self.width<<close_smart_quote_b>> columns, and return a list of wrapped lines.
\\
<% if sphinx_version >= (5, 3) %>\sphinxbottomrule<% else %>\hline<% endif %>
\end{longtable}<% if sphinx_version >= (5, 3) %>
\sphinxtableafterendhook
<% endif %>\sphinxatlongtableend<% if sphinx_version >= (5, 3) %>
<% endif %>\end{savenotes}
\index{fill() (textwrap.TextWrapper method)@\spxentry{fill()}\spxextra{textwrap.TextWrapper method}}

\begin{fulllineitems}
\phantomsection\label{\detokenize{index:textwrap.TextWrapper.fill}}
<%- if sphinx_version > (4, 5) %>
\pysigstartsignatures
<% endif -%>
\pysiglinewithargsret<< sphinx81_linebreak >>{\sphinxbfcode{\sphinxupquote{fill}}}<< sphinx81_linebreak >>{\<< sphinxparam >>{\DUrole{n<< sphinx6x_2nd('n') >>}{text}\DUrole{p<< sphinx6x_2nd('p') >>}{:}<% if sphinx_version >= (4, 3) %>\DUrole{w<<sphinx6x_2nd("w")>>}{<% if sphinx_version < (7, 2) %> <% endif %> }<% else %> <% endif %>\DUrole{n<<sphinx6x_2nd("n")>>}{
<%- if sphinx_version >= (4, 4) %>string}}}<< sphinx81_linebreak >>{{ $\rightarrow$ string}}
<%- else %>{\hyperref[\detokenize{index:module-string}]{\sphinxcrossref{string}}}}}}{{ $\rightarrow$ {\hyperref[\detokenize{index:module-string}]{\sphinxcrossref{string}}}}}
<%- endif %>
<%- if sphinx_version > (4, 5) %>
\pysigstopsignatures
<%- endif %>
Reformat the single paragraph in ‘text’ to fit in lines of no
more than ‘self.width’ columns, and return a new string
containing the entire wrapped paragraph.

\end{fulllineitems}

\index{wrap() (textwrap.TextWrapper method)@\spxentry{wrap()}\spxextra{textwrap.TextWrapper method}}

\begin{fulllineitems}
\phantomsection\label{\detokenize{index:textwrap.TextWrapper.wrap}}
<%- if sphinx_version > (4, 5) %>
\pysigstartsignatures
<% endif -%>
\pysiglinewithargsret<< sphinx81_linebreak >>{\sphinxbfcode{\sphinxupquote{wrap}}}<< sphinx81_linebreak >>{\<< sphinxparam >>{\DUrole{n<< sphinx6x_2nd('n') >>}{text}\DUrole{p<<sphinx6x_2nd("p")>>}{:}<% if sphinx_version >= (4, 3) %>\DUrole{w<<sphinx6x_2nd("w")>>}{<% if sphinx_version < (7, 2) %> <% endif %> }<% else %> <% endif %>\DUrole{n<<sphinx6x_2nd("n")>>}{
<%- if sphinx_version >= (4, 4) -%>
string}}}<< sphinx81_linebreak >>{{ $\rightarrow$ \DUrole{p<<sphinx6x_2nd("p")>>}{{[}}string\DUrole{p<<sphinx6x_2nd("p")>>}{{]}}}}
<%- else -%>
{\hyperref[\detokenize{index:module-string}]{\sphinxcrossref{string}}}}}}{{ $\rightarrow$ \DUrole{p<<sphinx6x_2nd("p")>>}{{[}}{\hyperref[\detokenize{index:module-string}]{\sphinxcrossref{string}}}\DUrole{p}{{]}}}}
<%- endif -%>
<%- if sphinx_version > (4, 5) %>
\pysigstopsignatures
<%- endif %>
Reformat the single paragraph in ‘text’ so it fits in lines of
no more than ‘self.width’ columns, and return a list of wrapped
lines.  Tabs in ‘text’ are expanded with string.expandtabs(),
and all other whitespace characters (including newline) are
converted to space.

\end{fulllineitems}


\end{fulllineitems}

\index{dedent() (in module textwrap)@\spxentry{dedent()}\spxextra{in module textwrap}}

\begin{fulllineitems}
\phantomsection\label{\detokenize{index:textwrap.dedent}}
<%- if sphinx_version > (4, 5) %>
\pysigstartsignatures
<% endif -%>
\pysiglinewithargsret<< sphinx81_linebreak >>{\sphinxcode{\sphinxupquote{textwrap.}}\sphinxbfcode{\sphinxupquote{dedent}}}<< sphinx81_linebreak >>{\<<sphinxparam>>{\DUrole{n<< sphinx6x_2nd('n') >>}{text}}}<< sphinx81_linebreak >>{}
<% if sphinx_version > (4, 5) %>\pysigstopsignatures
<% endif -%>
Remove any common leading whitespace from every line in \sphinxtitleref{text}.

This can be used to make triple\sphinxhyphen{}quoted strings line up with the left
edge of the display, while still presenting them in the source code
in indented form.

Note that tabs and spaces are both treated as whitespace, but they
are not equal: the lines << '”' if docutils_version < (0, 19) else '“' >>  hello” and “thello” are
considered to have no common leading whitespace.

Entirely blank lines are normalized to a newline character.

\end{fulllineitems}

\index{fill() (in module textwrap)@\spxentry{fill()}\spxextra{in module textwrap}}

\begin{fulllineitems}
\phantomsection\label{\detokenize{index:textwrap.fill}}
<%- if sphinx_version > (4, 5) %>
\pysigstartsignatures
<% endif -%>
\pysiglinewithargsret<< sphinx81_linebreak >>{\sphinxcode{\sphinxupquote{textwrap.}}\sphinxbfcode{\sphinxupquote{fill}}}<< sphinx81_linebreak >>{\<<sphinxparam>>{\DUrole{n<< sphinx6x_2nd('n') >>}{text}}<<sphinxparamcomma>>{\DUrole{n<< sphinx6x_2nd('n') >>}{width}\DUrole{o<< sphinx6x_2nd('o') >>}{=}\DUrole{default_value}{70}}<<sphinxparamcomma>>{\DUrole{o<< sphinx6x_2nd('o') >>}{**}\DUrole{n<< sphinx6x_2nd('n') >>}{kwargs}}}<< sphinx81_linebreak >>{}
<% if sphinx_version > (4, 5) %>\pysigstopsignatures
<% endif -%>
Fill a single paragraph of text, returning a new string.

Reformat the single paragraph in ‘text’ to fit in lines of no more
than ‘width’ columns, and return a new string containing the entire
wrapped paragraph.  As with wrap(), tabs are expanded and other
whitespace characters converted to space.  See TextWrapper class for
available keyword args to customize wrapping behaviour.

\end{fulllineitems}

\index{indent() (in module textwrap)@\spxentry{indent()}\spxextra{in module textwrap}}

\begin{fulllineitems}
\phantomsection\label{\detokenize{index:textwrap.indent}}
<%- if sphinx_version > (4, 5) %>
\pysigstartsignatures
<% endif -%>
\pysiglinewithargsret<< sphinx81_linebreak >>{\sphinxcode{\sphinxupquote{textwrap.}}\sphinxbfcode{\sphinxupquote{indent}}}<< sphinx81_linebreak >>{\<<sphinxparam>>{\DUrole{n<< sphinx6x_2nd('n') >>}{text}}<<sphinxparamcomma>>{\DUrole{n<< sphinx6x_2nd('n') >>}{prefix}}<<sphinxparamcomma>>{\DUrole{n<< sphinx6x_2nd('n') >>}{predicate}\DUrole{o<< sphinx6x_2nd('o') >>}{=}\DUrole{default_value}{None}}}<< sphinx81_linebreak >>{}
<% if sphinx_version > (4, 5) %>\pysigstopsignatures
<% endif -%>
Adds <<open_smart_quote>>prefix<<close_smart_quote>> to the beginning of selected lines in ‘text’.

If ‘predicate’ is provided, ‘prefix’ will only be added to the lines
where ‘predicate(line)’ is True. If ‘predicate’ is not provided,
it will default to adding ‘prefix’ to all non\sphinxhyphen{}empty lines that do not
consist solely of whitespace characters.

\end{fulllineitems}

\index{shorten() (in module textwrap)@\spxentry{shorten()}\spxextra{in module textwrap}}

\begin{fulllineitems}
\phantomsection\label{\detokenize{index:textwrap.shorten}}
<%- if sphinx_version > (4, 5) %>
\pysigstartsignatures
<% endif -%>
\pysiglinewithargsret<< sphinx81_linebreak >>{\sphinxcode{\sphinxupquote{textwrap.}}\sphinxbfcode{\sphinxupquote{shorten}}}<< sphinx81_linebreak >>{\<<sphinxparam>>{\DUrole{n<< sphinx6x_2nd('n') >>}{text}}<<sphinxparamcomma>>{\DUrole{n<< sphinx6x_2nd('n') >>}{width}}<<sphinxparamcomma>>{\DUrole{o<< sphinx6x_2nd('o') >>}{**}\DUrole{n<< sphinx6x_2nd('n') >>}{kwargs}}}<< sphinx81_linebreak >>{}
<% if sphinx_version > (4, 5) %>\pysigstopsignatures
<% endif -%>
Collapse and truncate the given text to fit in the given width.

The text first has its whitespace collapsed.  If it then fits in
the \sphinxstyleemphasis{width}, it is returned as is.  Otherwise, as many words
as possible are joined and then the placeholder is appended:

\begin{sphinxVerbatim}[commandchars=\\\{\}]
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{textwrap}\PYG{o}{.}\PYG{n}{shorten}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}}\PYG{l+s+s2}{Hello  world!}\PYG{l+s+s2}{\PYGZdq{}}\PYG{p}{,} \PYG{n}{width}\PYG{o}{=}\PYG{l+m+mi}{12}\PYG{p}{)}
\PYG{g+go}{\PYGZsq{}Hello world!\PYGZsq{}}
\PYG{g+gp}{\PYGZgt{}\PYGZgt{}\PYGZgt{} }\PYG{n}{textwrap}\PYG{o}{.}\PYG{n}{shorten}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}}\PYG{l+s+s2}{Hello  world!}\PYG{l+s+s2}{\PYGZdq{}}\PYG{p}{,} \PYG{n}{width}\PYG{o}{=}\PYG{l+m+mi}{11}\PYG{p}{)}
\PYG{g+go}{\PYGZsq{}Hello [...]\PYGZsq{}}
\end{sphinxVerbatim}

\end{fulllineitems}

\index{wrap() (in module textwrap)@\spxentry{wrap()}\spxextra{in module textwrap}}

\begin{fulllineitems}
\phantomsection\label{\detokenize{index:textwrap.wrap}}
<%- if sphinx_version > (4, 5) %>
\pysigstartsignatures
<% endif -%>
\pysiglinewithargsret<< sphinx81_linebreak >>{\sphinxcode{\sphinxupquote{textwrap.}}\sphinxbfcode{\sphinxupquote{wrap}}}<< sphinx81_linebreak >>{\<<sphinxparam>>{\DUrole{n<< sphinx6x_2nd('n') >>}{text}}<<sphinxparamcomma>>{\DUrole{n<< sphinx6x_2nd('n') >>}{width}\DUrole{o<< sphinx6x_2nd('o') >>}{=}\DUrole{default_value}{70}}<<sphinxparamcomma>>{\DUrole{o<< sphinx6x_2nd('o') >>}{**}\DUrole{n<< sphinx6x_2nd('n') >>}{kwargs}}}<< sphinx81_linebreak >>{}
<% if sphinx_version > (4, 5) %>\pysigstopsignatures
<% endif -%>
Wrap a single paragraph of text, returning a list of wrapped lines.

Reformat the single paragraph in ‘text’ so it fits in lines of no
more than ‘width’ columns, and return a list of wrapped lines.  By
default, tabs in ‘text’ are expanded with string.expandtabs(), and
all other whitespace characters (including newline) are converted to
space.  See TextWrapper class for available keyword args to customize
wrapping behaviour.

\end{fulllineitems}



\renewcommand{\indexname}{Python Module Index}
\begin{sphinxtheindex}
\let\bigletter\sphinxstyleindexlettergroup
\bigletter{s}
\item\relax\sphinxstyleindexentry{string}\sphinxstyleindexpageref{index:\detokenize{module-string}}
\indexspace
\bigletter{t}
\item\relax\sphinxstyleindexentry{textwrap}\sphinxstyleindexpageref{index:\detokenize{module-textwrap}}
\end{sphinxtheindex}

\renewcommand{\indexname}{Index}
\printindex
\end{document}