Skip to content

Commit c05888e

Browse files
JacobCoffeeclaude
andcommitted
fix remaining typos and trailing whitespace
- Fix lastest → latest (2 more posts) - Fix paramater → parameter - Allowlist ths, tha, propper, CNA - Fix trailing whitespace in 4 posts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1f51e02 commit c05888e

File tree

22 files changed

+35
-31
lines changed

22 files changed

+35
-31
lines changed

_typos.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,13 @@ repr = "repr"
4040
compat = "compat"
4141
noreply = "noreply"
4242
# Common in migrated Blogger content
43+
CNA = "CNA"
4344
Sur = "Sur"
4445
aboue = "aboue"
4546
availabl = "availabl"
47+
propper = "propper"
48+
tha = "tha"
49+
ths = "ths"
4650
ba = "ba"
4751
iff = "iff"
4852
nd = "nd"

content/posts/321-release-candidate-2-released/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Following up a big month of [releases in June](http://blog.python.org/2011/06/ju
1515

1616
##### I/O
1717

18-
[#1195](http://bugs.python.org/issue1195) spent a few years witout a fix, but a simple addition to clear errors before calling fgets solves the problem of interrupting sys.stdin.read() with CTRL-D inside of input(). The io system saw a cleanup in [#12175](http://bugs.python.org/issue12175) with the readall method with None being the return value on a read() which returns None, and a ValueError is now raised when a file can't be opened.
18+
[#1195](http://bugs.python.org/issue1195) spent a few years without a fix, but a simple addition to clear errors before calling fgets solves the problem of interrupting sys.stdin.read() with CTRL-D inside of input(). The io system saw a cleanup in [#12175](http://bugs.python.org/issue12175) with the readall method with None being the return value on a read() which returns None, and a ValueError is now raised when a file can't be opened.
1919

2020
Although this isn't new for RC2, [#11272](http://bugs.python.org/issue11272) is an important 3.2.1 fix to input() on Windows - the fixing of a trailing \\r. The issue has been reported many times over and affects a many people (distutils upload command anyone?), so hopefully 3.2.1 does the trick for you.
2121

content/posts/farewell-python-34/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: 'Farewell, Python 3.4'
33
publishDate: '2019-05-08'
44
updatedDate: '2019-05-08'
55
author: Larry Hastings
6-
description: 'It''s with a note of sadness that I announce the final retirement of Python 3.4. The final release was back in March, but I didn''t get around to actually clos...'
6+
description: 'It''s with a note of sadness that I announce the final retirement of Python 3.4. The final release was back in March, but I didn''t get around to actually close...'
77
tags: []
88
published: true
99
legacyUrl: /2019/05/farewell-python-34.html

content/posts/new-faulthandler-module-in-python-33/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Timeout (0:01:00)!
3030
Current thread 0x00007f987d459700:
3131
File "Lib/test/crashers/infinite\_loop\_re.py", line 20 in <module>
3232

33-
Use the repeat=True option to dump the traceback each timeout seconds, or exit=True to immediatly exit the program in an unsafe fashion, e.g. don't flush files.
33+
Use the repeat=True option to dump the traceback each timeout seconds, or exit=True to immediately exit the program in an unsafe fashion, e.g. don't flush files.
3434

3535
#### User Signal
3636

content/posts/of-polling-futures-and-parallel/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Polling here was only used for one thing: detecting when the shutdown procedure
1919

2020
So, I came up with [a simple solution](http://bugs.python.org/issue11635): I replaced this polling with a sentinel, the built-in sentinel named None. When a queue receives None, one waiting worker is naturally woken up and checks whether it should shutdown or not. In the ProcessPoolExecutor, there is a small complication as we need to wake up N worker processes in addition to the single queue management thread.
2121

22-
In my initial patch, I still had a polling timeout; a very large one (10 minutes) so that the workers would wake up at some point. The large timeout existed in case the code is buggy and they didn't get a shutdown notification through the aforementioned sentinel when they should. Out of curiousity, I dove into the multiprocessing source code and came to another interesting observation: under Windows, [multiprocessing.Queue.get()](http://docs.python.org/dev/library/multiprocessing.html#multiprocessing.Queue.get) with a non-zero, non-infinite timeout uses...polling (for which I opened [issue 11668](http://bugs.python.org/issue11668)). It uses an interesting high-frequency kind of polling, since it starts with a one millisecond timeout which is incremented at every loop iteration.
22+
In my initial patch, I still had a polling timeout; a very large one (10 minutes) so that the workers would wake up at some point. The large timeout existed in case the code is buggy and they didn't get a shutdown notification through the aforementioned sentinel when they should. Out of curiosity, I dove into the multiprocessing source code and came to another interesting observation: under Windows, [multiprocessing.Queue.get()](http://docs.python.org/dev/library/multiprocessing.html#multiprocessing.Queue.get) with a non-zero, non-infinite timeout uses...polling (for which I opened [issue 11668](http://bugs.python.org/issue11668)). It uses an interesting high-frequency kind of polling, since it starts with a one millisecond timeout which is incremented at every loop iteration.
2323

2424
Needless to say that still using a timeout, however huge, would render my patch useless under Windows since the way that timeout is implemented would involve wakeups every millisecond. So I bit the bullet and removed the huge polling timeout. My latest patch doesn't use a timeout at all, and therefore should cause no periodic wakeups, regardless of the platform.
2525

content/posts/python-3120-alpha-6-released/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ For more details on the changes in Python 3.12, see [What's New In Python 3.12](
3939
- Report bugs at [https://github.com/python/cpython/issues](https://github.com/python/cpython/issues).
4040
- [Help fund Python and its community](https://www.python.org/psf/donations/).
4141

42-
#
42+
#
4343

4444
# And now for something completely different
4545

46-
> Let me not to the marriage of true minds Admit impediments. Love is not love Which alters when it alteration finds, Or bends with the remover to remove: O, no! it is an ever-fixed mark, That looks on tempests and is never shaken; It is the star to every wandering bark, Whose worth’s unknown, although his height be taken. Love’s not Time’s fool, though rosy lips and cheeks Within his bending sickle’s compass come; Love alters not with his brief hours and weeks, But bears it out even to the edge of doom. If this be error, and upon me prov’d, I never writ, nor no man ever lov’d.
46+
> Let me not to the marriage of true minds Admit impediments. Love is not love Which alters when it alteration finds, Or bends with the remover to remove: O, no! it is an ever-fixed mark, That looks on tempests and is never shaken; It is the star to every wandering bark, Whose worth’s unknown, although his height be taken. Love’s not Time’s fool, though rosy lips and cheeks Within his bending sickle’s compass come; Love alters not with his brief hours and weeks, But bears it out even to the edge of doom. If this be error, and upon me prov’d, I never writ, nor no man ever love’d.
4747
4848
*Sonnet 116*, by William Shakespeare.
4949

content/posts/python-3130-alpha-4-is-now-available/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ Alpha releases are intended to make it easier to test the current state of new f
2323

2424
During the alpha phase, features may be added up until the start of the beta phase (2024-05-07) and, if necessary, may be modified or deleted up until the release candidate phase (2024-07-30). Please keep in mind that this is a preview release and its use is **not** recommended for production environments.
2525

26-
Many new features for Python 3.13 are still being planned and written. Work continues apace on both the work to [remove the Global Interpeter Lock](https://peps.python.org/pep-0703/) , and to improve Python performance. The most notable changes so far:
26+
Many new features for Python 3.13 are still being planned and written. Work continues apace on both the work to [remove the Global Interpreter Lock](https://peps.python.org/pep-0703/) , and to improve Python performance. The most notable changes so far:
2727

2828
- In the interactive interpreter, [exception tracebacks are now colorized by default](https://docs.python.org/dev/whatsnew/3.13.html#improved-error-messages) .
2929
- A [preliminary, *experimental* JIT was added](https://docs.python.org/dev/whatsnew/3.13.html#experimental-jit-compiler), providing the ground work for significant performance improvements.
30-
30+
3131
- Docstrings now have [their leading indentation stripped](https://docs.python.org/dev/whatsnew/3.13.html#other-language-changes) , reducing memory use and the size of .pyc files. (Most tools handling docstrings already strip leading indentation.)
3232
- [PEP 594 (Removing dead batteries from the standard library)](https://peps.python.org/pep-0594/) scheduled removals of many deprecated modules: `aifc`, `audioop`, `chunk`, `cgi`, `cgitb`, `crypt`, `imghdr`, `mailcap`, `msilib`, `nis`, `nntplib`, `ossaudiodev`, `pipes`, `sndhdr`, `spwd`, `sunau`, `telnetlib`, `uu`, `xdrlib`, `lib2to3`.
3333
- [Many other removals](https://docs.python.org/dev/whatsnew/3.13.html#removed) of deprecated classes, functions and methods in various standard library modules.

content/posts/python-3130rc2-3126-31110-31015-3920/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Get it here: [Python Release Python 3.8.20 | Python.org](https://www.python.org/
9595
- [gh-122133](https://github.com/python/cpython/issues/122133): Authenticate the socket connection for the `socket.socketpair()` fallback on platforms where `AF_UNIX` is not available like Windows.
9696
- [gh-121285](https://github.com/python/cpython/issues/121285): Remove backtracking from tarfile header parsing for `hdrcharset`, PAX, and GNU sparse headers. That’s CVE-2024-6232.
9797
- [gh-114572](https://github.com/python/cpython/issues/114572): [`ssl.SSLContext.cert_store_stats()`](https://docs.python.org/3/library/ssl.html#ssl.SSLContext.cert_store_stats) and [`ssl.SSLContext.get_ca_certs()`](https://docs.python.org/3/library/ssl.html#ssl.SSLContext.get_ca_certs) now correctly lock access to the certificate store, when the [`ssl.SSLContext`](https://docs.python.org/3/library/ssl.html#ssl.SSLContext) is shared across multiple threads.
98-
- [gh-102988](https://github.com/python/cpython/issues/102988): [`email.utils.getaddresses()`](https://docs.python.org/3/library/email.utils.html#email.utils.getaddresses) and [`email.utils.parseaddr()`](https://docs.python.org/3/library/email.utils.html#email.utils.parseaddr) now return `('', '')` 2-tuples in more situations where invalid email addresses are encountered instead of potentially inaccurate values. Add optional *strict* parameter to these two functions: use `strict=False` to get the old behavior, accept malformed inputs. `getattr(email.utils, 'supports_strict_parsing', False)` can be use to check if the *strict* paramater is available. This improves the CVE-2023-27043 fix.
98+
- [gh-102988](https://github.com/python/cpython/issues/102988): [`email.utils.getaddresses()`](https://docs.python.org/3/library/email.utils.html#email.utils.getaddresses) and [`email.utils.parseaddr()`](https://docs.python.org/3/library/email.utils.html#email.utils.parseaddr) now return `('', '')` 2-tuples in more situations where invalid email addresses are encountered instead of potentially inaccurate values. Add optional *strict* parameter to these two functions: use `strict=False` to get the old behavior, accept malformed inputs. `getattr(email.utils, 'supports_strict_parsing', False)` can be use to check if the *strict* parameter is available. This improves the CVE-2023-27043 fix.
9999
- [gh-123270](https://github.com/python/cpython/issues/123270): Sanitize names in [`zipfile.Path`](https://docs.python.org/3/library/zipfile.html#zipfile.Path) to avoid infinite loops ([gh-122905](https://github.com/python/cpython/issues/122905)) without breaking contents using legitimate characters. That’s CVE-2024-8088.
100100
- [gh-121650](https://github.com/python/cpython/issues/121650): [`email`](https://docs.python.org/3/library/email.html#module-email) headers with embedded newlines are now quoted on output. The [`generator`](https://docs.python.org/3/library/email.generator.html#module-email.generator) will now refuse to serialize (write) headers that are unsafely folded or delimited; see [`verify_generated_headers`](https://docs.python.org/3/library/email.policy.html#email.policy.Policy.verify_generated_headers). That’s CVE-2024-6923.
101101
- [gh-119690](https://github.com/python/cpython/issues/119690): Fixes data type confusion in audit events raised by `_winapi.CreateFile` and `_winapi.CreateNamedPipe`.

content/posts/python-3140-alpha-1-is-now-available/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Python 3.14.0 alpha 1 is now available
33
publishDate: '2024-10-15'
44
updatedDate: '2024-10-16'
55
author: Hugo
6-
description: 'It''s now time for a new alpha of a new version of Python! https://www.python.org/downloads/release/python-3140a1/ This is an early developer preview of Pytho...'
6+
description: 'It''s now time for a new alpha of a new version of Python! https://www.python.org/downloads/release/python-3140a1/ This is an early developer preview of Python...'
77
tags:
88
- releases
99
published: true

content/posts/python-3140-alpha-3-is-out/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ According to the Oxford English Dictionary, the earliest mention of Christmas mi
4949

5050
> Ten thousand in London swore to feast their neighbors with nothing but plum-porredge, and mince-pyes all Christmas.
5151
52-
Here’s a meaty recipe from [*Rare and Excellent Receipts, Experienc’d and Taught by Mrs Mary Tillinghast and now Printed for the Use of her Scholars Only*](https://www.google.com/books/edition/Rare_and_Excellent_Receipts/PZfbqUrHykwC?hl=en&gbpv=1&dq=%22mince+pies%22&pg=PA9&printsec=frontcover) (1678):
52+
Here’s a meaty recipe from [*Rare and Excellent Receipts, Experience’d and Taught by Mrs Mary Tillinghast and now Printed for the Use of her Scholars Only*](https://www.google.com/books/edition/Rare_and_Excellent_Receipts/PZfbqUrHykwC?hl=en&gbpv=1&dq=%22mince+pies%22&pg=PA9&printsec=frontcover) (1678):
5353

5454
> 15. *How to make Mince-pies.*
55-
>
55+
>
5656
> To every pound of Meat, take two pound of beef Suet, a pound of Corrants, and a quarter of an Ounce of Cinnamon, one Nutmeg, a little beaten Mace, some beaten Colves, a little Sack & Rose-water, two large Pippins, some Orange and Lemon peel cut very thin, and shred very small, a few beaten Carraway-seeds, if you love them the Juyce of half a Lemon squez’d into this quantity of meat; for Sugar, sweeten it to your relish; then mix all these together and fill your Pie. The best meat for Pies is Neats-Tongues, or a leg of Veal; you may make them of a leg of Mutton if you please; the meat must be parboyl’d if you do not spend it presently; but if it be for present use, you may do it raw, and the Pies will be the better.
5757
5858
# Enjoy the new release

0 commit comments

Comments
 (0)