Copyright (c) Hyperion Entertainment and contributors.

AmigaOS Manual: Built-in Constants

From AmigaOS Documentation Wiki
Revision as of 00:11, 21 July 2018 by Janne Peräaho (talk | contribs) (Created page with "The following constants exist in the built-in namespace: {| class="wikitable" ! style="text-align:left;" | Constant ! style="text-align:left;" | Description |- | False || The...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The following constants exist in the built-in namespace:

Constant Description
False The false value of the bool type.
True The true value of the bool type.
None The sole value of the type NoneType.
NotImplemented Special value which should be returned by the binary special methods to indicate that the operation is not implemented. Its truth value is true.
Ellipsis Special value used mostly in conjunction with extended slicing syntax for user-defined container data types. Same as "...".
__debug__ This constant is true if Python was not started with an -O option.
quit([< code >]) Object. Contains the quit help text. When called, quits the Python interpreter and returns to the caller, if supplied. (*)
exit([< code >]) Object containg the exit help text. When called, exits the Python interpreter and returns to the caller, if supplied. (*)
copyright Object containing the copyright text. (*)
credits Object containing the credits text. (*)
license Object containing the license text. (*)

(*) = constant added by the site module. If Python is executed without the option -s, site module is imported automatically.