[Python-checkins] peps: typo: semantic => semantics

victor.stinner python-checkins at python.org
Mon Jan 11 04:18:59 EST 2016


https://hg.python.org/peps/rev/23563c9796a6
changeset:   6159:23563c9796a6
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Mon Jan 11 10:18:52 2016 +0100
summary:
  typo: semantic => semantics

files:
  pep-0509.txt |   4 ++--
  pep-0510.txt |  10 +++++-----
  2 files changed, 7 insertions(+), 7 deletions(-)


diff --git a/pep-0509.txt b/pep-0509.txt
--- a/pep-0509.txt
+++ b/pep-0509.txt
@@ -30,8 +30,8 @@
 Python is hard to optimize because almost everything is mutable: builtin
 functions, function code, global variables, local variables, ... can be
 modified at runtime. Implementing optimizations respecting the Python
-semantic requires to detect when "something changes": we will call these
-checks "guards".
+semantics requires to detect when "something changes": we will call
+these checks "guards".
 
 The speedup of optimizations depends on the speed of guard checks. This
 PEP proposes to add a version to dictionaries to implement efficient
diff --git a/pep-0510.txt b/pep-0510.txt
--- a/pep-0510.txt
+++ b/pep-0510.txt
@@ -14,19 +14,19 @@
 ========
 
 Add an API to add specialized functions with guards to functions, to
-support static optimizers respecting the Python semantic.
+support static optimizers respecting the Python semantics.
 
 
 Rationale
 =========
 
-Python semantic
----------------
+Python semantics
+----------------
 
 Python is hard to optimize because almost everything is mutable: builtin
 functions, function code, global variables, local variables, ... can be
 modified at runtime. Implement optimizations respecting the Python
-semantic requires to detect when "something changes", we will call these
+semantics requires to detect when "something changes", we will call these
 checks "guards".
 
 This PEP proposes to add a ``specialize()`` method to functions to add a
@@ -50,7 +50,7 @@
 Numba is specific to numerical computation.  Pyston and Pyjion are still
 young.  PyPy is the most complete Python interpreter, it is much faster
 than CPython and has a very good compatibility with CPython (it respects
-the Python semantic). There are still issues with Python JIT compilers
+the Python semantics). There are still issues with Python JIT compilers
 which avoid them to be widely used instead of CPython.
 
 Many popular libraries like numpy, PyGTK, PyQt, PySide and wxPython are

-- 
Repository URL: https://hg.python.org/peps


More information about the Python-checkins mailing list