![]() |
What are "__builtins__"? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Forum & Off Topic (https://python-forum.io/forum-23.html) +--- Forum: Bar (https://python-forum.io/forum-27.html) +--- Thread: What are "__builtins__"? (/thread-13616.html) |
What are "__builtins__"? - microphone_head - Oct-23-2018 Hi all, Does anyone have any useful links or can give any help on what "__builtins__" are? I did a "dir()" in my shell and noticed this. Does this mean I can create add-on for the default IDE? Would love to hear what you think about this. Thanks in advance for all your help ![]() RE: What are "__builtins__"? - ichabod801 - Oct-23-2018 It's the built-in functions, exceptions, and such. >>> dir(__builtins__) ['ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'BlockingIOError', 'BrokenPipeError', 'BufferError', 'BytesWarning', 'ChildProcessError', 'ConnectionAbortedError', 'ConnectionError', 'ConnectionRefusedError', 'ConnectionResetError', 'DeprecationWarning', 'EOFError', 'Ellipsis', 'EnvironmentError', 'Exception', 'False', 'FileExistsError', 'FileNotFoundError', 'FloatingPointError', 'FutureWarning', 'GeneratorExit', 'IOError', 'ImportError', 'ImportWarning', 'IndentationError', 'IndexError', 'InterruptedError', 'IsADirectoryError', 'KeyError', 'KeyboardInterrupt', 'LookupError', 'MemoryError', 'ModuleNotFoundError', 'NameError', 'None', 'NotADirectoryError', 'NotImplemented', 'NotImplementedError', 'OSError', 'OverflowError', 'PendingDeprecationWarning', 'PermissionError', 'ProcessLookupError', 'RecursionError', 'ReferenceError', 'ResourceWarning', 'RuntimeError', 'RuntimeWarning', 'StopAsyncIteration', 'StopIteration', 'SyntaxError', 'SyntaxWarning', 'SystemError', 'SystemExit', 'TabError', 'TimeoutError', 'True', 'TypeError', 'UnboundLocalError', 'UnicodeDecodeError', 'UnicodeEncodeError', 'UnicodeError', 'UnicodeTranslateError', 'UnicodeWarning', 'UserWarning', 'ValueError', 'Warning', 'WindowsError', 'ZeroDivisionError', '_', '__build_class__', '__debug__', '__doc__', '__import__', '__loader__', '__name__', '__package__', '__spec__', 'abs', 'all', 'any', 'ascii', 'bin', 'bool', 'bytearray', 'bytes', 'callable', 'chr', 'classmethod', 'compile', 'complex', 'copyright', 'credits', 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'exec', 'exit', 'filter', 'float', 'format', 'frozenset', 'getattr', 'globals', 'hasattr', 'hash', 'help', 'hex', 'id', 'input', 'int', 'isinstance', 'issubclass', 'iter', 'len', 'license', 'list', 'locals', 'map', 'max', 'memoryview', 'min', 'next', 'object', 'oct', 'open', 'ord', 'pow', 'print', 'property', 'quit', 'range', 'repr', 'reversed', 'round', 'set', 'setattr', 'slice', 'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'vars', 'zip'] RE: What are "__builtins__"? - wavic - Oct-23-2018 In addition: https://docs.python.org/3/library/functions.html https://docs.python.org/3/library/constants.html https://docs.python.org/3/library/stdtypes.html https://docs.python.org/3/library/exceptions.html RE: What are "__builtins__"? - buran - Oct-24-2018 also, note this 4.2.3. Builtins and restricted execution It may seem a bit advanced topic for you right now, but nevertheless worth mentioning RE: What are "__builtins__"? - microphone_head - Oct-24-2018 (Oct-23-2018, 11:27 PM)wavic Wrote: In addition: Thanks for the links, you've given me something to think and read about. ![]() RE: What are "__builtins__"? - pcsailor - Nov-06-2018 python-built-in-functions/ |