Copyright (c) Hyperion Entertainment and contributors.

Difference between revisions of "AmigaOS Manual: Python"

From AmigaOS Documentation Wiki
Jump to navigation Jump to search
(Deleted "Data types")
(Added chapter 4: Instructions)
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
  +
{{WIP}}
 
= Welcome =
 
= Welcome =
  +
  +
Python is a high-level, object-oriented general purpose programming language created by Guido van Rossum. It includes a large standard library containing standardized solutions for the common programming problems and tools for accessing the system resources. On Amiga, Python can replace [[AmigaOS Manual: ARexx|ARexx]] as a scripting language.
   
 
This manual introduces you to Python, tells you how to create Python programs and provides a reference section of Python commands.
 
This manual introduces you to Python, tells you how to create Python programs and provides a reference section of Python commands.
Line 9: Line 12:
 
[[AmigaOS Manual: Python Elements of Python|Chapter 3. Elements of Python]]
 
[[AmigaOS Manual: Python Elements of Python|Chapter 3. Elements of Python]]
   
[[AmigaOS Manual: Python Functions|Chapter 4. Functions]] This chapter describes the use of functions and provides an alphabetical listing of the built-in Python functions.
+
[[AmigaOS Manual: Python Instructions|Chapter 4. Instructions]]
   
[[AmigaOS Manual: Python Modules and Packages|Chapter 5. Modules and Packages]]
+
[[AmigaOS Manual: Python Functions|Chapter 5. Functions]] This chapter describes the use of functions and provides an alphabetical listing of the built-in Python functions.
   
[[AmigaOS Manual: Python Classes and Objects|Chapter 6. Classes and Objects]] This chapter explains how to use Python's object-oriented features.
+
[[AmigaOS Manual: Python Methods|Chapter 6. Methods]] This chapter provides a listing of the built-in Python methods.
   
[[AmigaOS Manual: Python Debugging|Chapter 7. Debugging]]
+
[[AmigaOS Manual: Python Modules and Packages|Chapter 7. Modules and Packages]]
   
[[AmigaOS Manual: Python Parsing|Chapter 8. Parsing]]
+
[[AmigaOS Manual: Python Classes and Objects|Chapter 8. Classes and Objects]] This chapter explains how to use Python's object-oriented features.
   
[[AmigaOS Manual: Python Graphical User Interfaces|Chapter 9. Graphical User Interfaces]]
+
[[AmigaOS Manual: Python Debugging|Chapter 9. Debugging]]
   
[[AmigaOS Manual: Standard Exceptions|Appendix: A. Standard Exceptions]] This appendix lists the standard Python exceptions.
+
[[AmigaOS Manual: Python Parsing|Chapter 10. Parsing]] This chapter explains how to break up strings and files into more easily processed components.
  +
  +
[[AmigaOS Manual: Python Sounds|Chapter 11. Sounds]] This chapter explains how to record and play sounds.
  +
  +
[[AmigaOS Manual: Python Printing|Chapter 12. Printing]] This chapter explains how to print.
  +
  +
[[AmigaOS Manual: Python Serial and parallel ports|Chapter 13. Serial and parallel ports]] This chapter explains how to receive and send data through the serial and parallel ports.
  +
  +
[[AmigaOS Manual: Python Network resources|Chapter 14. Network resources]] This chapter explains how you can connect to a remote server and exchange data with it.
  +
  +
[[AmigaOS Manual: Python Graphical User Interfaces|Chapter 15. Graphical User Interfaces]] This chapter explains how to create graphical user interfaces with Python.
  +
  +
[[AmigaOS Manual: Python Interprocess communication through ARexx ports|Chapter 16. Interprocess communication through ARexx ports]]
  +
  +
[[AmigaOS Manual: Reserved Python Words|Appendix: A. Reserved Python Words]] This appendix lists Python keywords.
  +
  +
