summaryrefslogtreecommitdiff
path: root/astroid/interpreter/runtimeabc.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2016-02-11 14:25:36 +0000
committerClaudiu Popa <pcmanticore@gmail.com>2016-02-11 14:25:36 +0000
commit8aae5f078b5c837ba6829e8042453c12dfe2421f (patch)
tree7b4a723c3f4a6e60a227d45726ba76171d8a69ad /astroid/interpreter/runtimeabc.py
parent5259a4db2822a1926b66e7b15f059a874bee324d (diff)
downloadastroid-git-8aae5f078b5c837ba6829e8042453c12dfe2421f.tar.gz
Revert "Try to solve the packaging issues again"
This reverts commit d37b81de4f1e64abc2f222c487785d816ab469ea.
Diffstat (limited to 'astroid/interpreter/runtimeabc.py')
-rw-r--r--astroid/interpreter/runtimeabc.py60
1 files changed, 60 insertions, 0 deletions
diff --git a/astroid/interpreter/runtimeabc.py b/astroid/interpreter/runtimeabc.py
new file mode 100644
index 00000000..4fc1a15d
--- /dev/null
+++ b/astroid/interpreter/runtimeabc.py
@@ -0,0 +1,60 @@
+# copyright 2003-2015 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
+#
+# This file is part of astroid.
+#
+# astroid is free software: you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by the
+# Free Software Foundation, either version 2.1 of the License, or (at your
+# option) any later version.
+#
+# astroid 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 Lesser General Public License
+# for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License along
+# with astroid. If not, see <http://www.gnu.org/licenses/>.
+
+
+import abc
+
+import six
+
+
+@six.add_metaclass(abc.ABCMeta)
+class RuntimeObject(object):
+ """Class representing an object that is created at runtime
+
+ These objects aren't AST per se, being created by the action
+ of the interpreter when the code executes, which is a total
+ different step than the AST creation.
+ """
+
+
+class Instance(RuntimeObject):
+ """Class representing an instance."""
+
+
+class BuiltinInstance(RuntimeObject):
+ """Represents an instance of a builtin."""
+
+
+class UnboundMethod(RuntimeObject):
+ """Class representing an unbound method."""
+
+
+class BoundMethod(UnboundMethod):
+ """Class representing a bound method."""
+
+
+class Generator(RuntimeObject):
+ """Class representing a Generator."""
+
+
+class Super(RuntimeObject):
+ """Class representing a super proxy."""
+
+
+class FrozenSet(RuntimeObject):
+ """Class representing a frozenset."""