Copyright (c) Hyperion Entertainment and contributors.
AmigaOS Manual: Built-in Constants: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
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..." |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 16: | Line 16: | ||
| __debug__ || This constant is true if Python was not started with an -O option. |
| __debug__ || This constant is true if Python was not started with an -O option. |
||
|- |
|- |
||
| quit([< |
| quit([<nowiki><code></nowiki>]) || Object. Contains the quit help text. When called, quits the Python interpreter and returns <nowiki><code></nowiki> to the caller, if supplied. <sup>[[#CONSTANT|[1]]]</sup> |
||
|- |
|- |
||
| exit([< |
| exit([<nowiki><code></nowiki>]) || Object containg the exit help text. When called, exits the Python interpreter and returns <nowiki><code></nowiki> to the caller, if supplied. <sup>[[#CONSTANT|[1]]]</sup> |
||
|- |
|- |
||
| copyright || Object containing the copyright text. |
| copyright || Object containing the copyright text. <sup>[[#CONSTANT|[1]]]</sup> |
||
|- |
|- |
||
| credits || Object containing the credits text. |
| credits || Object containing the credits text. <sup>[[#CONSTANT|[1]]]</sup> |
||
|- |
|- |
||
| license || Object containing the license text. |
| license || Object containing the license text. <sup>[[#CONSTANT|[1]]]</sup> |
||
|} |
|} |
||
{{anchor|CONSTANT}} |
|||
<sup>[1]</sup> Constant added by the '''site''' module. If Python is executed without the option -s, '''site''' module is imported automatically. |
|||
Latest revision as of 12:47, 5 December 2022
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 <code> to the caller, if supplied. [1] |
| exit([<code>]) | Object containg the exit help text. When called, exits the Python interpreter and returns <code> to the caller, if supplied. [1] |
| copyright | Object containing the copyright text. [1] |
| credits | Object containing the credits text. [1] |
| license | Object containing the license text. [1] |
[1] Constant added by the site module. If Python is executed without the option -s, site module is imported automatically.