home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 5
/
DATAFILE_PDCD5.iso
/
utilities
/
p
/
python
/
!Python
/
!Help
< prev
next >
Wrap
Text File
|
1996-11-14
|
5KB
|
146 lines
Help file for !Python -- RiscOS port v0.1 --
THIS SYSTEM REQUIRES RISCOS 3.1 OR LATER
IT IS SUPPLIED WITHOUT ANY FORM OF WARRANTY OR RESPONSIBILITY FOR ITS USE.
See below for conditions.
This is a first attempt at a RiscOS port of the python interpreter.
It is based on python v1.4
Python is copyright. See below for details.
================================================================================
Introduction
From the FAQ
1.1. Q. What is Python?
A. Python is an interpreted, interactive, object-oriented programming
language. It incorporates modules, exceptions, dynamic typing, very
high level dynamic data types, and classes. Python combines
remarkable power with very clear syntax. It has interfaces to many
system calls and libraries, as well as to various window systems, and
is extensible in C or C++. It is also usable as an extension language
for applications that need a programmable interface. Finally, Python
is portable: it runs on many brands of UNIX, on the Mac, and on PCs
under MS-DOS, Windows, Windows NT, and OS/2.
This RiscOS port contains most of the portable part of Python 1.4b2
i.e. the parts common to Mac, Unix and MS-DOS.
It includes an interface to the RiscOS SWI calls, and an experimental
interface to the toolbox modules.
Several example applications are provided.
You will need the toolbox modules to run these applications.
!Py_New Create a new Python application framework.
!Reporter Wimp debugging tool.
!Graph Draw graphs using the drawfile module.
!Ibrowse Info browser.
Double clicking on the !Python icon should open a taskwindow running python.
A test of the interpreter can be run by double clicking on !Python.test.!Run
There are some simple python example scripts in the directory scripts.
See http://www.python.org/ for the original source of Python, including parts
that did not make the RiscOS port, and for user contributed examples.
================================================================================
Documentation
The Python FAQ can be found in !Python.Misc.FAQ.
The Python manuals in LaTeX or postscript form are supplied in the directory
texdoc.
A html translation of the library manual can be found in htmldoc.
A translation of the library manuals into texinfo info files can be found
with the Python example info browser !Ibrowse.
The example applications each have help files.
================================================================================
Errors and omissions (Some of those I know about)
I have not yet obtained a filetype for Python scripts. If you want to use one
of your own replace the files
!Python.!Boot, !Python.!Run, !Python.!Sprites and !Python.Sprites22
by the versions in !Python.FileType . This will use a filetype of 0x38. You
can change this by editing the !Boot and !Run files and renaming some sprites.
The files in the scripts directory can then have their types set to Python.
The parser module is not included.
The time.sleep function does not work.
The os.environ array is not included.
Many things have not been checked thoroughly, in particular the socket related
modules. Although I have managed to ftp something using Python, so some of it
works.
The code in the riscospath module is a bit suspect. I am not quite sure what
some of the RiscOS equivalents of the unix commands should be.
In particular I have translated pythons .py and .pyc extensions to directories,
the riscospath.splitext function does not cope with this.
================================================================================
The source code
Python can be recreated from the source using the makefile provide. The
makefile is for !AMU not !Make. You will need to edit the paths at the
start of makefile.
The target "python" makes the interpreter itself.
The target "alld" makes the dynamically linked modules.
The default target "all" makes both.
This version was made using Acorn C v5.05 and OSLib v5.1. The socket module
requires the Acorn socket library.
Dynamic linking is handled using my system dlk.
================================================================================
Changes from RiscOS release 0.0
A bug in dlk has been fixed so that dynamic linking should work with StrongArm.
This release is based on Python 1.4 instead of 1.4b2.
================================================================================
Copyright
The Python distribution is copyright.
See the file !Python.Misc.COPYRIGHT for conditions.
The RISCOS changes and additions are copyright C.T.Stretch they may be used or
distributed in any manner compatible with the Python copyright, provided
that all copyright statements including this file remain intact.
ALL MATERIAL IN THIS DISTRIBUTION IS PROVIDED WITH NO WARRANTY WHATSOEVER
USE IT AT YOUR OWN RISK
================================================================================
Contact
I would be pleased to hear bug reports or general comments about this port.
I can be contacted at
ct.stretch@ulst.ac.uk
or C.T.Stretch,
Depatment of Mathematics,
University of Ulster,
Coleraine Co. Londonderry,
BT52 1SA
NORTHERN IRELAND
New versions will be provided by electronic media only (probably HENSA).
Chris Stretch