# HG changeset patch # User Paul Boddie # Date 1337634664 -7200 # Node ID 705454dffaae38931280a969b606b2c07c881033 # Parent fd23a6b4666d40e2be0a38afa754050b6577e205 Added an array module. diff -r fd23a6b4666d -r 705454dffaae lib/array.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/array.py Mon May 21 23:11:04 2012 +0200 @@ -0,0 +1,33 @@ +#!/usr/bin/env python + +""" +Array functions and objects. + +Copyright (C) 2011 Paul Boddie + +This program is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free Software +Foundation; either version 3 of the License, or (at your option) any later +version. + +This program is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +details. + +You should have received a copy of the GNU General Public License along with +this program. If not, see . +""" + +class array: + + """ + An array of primitive objects. + NOTE: In principle, micropython could support arrays of full instances since + NOTE: it knows the size of each instance. + """ + + def __init__(self, typecode): + self.typecode = typecode + +# vim: tabstop=4 expandtab shiftwidth=4