[[AmigaOS Manual: Python Escape Characters|Appendix: B. Python Escape Characters]] This appendix lists Python escape characters.
  +
  +
[[AmigaOS Manual: Standard Exceptions|Appendix: C. Standard Exceptions]] This appendix lists the standard Python exceptions.
  +
  +
[[AmigaOS Manual: Built-in Constants|Appendix: D. Built-in Constants]] This appendix lists the Python's built-in constants.
  +
  +
[[AmigaOS Manual: Environment Variables|Appendix: E. Environment Variables]] This appendix lists the Python environment variables.
   
 
[[AmigaOS Manual: Python Glossary|Glossary]] The glossary contains common Python terms.
 
[[AmigaOS Manual: Python Glossary|Glossary]] The glossary contains common Python terms.
Line 28: Line 53:
   
 
The following conventions are used in this manual:
 
The following conventions are used in this manual:
  +
...
 
  +
; [ ] (brackets)
  +
: Optional instruction parts are enclosed in brackets.
  +
  +
; <n>
  +
: Variables are displayed in angle brackets. Do not enter the angle brackets when entering the variable.
  +
  +
; Courier
  +
: Text appearing in the Courier font represents output from your Python programs or other information that displays on your screen.
   
 
= Sources of Additional Information =
 
= Sources of Additional Information =
   
 
Further information on learning and using Python can be found in:
 
Further information on learning and using Python can be found in:
  +
...
 
  +
[https://docs.python.org/2.7/ Python 2.7.15 Documentation], by Python Software Foundation.

Latest revision as of 08:18, 28 August 2022

WIP.png This page is currently being updated to AmigaOS 4.x. Some of the information contained here may not yet be applicable in part or totally.

Welcome

Python is a high-level, object-oriented general purpose programming language created by Guido van Rossum. It includes a large standard library containing standardized solutions for the common programming problems and tools for accessing the system resources. On Amiga, Python can replace ARexx as a scripting language.

This manual introduces you to Python, tells you how to create Python programs and provides a reference section of Python commands.

Chapter 1. Introducing Python This chapter gives an overview of Python, how it works on the Amiga, and the basic features of the programming language.

Chapter 2. Getting Started

Chapter 3. Elements of Python

Chapter 4. Instructions

Chapter 5. Functions This chapter describes the use of functions and provides an alphabetical listing of the built-in Python functions.

Chapter 6. Methods This chapter provides a listing of the built-in Python methods.

Chapter 7. Modules and Packages

Chapter 8. Classes and Objects This chapter explains how to use Python's object-oriented features.

Chapter 9. Debugging

Chapter 10. Parsing This chapter explains how to break up strings and files into more easily processed components.

Chapter 11. Sounds This chapter explains how to record and play sounds.

Chapter 12. Printing This chapter explains how to print.

Chapter 13. Serial and parallel ports This chapter explains how to receive and send data through the serial and parallel ports.

Chapter 14. Network resources This chapter explains how you can connect to a remote server and exchange data with it.

Chapter 15. Graphical User Interfaces This chapter explains how to create graphical user interfaces with Python.

Chapter 16. Interprocess communication through ARexx ports

Appendix: A. Reserved Python Words This appendix lists Python keywords.

Appendix: B. Python Escape Characters This appendix lists Python escape characters.

Appendix: C. Standard Exceptions This appendix lists the standard Python exceptions.

Appendix: D. Built-in Constants This appendix lists the Python's built-in constants.

Appendix: E. Environment Variables This appendix lists the Python environment variables.

Glossary The glossary contains common Python terms.

Document Conventions

The following conventions are used in this manual:

[ ] (brackets)
Optional instruction parts are enclosed in brackets.
<n>
Variables are displayed in angle brackets. Do not enter the angle brackets when entering the variable.
Courier
Text appearing in the Courier font represents output from your Python programs or other information that displays on your screen.

Sources of Additional Information

Further information on learning and using Python can be found in:

Python 2.7.15 Documentation, by Python Software Foundation.