Tag Archives: object

see.lua – Introspecting Lua objects

As via its python equivalent, see.lua takes in an object and prints out a list of its elements as well as metatable methods in readable text.

> require "see"

> s = see(string)
.byte(?)            .char(?)            .dump(?)            .find(?)

Posted in Blog, Lua, Programming, Snippets | Tagged , , , , , , | 1 Comment

Python Tip: Copying an object

One of the several “features” of python that often land beginners head over feet with their faces in the mud is the distinction between references and copies. Say we have the following list a:

a = [1,3,5,7,9,11]

Posted in Blog, Programming, Python, Snippets | Tagged , , , , , , , , , , | Leave a comment