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
Guido van Rossum
1554b7b061
Use constants defined in cl module. (Sjoerd)
1998-10-09 13:26:29 +00:00
Guido van Rossum
1e57a04301
Removed unnecessary import of cl and CL. (Sjoerd)
1998-10-09 13:26:01 +00:00
Guido van Rossum
9c2c1e88a3
Fix multi-arg list.append() calls.
1998-10-08 15:24:48 +00:00
Barry Warsaw
dfae3d55f2
Added a 'Help' special menu to show how this is done.
1998-10-06 19:37:20 +00:00
Guido van Rossum
d24d3fcd03
Added the mainloop() call.
1998-09-14 17:52:29 +00:00
Guido van Rossum
5fae9e8b86
nannified
1998-09-14 17:51:14 +00:00
Guido van Rossum
4117e5428b
nannified
1998-09-14 16:44:15 +00:00
Guido van Rossum
dcd038ff84
nannified.
1998-09-14 15:34:45 +00:00
Guido van Rossum
7ca9a1a466
Fix a bug where comparison of a rational with a float failed because
...
the difference got converted to float.
Put brackets around the string representation of (non-integer)
rationals.
(Sjoerd Mullender.)
1998-09-09 14:07:06 +00:00
Guido van Rossum
482e82a0f6
Corrected some spelling and one technical error.
1998-08-10 13:18:11 +00:00
Guido van Rossum
a9ca42daf0
Vladimir Marangozov's explanatory message.
1998-08-10 01:56:14 +00:00
Guido van Rossum
d895749b61
New warnings to the uninitiated reader.
1998-08-10 01:54:40 +00:00
Guido van Rossum
98c92c83a5
Show how to do switchable panels.
1998-07-15 14:58:05 +00:00