Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d95976be
Commit
d95976be
authored
Nov 27, 1996
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
/usr/local/bin/python -> /usr/bin/env python
parent
d992d554
Changes
141
Show whitespace changes
Inline
Side-by-side
Showing
141 changed files
with
146 additions
and
143 deletions
+146
-143
Demo/comparisons/regextest.py
Demo/comparisons/regextest.py
+1
-1
Demo/comparisons/sortingtest.py
Demo/comparisons/sortingtest.py
+1
-1
Demo/comparisons/systemtest.py
Demo/comparisons/systemtest.py
+1
-1
Demo/ibrowse/ib.py
Demo/ibrowse/ib.py
+1
-1
Demo/parser/test_parser.py
Demo/parser/test_parser.py
+1
-1
Demo/pdist/RCSProxy.py
Demo/pdist/RCSProxy.py
+1
-1
Demo/pdist/makechangelog.py
Demo/pdist/makechangelog.py
+1
-1
Demo/pdist/rcvs.py
Demo/pdist/rcvs.py
+1
-1
Demo/pdist/rrcs.py
Demo/pdist/rrcs.py
+1
-1
Demo/scripts/eqfix.py
Demo/scripts/eqfix.py
+1
-1
Demo/scripts/fact.py
Demo/scripts/fact.py
+1
-1
Demo/scripts/from.py
Demo/scripts/from.py
+1
-1
Demo/scripts/ftpstats.py
Demo/scripts/ftpstats.py
+1
-1
Demo/scripts/lpwatch.py
Demo/scripts/lpwatch.py
+1
-1
Demo/scripts/makedir.py
Demo/scripts/makedir.py
+1
-1
Demo/scripts/markov.py
Demo/scripts/markov.py
+1
-1
Demo/scripts/mboxconvert.py
Demo/scripts/mboxconvert.py
+1
-1
Demo/scripts/mkrcs.py
Demo/scripts/mkrcs.py
+1
-1
Demo/scripts/mpzpi.py
Demo/scripts/mpzpi.py
+1
-1
Demo/scripts/newslist.py
Demo/scripts/newslist.py
+1
-1
Demo/scripts/pi.py
Demo/scripts/pi.py
+1
-1
Demo/scripts/pp.py
Demo/scripts/pp.py
+1
-1
Demo/scripts/primes.py
Demo/scripts/primes.py
+1
-1
Demo/scripts/script.py
Demo/scripts/script.py
+1
-1
Demo/scripts/unbirthday.py
Demo/scripts/unbirthday.py
+1
-1
Demo/scripts/update.py
Demo/scripts/update.py
+1
-1
Demo/sgi/al/broadcast.py
Demo/sgi/al/broadcast.py
+1
-1
Demo/sgi/al/radio.py
Demo/sgi/al/radio.py
+1
-1
Demo/sgi/al/unicast.py
Demo/sgi/al/unicast.py
+1
-1
Demo/sgi/audio/play.py
Demo/sgi/audio/play.py
+1
-1
Demo/sgi/audio_stdwin/jukebox.py
Demo/sgi/audio_stdwin/jukebox.py
+1
-1
Demo/sgi/audio_stdwin/rec.py
Demo/sgi/audio_stdwin/rec.py
+1
-1
Demo/sgi/audio_stdwin/vumeter.py
Demo/sgi/audio_stdwin/vumeter.py
+1
-1
Demo/sgi/gl/backface.py
Demo/sgi/gl/backface.py
+1
-1
Demo/sgi/gl/glinfo.py
Demo/sgi/gl/glinfo.py
+1
-1
Demo/sgi/gl/kites.py
Demo/sgi/gl/kites.py
+1
-1
Demo/sgi/gl/kunst.py
Demo/sgi/gl/kunst.py
+1
-1
Demo/sgi/gl/mclock.py
Demo/sgi/gl/mclock.py
+1
-1
Demo/sgi/gl/mixing.py
Demo/sgi/gl/mixing.py
+1
-1
Demo/sgi/gl/nurbs.py
Demo/sgi/gl/nurbs.py
+1
-1
Demo/sgi/gl/zrgb.py
Demo/sgi/gl/zrgb.py
+1
-1
Demo/sgi/video/Dsend.py
Demo/sgi/video/Dsend.py
+1
-1
Demo/sgi/video/OldVcopy.py
Demo/sgi/video/OldVcopy.py
+1
-1
Demo/sgi/video/Vaddcache.py
Demo/sgi/video/Vaddcache.py
+1
-1
Demo/sgi/video/Vb.py
Demo/sgi/video/Vb.py
+1
-1
Demo/sgi/video/Vcopy.py
Demo/sgi/video/Vcopy.py
+1
-1
Demo/sgi/video/Vedit.py
Demo/sgi/video/Vedit.py
+1
-1
Demo/sgi/video/Vfix.py
Demo/sgi/video/Vfix.py
+1
-1
Demo/sgi/video/Vinfo.py
Demo/sgi/video/Vinfo.py
+1
-1
Demo/sgi/video/Vmkjpeg.py
Demo/sgi/video/Vmkjpeg.py
+1
-1
Demo/sgi/video/Vplay.py
Demo/sgi/video/Vplay.py
+1
-1
Demo/sgi/video/Vrec.py
Demo/sgi/video/Vrec.py
+1
-1
Demo/sgi/video/Vrecb.py
Demo/sgi/video/Vrecb.py
+1
-1
Demo/sgi/video/Vreceive.py
Demo/sgi/video/Vreceive.py
+1
-1
Demo/sgi/video/Vsend.py
Demo/sgi/video/Vsend.py
+1
-1
Demo/sgi/video/Vstat.py
Demo/sgi/video/Vstat.py
+1
-1
Demo/sgi/video/Vtime.py
Demo/sgi/video/Vtime.py
+1
-1
Demo/sgi/video/Vunjpeg.py
Demo/sgi/video/Vunjpeg.py
+1
-1
Demo/sgi/video/aplay.py
Demo/sgi/video/aplay.py
+1
-1
Demo/sgi/video/video2rgb.py
Demo/sgi/video/video2rgb.py
+1
-1
Demo/sockets/echosvr.py
Demo/sockets/echosvr.py
+1
-1
Demo/sockets/finger.py
Demo/sockets/finger.py
+1
-1
Demo/sockets/gopher.py
Demo/sockets/gopher.py
+1
-1
Demo/sockets/rpython.py
Demo/sockets/rpython.py
+1
-1
Demo/sockets/rpythond.py
Demo/sockets/rpythond.py
+1
-1
Demo/sockets/telnet.py
Demo/sockets/telnet.py
+1
-1
Demo/sockets/throughput.py
Demo/sockets/throughput.py
+1
-1
Demo/sockets/udpecho.py
Demo/sockets/udpecho.py
+1
-1
Demo/stdwin/FormTest.py
Demo/stdwin/FormTest.py
+1
-1
Demo/stdwin/RadioGroups.py
Demo/stdwin/RadioGroups.py
+1
-1
Demo/stdwin/TestCSplit.py
Demo/stdwin/TestCSplit.py
+1
-1
Demo/stdwin/TestDirList.py
Demo/stdwin/TestDirList.py
+1
-1
Demo/stdwin/TestFormSplit.py
Demo/stdwin/TestFormSplit.py
+1
-1
Demo/stdwin/TestSched.py
Demo/stdwin/TestSched.py
+1
-1
Demo/stdwin/TestTextEdit.py
Demo/stdwin/TestTextEdit.py
+1
-1
Demo/stdwin/clock.py
Demo/stdwin/clock.py
+1
-1
Demo/stdwin/ibrowse/ib.py
Demo/stdwin/ibrowse/ib.py
+1
-1
Demo/stdwin/jukebox.py
Demo/stdwin/jukebox.py
+1
-1
Demo/stdwin/lpwin.py
Demo/stdwin/lpwin.py
+1
-1
Demo/stdwin/microedit.py
Demo/stdwin/microedit.py
+1
-1
Demo/stdwin/miniedit.py
Demo/stdwin/miniedit.py
+1
-1
Demo/stdwin/python.py
Demo/stdwin/python.py
+1
-1
Demo/stdwin/wdiff.py
Demo/stdwin/wdiff.py
+1
-1
Demo/tkinter/guido/MimeViewer.py
Demo/tkinter/guido/MimeViewer.py
+1
-1
Demo/tkinter/guido/dialog.py
Demo/tkinter/guido/dialog.py
+1
-1
Demo/tkinter/guido/electrons.py
Demo/tkinter/guido/electrons.py
+1
-1
Demo/tkinter/guido/kill.py
Demo/tkinter/guido/kill.py
+1
-1
Demo/tkinter/guido/mbox.py
Demo/tkinter/guido/mbox.py
+1
-1
Demo/tkinter/guido/rmt.py
Demo/tkinter/guido/rmt.py
+1
-1
Demo/tkinter/guido/svkill.py
Demo/tkinter/guido/svkill.py
+1
-1
Demo/tkinter/guido/tkman.py
Demo/tkinter/guido/tkman.py
+1
-1
Demo/tkinter/www/www1.py
Demo/tkinter/www/www1.py
+1
-1
Demo/tkinter/www/www10.py
Demo/tkinter/www/www10.py
+1
-1
Demo/tkinter/www/www11.py
Demo/tkinter/www/www11.py
+1
-1
Demo/tkinter/www/www12.py
Demo/tkinter/www/www12.py
+1
-1
Demo/tkinter/www/www13.py
Demo/tkinter/www/www13.py
+1
-1
Demo/tkinter/www/www2.py
Demo/tkinter/www/www2.py
+1
-1
Demo/tkinter/www/www3.py
Demo/tkinter/www/www3.py
+1
-1
Demo/tkinter/www/www4.py
Demo/tkinter/www/www4.py
+1
-1
Demo/tkinter/www/www5.py
Demo/tkinter/www/www5.py
+1
-1
Demo/tkinter/www/www6.py
Demo/tkinter/www/www6.py
+1
-1
Demo/tkinter/www/www7.py
Demo/tkinter/www/www7.py
+1
-1
Demo/tkinter/www/www8.py
Demo/tkinter/www/www8.py
+1
-1
Demo/tkinter/www/www9.py
Demo/tkinter/www/www9.py
+1
-1
Lib/cgi.py
Lib/cgi.py
+6
-2
Lib/mailbox.py
Lib/mailbox.py
+1
-1
Lib/mimify.py
Lib/mimify.py
+1
-1
Lib/pdb.py
Lib/pdb.py
+1
-1
Lib/profile.py
Lib/profile.py
+1
-1
Lib/test/pystone.py
Lib/test/pystone.py
+1
-1
Misc/Fixcprt.py
Misc/Fixcprt.py
+1
-1
Misc/faq2html.py
Misc/faq2html.py
+1
-1
Misc/renumber.py
Misc/renumber.py
+1
-1
Tools/freeze/freeze.py
Tools/freeze/freeze.py
+1
-1
Tools/modulator/Tkextra.py
Tools/modulator/Tkextra.py
+1
-1
Tools/modulator/modulator.py
Tools/modulator/modulator.py
+1
-1
Tools/scripts/byteyears.py
Tools/scripts/byteyears.py
+1
-1
Tools/scripts/checkpyc.py
Tools/scripts/checkpyc.py
+1
-1
Tools/scripts/classfix.py
Tools/scripts/classfix.py
+1
-1
Tools/scripts/copytime.py
Tools/scripts/copytime.py
+1
-1
Tools/scripts/dutree.py
Tools/scripts/dutree.py
+1
-1
Tools/scripts/eptags.py
Tools/scripts/eptags.py
+1
-1
Tools/scripts/findlinksto.py
Tools/scripts/findlinksto.py
+1
-1
Tools/scripts/fixcid.py
Tools/scripts/fixcid.py
+1
-1
Tools/scripts/fixheader.py
Tools/scripts/fixheader.py
+1
-1
Tools/scripts/ftpmirror.py
Tools/scripts/ftpmirror.py
+1
-1
Tools/scripts/h2py.py
Tools/scripts/h2py.py
+1
-1
Tools/scripts/ifdef.py
Tools/scripts/ifdef.py
+1
-1
Tools/scripts/linktree.py
Tools/scripts/linktree.py
+1
-1
Tools/scripts/lll.py
Tools/scripts/lll.py
+1
-1
Tools/scripts/methfix.py
Tools/scripts/methfix.py
+1
-1
Tools/scripts/mkreal.py
Tools/scripts/mkreal.py
+1
-1
Tools/scripts/objgraph.py
Tools/scripts/objgraph.py
+1
-1
Tools/scripts/pdeps.py
Tools/scripts/pdeps.py
+1
-1
Tools/scripts/pindent.py
Tools/scripts/pindent.py
+1
-2
Tools/scripts/ptags.py
Tools/scripts/ptags.py
+1
-1
Tools/scripts/pystone.py
Tools/scripts/pystone.py
+1
-1
Tools/scripts/suff.py
Tools/scripts/suff.py
+1
-1
Tools/scripts/sum5.py
Tools/scripts/sum5.py
+1
-1
Tools/scripts/which.py
Tools/scripts/which.py
+1
-1
Tools/scripts/xxci.py
Tools/scripts/xxci.py
+1
-1
No files found.
Demo/comparisons/regextest.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# 1) Regular Expressions Test
#
...
...
Demo/comparisons/sortingtest.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# 2) Sorting Test
#
...
...
Demo/comparisons/systemtest.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# 3) System Test
#
...
...
Demo/ibrowse/ib.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Call ibrowse (the info file browser) under UNIX.
...
...
Demo/parser/test_parser.py
View file @
d95976be
#! /
projects/python/Python-1.4b2/
python
#! /
usr/bin/env
python
# (Force the script to use the latest build.)
#
# test_parser.py
...
...
Demo/pdist/RCSProxy.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
"""RCS Proxy.
...
...
Demo/pdist/makechangelog.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
"""Turn a pile of RCS log output into ChangeLog file entries.
...
...
Demo/pdist/rcvs.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
"""Remote CVS -- command line interface"""
...
...
Demo/pdist/rrcs.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
"Remote RCS -- command line interface"
...
...
Demo/scripts/eqfix.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Fix Python source files to use the new equality test operator, i.e.,
# if x = y: ...
...
...
Demo/scripts/fact.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Factorize numbers.
# The algorithm is not efficient, but easy to understand.
...
...
Demo/scripts/from.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Print From and Subject of messages in $MAIL.
# Extension to multiple mailboxes and other bells & whistles are left
...
...
Demo/scripts/ftpstats.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Extract statistics from ftp daemon log.
...
...
Demo/scripts/lpwatch.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Watch line printer queue(s).
# Intended for BSD 4.3 lpq.
...
...
Demo/scripts/makedir.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Like mkdir, but also make intermediate directories if necessary.
# It is not an error if the given directory already exists (as long
...
...
Demo/scripts/markov.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
class
Markov
:
def
__init__
(
self
,
histsize
,
choice
):
...
...
Demo/scripts/mboxconvert.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Convert MH directories (1 message per file) or MMDF mailboxes (4x^A
# delimited) to unix mailbox (From ... delimited) on stdout.
...
...
Demo/scripts/mkrcs.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# A rather specialized script to make sure that a symbolic link named
# RCS exists pointing to a real RCS directory in a parallel tree
...
...
Demo/scripts/mpzpi.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Print digits of pi forever.
#
# The algorithm, using Python's 'long' integers ("bignums"), works
...
...
Demo/scripts/newslist.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
#######################################################################
# Newslist $Revision$
#
...
...
Demo/scripts/pi.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Print digits of pi forever.
#
...
...
Demo/scripts/pp.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Emulate some Perl command line options.
# Usage: pp [-a] [-c] [-d] [-e scriptline] [-F fieldsep] [-n] [-p] [file] ...
...
...
Demo/scripts/primes.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Print prime numbers in a given range
...
...
Demo/scripts/script.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# script.py -- Make typescript of terminal session.
# Usage:
# -a Append to typescript.
...
...
Demo/scripts/unbirthday.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Calculate your unbirthday count (see Alice in Wonderland).
# This is defined as the number of days from your birth until today
...
...
Demo/scripts/update.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Update a bunch of files according to a script.
# The input file contains lines of the form <filename>:<lineno>:<text>,
...
...
Demo/sgi/al/broadcast.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# broadcast [port]
#
...
...
Demo/sgi/al/radio.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# radio [port]
#
...
...
Demo/sgi/al/unicast.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# unicast host [port]
#
...
...
Demo/sgi/audio/play.py
View file @
d95976be
#! /usr/
local/
python
#! /usr/
bin/env
python
import
sys
import
audio
...
...
Demo/sgi/audio_stdwin/jukebox.py
View file @
d95976be
#! /usr/
local/
python
#! /usr/
bin/env
python
# JUKEBOX: browse directories full of sampled sound files.
#
...
...
Demo/sgi/audio_stdwin/rec.py
View file @
d95976be
#! /u
fs/guido/bin/sgi/
python
#! /u
sr/bin/env
python
import
sys
import
audio
...
...
Demo/sgi/audio_stdwin/vumeter.py
View file @
d95976be
#! /usr/
local/
python
#! /usr/
bin/env
python
import
audio
import
stdwin
...
...
Demo/sgi/gl/backface.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# backface
#
...
...
Demo/sgi/gl/glinfo.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Print the values of all values that can be inquired with getgdesc().
# See man getgdesc() for a description.
...
...
Demo/sgi/gl/kites.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# *** This only works correctly on a 24 bit-plane machine. ***
#
...
...
Demo/sgi/gl/kunst.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Simulate the artwork in the hall.
# Jack Jansen, Feb 91.
...
...
Demo/sgi/gl/mclock.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# "M Clock"
#
...
...
Demo/sgi/gl/mixing.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Use Gouraud shading to mix colors. Requires Z-buffer.
# It changes the color assignments so fast that you see white.
...
...
Demo/sgi/gl/nurbs.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Rotate a 3D surface created using NURBS.
#
...
...
Demo/sgi/gl/zrgb.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# zrgb (Requires Z buffer.)
#
...
...
Demo/sgi/video/Dsend.py
View file @
d95976be
#!
/ufs/guido/bin/sgi/
python
#!
/usr/bin/env
python
# Send live video UDP packets.
# Usage: Vsend [-b] [-h height] [-p port] [-s size] [-t ttl] [-w width]
...
...
Demo/sgi/video/OldVcopy.py
View file @
d95976be
#! /u
fs/guido/bin/sgi/
python
#! /u
sr/bin/env
python
# Copy a video file, interactively, frame-by-frame.
...
...
Demo/sgi/video/Vaddcache.py
View file @
d95976be
#! /u
fs/guido/bin/sgi/
python
#! /u
sr/bin/env
python
# Add a cache to each of the files given as command line arguments
...
...
Demo/sgi/video/Vb.py
View file @
d95976be
#! /u
fs/guido/bin/sgi/
python
#! /u
sr/bin/env
python
# Video bag of tricks: record video(+audio) in various formats and modes
...
...
Demo/sgi/video/Vcopy.py
View file @
d95976be
#! /u
fs/guido/bin/sgi/
python
#! /u
sr/bin/env
python
# Universal (non-interactive) CMIF video file copier.
...
...
Demo/sgi/video/Vedit.py
View file @
d95976be
#! /u
fs/guido/bin/sgi/
python
#! /u
sr/bin/env
python
# Edit CMIF movies interactively -- copy one or more files to an output file
...
...
Demo/sgi/video/Vfix.py
View file @
d95976be
#!
/ufs/guido/bin/sgi/
python
#!
/usr/bin/env
python
# Copy a video file, fixing the line width to be a multiple of 4
...
...
Demo/sgi/video/Vinfo.py
View file @
d95976be
#! /u
fs/guido/bin/sgi/
python
#! /u
sr/bin/env
python
# Print some info about a CMIF movie file
...
...
Demo/sgi/video/Vmkjpeg.py
View file @
d95976be
#!
/ufs/guido/bin/sgi/
python
#!
/usr/bin/env
python
# Compress an rgb or grey video file to jpeg format
...
...
Demo/sgi/video/Vplay.py
View file @
d95976be
#! /u
fs/guido/bin/sgi/
python
#! /u
sr/bin/env
python
# Play CMIF movie files
...
...
Demo/sgi/video/Vrec.py
View file @
d95976be
#! /u
fs/guido/bin/sgi/
python
#! /u
sr/bin/env
python
#! /ufs/guido/bin/sgi/python-405
# Capture a CMIF movie using the Indigo video library and board
...
...
Demo/sgi/video/Vrecb.py
View file @
d95976be
#! /u
fs/guido/bin/sgi/
python
#! /u
sr/bin/env
python
# Capture a CMIF movie using the Indigo video library and board in burst mode
...
...
Demo/sgi/video/Vreceive.py
View file @
d95976be
#!
/ufs/guido/bin/sgi/
python
#!
/usr/bin/env
python
# Receive live video UDP packets.
# Usage: Vreceive [port]
...
...
Demo/sgi/video/Vsend.py
View file @
d95976be
#!
/ufs/guido/bin/sgi/
python
#!
/usr/bin/env
python
# Send live video UDP packets.
# Usage: Vsend [-b] [-h height] [-p port] [-s size] [-t ttl] [-w width]
...
...
Demo/sgi/video/Vstat.py
View file @
d95976be
#! /u
fs/guido/bin/sgi/
python
#! /u
sr/bin/env
python
# Print the value of all video parameters
...
...
Demo/sgi/video/Vtime.py
View file @
d95976be
#! /u
fs/guido/bin/sgi/
python
#! /u
sr/bin/env
python
# Manipulate the time base of CMIF movies
...
...
Demo/sgi/video/Vunjpeg.py
View file @
d95976be
#!
/ufs/guido/bin/sgi/
python
#!
/usr/bin/env
python
# Decompress a jpeg or jpeggrey video file to rgb format
...
...
Demo/sgi/video/aplay.py
View file @
d95976be
#! /u
fs/guido/bin/sgi/
python
#! /u
sr/bin/env
python
# Play synchronous video and audio.
# Highly experimental!
...
...
Demo/sgi/video/video2rgb.py
View file @
d95976be
#! /u
fs/guido/bin/sgi/
python
#! /u
sr/bin/env
python
# Convert CMIF movie file(s) to a sequence of rgb images
...
...
Demo/sockets/echosvr.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Python implementation of an 'echo' tcp server: echo all data it receives.
#
...
...
Demo/sockets/finger.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Python interface to the Internet finger daemon.
#
...
...
Demo/sockets/gopher.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# A simple gopher client.
#
...
...
Demo/sockets/rpython.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Remote python client.
# Execute Python commands remotely and send output back.
...
...
Demo/sockets/rpythond.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Remote python server.
# Execute Python commands remotely and send output back.
...
...
Demo/sockets/telnet.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Minimal interface to the Internet telnet protocol.
#
...
...
Demo/sockets/throughput.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Test network throughput.
#
...
...
Demo/sockets/udpecho.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Client and server for udp (datagram) echo.
#
...
...
Demo/stdwin/FormTest.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
testlabels
=
'Name'
,
'Address'
,
'City'
,
'Country'
,
'Comments'
...
...
Demo/stdwin/RadioGroups.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# radiogroups.py
#
...
...
Demo/stdwin/TestCSplit.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# TestCSplit
...
...
Demo/stdwin/TestDirList.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# TestDirList
...
...
Demo/stdwin/TestFormSplit.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# TestFormSplit
...
...
Demo/stdwin/TestSched.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# TestSched
...
...
Demo/stdwin/TestTextEdit.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Test TextEdit widgets
...
...
Demo/stdwin/clock.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# 'clock' -- A simple alarm clock
...
...
Demo/stdwin/ibrowse/ib.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Call ibrowse (the info file browser) under UNIX.
...
...
Demo/stdwin/jukebox.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# XXX This only works on SGIs running IRIX 4.0 or higher
...
...
Demo/stdwin/lpwin.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Watch line printer queues (only works with BSD 4.3 lpq).
#
...
...
Demo/stdwin/microedit.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# A minimal single-window text editor using STDWIN's text objects.
#
...
...
Demo/stdwin/miniedit.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# A miniature multi-window editor using STDWIN's text objects.
#
...
...
Demo/stdwin/python.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# A STDWIN-based front end for the Python interpreter.
#
...
...
Demo/stdwin/wdiff.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# A window-oriented recursive diff utility.
# NB: This uses undocumented window classing modules.
...
...
Demo/tkinter/guido/MimeViewer.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# View a single MIME multipart message.
# Display each part as a box.
...
...
Demo/tkinter/guido/dialog.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# A Python function that generates dialog boxes with a text message,
# optional bitmap, and any number of buttons.
...
...
Demo/tkinter/guido/electrons.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Simulate "electrons" migrating across the screen.
# An optional bitmap file in can be in the background.
...
...
Demo/tkinter/guido/kill.py
View file @
d95976be
#!
/usr/local/bin/
python
#!
/usr/bin/env
python
# Tkinter interface to Linux `kill' command.
from
Tkinter
import
*
...
...
Demo/tkinter/guido/mbox.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Scan MH folder, display results in window
...
...
Demo/tkinter/guido/rmt.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# A Python program implementing rmt, an application for remotely
# controlling other Tk applications.
...
...
Demo/tkinter/guido/svkill.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Tkinter interface to SYSV `ps' and `kill' commands.
...
...
Demo/tkinter/guido/tkman.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Tk man page browser -- currently only shows the Tcl/Tk man pages
...
...
Demo/tkinter/www/www1.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# www1.py -- print the contents of a URL on stdout
...
...
Demo/tkinter/www/www10.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# www10.py -- display the contents of a URL in a Text widget
# - set window title
...
...
Demo/tkinter/www/www11.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# www11.py -- display the contents of a URL in a Text widget
# - set window title
...
...
Demo/tkinter/www/www12.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# www12.py -- display the contents of a URL in a Text widget
# - set window title
...
...
Demo/tkinter/www/www13.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# www13.py -- display the contents of a URL in a Text widget
# - set window title
...
...
Demo/tkinter/www/www2.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# www2.py -- print the contents of a URL on stdout
# - error checking
...
...
Demo/tkinter/www/www3.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# www3.py -- print the contents of a URL on stdout
# - error checking
...
...
Demo/tkinter/www/www4.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# www4.py -- display the contents of a URL in a Text widget
...
...
Demo/tkinter/www/www5.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# www5.py -- display the contents of a URL in a Text widget
# - set window title
...
...
Demo/tkinter/www/www6.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# www6.py -- display the contents of a URL in a Text widget
# - set window title
...
...
Demo/tkinter/www/www7.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# www7.py -- display the contents of a URL in a Text widget
# - set window title
...
...
Demo/tkinter/www/www8.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# www8.py -- display the contents of a URL in a Text widget
# - set window title
...
...
Demo/tkinter/www/www9.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# www9.py -- display the contents of a URL in a Text widget
# - set window title
...
...
Lib/cgi.py
View file @
d95976be
#!
/usr/local/bin/
python
#!
/usr/bin/env
python
"""Support module for CGI (Common Gateway Interface) scripts.
...
...
@@ -216,10 +216,14 @@ Unix file mode should be 755 (use "chmod 755 filename"). Make sure
that the first line of the script contains "#!" starting in column 1
followed by the pathname of the Python interpreter, for instance:
#!/usr/local/bin/python
#!
/usr/local/bin/python
Make sure the Python interpreter exists and is executable by "others".
(Note that it's probably not a good idea to use #! /usr/bin/env python
here, since the Python interpreter may not be on the default path
given to CGI scripts!!!)
Make sure that any files your script needs to read or write are
readable or writable, respectively, by "others" -- their mode should
be 644 for readable and 666 for writable. This is because, for
...
...
Lib/mailbox.py
View file @
d95976be
#!
/usr/local/bin/
python
#!
/usr/bin/env
python
"""Classes to handle Unix style, MMDF style, and MH style mailboxes."""
...
...
Lib/mimify.py
View file @
d95976be
#!
/usr/local/bin/
python
#!
/usr/bin/env
python
'''Mimification and unmimification of mail messages.
...
...
Lib/pdb.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# pdb.py -- finally, a Python debugger!
...
...
Lib/profile.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
#
# Class for profiling python code. rev 1.0 6/2/94
#
...
...
Lib/test/pystone.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
"""
"PYSTONE" Benchmark Program
...
...
Misc/Fixcprt.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
import
regex
import
regsub
...
...
Misc/faq2html.py
View file @
d95976be
#!
/usr/local/bin/
python
#!
/usr/bin/env
python
# A somewhat-generalized FAQ-to-HTML converter (by Ka-Ping Yee, 10 Sept 96)
...
...
Misc/renumber.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Renumber the Python FAQ
...
...
Tools/freeze/freeze.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
"""Freeze a Python script into a binary.
...
...
Tools/modulator/Tkextra.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# A Python function that generates dialog boxes with a text message,
# optional bitmap, and any number of buttons.
...
...
Tools/modulator/modulator.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
#
# Modulator - Generate skeleton modules.
#
...
...
Tools/scripts/byteyears.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Print the product of age and size of each file, in suitable units.
#
...
...
Tools/scripts/checkpyc.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Check that all ".pyc" files exist and are up-to-date
# Uses module 'os'
...
...
Tools/scripts/classfix.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# This script is obsolete -- it is kept for historical purposes only.
#
...
...
Tools/scripts/copytime.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Copy one file's atime and mtime to another
...
...
Tools/scripts/dutree.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Format du output in a tree shape
import
os
,
string
,
sys
...
...
Tools/scripts/eptags.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# eptags
#
...
...
Tools/scripts/findlinksto.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# findlinksto
#
...
...
Tools/scripts/fixcid.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Perform massive identifier substitution on C source files.
# This actually tokenizes the files (to some extent) so it can
...
...
Tools/scripts/fixheader.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Add some standard cpp magic to a header file
...
...
Tools/scripts/ftpmirror.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Mirror a remote ftp subtree into a local directory tree.
# Basic usage: ftpmirror [options] host remotedir localdir
...
...
Tools/scripts/h2py.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Read #define's and translate to Python code.
# Handle #include statements.
...
...
Tools/scripts/ifdef.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Selectively preprocess #ifdef / #ifndef statements.
# Usage:
...
...
Tools/scripts/linktree.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# linktree
#
...
...
Tools/scripts/lll.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Find symbolic links and show where they point to.
# Arguments are directories to search; default is current directory.
...
...
Tools/scripts/methfix.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Fix Python source files to avoid using
# def method(self, (arg1, ..., argn)):
...
...
Tools/scripts/mkreal.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# mkreal
#
...
...
Tools/scripts/objgraph.py
View file @
d95976be
#!
/usr/local/bin/
python
#!
/usr/bin/env
python
# objgraph
#
...
...
Tools/scripts/pdeps.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# pdeps
#
...
...
Tools/scripts/pindent.py
View file @
d95976be
#! /usr/local/bin/python
#! /usr/local/bin/python
#! /usr/bin/env python
# This file contains a class and a main program that perform two
# related (though complimentary) formatting operations on Python
...
...
Tools/scripts/ptags.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# ptags
#
...
...
Tools/scripts/pystone.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
"""
"PYSTONE" Benchmark Program
...
...
Tools/scripts/suff.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# suff
#
...
...
Tools/scripts/sum5.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# print md5 checksum for files
...
...
Tools/scripts/which.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# Variant of "which".
# On stderr, near and total misses are reported.
...
...
Tools/scripts/xxci.py
View file @
d95976be
#! /usr/
local/bin/
python
#! /usr/
bin/env
python
# xxci
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment