Skip to content

Commit 6f71c91

Browse files
committed
cap17, 18, etc: encurtando links
1 parent df2c060 commit 6f71c91

File tree

6 files changed

+111
-59
lines changed

6 files changed

+111
-59
lines changed

links/FPY.LI.htaccess

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1369,4 +1369,34 @@ RedirectTemp /92 https://pythonfluente.com/2/#ex_top_protocol_test
13691369
RedirectTemp /93 https://pythonfluente.com/2/#ex_strkeydict
13701370
RedirectTemp /94 https://pythonfluente.com/2/#ex_tcp_mojifinder_main
13711371
RedirectTemp /95 https://pythonfluente.com/2/#ex_checked_class_top
1372-
RedirectTemp /96 https://pythonfluente.com/2/#ex_primes_procs_top
1372+
RedirectTemp /96 https://pythonfluente.com/2/#ex_primes_procs_top
1373+
# cap 17: appended 2026-01-09 15:15:31
1374+
RedirectTemp /97 https://docs.python.org/pt-br/3.10/library/functions.html#iter
1375+
RedirectTemp /98 https://github.com/python/python-docs-pt-br/issues/290
1376+
RedirectTemp /99 https://docs.python.org/pt-br/3/glossary.html
1377+
RedirectTemp /9a https://docs.python.org/pt-br/3/glossary.html#term-generator-iterator
1378+
RedirectTemp /9b https://docs.python.org/pt-br/3/glossary.html#term-generator-expression
1379+
RedirectTemp /9c https://docs.python.org/pt-br/3/library/itertools.html
1380+
RedirectTemp /9d https://docs.python.org/pt-br/3/library/exceptions.html#exception-hierarchy
1381+
RedirectTemp /9e https://pt.wikipedia.org/wiki/Busca_em_profundidade
1382+
RedirectTemp /9f https://docs.python.org/pt-br/3/library/typing.html#typing.Generator
1383+
RedirectTemp /9g https://docs.python.org/pt-br/3/reference/expressions.html#yieldexpr
1384+
RedirectTemp /9h https://docs.python.org/pt-br/3/library/itertools.html#itertools-recipes
1385+
RedirectTemp /9j https://pt.wikipedia.org/wiki/Jogo_da_vida
1386+
RedirectTemp /9k https://github.com/fluentpython/language-creators
1387+
RedirectTemp /9m https://docs.python.org/pt-br/3/library/exceptions.html#StopIteration
1388+
RedirectTemp /9n https://docs.python.org/pt-br/3/reference/expressions.html#yield-expressions
1389+
RedirectTemp /9p https://docs.python.org/pt-br/3/reference/index.html
1390+
# cap18: appended 2026-01-09 15:36:28
1391+
RedirectTemp /9q https://docs.python.org/pt-br/3/library/threading.html#using-locks-conditions-and-semaphores-in-the-with-statement
1392+
RedirectTemp /9r https://docs.python.org/pt-br/3/library/decimal.html#decimal.localcontext
1393+
RedirectTemp /9s https://docs.python.org/pt-br/3/library/unittest.mock.html#patch
1394+
RedirectTemp /9t https://docs.python.org/pt-br/3/library/contextlib.html
1395+
RedirectTemp /9v https://docs.python.org/pt-br/3/library/fileinput.html#fileinput.input
1396+
RedirectTemp /9w https://pt.wikipedia.org/wiki/Algoritmo_de_Euclides
1397+
RedirectTemp /9x https://docs.python.org/pt-br/3/reference/compound_stmts.html
1398+
RedirectTemp /9y https://docs.python.org/pt-br/3/glossary.html#term-eafp
1399+
RedirectTemp /9z https://docs.python.org/pt-br/3/library/stdtypes.html#typecontextmanager
1400+
RedirectTemp /a2 https://pt.wikipedia.org/wiki/Recursividade_(ci%C3%AAncia_da_computa%C3%A7%C3%A3o)#Fun%C3%A7%C3%B5es_recursivas_em_cauda
1401+
RedirectTemp /a3 https://docs.python.org/3/library/sqlite3.html#using-the-connection-as-a-context-manager
1402+
RedirectTemp /a4 https://docs.python.org/pt-br/3/reference/datamodel.html#with-statement-context-managers

links/encurtar.ipynb

Lines changed: 43 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
{
1212
"cell_type": "code",
13-
"execution_count": 1,
13+
"execution_count": 2,
1414
"id": "565ac98b-4f9e-4fd7-b23d-7bddcf2dd60a",
1515
"metadata": {},
1616
"outputs": [],
@@ -20,32 +20,38 @@
2020
},
2121
{
2222
"cell_type": "code",
23-
"execution_count": 2,
23+
"execution_count": 9,
2424
"id": "0f2ce1b8-1c45-41a0-9f38-675e6912d805",
2525
"metadata": {},
2626
"outputs": [
2727
{
2828
"name": "stdout",
2929
"output_type": "stream",
3030
"text": [
31-
"+ /7n\thttps://docs.python.org/pt-br/3/reference/expressions.html#unary-arithmetic-and-bitwise-operations\n",
32-
"+ /7p\thttps://pt.wikipedia.org/wiki/L%C3%B3gica_bin%C3%A1ria#NOT\n",
33-
"= /34\thttps://docs.python.org/pt-br/3/library/collections.html#collections.Counter\n",
34-
"= /6n\thttps://docs.python.org/pt-br/3/reference/datamodel.html#emulating-container-types\n",
35-
"= /2j\thttps://docs.python.org/pt-br/3/reference/datamodel.html\n",
36-
"+ /7q\thttps://docs.python.org/pt-br/3/library/functools.html#functools.total_ordering\n"
31+
"= /a3\thttps://docs.python.org/3/library/sqlite3.html#using-the-connection-as-a-context-manager\n",
32+
"= /9q\thttps://docs.python.org/pt-br/3/library/threading.html#using-locks-conditions-and-semaphores-in-the-with-statement\n",
33+
"= /9r\thttps://docs.python.org/pt-br/3/library/decimal.html#decimal.localcontext\n",
34+
"= /9s\thttps://docs.python.org/pt-br/3/library/unittest.mock.html#patch\n",
35+
"= /9t\thttps://docs.python.org/pt-br/3/library/contextlib.html\n",
36+
"= /9v\thttps://docs.python.org/pt-br/3/library/fileinput.html#fileinput.input\n",
37+
"= /9w\thttps://pt.wikipedia.org/wiki/Algoritmo_de_Euclides\n",
38+
"= /9x\thttps://docs.python.org/pt-br/3/reference/compound_stmts.html\n",
39+
"= /9y\thttps://docs.python.org/pt-br/3/glossary.html#term-eafp\n",
40+
"= /9x\thttps://docs.python.org/pt-br/3/reference/compound_stmts.html\n",
41+
"= /9z\thttps://docs.python.org/pt-br/3/library/stdtypes.html#typecontextmanager\n",
42+
"= /a2\thttps://pt.wikipedia.org/wiki/Recursividade_(ci%C3%AAncia_da_computa%C3%A7%C3%A3o)#Fun%C3%A7%C3%B5es_recursivas_em_cauda\n"
3743
]
3844
},
3945
{
4046
"name": "stderr",
4147
"output_type": "stream",
4248
"text": [
43-
"3 directives appended to FPY.LI.htaccess\n"
49+
"0 directives appended to FPY.LI.htaccess\n"
4450
]
4551
}
4652
],
4753
"source": [
48-
"CAP = 16\n",
54+
"CAP = 18\n",
4955
"\n",
5056
"adoc_path = f'../online/cap{CAP}.adoc'\n",
5157
"\n",
@@ -62,20 +68,26 @@
6268
},
6369
{
6470
"cell_type": "code",
65-
"execution_count": 3,
71+
"execution_count": 10,
6672
"id": "37c13b84-c4a4-4295-8987-205c8da7a2e5",
6773
"metadata": {},
6874
"outputs": [
6975
{
7076
"name": "stdout",
7177
"output_type": "stream",
7278
"text": [
73-
"+ /7n\thttps://docs.python.org/pt-br/3/reference/expressions.html#unary-arithmetic-and-bitwise-operations\n",
74-
"+ /7p\thttps://pt.wikipedia.org/wiki/L%C3%B3gica_bin%C3%A1ria#NOT\n",
75-
"= /34\thttps://docs.python.org/pt-br/3/library/collections.html#collections.Counter\n",
76-
"= /6n\thttps://docs.python.org/pt-br/3/reference/datamodel.html#emulating-container-types\n",
77-
"= /2j\thttps://docs.python.org/pt-br/3/reference/datamodel.html\n",
78-
"+ /7q\thttps://docs.python.org/pt-br/3/library/functools.html#functools.total_ordering\n"
79+
"= /a3\thttps://docs.python.org/3/library/sqlite3.html#using-the-connection-as-a-context-manager\n",
80+
"= /9q\thttps://docs.python.org/pt-br/3/library/threading.html#using-locks-conditions-and-semaphores-in-the-with-statement\n",
81+
"= /9r\thttps://docs.python.org/pt-br/3/library/decimal.html#decimal.localcontext\n",
82+
"= /9s\thttps://docs.python.org/pt-br/3/library/unittest.mock.html#patch\n",
83+
"= /9t\thttps://docs.python.org/pt-br/3/library/contextlib.html\n",
84+
"= /9v\thttps://docs.python.org/pt-br/3/library/fileinput.html#fileinput.input\n",
85+
"= /9w\thttps://pt.wikipedia.org/wiki/Algoritmo_de_Euclides\n",
86+
"= /9x\thttps://docs.python.org/pt-br/3/reference/compound_stmts.html\n",
87+
"= /9y\thttps://docs.python.org/pt-br/3/glossary.html#term-eafp\n",
88+
"= /9x\thttps://docs.python.org/pt-br/3/reference/compound_stmts.html\n",
89+
"= /9z\thttps://docs.python.org/pt-br/3/library/stdtypes.html#typecontextmanager\n",
90+
"= /a2\thttps://pt.wikipedia.org/wiki/Recursividade_(ci%C3%AAncia_da_computa%C3%A7%C3%A3o)#Fun%C3%A7%C3%B5es_recursivas_em_cauda\n"
7991
]
8092
}
8193
],
@@ -86,20 +98,25 @@
8698
},
8799
{
88100
"cell_type": "code",
89-
"execution_count": 4,
101+
"execution_count": 11,
90102
"id": "25b20f6b-471f-4a14-bdd0-22eb21627962",
91103
"metadata": {},
92104
"outputs": [
93105
{
94106
"name": "stdout",
95107
"output_type": "stream",
96108
"text": [
97-
"/7n https://docs.python.org/pt-br/3/reference/expressions.html#unary-arithmetic-and-bitwise-operations\n",
98-
"/7p https://pt.wikipedia.org/wiki/L%C3%B3gica_bin%C3%A1ria#NOT\n",
99-
"/34 https://docs.python.org/pt-br/3/library/collections.html#collections.Counter\n",
100-
"/6n https://docs.python.org/pt-br/3/reference/datamodel.html#emulating-container-types\n",
101-
"/2j https://docs.python.org/pt-br/3/reference/datamodel.html\n",
102-
"/7q https://docs.python.org/pt-br/3/library/functools.html#functools.total_ordering\n"
109+
"/a3 https://docs.python.org/3/library/sqlite3.html#using-the-connection-as-a-context-manager\n",
110+
"/9q https://docs.python.org/pt-br/3/library/threading.html#using-locks-conditions-and-semaphores-in-the-with-statement\n",
111+
"/9r https://docs.python.org/pt-br/3/library/decimal.html#decimal.localcontext\n",
112+
"/9s https://docs.python.org/pt-br/3/library/unittest.mock.html#patch\n",
113+
"/9t https://docs.python.org/pt-br/3/library/contextlib.html\n",
114+
"/9v https://docs.python.org/pt-br/3/library/fileinput.html#fileinput.input\n",
115+
"/9w https://pt.wikipedia.org/wiki/Algoritmo_de_Euclides\n",
116+
"/9x https://docs.python.org/pt-br/3/reference/compound_stmts.html\n",
117+
"/9y https://docs.python.org/pt-br/3/glossary.html#term-eafp\n",
118+
"/9z https://docs.python.org/pt-br/3/library/stdtypes.html#typecontextmanager\n",
119+
"/a2 https://pt.wikipedia.org/wiki/Recursividade_(ci%C3%AAncia_da_computa%C3%A7%C3%A3o)#Fun%C3%A7%C3%B5es_recursivas_em_cauda\n"
103120
]
104121
}
105122
],
@@ -115,12 +132,12 @@
115132
},
116133
{
117134
"cell_type": "code",
118-
"execution_count": 14,
135+
"execution_count": 6,
119136
"id": "a66fdca6-e1df-4b1d-8971-1baae54cb9ed",
120137
"metadata": {},
121138
"outputs": [],
122139
"source": [
123-
"!grep 'https://(?!f[^./]*\\.)[a-zA-Z0-9.-]+[^/]*' ../online/cap24.adoc # não está funcionando!"
140+
"!grep 'https://(?!f[^./]*\\.)[a-zA-Z0-9.-]+[^/]*' ../online/cap17.adoc # não está funcionando!"
124141
]
125142
},
126143
{

online/cap13.adoc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,9 @@ _Monkey patching_((("protocols", "implementing at runtime",
330330
id="Prun13")))((("monkey-patching", id="monkey13"))) é o ato de remendar (_patch_)
331331
dinamicamente um programa durante a execução do código (_runtime_),
332332
para acrescentar funcionalidade ou corrigir bugs. Por exemplo, a biblioteca de
333-
rede https://www.gevent.org/api/gevent.monkey.html[_gevent_] faz "monkey patch"
333+
rede https://fpy.li/13-5[_gevent_] faz "monkey patch"
334334
em partes da biblioteca padrão de Python, para permitir concorrência sem threads ou
335-
`async`/`await`.footnote:[O artigo https://fpy.li/13-4["Monkey patch"] na
335+
`async`/`await`.footnote:[O artigo https://fpy.li/13-4[«Monkey patch»] na
336336
Wikipedia tem um exemplo engraçado em Python.]
337337
O monkey patch não lê nem altera o código-fonte do programa,
338338
apenas os objetos na memória que representam as partes do programa,
@@ -1286,8 +1286,7 @@ ____
12861286
Quando `@abstractmethod` é aplicado em combinação com outros descritores de
12871287
método, ele deve ser aplicado como o decorador mais interno...footnote:[O
12881288
verbete https://fpy.li/6s[`@abc.abstractmethod`] na
1289-
https://docs.python.org/pt-br/dev/library/abc.html[documentação do módulo
1290-
`abc`].]
1289+
https://fpy.li/6r[documentação do módulo `abc`].]
12911290
____
12921291
12931292
Em outras palavras, nenhum outro decorador pode aparecer entre `@abstractmethod` e a instrução `def`.

online/cap15.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Guido van Rossum, James Gosling, Larry Wall & Anders Hejlsberg_ (Uma Conversa
1414
entre Criadores de Linguagens: Guido van Rossum, James Gosling, Larry Wall &
1515
Anders Hejlsberg), transmitido em 2 de abril de 2019. A citação (editada por
1616
brevidade) começa em https://fpy.li/15-1[1:32:05]. Produzi e publiquei
17-
a transcrição completa em https://github.com/fluentpython/language-creators.]
17+
a transcrição completa em https://https://fpy.li/9k.]
1818
1919
____
2020

0 commit comments

Comments
 (0)