Repository navigation
Expand file tree
/
Copy pathmkdocs.yml
More file actions
549 lines (541 loc) · 18.2 KB
/
Copy pathmkdocs.yml
File metadata and controls
549 lines (541 loc) · 18.2 KB
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
site_name: "Python Big-O: Time & Space Complexity"
site_description: Comprehensive documentation of time and space complexity for Python built-ins and standard library
site_url: https://pythoncomplexity.com
repo_url: https://github.com/heikkitoivonen/python-time-space-complexity
repo_name: GitHub
theme:
name: material
custom_dir: docs/overrides
features:
- announce.dismiss
- navigation.tracking
- navigation.tabs
- navigation.tabs.sticky
- navigation.expand
- navigation.path
- toc.integrate
- content.code.copy
- search.suggest
- search.highlight
palette:
- scheme: default
primary: blue
accent: indigo
toggle:
icon: material/lightbulb-outline
name: Switch to dark mode
- scheme: slate
primary: blue
accent: indigo
toggle:
icon: material/lightbulb
name: Switch to light mode
# The theme's custom_dir lives inside docs/, so mkdocs would otherwise copy the
# Jinja templates there into the build and serve them as pages - fragments with
# no <html> element, no language, and unrendered {% %} markup, one copy per
# locale. Excluding them from the docs tree does not affect custom_dir: theme
# templates are resolved through the Jinja loader, not the file collection.
exclude_docs: |
overrides/
stylesheets/extra.css
nav:
- Home: index.md
- Builtins:
- Builtins Overview: builtins/index.md
- Absolute: builtins/abs.md
- Aiter: builtins/aiter.md
- All: builtins/all.md
- Anext: builtins/anext.md
- Any: builtins/any.md
- Ascii: builtins/ascii.md
- Bin: builtins/bin.md
- Bool: builtins/bool_func.md
- Boolean: builtins/bool.md
- Breakpoint: builtins/breakpoint.md
- Bytearray: builtins/bytearray.md
- bytearray(): builtins/bytearray_func.md
- Bytes: builtins/bytes.md
- bytes(): builtins/bytes_func.md
- Callable: builtins/callable.md
- Chr: builtins/chr.md
- Classmethod: builtins/classmethod.md
- Compile: builtins/compile.md
- Complex: builtins/complex_func.md
- __debug__: builtins/debug.md
- Delattr: builtins/delattr.md
- Dict: builtins/dict_func.md
- Dictionaries: builtins/dict.md
- Dir: builtins/dir.md
- Divmod: builtins/divmod.md
- Ellipsis: builtins/ellipsis.md
- Enumerate: builtins/enumerate.md
- Eval: builtins/eval.md
- Exceptions: builtins/exceptions.md
- Exec: builtins/exec.md
- Exit/Quit: builtins/exit_quit.md
- False: builtins/false.md
- Filter: builtins/filter.md
- Float: builtins/float.md
- float(): builtins/float_func.md
- Format: builtins/format.md
- Frozendict: builtins/frozendict.md
- Frozenset: builtins/frozenset.md
- frozenset(): builtins/frozenset_func.md
- Getattr: builtins/getattr.md
- Globals: builtins/globals.md
- Hasattr: builtins/hasattr.md
- Hash: builtins/hash.md
- Help: builtins/help.md
- Hex: builtins/hex.md
- Id: builtins/id.md
- __import__: builtins/__import__.md
- Input: builtins/input.md
- Int: builtins/int_func.md
- Integer: builtins/int.md
- Interpreter Info: builtins/interpreter_info.md
- Isinstance: builtins/isinstance.md
- Issubclass: builtins/issubclass.md
- Iter: builtins/iter.md
- Length: builtins/len.md
- List: builtins/list_func.md
- Lists: builtins/list.md
- Locals: builtins/locals_func.md
- Map: builtins/map.md
- Maximum: builtins/max.md
- Memoryview: builtins/memoryview_func.md
- Minimum: builtins/min.md
- Next: builtins/next.md
- None: builtins/none.md
- NotImplemented: builtins/notimplemented.md
- Object: builtins/object_func.md
- Oct: builtins/oct.md
- Open: builtins/open.md
- Ord: builtins/ord.md
- Power: builtins/pow.md
- Print: builtins/print.md
- Property: builtins/property.md
- Range: builtins/range.md
- Repr: builtins/repr.md
- Reversed: builtins/reversed.md
- Round: builtins/round.md
- Sentinel: builtins/sentinel.md
- Set: builtins/set_func.md
- Setattr: builtins/setattr.md
- Sets: builtins/set.md
- Slice: builtins/slice.md
- Sorted: builtins/sorted.md
- Staticmethod: builtins/staticmethod.md
- Str: builtins/str_func.md
- Strings: builtins/str.md
- Sum: builtins/sum.md
- Super: builtins/super.md
- True: builtins/true.md
- Tuple: builtins/tuple_func.md
- Tuples: builtins/tuple.md
- Type: builtins/type_func.md
- Vars: builtins/vars.md
- Zip: builtins/zip.md
- Standard Library:
- Standard Library Overview: stdlib/index.md
- __future__: stdlib/__future__.md
- ABC: stdlib/abc.md
- Aifc: stdlib/aifc.md
- Annotationlib: stdlib/annotationlib.md
- Antigravity: stdlib/antigravity.md
- Argparse: stdlib/argparse.md
- Array: stdlib/array.md
- Ast: stdlib/ast.md
- Asynchat: stdlib/asynchat.md
- Asyncio: stdlib/asyncio.md
- Asyncore: stdlib/asyncore.md
- Atexit: stdlib/atexit.md
- Audioop: stdlib/audioop.md
- Base64: stdlib/base64.md
- Bdb: stdlib/bdb.md
- Binascii: stdlib/binascii.md
- Binhex: stdlib/binhex.md
- Bisect: stdlib/bisect.md
- Builtins (module): stdlib/builtins.md
- Bz2: stdlib/bz2.md
- Calendar: stdlib/calendar.md
- Cgi: stdlib/cgi.md
- Cgitb: stdlib/cgitb.md
- Chunk: stdlib/chunk.md
- Cmath: stdlib/cmath.md
- Cmd: stdlib/cmd.md
- Code: stdlib/code.md
- Codecs: stdlib/codecs.md
- Codeop: stdlib/codeop.md
- Collections: stdlib/collections.md
- Collections.abc: stdlib/collections.abc.md
- Colorsys: stdlib/colorsys.md
- Compileall: stdlib/compileall.md
- Compression: stdlib/compression.md
- Concurrent: stdlib/concurrent.md
- Concurrent.futures: stdlib/concurrent_futures.md
- Concurrent.interpreters: stdlib/concurrent.interpreters.md
- Configparser: stdlib/configparser.md
- Contextlib: stdlib/contextlib.md
- Contextvars: stdlib/contextvars.md
- Copy: stdlib/copy.md
- Copyreg: stdlib/copyreg.md
- Counter: stdlib/counter.md
- CProfile: stdlib/cprofile.md
- Crypt: stdlib/crypt.md
- Csv: stdlib/csv.md
- Ctypes: stdlib/ctypes.md
- Curses: stdlib/curses.md
- Dataclasses: stdlib/dataclasses.md
- Datetime: stdlib/datetime.md
- DBM: stdlib/dbm.md
- Decimal: stdlib/decimal.md
- Defaultdict: stdlib/defaultdict.md
- Deque: stdlib/deque.md
- Difflib: stdlib/difflib.md
- Dis: stdlib/dis.md
- Distutils: stdlib/distutils.md
- Doctest: stdlib/doctest.md
- Email: stdlib/email.md
- Encodings: stdlib/encodings.md
- Ensurepip: stdlib/ensurepip.md
- Enum: stdlib/enum.md
- Errno: stdlib/errno.md
- Faulthandler: stdlib/faulthandler.md
- Fcntl: stdlib/fcntl.md
- Filecmp: stdlib/filecmp.md
- Fileinput: stdlib/fileinput.md
- Fnmatch: stdlib/fnmatch.md
- Fractions: stdlib/fractions.md
- Ftplib: stdlib/ftplib.md
- Functools: stdlib/functools.md
- GC: stdlib/gc.md
- Genericpath: stdlib/genericpath.md
- Getopt: stdlib/getopt.md
- Getpass: stdlib/getpass.md
- Gettext: stdlib/gettext.md
- Glob: stdlib/glob.md
- Graphlib: stdlib/graphlib.md
- Grp: stdlib/grp.md
- Gzip: stdlib/gzip.md
- Hashlib: stdlib/hashlib.md
- Heapq: stdlib/heapq.md
- Hmac: stdlib/hmac.md
- Html: stdlib/html.md
- Http: stdlib/http.md
- Idlelib: stdlib/idlelib.md
- Imaplib: stdlib/imaplib.md
- Imghdr: stdlib/imghdr.md
- Imp: stdlib/imp.md
- Importlib: stdlib/importlib.md
- Inspect: stdlib/inspect.md
- IO: stdlib/io.md
- Ipaddress: stdlib/ipaddress.md
- Itertools: stdlib/itertools.md
- JSON: stdlib/json.md
- Keyword: stdlib/keyword.md
- Lib2to3: stdlib/lib2to3.md
- Linecache: stdlib/linecache.md
- Locale: stdlib/locale.md
- Logging: stdlib/logging.md
- Lzma: stdlib/lzma.md
- Mailbox: stdlib/mailbox.md
- Mailcap: stdlib/mailcap.md
- Marshal: stdlib/marshal.md
- Math: stdlib/math.md
- Mimetypes: stdlib/mimetypes.md
- Mmap: stdlib/mmap.md
- Modulefinder: stdlib/modulefinder.md
- Msilib: stdlib/msilib.md
- Msvcrt: stdlib/msvcrt.md
- Multiprocessing: stdlib/multiprocessing.md
- Namedtuple: stdlib/namedtuple.md
- Netrc: stdlib/netrc.md
- Nis: stdlib/nis.md
- Nntplib: stdlib/nntplib.md
- Nt: stdlib/nt.md
- Ntpath: stdlib/ntpath.md
- Nturl2path: stdlib/nturl2path.md
- Numbers: stdlib/numbers.md
- Opcode: stdlib/opcode.md
- Operator: stdlib/operator.md
- Optparse: stdlib/optparse.md
- OrderedDict: stdlib/ordereddict.md
- OS: stdlib/os.md
- Ossaudiodev: stdlib/ossaudiodev.md
- Pathlib: stdlib/pathlib.md
- Pdb: stdlib/pdb.md
- Pickle: stdlib/pickle.md
- Pickletools: stdlib/pickletools.md
- Pipes: stdlib/pipes.md
- Pkgutil: stdlib/pkgutil.md
- Platform: stdlib/platform.md
- Plistlib: stdlib/plistlib.md
- Poplib: stdlib/poplib.md
- Posix: stdlib/posix.md
- Posixpath: stdlib/posixpath.md
- Pprint: stdlib/pprint.md
- Profile: stdlib/profile.md
- Profiling: stdlib/profiling.md
- Pstats: stdlib/pstats.md
- Pty: stdlib/pty.md
- Pwd: stdlib/pwd.md
- Py_compile: stdlib/py_compile.md
- Pyclbr: stdlib/pyclbr.md
- Pydoc: stdlib/pydoc.md
- Pydoc_data: stdlib/pydoc_data.md
- Pyexpat: stdlib/pyexpat.md
- Queue: stdlib/queue.md
- Quopri: stdlib/quopri.md
- Random: stdlib/random.md
- Readline: stdlib/readline.md
- Regular Expressions: stdlib/re.md
- Reprlib: stdlib/reprlib.md
- Resource: stdlib/resource.md
- Rlcompleter: stdlib/rlcompleter.md
- Runpy: stdlib/runpy.md
- Sched: stdlib/sched.md
- Secrets: stdlib/secrets.md
- Select: stdlib/select.md
- Selectors: stdlib/selectors.md
- Shelve: stdlib/shelve.md
- Shlex: stdlib/shlex.md
- Shutil: stdlib/shutil.md
- Signal: stdlib/signal.md
- Site: stdlib/site.md
- Smtpd: stdlib/smtpd.md
- Smtplib: stdlib/smtplib.md
- Sndhdr: stdlib/sndhdr.md
- Socket: stdlib/socket.md
- Socketserver: stdlib/socketserver.md
- Spwd: stdlib/spwd.md
- Sqlite3: stdlib/sqlite3.md
- Sre_compile: stdlib/sre_compile.md
- Sre_constants: stdlib/sre_constants.md
- Sre_parse: stdlib/sre_parse.md
- Ssl: stdlib/ssl.md
- Stat: stdlib/stat.md
- Statistics: stdlib/statistics.md
- String: stdlib/string.md
- Stringprep: stdlib/stringprep.md
- Struct: stdlib/struct.md
- Subprocess: stdlib/subprocess.md
- Sunau: stdlib/sunau.md
- Symtable: stdlib/symtable.md
- Sys: stdlib/sys.md
- Sysconfig: stdlib/sysconfig.md
- Syslog: stdlib/syslog.md
- Tabnanny: stdlib/tabnanny.md
- Tarfile: stdlib/tarfile.md
- Telnetlib: stdlib/telnetlib.md
- Tempfile: stdlib/tempfile.md
- Termios: stdlib/termios.md
- Textwrap: stdlib/textwrap.md
- This: stdlib/this.md
- Threading: stdlib/threading.md
- Time: stdlib/time.md
- Timeit: stdlib/timeit.md
- Tkinter: stdlib/tkinter.md
- Token: stdlib/token.md
- Tokenize: stdlib/tokenize.md
- Tomllib: stdlib/tomllib.md
- Trace: stdlib/trace.md
- Traceback: stdlib/traceback.md
- Tracemalloc: stdlib/tracemalloc.md
- Tty: stdlib/tty.md
- Turtle: stdlib/turtle.md
- Turtledemo: stdlib/turtledemo.md
- Types: stdlib/types.md
- Typing: stdlib/typing.md
- Unicodedata: stdlib/unicodedata.md
- Unittest: stdlib/unittest.md
- Urllib: stdlib/urllib.md
- Uu: stdlib/uu.md
- Uuid: stdlib/uuid.md
- Venv: stdlib/venv.md
- Warnings: stdlib/warnings.md
- Wave: stdlib/wave.md
- Weakref: stdlib/weakref.md
- Webbrowser: stdlib/webbrowser.md
- Winreg: stdlib/winreg.md
- Winsound: stdlib/winsound.md
- Wsgiref: stdlib/wsgiref.md
- Xdrlib: stdlib/xdrlib.md
- Xml: stdlib/xml.md
- Xml.dom: stdlib/xml.dom.md
- Xml.etree.ElementTree: stdlib/xml.etree.elementtree.md
- Xml.sax: stdlib/xml.sax.md
- Xmlrpc: stdlib/xmlrpc.md
- Zipapp: stdlib/zipapp.md
- Zipfile: stdlib/zipfile.md
- Zipimport: stdlib/zipimport.md
- Zlib: stdlib/zlib.md
- Zoneinfo: stdlib/zoneinfo.md
- Implementations:
- Implementations Overview: implementations/index.md
- CPython: implementations/cpython.md
- IronPython: implementations/ironpython.md
- Jython: implementations/jython.md
- PyPy: implementations/pypy.md
- Versions:
- Versions Overview: versions/index.md
- Python 3.15: versions/py315.md
- Python 3.14: versions/py314.md
- Python 3.13: versions/py313.md
- Python 3.12: versions/py312.md
- Python 3.11: versions/py311.md
- Python 3.10: versions/py310.md
hooks:
- scripts/mkdocs_hooks.py
plugins:
# \u200b: jieba marks Chinese word boundaries with zero-width spaces when it
# builds the search index. JavaScript's \s does not match U+200B, so without
# it here a whole Chinese phrase is indexed as a single token.
- search:
separator: '[\s\u200b\-]+'
- mermaid2
- i18n:
# Set by the build orchestration to build one self-contained locale at a
# time, each with its own search index. Unset builds every locale into a
# single tree that shares one index. See scripts/build_site.py.
build_only_locale: !ENV [BUILD_ONLY_LOCALE, null]
docs_structure: folder
fallback_to_default: true
languages:
- locale: en
name: English
default: true
build: true
- locale: fi
name: Suomi
build: true
site_name: "Pythonin O-notaatio: aika- ja tilavaativuus"
site_description: Kattava dokumentaatio Pythonin sisäänrakennettujen tyyppien ja standardikirjaston aika- ja tilavaativuuksista
nav_translations:
Home: Etusivu
Builtins Overview: Sisäänrakennettujen yleiskatsaus
Standard Library Overview: Standardikirjaston yleiskatsaus
Implementations Overview: Toteutusten yleiskatsaus
Versions Overview: Versioiden yleiskatsaus
Builtins: Sisäänrakennetut
Standard Library: Standardikirjasto
Implementations: Toteutukset
Versions: Versiot
Lists: Listat
Dictionaries: Sanakirjat
Sets: Joukot
Tuples: Monikot
Strings: Merkkijonot
Bytes: Tavut
Bytearray: Tavutaulukko
Range: Lukualue
Integer: Kokonaisluku
Float: Liukuluku
Boolean: Totuusarvo
Enumerate: Numerointi
Length: Pituus
Maximum: Suurin
Minimum: Pienin
Sum: Summa
Sorted: Järjestäminen
Regular Expressions: Säännölliset lausekkeet
- locale: zh
name: 简体中文
build: true
site_name: "Python 大 O 表示法:时间与空间复杂度"
site_description: Python 内置类型与标准库操作的时间和空间复杂度完整参考
nav_translations:
Home: 首页
Builtins Overview: 内置概览
Standard Library Overview: 标准库概览
Implementations Overview: 实现概览
Versions Overview: 版本概览
Absolute: 绝对值
Bool: bool() 函数
Builtins: 内置
Standard Library: 标准库
Implementations: 实现
Versions: 版本
Lists: 列表
Dictionaries: 字典
Sets: 集合
Tuples: 元组
Strings: 字符串
Bytes: 字节
Bytearray: 字节数组
Range: 范围
Integer: 整数
Float: 浮点数
Boolean: 布尔值
Length: 长度
Maximum: 最大值
Memoryview: 内存视图
Minimum: 最小值
Sum: 求和
Sorted: 排序
Regular Expressions: 正则表达式
- locale: ja
name: 日本語
build: true
site_name: "Python の O 記法:時間計算量と空間計算量"
site_description: Python の組み込み型と標準ライブラリの操作における時間計算量と空間計算量の完全リファレンス
nav_translations:
Home: ホーム
Builtins Overview: 組み込みの概要
Standard Library Overview: 標準ライブラリの概要
Implementations Overview: 実装の概要
Versions Overview: バージョンの概要
Builtins: 組み込み
Standard Library: 標準ライブラリ
Implementations: 実装
Versions: バージョン
Lists: リスト
Dictionaries: 辞書
Sets: 集合
Tuples: タプル
Strings: 文字列
Bytes: バイト列
Bytearray: バイト配列
Range: 範囲
Integer: 整数
Float: 浮動小数点数
Boolean: 真偽値
Length: 長さ
Maximum: 最大値
Minimum: 最小値
Sum: 合計
Sorted: ソート
Regular Expressions: 正規表現
markdown_extensions:
- admonition
- attr_list
- def_list
- md_in_html
- pymdownx.details
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tabbed:
alternate_style: true
- pymdownx.highlight:
use_pygments: true
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- tables
- toc:
permalink: true
slugify: !!python/name:markdown.extensions.toc.slugify_unicode
extra:
analytics:
provider: google
property: G-7QJ6R1ZTRV
# No extra_css: stylesheets/extra.css is minified and inlined into every page's
# head by scripts/mkdocs_hooks.py, which removes a render-blocking request from
# the critical path. The file below stays the source of truth -- it is what
# tests/test_accessibility.py reads -- but is not copied into the build, since
# nothing would link to it.
copyright: "© 2026 The Python Complexity Project Contributors"