From ded45b06f19f33a0c827e46ce5584bb0ec76fdf2 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 11 Jan 2016 10:18:52 +0100 Subject: [PATCH] typo: semantic => semantics --- 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 index e8fa38441..b026bd47f 100644 --- a/pep-0509.txt +++ b/pep-0509.txt @@ -30,8 +30,8 @@ a function) is usually optimized to an array, but it can be a dict too. 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 index 6e9765f7a..e1b5b4245 100644 --- a/pep-0510.txt +++ b/pep-0510.txt @@ -14,19 +14,19 @@ Abstract ======== 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 @@ There are multiple JIT compilers for Python actively developed: 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