2.4 tolerance

This commit is contained in:
rocky
2022-07-07 02:22:16 -04:00
parent 6daca33443
commit 507a754616
2 changed files with 18 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
palette = map(lambda a:(a,
a,
a)
, range(256))
palette = map(lambda (r, g, b,):((chr(r) + chr(g)) + chr(b))
, palette)
palette = map(lambda r:r
, palette)
palette = lambda (r, g, b,):r
palette = lambda (r):r
palette = lambda r:r
palette = (lambda (r):r
,
palette)

View File

@@ -13,9 +13,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
def joined_str_ok(
self, lhs: str, n: int, rule, tree, tokens: list, first: int, last: int
) -> bool:
def joined_str_ok(self, lhs, n, rule, tree, tokens, first, last):
# In Python 3.8, there is a new "=" specifier.
# See https://docs.python.org/3/whatsnew/3.8.html#f-strings-support-for-self-documenting-expressions-and-debugging
# We detect this here inside joined_str by looking for an