blob: 4fc1a15db8abc80dc2cbd107c408d294ab0a6649 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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."""
|