Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ Python does, so the Lua operations ``obj[x]`` and ``obj.x`` both map
to indexing. To decide which Python protocol to use for Lua wrapped
objects, Lupa employs a simple heuristic.

Pratically all Python objects allow attribute access, so if the object
Practically all Python objects allow attribute access, so if the object
also has a ``__getitem__`` method, it is preferred when turning it
into an indexable Lua object. Otherwise, it becomes a simple object
that uses attribute access for indexing from inside Lua.
Expand Down
2 changes: 1 addition & 1 deletion lupa/luaapi.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ cdef extern from "lua.h" nogil:
ctypedef struct lua_Debug # activation record


# Functions to be called by the debuger in specific events
# Functions to be called by the debugger in specific events
ctypedef void (*lua_Hook) (lua_State *L, lua_Debug *ar)

int lua_getstack (lua_State *L, int level, lua_Debug *ar)
Expand Down
2 changes: 1 addition & 1 deletion lupa/tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2072,7 +2072,7 @@ def mandelbrot(i, lua_func):
self.assertEqual(type(result_bytes), type(empty_bytes_string))
self.assertEqual(image_size*image_size//8, len(result_bytes))

# plausability checks - make sure it's not all white or all black
# plausibility checks - make sure it's not all white or all black
self.assertEqual('\0'.encode('ASCII')*(image_size//8//2),
result_bytes[:image_size//8//2])
self.assertTrue(b'\xFF' in result_bytes)
Expand Down