File tree 18 files changed +23
-23
lines changed
Filter options
18 files changed +23
-23
lines changed
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ as much as it can.
35
35
callable object that receives notification when *ob * is garbage collected; it
36
36
should accept a single parameter, which will be the weak reference object
37
37
itself. *callback * may also be ``None `` or ``NULL ``. If *ob * is not a
38
- weakly referencable object, or if *callback * is not callable, ``None ``, or
38
+ weakly referenceable object, or if *callback * is not callable, ``None ``, or
39
39
``NULL ``, this will return ``NULL `` and raise :exc: `TypeError `.
40
40
41
41
@@ -47,7 +47,7 @@ as much as it can.
47
47
be a callable object that receives notification when *ob * is garbage
48
48
collected; it should accept a single parameter, which will be the weak
49
49
reference object itself. *callback * may also be ``None `` or ``NULL ``. If *ob *
50
- is not a weakly referencable object, or if *callback * is not callable,
50
+ is not a weakly referenceable object, or if *callback * is not callable,
51
51
``None ``, or ``NULL ``, this will return ``NULL `` and raise :exc: `TypeError `.
52
52
53
53
Original file line number Diff line number Diff line change @@ -868,7 +868,7 @@ It is important to call :c:func:`free` at the right time. If a block's address
868
868
is forgotten but :c:func: `free ` is not called for it, the memory it occupies
869
869
cannot be reused until the program terminates. This is called a :dfn: `memory
870
870
leak `. On the other hand, if a program calls :c:func: `free ` for a block and then
871
- continues to use the block, it creates a conflict with re-use of the block
871
+ continues to use the block, it creates a conflict with reuse of the block
872
872
through another :c:func: `malloc ` call. This is called :dfn: `using freed memory `.
873
873
It has the same bad consequences as referencing uninitialized data --- core
874
874
dumps, wrong results, mysterious crashes.
Original file line number Diff line number Diff line change @@ -545,7 +545,7 @@ performance-critical objects (such as numbers).
545
545
.. seealso ::
546
546
Documentation for the :mod: `weakref ` module.
547
547
548
- For an object to be weakly referencable , the extension type must set the
548
+ For an object to be weakly referenceable , the extension type must set the
549
549
``Py_TPFLAGS_MANAGED_WEAKREF `` bit of the :c:member: `~PyTypeObject.tp_flags `
550
550
field. The legacy :c:member: `~PyTypeObject.tp_weaklistoffset ` field should
551
551
be left as zero.
Original file line number Diff line number Diff line change @@ -426,7 +426,7 @@ In this case the MRO is GFEF and the local precedence ordering is
426
426
preserved.
427
427
428
428
As a general rule, hierarchies such as the previous one should be
429
- avoided, since it is unclear if F should override E or viceversa .
429
+ avoided, since it is unclear if F should override E or vice-versa .
430
430
Python 2.3 solves the ambiguity by raising an exception in the creation
431
431
of class G, effectively stopping the programmer from generating
432
432
ambiguous hierarchies. The reason for that is that the C3 algorithm
Original file line number Diff line number Diff line change @@ -924,7 +924,7 @@ the following methods and attributes:
924
924
925
925
.. method :: window.getbegyx()
926
926
927
- Return a tuple ``(y, x) `` of co-ordinates of upper-left corner.
927
+ Return a tuple ``(y, x) `` of coordinates of upper-left corner.
928
928
929
929
930
930
.. method :: window.getbkgd()
Original file line number Diff line number Diff line change @@ -84,10 +84,10 @@ The numeric tower
84
84
``~ ``.
85
85
86
86
87
- Notes for type implementors
87
+ Notes for type implementers
88
88
---------------------------
89
89
90
- Implementors should be careful to make equal numbers equal and hash
90
+ Implementers should be careful to make equal numbers equal and hash
91
91
them to the same values. This may be subtle if there are two different
92
92
extensions of the real numbers. For example, :class: `fractions.Fraction `
93
93
implements :func: `hash ` as follows::
Original file line number Diff line number Diff line change @@ -1739,7 +1739,7 @@ seen, but blow up if it comes after ``-b`` in the command-line. ::
1739
1739
Callback example 3: check option order (generalized)
1740
1740
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1741
1741
1742
- If you want to re-use this callback for several similar options (set a flag, but
1742
+ If you want to reuse this callback for several similar options (set a flag, but
1743
1743
blow up if ``-b `` has already been seen), it needs a bit of work: the error
1744
1744
message and the flag that it sets must be generalized. ::
1745
1745
Original file line number Diff line number Diff line change @@ -781,15 +781,15 @@ Constants
781
781
782
782
.. data :: OP_SINGLE_DH_USE
783
783
784
- Prevents re-use of the same DH key for distinct SSL sessions. This
784
+ Prevents reuse of the same DH key for distinct SSL sessions. This
785
785
improves forward secrecy but requires more computational resources.
786
786
This option only applies to server sockets.
787
787
788
788
.. versionadded :: 3.3
789
789
790
790
.. data :: OP_SINGLE_ECDH_USE
791
791
792
- Prevents re-use of the same ECDH key for distinct SSL sessions. This
792
+ Prevents reuse of the same ECDH key for distinct SSL sessions. This
793
793
improves forward secrecy but requires more computational resources.
794
794
This option only applies to server sockets.
795
795
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ hyphenated words; only then will long words be broken if necessary, unless
154
154
wrapper = TextWrapper()
155
155
wrapper.initial_indent = "* "
156
156
157
- You can re-use the same :class: `TextWrapper ` object many times, and you can
157
+ You can reuse the same :class: `TextWrapper ` object many times, and you can
158
158
change any of its options through direct assignment to instance attributes
159
159
between uses.
160
160
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ off-screen)::
120
120
home()
121
121
122
122
The home position is at the center of the turtle's screen. If you ever need to
123
- know them, get the turtle's x-y co-ordinates with::
123
+ know them, get the turtle's x-y coordinates with::
124
124
125
125
pos()
126
126
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ Creating Virtual Environments
38
38
The module used to create and manage virtual environments is called
39
39
:mod: `venv `. :mod: `venv ` will install the Python version from which
40
40
the command was run (as reported by the :option: `--version ` option).
41
- For instance, excuting the command with ``python3.12 `` will install
41
+ For instance, executing the command with ``python3.12 `` will install
42
42
version 3.12.
43
43
44
44
To create a virtual environment, decide upon a directory where you want to
Original file line number Diff line number Diff line change @@ -303,8 +303,8 @@ modules in your app, some additional steps will be required:
303
303
* You need to ensure that any folders containing third-party binaries are
304
304
either associated with the app target, or copied in as part of step 8. Step 8
305
305
should also purge any binaries that are not appropriate for the platform a
306
- specific build is targetting (i.e., delete any device binaries if you're
307
- building app app targeting the simulator).
306
+ specific build is targeting (i.e., delete any device binaries if you're
307
+ building an app targeting the simulator).
308
308
309
309
* Any folders that contain third-party binaries must be processed into
310
310
framework form by step 9. The invocation of ``install_dylib `` that processes
Original file line number Diff line number Diff line change @@ -1062,7 +1062,7 @@ code, none of the changes described here will affect you very much.
1062
1062
simply been changed to use the new C-level interface. (Contributed by Fred L.
1063
1063
Drake, Jr.)
1064
1064
1065
- * Another low-level API, primarily of interest to implementors of Python
1065
+ * Another low-level API, primarily of interest to implementers of Python
1066
1066
debuggers and development tools, was added. :c:func: `PyInterpreterState_Head ` and
1067
1067
:c:func: `PyInterpreterState_Next ` let a caller walk through all the existing
1068
1068
interpreter objects; :c:func: `PyInterpreterState_ThreadHead ` and
Original file line number Diff line number Diff line change @@ -1738,7 +1738,7 @@ New module: importlib
1738
1738
1739
1739
Python 3.1 includes the :mod: `importlib ` package, a re-implementation
1740
1740
of the logic underlying Python's :keyword: `import ` statement.
1741
- :mod: `importlib ` is useful for implementors of Python interpreters and
1741
+ :mod: `importlib ` is useful for implementers of Python interpreters and
1742
1742
to users who wish to write new importers that can participate in the
1743
1743
import process. Python 2.7 doesn't contain the complete
1744
1744
:mod: `importlib ` package, but instead has a tiny subset that contains
Original file line number Diff line number Diff line change @@ -1251,7 +1251,7 @@ Deprecated
1251
1251
:exc: `DeprecationWarning ` when it can detect being called from a
1252
1252
multithreaded process. There has always been a fundamental incompatibility
1253
1253
with the POSIX platform when doing so. Even if such code *appeared * to work.
1254
- We added the warning to to raise awareness as issues encounted by code doing
1254
+ We added the warning to raise awareness as issues encountered by code doing
1255
1255
this are becoming more frequent. See the :func: `os.fork ` documentation for
1256
1256
more details along with `this discussion on fork being incompatible with threads
1257
1257
<https://discuss.python.org/t/33555> `_ for *why * we're now surfacing this
Original file line number Diff line number Diff line change @@ -2413,7 +2413,7 @@ Changes in the Python API
2413
2413
formal public interface the naming has been made consistent (:issue: `18532 `).
2414
2414
2415
2415
* Because :mod: `unittest.TestSuite ` now drops references to tests after they
2416
- are run, test harnesses that re-use a :class: `~unittest.TestSuite ` to re-run
2416
+ are run, test harnesses that reuse a :class: `~unittest.TestSuite ` to re-run
2417
2417
a set of tests may fail. Test suites should not be re-used in this fashion
2418
2418
since it means state is retained between test runs, breaking the test
2419
2419
isolation that :mod: `unittest ` is designed to provide. However, if the lack
Original file line number Diff line number Diff line change @@ -2336,10 +2336,10 @@ Changes in the Python API
2336
2336
* With the introduction of :exc: `ModuleNotFoundError `, import system consumers
2337
2337
may start expecting import system replacements to raise that more specific
2338
2338
exception when appropriate, rather than the less-specific :exc: `ImportError `.
2339
- To provide future compatibility with such consumers, implementors of
2339
+ To provide future compatibility with such consumers, implementers of
2340
2340
alternative import systems that completely replace :func: `__import__ ` will
2341
2341
need to update their implementations to raise the new subclass when a module
2342
- can't be found at all. Implementors of compliant plugins to the default
2342
+ can't be found at all. Implementers of compliant plugins to the default
2343
2343
import system shouldn't need to make any changes, as the default import
2344
2344
system will raise the new subclass when appropriate.
2345
2345
Original file line number Diff line number Diff line change @@ -891,7 +891,7 @@ Deprecated
891
891
892
892
* Deprecated the ``split() `` method of :class: `!_tkinter.TkappType ` in
893
893
favour of the ``splitlist() `` method which has more consistent and
894
- predicable behavior.
894
+ predictable behavior.
895
895
(Contributed by Serhiy Storchaka in :issue: `38371 `.)
896
896
897
897
* The explicit passing of coroutine objects to :func: `asyncio.wait ` has been
You can’t perform that action at this time.
0 commit comments