Skip to content

Commit f0f97f6

Browse files
author
loewis
committed
Patch #748849: Update to current tools and demos.
git-svn-id: http://svn.python.org/projects/python/trunk@33026 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 429c7ef commit f0f97f6

2 files changed

Lines changed: 19 additions & 3 deletions

File tree

Demo/scripts/README

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,23 @@ This directory contains a collection of executable Python scripts.
22

33
See also the Tools/scripts directory!
44

5+
beer.py Print the classic 'bottles of beer' list.
6+
eqfix.py Fix .py files to use the correct equality test operator
57
fact.py Factorize numbers
68
find-uname.py Search for Unicode characters using regexps.
79
from.py Summarize mailbox
810
ftpstats.py Summarize ftp daemon log file
911
lpwatch.py Watch BSD line printer queues
12+
makedir.py Like mkdir -p
1013
markov.py Markov chain simulation of words or characters
1114
mboxconvvert.py Convert MH or MMDF mailboxes to unix mailbox format
15+
mkrcs.py Fix symlinks named RCS into parallel tree
1216
morse.py Produce morse code (audible or on AIFF file)
1317
mpzpi.py test mpz -- print digits of pi (compare pi.py)
1418
pi.py Print all digits of pi -- given enough time and memory
1519
pp.py Emulate some Perl command line options
1620
primes.py Print prime numbers
21+
queens.py Dijkstra's solution to Wirth's "N Queens problem"
1722
script.py Equivalent to BSD script(1) -- by Steen Lumholt
1823
unbirthday.py Print unbirthday count
1924
update.py Update a bunch of files according to a script.

Tools/scripts/README

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,45 +6,56 @@ See also the Demo/scripts directory!
66

77
byext.py Print lines/words/chars stats of files by extension
88
byteyears.py Print product of a file's size and age
9+
checkappend.py Search for multi-argument .append() calls
910
checkpyc.py Check presence and validity of ".pyc" files
1011
classfix.py Convert old class syntax to new
12+
cleanfuture.py Fix reduntant Python __future__ statements
13+
combinerefs.py A helper for analyzing PYTHONDUMPREFS output.
1114
copytime.py Copy one file's atime and mtime to another
1215
crlf.py Change CRLF line endings to LF (Windows to Unix)
1316
cvsfiles.py Print a list of files that are under CVS
1417
db2pickle.py Dump a database file to a pickle
1518
dutree.py Format du(1) output as a tree sorted by size
1619
eptags.py Create Emacs TAGS file for Python modules
20+
finddiv.py A grep-like tool that looks for division operators.
1721
findlinksto.py Recursively find symbolic links to a given path prefix
1822
fixcid.py Massive identifier substitution on C source files
23+
fixdiv.py Tool to fix division operators.
1924
fixheader.py Add some cpp magic to a C include file
2025
fixnotice.py Fix the copyright notice in source files
2126
fixps.py Fix Python scripts' first line (if #!)
2227
ftpmirror.py FTP mirror script
2328
gencodec.py Create Python codecs from Unicode mapping files
29+
google.py Open a webbrowser with Google.
30+
gprof2html.py Transform gprof(1) output into useful HTML.
2431
h2py.py Translate #define's into Python assignments
2532
ifdef.py Remove #if(n)def groups from C sources
2633
lfcr.py Change LF line endings to CRLF (Unix to Windows)
2734
linktree.py Make a copy of a tree with links to original files
2835
lll.py Find and list symbolic links in current directory
2936
logmerge.py Consolidate CVS/RCS logs read from stdin
3037
mailerdaemon.py parse error messages from mailer daemons (Sjoerd&Jack)
38+
md5sum.py Print MD5 checksums of argument files.
3139
methfix.py Fix old method syntax def f(self, (a1, ..., aN)):
3240
mkreal.py Turn a symbolic link into a real file or directory
3341
ndiff.py Intelligent diff between text files (Tim Peters)
3442
nm2def.py Create a template for PC/python_nt.def (Marc Lemburg)
3543
objgraph.py Print object graph from nm output on a library
44+
parseentities.py Utility for parsing HTML entity definitions
3645
pathfix.py Change #!/usr/local/bin/python into something else
3746
pdeps.py Print dependencies between Python modules
3847
pickle2db.py Load a pickle generated by db2pickle.py to a database
3948
pindent.py Indent Python code, giving block-closing comments
4049
ptags.py Create vi tags file for Python modules
50+
pydoc Python documentation browser.
51+
redemo.py Basic regular expression demostration facility
52+
reindent.py Change .py files to use 4-space indents.
4153
rgrep.py Reverse grep through a file (useful for big logfiles)
54+
setup.py Install all scripts listed here.
4255
suff.py Sort a list of files by suffix
43-
sum5.py Print md5 checksums of files
44-
tabnanny.py Check for ambiguous indentation (Tim Peters)
45-
tabpolice.py Check for ambiguous indentation (GvR)
4656
texcheck.py Validate Python LaTeX formatting (Raymond Hettinger)
4757
texi2html.py Convert GNU texinfo files into HTML
58+
trace.py Trace Python program or function execution
4859
treesync.py Synchronize source trees (very ideosyncratic)
4960
untabify.py Replace tabs with spaces in argument files
5061
which.py Find a program in $PATH

0 commit comments

Comments
 (0)