www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/05/06/11:34:16

Date: Fri, 6 May 94 16:36:03 +0100
From: acc AT asterix DOT inescn DOT pt (Antonio Costa)
To: DJGPP <DJGPP-ANNOUNCE AT sun DOT soe DOT clarkson DOT edu>
Subject: PYTHON for DJGPP
Cc: DJGPP <DJGPP AT sun DOT soe DOT clarkson DOT edu>

Hi.

===== NEW =====

PYT102SU.EXE contains both normal PYTHON and PYTHON+SUIT for DOS.
Version is 1.0.2 and it should be installed over PYTHON 1.0.1 if
SUIT is going to be used.

PYT-INFO.ARJ contains the INFO files for PYTHON.
These files are at asterix.inescn.pt in dir pub/PC/python

PYTHON is available at ftp.cwi.nl in dir pub/python
SUIT is a very portable user interface toolkit available at
uvacs.cs.virginia.edu in dir pub/suit
SUIT for DJGPP is at asterix.inescn.pt in dir pub/PC/devel



===== OLD =====

I have recently made a version of PYTHON for DOS (running with
the DJGPP GO32 DOS extender) supporting SUIT.

PYT101SU.EXE is a self-extracting archive containing PYTHON+SUIT, the DOS
extender (GO32.EXE), an emulator (EMU387), a batch file for
configuration (SETPYT.BAT) and two directories, one with fonts and
the other with graphic drivers.
Versions is 1.0.1
These files are at asterix.inescn.pt in dir pub/PC/python


I include some docs about DJGPP and how to get it, install, etc.
There is also an example (a simple calculator).


The blurb for PYTHON follows:

What is Python?
---------------

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
MS-DOS.

As a short example of what Python looks like, here's a script to
print prime numbers (not blazingly fast, but readable!).  When this
file is made executable, it is callable directly from the UNIX shell
(if your system supports #! in scripts and the python interpreter is
installed at the indicated place).

#!/usr/local/bin/python

# Print prime numbers in a given range

def main():
	import sys
	min, max = 2, 0x7fffffff
	if sys.argv[1:]:
		min = int(eval(sys.argv[1]))
		if sys.argv[2:]:
			max = int(eval(sys.argv[2]))
	primes(min, max)

def primes(min, max):
	if 2 >= min: print 2
	primes = [2]
	i = 3
	while i <= max:
		for p in primes:
			if i%p == 0 or p*p > i: break
		if i%p <> 0:
			primes.append(i)
			if i >= min: print i
		i = i+2

main()

End of PYTHON's blurb.


Regards,
Antonio Costa.
(acosta AT inescn DOT pt acc AT asterix DOT inescn DOT pt)
.........................................................................
     O     O
    /     /                        I N E S C
   | O   |        Antonio Costa        | E-Mail   acc AT asterix DOT inescn DOT pt
   | |\  |   O                         |          acosta AT porto DOT inescn DOT pt
   | | \ |  /  O  Comp. Graphics & CAD | DECnet   porto::acosta
   | |  \| /  /                        |
   | |  /  | |    Largo Mompilher 22   | UUCP     {mcvax,...}!...
   O | |-O | |    4100 Porto PORTUGAL  | Bell     +351+02+321006
    /   \ /   \
   O     O     O          "Let the good times roll..."

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019