paul@542 | 1 | #!/usr/bin/env python |
paul@542 | 2 | |
paul@542 | 3 | """ |
paul@542 | 4 | Type objects. |
paul@542 | 5 | |
paul@542 | 6 | Copyright (C) 2012 Paul Boddie <paul@boddie.org.uk> |
paul@542 | 7 | |
paul@542 | 8 | This program is free software; you can redistribute it and/or modify it under |
paul@542 | 9 | the terms of the GNU General Public License as published by the Free Software |
paul@542 | 10 | Foundation; either version 3 of the License, or (at your option) any later |
paul@542 | 11 | version. |
paul@542 | 12 | |
paul@542 | 13 | This program is distributed in the hope that it will be useful, but WITHOUT |
paul@542 | 14 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
paul@542 | 15 | FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
paul@542 | 16 | details. |
paul@542 | 17 | |
paul@542 | 18 | You should have received a copy of the GNU General Public License along with |
paul@542 | 19 | this program. If not, see <http://www.gnu.org/licenses/>. |
paul@542 | 20 | """ |
paul@542 | 21 | |
paul@542 | 22 | # Built-in type duplication. |
paul@542 | 23 | |
paul@542 | 24 | type = type |
paul@542 | 25 | NoneType = NoneType |
paul@542 | 26 | NotImplementedType = NotImplementedType |
paul@542 | 27 | |
paul@542 | 28 | # Synonyms for built-in types. |
paul@542 | 29 | |
paul@542 | 30 | BooleanType = bool |
paul@542 | 31 | BufferType = buffer |
paul@542 | 32 | BuiltinFunctionType = function |
paul@542 | 33 | BuiltinMethodType = function |
paul@542 | 34 | ComplexType = complex |
paul@542 | 35 | DictType = dict |
paul@542 | 36 | #EllipsisType = ellipsis |
paul@542 | 37 | FileType = file |
paul@542 | 38 | FloatType = float |
paul@542 | 39 | FunctionType = function |
paul@542 | 40 | IntType = int |
paul@542 | 41 | LambdaType = function |
paul@542 | 42 | ListType = list |
paul@542 | 43 | LongType = long |
paul@542 | 44 | MethodType = function |
paul@542 | 45 | ObjectType = object |
paul@542 | 46 | SliceType = slice |
paul@542 | 47 | StringType = str |
paul@542 | 48 | TupleType = tuple |
paul@542 | 49 | UnboundMethodType = function |
paul@542 | 50 | UnicodeType = unicode |
paul@542 | 51 | XRangeType = xrange |
paul@542 | 52 | |
paul@542 | 53 | StringTypes = (StringType, UnicodeType) |
paul@542 | 54 | |
paul@542 | 55 | # Types without special definitions. |
paul@542 | 56 | |
paul@542 | 57 | ClassType = object |
paul@542 | 58 | GeneratorType = object |
paul@542 | 59 | InstanceType = object |
paul@542 | 60 | ModuleType = object |
paul@542 | 61 | TracebackType = object |
paul@542 | 62 | |
paul@542 | 63 | # Implementation-specific definitions not relevant to micropython. |
paul@542 | 64 | |
paul@542 | 65 | DictProxyType = object |
paul@542 | 66 | FrameType = object |
paul@542 | 67 | GetSetDescriptorType = object |
paul@542 | 68 | MemberDescriptorType = object |
paul@542 | 69 | |
paul@542 | 70 | # vim: tabstop=4 expandtab shiftwidth=4 |