File tree 9 files changed +12
-12
lines changed
Filter options
9 files changed +12
-12
lines changed
Original file line number Diff line number Diff line change @@ -438,8 +438,8 @@ an API can replace version 1.
438
438
439
439
The possible paths of the status of PEPs are as follows:
440
440
441
- .. rst-class:: invert-in-dark-mode
442
441
.. image:: pep-0001-process_flow.png
442
+ :class: invert-in-dark-mode
443
443
:alt: PEP process flow diagram
444
444
445
445
While not shown in the diagram, "Accepted" PEPs may technically move to
Original file line number Diff line number Diff line change @@ -488,8 +488,8 @@ also indicates the types of keys used to sign each role, and which roles are
488
488
trusted to sign for files available on PyPI. The next two sections cover the
489
489
details of signing repository files and the types of keys used for each role.
490
490
491
- .. rst-class:: invert-in-dark-mode
492
491
.. image:: pep-0458-1.png
492
+ :class: invert-in-dark-mode
493
493
494
494
Figure 1: An overview of the role metadata available on PyPI.
495
495
Original file line number Diff line number Diff line change @@ -206,8 +206,8 @@ projects are signed by an online key. That is, an attacker is able to corrupt
206
206
packages in the minimum security model, but not in the maximum model, without
207
207
also compromising a developer's key.
208
208
209
- .. rst-class:: invert-in-dark-mode
210
209
.. image:: pep-0480-1.png
210
+ :class: invert-in-dark-mode
211
211
212
212
Figure 1: An overview of the metadata layout in the maximum security model.
213
213
The maximum security model supports continuous delivery and survivable key
Original file line number Diff line number Diff line change @@ -384,10 +384,10 @@ smaller after any transition that creates a fold. The values returned
384
384
by ``tzname()`` and ``dst()`` may or may not depend on the value of
385
385
the ``fold`` attribute depending on the kind of the transition.
386
386
387
- .. rst-class:: invert-in-dark-mode
388
387
.. image:: pep-0495-fold-2.png
389
388
:align: center
390
389
:width: 60%
390
+ :class: invert-in-dark-mode
391
391
392
392
The sketch above illustrates the relationship between the UTC and
393
393
local time around a fall-back transition. The zig-zag line is a graph
@@ -410,10 +410,10 @@ local time that falls in a gap, the rules in effect before the
410
410
transition should be used if ``fold=0``. Otherwise, the rules in
411
411
effect after the transition should be used.
412
412
413
- .. rst-class:: invert-in-dark-mode
414
413
.. image:: pep-0495-gap.png
415
414
:align: center
416
415
:width: 60%
416
+ :class: invert-in-dark-mode
417
417
418
418
The sketch above illustrates the relationship between the UTC and
419
419
local time around a spring-forward transition. At the transition, the
Original file line number Diff line number Diff line change @@ -386,10 +386,10 @@ reference implementation introduces three new objects:
386
386
methods). Essentially, they control how asynchronous generators are
387
387
iterated:
388
388
389
- .. rst-class:: invert-in-dark-mode
390
389
.. image:: pep-0525-1.png
391
390
:align: center
392
391
:width: 80%
392
+ :class: invert-in-dark-mode
393
393
394
394
395
395
PyAsyncGenASend and PyAsyncGenAThrow
Original file line number Diff line number Diff line change @@ -680,8 +680,8 @@ The following diagram illustrates the core concepts behind the circuit
680
680
breaking protocol (although it glosses over the technical detail of looking
681
681
up the special methods via the type rather than the instance):
682
682
683
- .. rst-class:: invert-in-dark-mode
684
683
.. image:: pep-0532/circuit-breaking-protocol.svg
684
+ :class: invert-in-dark-mode
685
685
:alt: diagram of circuit breaking protocol applied to ternary expression
686
686
687
687
We will work through the following expression::
Original file line number Diff line number Diff line change @@ -1565,10 +1565,10 @@ coroutine.
1565
1565
Appendix: HAMT Performance Analysis
1566
1566
===================================
1567
1567
1568
- .. rst-class :: invert-in-dark-mode
1569
1568
.. figure :: pep-0550-hamt_vs_dict-v2.png
1570
1569
:align: center
1571
1570
:width: 100%
1571
+ :class: invert-in-dark-mode
1572
1572
1573
1573
Figure 1. Benchmark code can be found here: [9 ]_.
1574
1574
@@ -1579,10 +1579,10 @@ The above chart demonstrates that:
1579
1579
1580
1580
* ``dict.copy() `` becomes very slow around 100 items.
1581
1581
1582
- .. rst-class :: invert-in-dark-mode
1583
1582
.. figure :: pep-0550-lookup_hamt.png
1584
1583
:align: center
1585
1584
:width: 100%
1585
+ :class: invert-in-dark-mode
1586
1586
1587
1587
Figure 2. Benchmark code can be found here: [10 ]_.
1588
1588
Original file line number Diff line number Diff line change @@ -295,10 +295,10 @@ fairly detailed description of the algorithm as well.
295
295
Performance
296
296
-----------
297
297
298
- .. rst-class :: invert-in-dark-mode
299
298
.. figure :: pep-0603-hamt_vs_dict.png
300
299
:align: center
301
300
:width: 100%
301
+ :class: invert-in-dark-mode
302
302
303
303
Figure 1. Benchmark code can be found here: [3 ]_.
304
304
@@ -310,10 +310,10 @@ The above chart demonstrates that:
310
310
* ``dict.copy() `` becomes less efficient when using around
311
311
100-200 items.
312
312
313
- .. rst-class :: invert-in-dark-mode
314
313
.. figure :: pep-0603-lookup_hamt.png
315
314
:align: center
316
315
:width: 100%
316
+ :class: invert-in-dark-mode
317
317
318
318
Figure 2. Benchmark code can be found here: [4 ]_.
319
319
Original file line number Diff line number Diff line change @@ -316,9 +316,9 @@ Flow chart
316
316
317
317
Here is a flow chart describing how modules are loaded:
318
318
319
- .. rst-class:: invert-in-dark-mode
320
319
.. image:: pep-3147-1.png
321
320
:scale: 75
321
+ :class: invert-in-dark-mode
322
322
323
323
324
324
Alternative Python implementations
You can’t perform that action at this time.
0 commit comments