delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/04/16/15:24:19

Date: Sat, 16 Apr 94 20:13:55 +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 (long)

Hi.
I got this from comp.windows.suit, written by
woc8r AT brunelleschi DOT cs DOT virginia DOT edu (Bill Carlson):

#>At long last and after long delays (Matt sends his deep apologies),
#>SUIT, the Simple User Interface Toolkit, version 2.3 is now available
#>for Python.
#>
#>In case you don't know what Python is, here is a blurb from the Python
#>distribution.  
#>*******************************************************************
#>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()
#>*******************************************************************
#>
#>The C module file, the suit.py file and several examples
#>written in python are all available in:
#>
#>	ftp://uvacs.cs.virginia.edu/pub/suit/python/SUIT_python.tar.Z
#>
#>getting this will require that you get the SUIT libraries as well,
#>which are under
#>
#>	ftp://uvacs.cs.virginia.edu/pub/suit/distribution/<ARCH>
#>
#>where <ARCH> is the name of the architecture you need libraries for.
#>
#>Python can be found at:
#>	ftp://ftp.cwi.nl/pub/python/python1.0.1.tar.Z
#>
#>and the Python mailing list can be subscribed by sending a one-line
#>message (SUBSCRIBE) to:
#>	python-list-request AT cwi DOT nl
#>
#>For more info on SUIT, 
#>
#>	finger suit AT uvacs DOT cs DOT virginia DOT edu
#>
#>Technical support for SUIT is available via the USENET newsgroup
#>comp.windows.suit.
#>
#>Special thanks to Bill Carlson who wrote this spiffy class-based 
#>wrapper for the SUIT library.

Sorry for the long blurb!
I have compiled PYTHON alone and with SUIT using DJGPP without any
problems. It runs fast (at least for an interpreter and seems rather
flexible, etc).

SUIT is a user interface toolkit which also exists for DJGPP
(SUITG111.ARJ somewhere inside oak.oakland.edu:pub/msdos/djgpp or
src.doc.ic.ac.uk:packages/ibmpc/djgpp/pub, I think). It is also at our
machine -> asterix.inescn.pt:pub/PC/djgpp/suit/suitg111.arj

If anybody wants to give PYTHON+SUIT a try, get it at
ftp.markv.com:incoming/python/pythonsu.exe and suit2.readme
(NOTE: do a direct CD to incoming/python; DIR and LS don't work there)
There are also examples there (calc11.py and calc11.sui)

There is also an older PYTHON version without SUIT at
ftp.cwi.nl:pub/python, I think.

If you need help, please contact me.

Regards,
Antonio Costa.
.........................................................................
     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