Skip to content

Commit ee34fb2

Browse files
committed
fix: iterator types and iterator definition clean up.
1 parent 4f9a879 commit ee34fb2

4 files changed

Lines changed: 65 additions & 6 deletions

File tree

.spellcheck_exceptions_dictionary.txt

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,19 @@ REPL
88
BNF
99
UTF
1010
MYINC
11+
ASGI
12+
WSGI
1113

1214

1315
# authors
1416
Rossum
1517
praisetompane
18+
Grimson
19+
Guttag
20+
ionelmc
21+
staskoltsov
22+
Johni
23+
Marangon
1624

1725

1826
# domain specific
@@ -56,6 +64,8 @@ init
5664

5765

5866
# technology:
67+
FastAPI
68+
gunicorn
5969
JVM
6070
pyspelling
6171
pytest
@@ -67,16 +77,28 @@ ensurepip
6777
setuptools
6878
venv
6979
pipenv
80+
sqlalchemy
81+
libpq
82+
psycopg
83+
mako
7084

7185

7286
# institutions:
7387
pypa
7488
pypi
7589
hackerrank
7690
roadmap
91+
palletsprojects
92+
HarvardX
93+
mitopenlearning
94+
runestone
95+
stackoverflow
96+
vidhya
97+
redhat
7798

7899

79100
# urls:
101+
readthedocs
80102
src
81103
txt
82104
py
@@ -101,6 +123,38 @@ wz
101123
iter
102124
tp
103125
typeobj
126+
KMDT
127+
LjAuMA
128+
MDAy
129+
MDEz
130+
MDcxMy
131+
MITx
132+
MTYyMjc
133+
MTczNjMwNjAwMS
134+
MTgxMTI
135+
MzA
136+
NzM
137+
edx
138+
gcl
139+
gei
140+
gl
141+
goodpractices
142+
thinkcspy
143+
lms
144+
utm
145+
xLjEuMTczNjMwNjQ
146+
xNzM
147+
xp
148+
quickstart
149+
hmq
150+
wLjA
151+
bd
152+
johnid
153+
johnidouglasmarangon
154+
ouglasmarangon
155+
uptodate
156+
makotemplates
157+
ae
104158

105159

106160
# pythons implementations:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
- [developer contribution guide](https://devguide.python.org/)
3131
- memory model:
3232
- [computational complexity cost model](https://ocw.mit.edu/courses/6-006-introduction-to-algorithms-fall-2011/pages/readings/python-cost-model/)
33+
- [glossary](https://docs.python.org/3.11/glossary.html)
3334
- history:
3435
- [The Story of Python, by Its Creator, Guido van Rossum](https://www.youtube.com/watch?v=J0Aq44Pze-w)
3536

dictionary.dic

1.86 KB
Binary file not shown.

standard_library/3_built_in_types/4_iterator_types/0_iterator.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,27 @@ def iterator:
33
- formal:
44
- in words: an object that represents a stream of data.
55
6-
- properties:
7-
- forward and reserve traversal.
8-
- can only be traversed once.
96
- plain english: ???
107
118
- intuition: ???
129
13-
- properties: ???
14-
10+
- properties:
11+
- specification: PEP 234 – Iterators. https://peps.python.org/pep-0234/
12+
- iterator protocol: https://docs.python.org/3/c-api/iter.html
13+
- types: https://docs.python.org/3/c-api/iterator.html
14+
- sequence iterator
15+
- callable object + sentinel value iterator
16+
- forward and reserve traversal.
17+
- can only be traversed once.
18+
1519
- examples: ???
1620
1721
- use cases: ???
1822
1923
- proof: None. It is a definition.
2024
2125
References:
22-
PEP 234 – Iterators. https://peps.python.org/pep-0234/
26+
https://docs.python.org/3.11/glossary.html#term-iterator
2327
"""
2428

2529
collection = [i for i in range(5)]

0 commit comments

Comments
 (0)