paul@509 | 1 | #!/usr/bin/env python |
paul@509 | 2 | |
paul@509 | 3 | """ |
paul@509 | 4 | Array functions and objects. |
paul@509 | 5 | |
paul@509 | 6 | Copyright (C) 2011 Paul Boddie <paul@boddie.org.uk> |
paul@509 | 7 | |
paul@509 | 8 | This program is free software; you can redistribute it and/or modify it under |
paul@509 | 9 | the terms of the GNU General Public License as published by the Free Software |
paul@509 | 10 | Foundation; either version 3 of the License, or (at your option) any later |
paul@509 | 11 | version. |
paul@509 | 12 | |
paul@509 | 13 | This program is distributed in the hope that it will be useful, but WITHOUT |
paul@509 | 14 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
paul@509 | 15 | FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
paul@509 | 16 | details. |
paul@509 | 17 | |
paul@509 | 18 | You should have received a copy of the GNU General Public License along with |
paul@509 | 19 | this program. If not, see <http://www.gnu.org/licenses/>. |
paul@509 | 20 | """ |
paul@509 | 21 | |
paul@509 | 22 | class array: |
paul@509 | 23 | |
paul@509 | 24 | """ |
paul@509 | 25 | An array of primitive objects. |
paul@509 | 26 | NOTE: In principle, micropython could support arrays of full instances since |
paul@509 | 27 | NOTE: it knows the size of each instance. |
paul@509 | 28 | """ |
paul@509 | 29 | |
paul@509 | 30 | def __init__(self, typecode): |
paul@509 | 31 | self.typecode = typecode |
paul@509 | 32 | |
paul@509 | 33 | # vim: tabstop=4 expandtab shiftwidth=4 |