Andrew M. Kuchling
6a507a104d
Remove mpzpi demo
2004-08-31 13:42:11 +00:00
Tim Peters
68a323c5d8
Whitespace normalization. Had to break guido's lock on rev 1.1 to do
...
this, but I'm sure it wasn't locked intentionally.
2004-07-18 16:56:37 +00:00
Tim Peters
182b5aca27
Whitespace normalization, via reindent.py.
2004-07-18 06:16:08 +00:00
Tim Peters
e6ddc8b20b
Whitespace normalization. Ran reindent.py over the entire source tree.
2004-07-18 05:56:09 +00:00
Andrew M. Kuchling
0ec0b725ae
Fix comment typo
2004-07-17 14:44:17 +00:00
Brett Cannon
c2b151c66e
Add code for a range function that uses generators.
...
Cleaned up existing code by abstracting code to parse arguments. Also removed
any unneeded operations (such as calling 'int' on a division when using floor
division also works). Fixed a bug where the values returned by
OldStyleRange could be short by one value. Added more documentation.
Testing code also has a basic sanity check.
2004-06-27 23:17:35 +00:00
Fred Drake
09659fbe69
fix error message; closes SF patch #932796
2004-05-12 03:15:07 +00:00
Walter Dörwald
70a6b49821
Replace backticks with repr() or "%r"
...
From SF patch #852334 .
2004-02-12 17:35:32 +00:00
Raymond Hettinger
bbd290ab8d
Revert previous change which didn't make sense the next day :-)
2003-12-10 15:22:23 +00:00
Raymond Hettinger
e807da807c
Update to use python ints and int/long unification.
2003-12-10 01:58:52 +00:00
Walter Dörwald
f0dfc7ac5c
Fix a bunch of typos in documentation, docstrings and comments.
...
(From SF patch #810751 )
2003-10-20 14:01:56 +00:00
Raymond Hettinger
fe63faaeeb
SF patch #803449 : modernize demo scripts
...
(Contributed by George Yoshida.)
2003-09-10 21:12:59 +00:00
Skip Montanaro
9463792c68
To be a good citizen, it should really delete its socket when done.
2003-08-01 14:20:02 +00:00
Martin v. Löwis
7890c26508
Patch #748846 : Let Demo/classes/Date.py mention DateTime module.
2003-06-07 19:39:56 +00:00
Martin v. Löwis
bb640c15a1
Patch #748849 : Update to current tools and demos.
2003-06-07 18:46:34 +00:00
Andrew M. Kuchling
e81866e7c6
Remove unneeded continuation chars
2003-04-24 17:27:53 +00:00
Andrew M. Kuchling
f64509e348
Move all the imports to the top; use md5.new()
2003-04-24 17:26:56 +00:00
Andrew M. Kuchling
30dd9bc0bf
Run this demo script through reindent.py; output has been verified to remain the same
2003-04-24 17:26:22 +00:00
Andrew M. Kuchling
9b12d9d0d2
Modernize the code a bit:
...
use re module
make chomp() use rstrip()
2003-04-24 17:22:04 +00:00
Andrew M. Kuchling
b7878d09e5
Modernize the code a bit:
...
use re module
use .split() string method
Doesn't use 'for line in sys.stdin'; that ends up changing its interactive
behaviour.
2003-04-24 17:17:56 +00:00
Andrew M. Kuchling
946c53ed7f
Run these demo scripts through reindent.py to give them 4-space indents. I've verified that their output is unchanged.
2003-04-24 17:13:18 +00:00
Andrew M. Kuchling
4f237b6870
Modernize code by using isinstance() instead of type() checks
2003-04-24 17:04:45 +00:00
Andrew M. Kuchling
64b3c830d4
Avoid TypeError by not comparing complex numbers
2003-04-24 16:59:45 +00:00
Skip Montanaro
2cfc4725d5
add find-uname.py
2003-01-01 20:27:13 +00:00
Skip Montanaro
f2c47114e7
Search for Unicode character names using regular expressions.
2003-01-01 20:26:47 +00:00
Neal Norwitz
d8b5e3fda1
Tix update from Mike Clarkson (maintainer)
2002-12-30 23:52:01 +00:00
Neal Norwitz
731a986dfa
Upgrade to Tix-8.1.4 from Mike Clarkson (the maintainer)
2002-12-10 02:18:49 +00:00
Martin v. Löwis
468742878f
Patch #649184 : Update to tix-8.1.4 RC3.
2002-12-06 10:33:45 +00:00
Neal Norwitz
ac30eadc0d
Sync tixwidgets from Mike Clarkson, a maintainer
2002-11-14 02:44:08 +00:00
Guido van Rossum
065627e15c
Add "select all" by clicking on (0,0) cell.
...
Redo setting the selection and setting the beacon to deal better
with rows or columns -- these are now expressed by range (1, sys.maxint).
2002-11-02 22:18:46 +00:00
Guido van Rossum
bfcd6533e4
Add ESC key binding -- undo current cell editing.
2002-11-02 06:50:05 +00:00
Guido van Rossum
3669242ac9
Major breakthrough in selection -- drag-select multiple cells now
...
works. Also row and column selection works (sort of). The DEL
key deletes the selected rectangle. sys.argv[1] used by test_gui().
2002-11-02 06:25:51 +00:00
Guido van Rossum
69ccfcc8da
Spreadsheet demo that I used in the advanced talk at Linux Lunacy II.
2002-10-28 01:06:37 +00:00
Guido van Rossum
eeb7827cad
Remove reference to deleted 'www' directory.
2002-10-18 18:54:22 +00:00
Guido van Rossum
b50e1dee86
Note lack of speedup. Remove Irix reference. Remove silly extra
...
'/tmp' arg. Change predicate to look for world-writable non-symlink
files.
2002-10-18 18:20:33 +00:00
Guido van Rossum
ecbb0eaa43
Update docs. Remove old classes.doc.
2002-10-18 15:40:13 +00:00
Guido van Rossum
989ea8d4eb
Add description of the cgi directory.
2002-10-18 15:36:31 +00:00
Guido van Rossum
cc44ccccb2
Add description of what's here.
2002-10-18 15:35:42 +00:00
Guido van Rossum
154c08894b
Refactor cmd_view(): move line formatting to a helper method.
2002-10-17 21:43:47 +00:00
Guido van Rossum
9c3848b39b
In cmd_create(), use a redirect directive instead of viewing the page;
...
this avoids resubmitting POST data.
Remove redundant 'Page' from label passed from cmd_new().
2002-10-17 21:41:42 +00:00
Guido van Rossum
3296dcc65d
Remove redundant load() call.
2002-10-17 19:30:39 +00:00
Guido van Rossum
a55dda6773
Grammar repair in comment.
2002-10-17 16:33:40 +00:00
Guido van Rossum
c9776bd8dd
Use tempfile.gettempdir() to get the temp directory rather than
...
hardcoding "/tmp".
2002-10-17 16:26:45 +00:00
Guido van Rossum
f66cccf506
Restructure: move all wiki code into a separate module.
2002-10-17 15:53:02 +00:00
Guido van Rossum
26a1ac462c
Add trailing newline when saving.
2002-10-17 13:34:01 +00:00
Guido van Rossum
48123b266c
Security fixes: reject non-wiki-word page names; set homedir to /tmp.
...
Show errors returned by store().
A few nits.
2002-10-17 11:45:54 +00:00
Guido van Rossum
68077210c2
Some really simple cgi examples. cgi3 is a MiniWiki.
2002-10-16 21:01:27 +00:00
Guido van Rossum
b0c87b956c
Remove the SGI demos. These were all ancient and nobody cared enough.
2002-09-17 20:55:57 +00:00
Guido van Rossum
16aac45fc2
Remove the SGI demos. These were all ancient and nobody cared enough.
2002-09-17 20:36:40 +00:00
Guido van Rossum
3b0a3293c3
Massive changes from SF 589982 (tempfile.py rewrite, by Zack
...
Weinberg). This changes all uses of deprecated tempfile functions to
the recommended ones.
2002-08-09 16:38:32 +00:00
Fred Drake
ead36d7874
- Make number in comment match the targets in that section of the
...
Makefile.
- Update the Python version number so we're using the library built
from the current working sources.
2002-07-25 16:23:21 +00:00
Jeremy Hylton
98013be797
Get the meta class inheritance right.
2002-07-12 15:42:10 +00:00
Jeremy Hylton
1808fbc46d
move make_eiffel_method() out of base metaclass
2002-07-11 21:17:26 +00:00
Jeremy Hylton
a70c3bd2c8
Remove list prenpost. It's not used any longer.
2002-07-11 21:14:14 +00:00
Jeremy Hylton
c9329cae53
Add a call to a Sub() method that actually works.
2002-07-11 21:09:34 +00:00
Jeremy Hylton
a00331636b
Add Enum and Eiffel examples using new-style classes.
2002-07-11 21:08:06 +00:00
Jeremy Hylton
425a8ec05e
Repair example code in doc string.
...
Bug fix candiadte.
2002-07-11 20:22:11 +00:00
Andrew M. Kuchling
a90a3b471d
Use md5.new() constructor
2002-04-17 21:53:21 +00:00
Andrew M. Kuchling
9a62448d2f
Use random module instead of whrandom
...
Move imports to top
2002-04-10 14:50:16 +00:00
Martin v. Löwis
d1a3c8117d
Move knee.py from Lib/ to Demo/imputil/. Fixes #515745 .
2002-04-07 16:29:36 +00:00
Guido van Rossum
72118e5bc7
Fix a typo in Tim's fix.
2002-04-04 23:03:47 +00:00
Tim Peters
bc0e910826
Convert a pile of obvious "yes/no" functions to return bool.
2002-04-04 22:55:58 +00:00
Fred Drake
71cc46e7e1
Slight modernization.
2002-04-03 21:47:47 +00:00
Tim Peters
4843eb400b
Remove bug.py. This is something I sent to Guido via email in or before
...
'94, demonstrating a thread bug that was later repaired via Python growing
an internal import lock. It's of no current interest, and the now-std
test_threaded_import.py is pretty much the same test.
2002-03-25 06:55:57 +00:00
Martin v. Löwis
8ec03e0528
Patch #485959 : Various changes to Tix demos.
2002-03-17 18:19:13 +00:00
Martin v. Löwis
dcea37026e
Patch #524008 : Fix portability bug on new POSIX hosts
2002-03-01 13:15:30 +00:00
Neal Norwitz
719cfc4864
SF #517447 , correct syntax error
2002-03-01 13:07:34 +00:00
Guido van Rossum
c92cf5064a
Updated -- all Demo subdirectories are once again listed here, in
...
alphabetical order (!), and the obsolete 'extend' directory is no
longer mentioned.
This and the erasure of the extend directory are 2.2.1 bugfix
candidates (but only of you want to be thorough -- it's not like
anybody cares :-).
2001-12-27 16:57:49 +00:00
Guido van Rossum
3f0b1c9f97
Removing this directory; it's no longer needed now that Misc/Makefile.pre.in
...
no longer exists. Docs for distutils are plenty elsewhere.
2001-12-27 16:48:27 +00:00
Tim Peters
885d457709
sprintf -> PyOS_snprintf in some "obviously safe" cases.
...
Also changed <>-style #includes to ""-style in some places where the
former didn't make sense.
2001-11-28 20:27:42 +00:00
Martin v. Löwis
652e1917c6
Properly set static options for tixBalloon and tixResizeHandle.
...
Expose Tix.ResizeHandle.{detach_widget,hide,show}.
Update Tix demos.
2001-11-25 14:50:56 +00:00
Fred Drake
3176b08874
Update to use more modern calling conventions; also avoid a magic number
...
in the function table. Add a docstring for the function as well, since
examples should show good form.
2001-11-17 06:30:20 +00:00
Fred Drake
e012e35460
Bump the version number; used to identify the Python runtime we link to.
2001-11-17 06:28:08 +00:00
Martin v. Löwis
20efa68be4
Patch #473002 : Update Demo/tix tixwidgets.py et al.
2001-11-11 14:07:37 +00:00
Andrew M. Kuchling
10f9c075b9
Remove obsolete e-mail address
2001-11-05 21:25:42 +00:00
Martin v. Löwis
401a76dcab
Patch #469517 : Info about rpcgen compilers.
2001-10-11 19:23:28 +00:00
Guido van Rossum
2559f5a73b
Removed Demo/dns -- see sf.net/projects/pydns/ instead.
2001-10-02 23:13:16 +00:00
Guido van Rossum
0e58ff8de8
Update reference to pydns.
2001-10-02 13:05:41 +00:00
Guido van Rossum
eb2d36c98f
Use the build directory by default, and update the version.
2001-09-05 19:51:08 +00:00
Fred Drake
79e75e1916
Use string.ascii_letters instead of string.letters (SF bug #226706 ).
2001-07-20 19:05:50 +00:00
Tim Peters
817ed5a750
Kill another merge zombie.
2001-07-17 21:10:44 +00:00
Guido van Rossum
b1a77dd248
Deleting zombies
2001-07-17 15:45:08 +00:00
Guido van Rossum
1b776a2745
Deleting merge zombie.
2001-07-17 13:57:17 +00:00
Fredrik Lundh
b905633be0
xmlrpclib for python 2.2; initial checkin
2001-07-11 17:42:21 +00:00
Neil Schemenauer
89e90d67aa
Separate CFLAGS and CPPFLAGS. CFLAGS should not contain preprocessor
...
directives, which is the role of CPPFLAGS. Closes SF patch #414991 .
2001-06-02 06:16:02 +00:00
Fred Drake
ef4cdad090
[].index() raises ValueError if the value is not in the list, so only
...
catch that instead of using a bare except clause.
2001-05-11 19:52:03 +00:00
Fred Drake
7def256410
[].index() raises ValueError if the value is not in the list, so only
...
catch that instead of using a bare except clause.
2001-05-11 19:44:55 +00:00
Guido van Rossum
d42124cb09
Change co.detach() to co.back() call.
2001-03-22 13:36:39 +00:00
Guido van Rossum
27f9b84684
Add more complete reference. Change a co.back() call to co.tran() --
...
that's all that's needed.
2001-03-22 13:36:11 +00:00
Guido van Rossum
f74c9dc870
Add newline to end of file.
2001-03-21 14:18:12 +00:00
Martin v. Löwis
be0e7f4262
Document tix directory.
2001-03-21 11:47:55 +00:00
Martin v. Löwis
b21cb5fa7d
Patch #410231 : Add the Python Tix library.
2001-03-21 07:42:07 +00:00
Barry Warsaw
8b41116c22
import.c -> importexc.c
2001-02-20 20:54:28 +00:00
Barry Warsaw
a18e7ea8b3
import -> importexc
2001-02-20 20:54:09 +00:00
Barry Warsaw
d5221a3791
import.c -> importexc.c
...
Added `realclean' target.
2001-02-20 20:53:37 +00:00
Moshe Zadka
273ad453f5
Updated to use new Python features
...
Reindented
2001-02-20 16:32:24 +00:00
Moshe Zadka
8b6f989815
Fixed to use new Python features and use more commonly accepted style
...
Reindented
2001-02-20 16:21:35 +00:00
Moshe Zadka
38e083bcc9
Changed to use the fact that str(long) doesn't produce a trailing L
...
Reindented
2001-02-20 16:13:43 +00:00
Neil Schemenauer
693291ba23
Superseded by $(srcdir)/Makefile.pre.in.
2001-02-03 17:18:21 +00:00
Barry Warsaw
f9abaf42f8
Simple embedded program that does a module import. Useful for
...
debugging leaks and other memory problems.
2001-01-31 22:27:51 +00:00
Barry Warsaw
2df3c41e78
Ignore the programs created in this directory.
2001-01-31 22:27:00 +00:00
Barry Warsaw
e98626d93f
Add targets to make building `loop' and `import' easier. Useful for
...
debugging memory leaks and the like.
2001-01-31 22:18:49 +00:00
Barry Warsaw
0c63fe9b54
Slight reworking to make it more useful for debugging
...
Py_Initialize()/Py_Finalize() loop leaks.
- allow an optional 3rd argument which is the loop count. -1 means
infloop (the default).
- Add a setting of Py_NoSiteFlag=1, but leave it commented out by
default.
2001-01-23 16:42:01 +00:00
Barry Warsaw
7d23b59e34
Updates and changes:
...
- set VERSION to 2.1
- change blddir to ../.. since that seems more common than the old
value (at least for my debugging session).
2001-01-23 16:38:57 +00:00
Tim Peters
172c40b20a
Whitespace normalization.
2001-01-21 07:07:30 +00:00
Guido van Rossum
e13be40b88
Geoffrey Gerrietts discovered that a KeyError was caught that probably
...
should have been a NameError. I'm checking in a change that catches
both, just to be sure -- I can't be bothered trying to understand this
code any more. :-)
2001-01-15 16:53:58 +00:00
Guido van Rossum
3559d1f9b3
Add loop.c -- a test program for repeatedly calling Py_Initialize()
...
and Py_Finalize(). It seems to dump core right now...
2001-01-10 17:11:51 +00:00
Guido van Rossum
7339f4c72d
Fix weird typo caused by ANSIfication (nobody bothered to test it
...
since! :-( ).
2001-01-10 17:09:00 +00:00
Guido van Rossum
2b28776369
Added "repeat.py" -- repeatedly execute a shell command (like
...
watch(1)). Updated and untabified the README file.
2001-01-05 20:54:07 +00:00
Andrew M. Kuchling
994d8539f6
Choose the smallest value of x,y for the clock's radius (instead of just taking the
...
y coordinate), and change radius of second indicator to compensate
Remove redundant setting of sradius
2000-12-23 14:50:18 +00:00
Andrew M. Kuchling
72a18a6659
Update this demo to use curses.panel
2000-12-22 21:50:01 +00:00
Andrew M. Kuchling
23382f5047
Another demo from Thomas Gellekum (seasonally-themed, too)
2000-12-21 16:26:37 +00:00
Andrew M. Kuchling
15c3c2bdf8
Curses demos contributed by Thomas Gellekum <tg@FreeBSD.org>.
...
ncurses.py requires panel support, and therefore doesn't work yet.
2000-12-15 00:41:48 +00:00
Guido van Rossum
4550b00c80
Fix bit rot: use sock.connect((host, port)) and allow 2nd cmd line
...
arg.
2000-12-14 22:12:33 +00:00
Andrew M. Kuchling
a3b5a5f2db
Check in README file and one demo program
2000-12-13 03:50:20 +00:00
Guido van Rossum
4526f2a230
A solution to the classic N queens problem.
2000-11-16 21:25:51 +00:00
Guido van Rossum
f4e13a4563
Add 1994 Coroutine module by Tim Peters
2000-11-08 15:17:49 +00:00
Guido van Rossum
063ee7bbe6
Fix Makefile so at least it uses Python 2.0, and compiles out of the
...
box on Linux.
2000-11-03 12:58:09 +00:00
Thomas Wouters
2cffc7d420
Move our own getopt() implementation to _PyOS_GetOpt(), and use it
...
regardless of whether the system getopt() does what we want. This avoids the
hassle with prototypes and externs, and the check to see if the system
getopt() does what we want. Prefix optind, optarg and opterr with _PyOS_ to
avoid name clashes. Add new include file to define the right symbols. Fix
Demo/pyserv/pyserv.c to include getopt.h itself, instead of relying on
Python to provide it.
2000-11-03 08:18:37 +00:00
Fred Drake
9880062ee6
Remove some obsolete files, and update the README.
2000-10-23 20:50:23 +00:00
Fred Drake
ac5f7483e8
Demos of the new XML support from Lars Marius Garshol <larsga@garshol.priv.no>.
2000-10-16 15:27:05 +00:00
Guido van Rossum
75698a4937
Removing these scripts. redemo.py lives on in Tools/scripts/.
...
regexdemo.py is obsolete with the regex module.
2000-10-06 17:38:42 +00:00
Fred Drake
21801de6dc
Jeremy missed a bind() call when updating these demos. ;)
2000-08-25 16:03:27 +00:00
Jeremy Hylton
a8d30d5d66
update demo scripts to use addr tuples for bind and connect
...
closes bug #111928
2000-08-25 15:38:41 +00:00
Fred Drake
6baec620b4
Sort the list of files processed before running the test on each.
2000-08-23 20:21:31 +00:00
Thomas Wouters
7889010731
Miscelaneous ANSIfications. I'm assuming here 'main' should take (int,
...
char**) and return an int even on PC platforms. If not, please fix
PC/utils/makesrc.c ;-P
2000-07-22 19:25:51 +00:00
Greg Stein
dd6eefb348
no changes other than indentation level (now 4) and comment reflow.
...
use "cvs diff -b" to verify.
2000-07-18 09:09:48 +00:00
Thomas Wouters
7e47402264
Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either
...
comments, docstrings or error messages. I fixed two minor things in
test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't").
There is a minor style issue involved: Guido seems to have preferred English
grammar (behaviour, honour) in a couple places. This patch changes that to
American, which is the more prominent style in the source. I prefer English
myself, so if English is preferred, I'd be happy to supply a patch myself ;)
2000-07-16 12:04:32 +00:00
Guido van Rossum
c716684df8
Add linker flag -export-dynamic so symbols in libpython*.a are exported.
2000-07-10 16:22:12 +00:00
Guido van Rossum
964f123346
Adapted for Python 2.0 under RH Linux.
2000-07-10 14:35:12 +00:00
Greg Stein
e97ecf9705
demonstration importers
2000-06-29 11:05:30 +00:00
Jeremy Hylton
a05e293a21
typos fixed by Rob Hooft
2000-06-28 14:48:01 +00:00
Guido van Rossum
99f235d5e7
Remove stdwin references
2000-05-11 18:29:05 +00:00
Guido van Rossum
6a1b1338de
Removing junk
2000-05-11 18:28:03 +00:00
Guido van Rossum
81b4e41cd9
removing more stdwin users
2000-05-11 18:27:21 +00:00
Guido van Rossum
dab6cb8f6d
removing more stdwin users
2000-05-11 14:43:52 +00:00
Andrew M. Kuchling
01b3aa4d08
Fix use of list.append() with multiple arguments
2000-02-28 17:25:14 +00:00
Guido van Rossum
b4624b94a8
Fix a couple dozen broken ci.append(x, y, z) calls, spotted by Tim.
2000-02-25 11:46:50 +00:00
Guido van Rossum
e0a928dc1e
Fix some broken links.
2000-01-20 21:37:19 +00:00
Fred Drake
995285e392
Moved all the imports to the top.
...
Use the methods on the AST object instead of module-level functions;
these have been implemented for a couple of versions now, and are
already used in the module documentation in preference to the
functions.
1999-11-19 21:57:56 +00:00
Guido van Rossum
caf2f8e3c7
Add -v flag. Comment duplicate Py_Finalize().
1999-10-05 22:16:07 +00:00
Guido van Rossum
4f1a6187a5
Ofir Reichenberg suggested to apply htonl() to grpaddr in openmcastsock().
...
Also got rid of unnecessary use of eval() and regsub.gsub().
1999-08-07 14:01:05 +00:00
Guido van Rossum
d9e5d17407
Fix bug discovered by Klaus-Juergen Wolf -- it runs into infinite recursion!
1999-06-09 19:07:22 +00:00
Guido van Rossum
eda80eae36
Correct spelling of length, discovered by Christian Tismer.
1999-04-21 16:06:27 +00:00
Guido van Rossum
60cc90ec98
This demo imported some private code from Matt. Make it cripple along.
1999-04-08 15:18:12 +00:00
Guido van Rossum
9a4da084d4
Change #! line to modern usage; also chmod +x
1999-03-12 19:07:59 +00:00
Guido van Rossum
7e75c947db
Change #! line to modern usage
1999-03-12 19:05:49 +00:00
Guido van Rossum
496bc7f238
Call Py_SetProgramName() instead of redefining getprogramname(),
...
reflecting changes in the runtime around 1.5 or earlier.
1999-03-09 17:07:24 +00:00
Guido van Rossum
b55f9ff68c
100 bottles of beer on the wall example.
...
After a version by Fredrik Lundh that I found on the web somewhere.
(I like mine better, but of course that may have to do with my alcohol
consumption. :-)
1998-12-21 18:30:20 +00:00
Guido van Rossum
fe78cc0f7e
Adding Fredrik Lundh's demo of the option menu.
1998-10-20 15:32:39 +00:00