Commit Graph

1082 Commits

Author SHA1 Message Date
Guido van Rossum 8208702f19 Added gopher.py; removed IN.py 1992-10-25 19:18:23 +00:00
Guido van Rossum 6b8d699ea3 Initial revision 1992-10-25 19:18:11 +00:00
Guido van Rossum a9e7dc1081 * bltinmodule.c: added built-in function cmp(a, b)
* flmodule.c: added {do,check}_only_forms to fl's list of functions;
  and don't print a message when an unknown object is returned.

* pythonrun.c: catch SIGHUP and SIGTERM to do essential cleanup.

* Made jpegmodule.c smaller by using getargs() and mkvalue() consistently.

* Increased parser stack size to 500 in parser.h.

* Implemented custom allocation of stack frames to frameobject.c and
  added dynamic stack overflow checks (value stack only) to ceval.c.
  (There seems to be a bug left: sometimes stack traces don't make sense.)
1992-10-18 18:53:57 +00:00
Guido van Rossum 2db91358de Misc changes and new modules. whrandom is "objectified". SOCKET.py
is moved to the sgi subdirectory.
1992-10-18 17:09:59 +00:00
Guido van Rossum 0cb8e8cfc0 Add .fdc and .rgb to default list of ignored extensions 1992-10-02 14:19:57 +00:00
Guido van Rossum 4df20fa80f New tool Vfix: truncate the right edge of 'grey' type images to make
the scanline width a multiple of 4.

VFile: use gl.gversion() to distinguish 4.0.1 and 4.0.5 Indigos;
truncate width and height to multiples of packfactor.

Vinfo: add -t to descriptive comment; print '!' after packfactor for
files that should be fixed with Vfix.
1992-09-29 17:07:10 +00:00
Sjoerd Mullender 384f24816b Lots of little fixes.
- merged CloseCompressor and CloseDecompressor into one function
- keep existing errors in error function (for exceptions raised in the
  Compress or Decompress callback functions)
- remove newline from error string generated by error function
- allocate less memory when compressing multiple frames
- keep existing errors when clCompress or clDecompress fails
- raise an exception when compressed data doesn't fit within
  dataMaxSize bytes
- allocate frameSize bytes for decompression buffer instead of
  dataMaxSize
- use mkvalue more often
- new function QueryParams which will accept CL.AUDIO and CL.VIDEO
  args
- changed some function names
1992-09-29 16:43:43 +00:00
Guido van Rossum 9e3f335bea VFile: added new formats 'jpeg' and 'jpeggrey'. Decompression is done
using module 'jpeg' by the Displayer class.  (Unfortunately it's too
slow for real time.)  Print file size in printinfo() method.

Vinfo: added -t option (terse -- one line per file) and usage message.

Vtime: use BasicV{in,out}File classes -- the minimum needed.

Vmkjpeg, Vunjpeg: new utilities for jpeg (de)compression.
1992-09-29 13:40:47 +00:00
Guido van Rossum 3165fe6a56 Modified most (but not yet all) I/O to always go through sys.stdout or
sys.stderr or sys.stdin, and to work with any object as long as it has
a write() (respectively readline()) methods.  Some functions that took
a FILE* argument now take an object* argument.
1992-09-25 21:59:05 +00:00
Guido van Rossum 3a40ae4ef3 New shell script Addmodule.sh makes it easier to add a new optional
module by editing Makefile and config.c in all the right places.
Used it to add most modules currently known.  Added markers to help
the script to Makefile and config.c.
1992-09-25 21:54:05 +00:00
Sjoerd Mullender 7c4eb40a1a Changed an ifdef from IRIX_405 to CDsetcallback. 1992-09-25 11:15:58 +00:00
Sjoerd Mullender 37f17b726c Fixed the last known bugs. 1992-09-25 10:28:20 +00:00
Guido van Rossum f8848acca3 Added resizevideo() interface to LiveVideoIn and rationalized size
adjustments (somewhat).  Adapted Vsend to use it.
1992-09-24 16:55:31 +00:00
Guido van Rossum d65f45da26 Added resizevideo() interface to LiveVideoIn and rationalized size
adjustments (somewhat).  Adapted Vsend to use it.
1992-09-24 16:53:51 +00:00
Guido van Rossum cfb6bb2a30 Changed the init() interface of LiveVideoOut to read out the window
size automatically -- the video is always centered.  Added
resizevideo() and reshapewindow() interfaces.  Documented all methods.
Changed Vsend/Vreceive to use the new interface.  Allow window
resizing by the user in Vreceive.
1992-09-24 16:03:56 +00:00
Guido van Rossum 691e59bcb7 Python equivalent of <netinet/in.h> (SGI specific, hence not in python/lib). 1992-09-24 15:02:46 +00:00
Guido van Rossum 7b47c79a4c Added options to Vsend and Vreceive; moved common defaults to senddefs.
Optimized LiveVideoIn quite a bit; removed print stmt from LiveVideoOut.
1992-09-24 15:01:37 +00:00
Guido van Rossum 67b4895291 Added multicast to Vsend and Vreceive. Updated README. Rediced queue
size to 1 in LiveVideoIn.
1992-09-24 12:54:35 +00:00
Sjoerd Mullender 46927bac96 Defined exception cd.error which is used for errors other than
TypeError, MemoryError and such.
1992-09-24 10:48:40 +00:00
Sjoerd Mullender e7daaa3a01 New module "CL" (Compression Library) for Irix 4.0.5 and higher. 1992-09-24 10:40:03 +00:00
Sjoerd Mullender d53a4f3d14 New built-in module "cl" (Compression Library). Only for Irix 4.0.5
and higher.  Made a few improvements to previous version.
1992-09-24 10:37:39 +00:00
Guido van Rossum 2b65c03603 *** empty log message *** 1992-09-24 10:34:25 +00:00
Guido van Rossum 7814c10233 Better way of deducing mcast group bytes. 1992-09-24 10:33:40 +00:00
Guido van Rossum c8833d4ad3 Add -b option and sleep shorter. 1992-09-24 10:33:16 +00:00
Guido van Rossum 590177bc88 open() now raises IOError, not RuntimeError! 1992-09-24 09:14:44 +00:00
Sjoerd Mullender c431549e21 New built-in module cl, the Compression Library. 1992-09-23 14:53:00 +00:00
Guido van Rossum ba06615c9f New modules LiveVideo{In,Out} (interfaces will change!).
New programs V{send,receive} to send/receive video over UDP.
Comment typo changed in Vaddcache.
1992-09-22 17:23:17 +00:00
Guido van Rossum 42e07afe3d Vrec.py: sv now raises sv.error instead of RuntimeError.
VFile.py: support for showing partial frames.
1992-09-22 15:01:43 +00:00
Guido van Rossum 66122d2dae __oct__ and __hex__ 1992-09-20 21:43:47 +00:00
Guido van Rossum 7a461e5aaf New module regsub contains sub(), gsub() and split() as in nawk.
string.splitfields(s, '') now returns [s] as split() in nawk.
Added _exit to exported functions of os.
1992-09-20 21:41:09 +00:00
Guido van Rossum 7066dd75c5 * Makefile: added IMGFILE; moved some stuff around.
* flmodule.c: added some missing functions; changed readonly flags of
  some data members based upon FORMS documentation.
* listobject.c: fixed int/long arg lint bug (bites PC compilers).
* several: removed redundant print methods (repr is good enough).
* posixmodule.c: added (still experimental) process group functions.
1992-09-17 17:54:56 +00:00
Guido van Rossum c2670a000b posix: added setpgrp() and, if sgi, setsid() and setpgid(pid, pgid) 1992-09-13 20:07:29 +00:00
Guido van Rossum 1899c2e055 Made builtins int(), long(), float(), oct() and hex() more generic. 1992-09-12 11:09:23 +00:00
Guido van Rossum 5c85062e1c Makefile uses $> more often; cgen supports filename argument; added
lower, upper and swapcase to strop; cosmetics.
1992-09-11 23:55:51 +00:00
Sjoerd Mullender d10d8291f1 Added C++ support in thread.h; don't use signals if not strictly
necessary, and when they are, use SIGKILL; when compiled with -DDEBUG,
only print debug messages when "THREADDEBUG" is set in the environment.
1992-09-11 15:19:27 +00:00
Guido van Rossum 0aead9f1ba Allow broadcast using setsockopt() 1992-09-08 21:20:12 +00:00
Guido van Rossum 4fab6a5b0b Initial revision 1992-09-08 21:19:55 +00:00
Guido van Rossum 00c5ad6eeb Added mcast demo
.,
1992-09-08 21:19:46 +00:00
Guido van Rossum 5c1797ac23 Utility to add a cached index to an existing movie file. 1992-09-08 15:17:02 +00:00
Guido van Rossum 269b2a2eb7 VFile: The Entry-Indigo trick doesn't work on 4.0.1 hosts.
VFile: RandomVinFile can now write the cache to the file.
Vinfo: use the cached index if present and print a message whether it's there.
1992-09-08 15:04:01 +00:00
Guido van Rossum 3577113d83 Added post_mortem() and pm() interfaces to pdb and wdb.
Added colorsys.py (color system conversions).
SV.py: new version for new svideo.h (Sjoerd).
DEVICE.py: added VIDEO event type.
1992-09-08 11:59:04 +00:00
Guido van Rossum 7b3c8a1422 Added hint about changing the prompt in $PYTHONSTARTUP 1992-09-08 09:20:13 +00:00
Guido van Rossum aee087946d Made struct a standard built-in module; added string args to {set,get}sockopt;
added gl.gversion().
1992-09-08 09:05:33 +00:00
Guido van Rossum 4526f379bc Fixed "clear()" and added "clearto(r, g, b)".
Added class RandomVinFile which supports random access and warming the cache.
Added eofseen and errorseen methods to BasicVinFile.
Use RGB mode for rgb8 data on entry level Indigo.
Minor cosmetic changes.
1992-09-07 15:28:57 +00:00
Guido van Rossum 2de9b68fea Clear the window when receiving a REDRAW event and not playing 1992-09-07 15:11:30 +00:00
Guido van Rossum 00ffea3615 Use vin/vout.clear() instead of gl.clear() 1992-09-07 15:09:31 +00:00
Guido van Rossum 87b74730c3 New module 'colorsys' implements conversions between different color systems. 1992-09-07 09:41:48 +00:00
Guido van Rossum e1783324ab Adapted the world to the new VFile.py. Fixed bugs in Vplay.py:
missing -n in help(), bogus frame skipping; and added patch for
weird time jumps.  Removed colorsys.py (now in std library).
Fixed "sys.write" error in vcopy.py.  Restructured README.
1992-09-07 09:35:23 +00:00
Guido van Rossum 4045c2fa5b Almost completely rewritten for cleaner code. 1992-09-07 09:24:17 +00:00
Guido van Rossum 32517f9427 Remove PAL dependencies; add -w option (initial window width);
add stepunit(8, 6) call.
1992-09-04 13:26:59 +00:00