Commit graph

4746 commits

Author SHA1 Message Date
Kurt B. Kaiser
4e32e7e567 py-cvs-rel2_1 (Rev 1.4) merge - whitespace normalization 2001-07-13 17:40:17 +00:00
Kurt B. Kaiser
7717ad6817 py-cvs-rel2_1 (Rev 1.6) merge - whitespace normalization 2001-07-13 17:38:08 +00:00
Guido van Rossum
0960015056 Should raise TestSkipped, not ImportError, when deciding to skip the
test.
2001-07-13 17:27:57 +00:00
Tim Peters
9a8c8e270b Having fun on my own time: quicker flat_conjoin; Knights Tour solver
simplified and generalized to rectangular boards.
2001-07-13 09:12:12 +00:00
Kurt B. Kaiser
7eea271464 py-cvs-rel2_1 (Rev 1.4) merge - move "import *" to module level 2001-07-13 04:18:32 +00:00
Kurt B. Kaiser
0e5fb0a618 py-cvs-rel2_1 (Rev 1.9) merge - whitespace normalization 2001-07-13 04:12:02 +00:00
Kurt B. Kaiser
6be679047b py-cvs-rel2_1 (Rev 1.8) merge - whitespace normalization 2001-07-13 04:07:47 +00:00
Kurt B. Kaiser
afdf71b9ee py-cvs-rel2_1 (Rev 1.33 - 1.37) merge
VP IDLE version depended on VP's ExecBinding.py and spawn.py to get the
path to the Windows Doc directory (relative to python.exe). Removed this
conflicting code in favor of py-cvs updates which on Windows use a hard
coded path relative to the location of this module. py-cvs updates include
support for webbrowser.py.  Module still has BrowserControl.py for 1.5.2
support.

At this point, the differences wrt py-cvs relate to menu functionality.
2001-07-13 03:35:32 +00:00
Kurt B. Kaiser
a3253d70bc py-cvs-rel2_1 merge - Remove, lives in /Lib 2001-07-13 01:30:07 +00:00
Kurt B. Kaiser
628b362886 py-cvs-rel2_1 (Rev 1.3) merge - whitespace normalization 2001-07-13 00:10:02 +00:00
Kurt B. Kaiser
5291d46755 py-cvs-rel2_1 (Rev 1.15) merge - whitespace normalization 2001-07-13 00:07:42 +00:00
Kurt B. Kaiser
6df4bf2864 py-cvs-rel2_1 (Rev 1.11 and 1.12) merge
Colorize "as" after "import" / use DEBUG instead of __debug__
2001-07-13 00:04:24 +00:00
Kurt B. Kaiser
d6c4c9e846 py-cvs-rel2_1 (Rev 1.12) merge - whitespace normalization 2001-07-12 23:54:20 +00:00
Kurt B. Kaiser
ae67647ab7 py-cvs-rel2_1 (Rev 1.8) merge - whitespace normalization 2001-07-12 23:10:35 +00:00
Tim Peters
a1d545523d Remove the last remnants of the hacks to worm around leaks. 2001-07-12 22:55:42 +00:00
Tim Peters
3446365c37 Repair flawed example. 2001-07-12 22:43:41 +00:00
Tim Peters
c4889c496a Remove now-unnecessary "from __future__ import nested_scopes" stmts. 2001-07-12 22:36:02 +00:00
Kurt B. Kaiser
9a1ae1a960 py-cvs-rel2_1 (Rev 1.3) merge - whitespace normalization 2001-07-12 22:26:44 +00:00
Kurt B. Kaiser
180b6be18c py-cvs-rel1_2 (Rev 1.4) merge,
"Add Alt-slash to Unix keydefs (I somehow need it on RH 6.2).
Get rid of assignment to unused self.text.wordlist."  --GvR
2001-07-12 22:13:51 +00:00
Fred Drake
fd4ff52c22 Actually remove directories from sys.path if they do not exist; the intent
is to avoid as many stat() calls as we can.
2001-07-12 21:08:33 +00:00
Neil Schemenauer
b20e9dbf89 Remove reference cycle breaking code. The GC now takes care of it. 2001-07-12 13:26:41 +00:00
Neil Schemenauer
88c761a117 Test GC of frame objects. 2001-07-12 13:25:53 +00:00
Guido van Rossum
28358fbed6 Make the test pass now that 10**-15 returns a float instead of raising
an exception.
2001-07-12 12:51:22 +00:00
Steven M. Gava
e9880c81b9 py-cvs merge, python 1.5.2 compatability 2001-07-12 06:54:16 +00:00
Steven M. Gava
42f6c64816 py-cvs merge, better error dialog 2001-07-12 06:46:53 +00:00
Steven M. Gava
9713992bad py-cvs merge, additions 2001-07-12 06:38:24 +00:00
Steven M. Gava
817a76cfbb py-cvs merge, correct indentation 2001-07-12 05:35:17 +00:00
Steven M. Gava
fc0386cc5a py-cvs merge, correct typo 2001-07-12 05:24:19 +00:00
Steven M. Gava
569b17f414 py-cvs merge, update colour changing info 2001-07-12 05:21:08 +00:00
Tim Peters
6a479f5488 PEP 250: Add lib/site-packages to sys.path on Windows; also sys.prefix
to sys.path if os.sep == ':' (Macs?).  See PEP 250.
2001-07-12 05:20:13 +00:00
Steven M. Gava
9fe8828cbf py-cvs merge, idle_dir loading changed 2001-07-12 04:51:11 +00:00
Steven M. Gava
ba910c1e92 py-cvs merge, version update 2001-07-12 04:44:48 +00:00
Tim Peters
3230d5c961 SF patch #440170: Tests for fileinput module.
New test_fileinput.py from Nick Mathewson, fiddled to use TESTFN and sundry
style nits.
2001-07-11 22:21:17 +00:00
Tim Peters
48dacc69a2 SF patch #440144: Tests and minor bugfix for uu module.
New test_uu.py from Nick Mathewson, fiddled to work on Windows too.
Somebody should check that it still works on non-Windows boxes, though!
2001-07-11 21:43:42 +00:00
Fredrik Lundh
b905633be0 xmlrpclib for python 2.2; initial checkin 2001-07-11 17:42:21 +00:00
Tim Peters
79c8671c7a SF patch #440144: Tests and minor bugfix for uu module
decode():  While writing tests for uu.py, Nick Mathewson discovered
that the 'Truncated input file' exception could never get raised,
because its "if not str:" test was actually testing the builtin
function "str", not the local string vrbl "s" as intended.

Bugfix candidate.
2001-07-11 04:08:49 +00:00
Kurt B. Kaiser
9178af1455 Initial revision 2001-07-11 02:53:57 +00:00
Guido van Rossum
05be1a0fd6 Ported to Windows:
- Set the host to "localhost" instead of "".

- Skip the AF_UNIX tests when socket.AF_UNIX is not defined.
2001-07-10 15:46:34 +00:00
Guido van Rossum
39f1b3656e A test suite for SocketServer.py that exposes the various bugs just
fixed.  Regrettably, this must be run manually -- somehow the I/O
redirection of the regression test breaks the test.  When run under
the regression test, this raises ImportError with a warning to that
effect.

Bugfix candidate!
2001-07-10 11:52:38 +00:00
Guido van Rossum
7de4d645a5 IMPORTANT FIX: This should definitely go into the 2.1.1 release!!!
Fix various serious problems:

- The ThreadingTCPServer class and its derived classes were completely
  broken because the main thread would close the request before the
  handler thread had time to look at it.  This was introduced by
  Ping's close_request() patch.  The fix moves the close_request()
  calls to after the handler has run to completion in the BaseServer
  class and the ForkingMixIn class; when using the ThreadingMixIn,
  closing the request is the handler's responsibility.

- The ForkingUDPServer class has always been been broken because the
  socket was closed in the child before calling the handler.  I fixed
  this by simply not calling server_close() in the child at all.

- I cannot get the UnixDatagramServer class to work at all.  The
  recvfrom() call doesn't return a meaningful client address.  I added
  a comment to this effect.  Maybe it works on other Unix versions.

- The __all__ variable was missing ThreadingMixIn and ForkingMixIn.

- Bumped __version__ to "0.4".

- Added a note about the test suite (to be checked in shortly).
2001-07-10 11:50:09 +00:00
Fredrik Lundh
2d96f11d07 map re.sub() to string.replace(), when possible 2001-07-08 13:26:57 +00:00
Fredrik Lundh
e06cbb8c56 bug #436596
re.findall doesn't take a maxsplit argument
2001-07-06 20:56:10 +00:00
Fred Drake
beb6713ea7 When reading a continuation line, make sure we still use the transformed
name when filling in the internal data structures, otherwise we incorrectly
raise a KeyError.

This fixes SF bug #432369.
2001-07-06 17:22:48 +00:00
Fred Drake
dc19163b18 Allow underscores in tag names and quote characters in unquoted attribute
values.  The change for attribute values matches the way Mozilla and
Navigator view the world, at least.

This closes SF bug #436621.
2001-07-05 18:21:57 +00:00
Guido van Rossum
c09cf33658 Rip out tests for xrange() features no longer supported. 2001-07-05 14:49:21 +00:00
unknown
31569561fd Added a non-recursive implementation of conjoin(), and a Knight's Tour
solver.  In conjunction, they easily found a tour of a 200x200 board:
that's 200**2 == 40,000 levels of backtracking.  Explicitly resumable
generators allow that to be coded as easily as a recursive solver (easier,
actually, because different levels can use level-customized algorithms
without pain), but without blowing the stack.  Indeed, I've never written
an exhaustive Tour solver in any language before that can handle boards so
large ("exhaustive" == guaranteed to find a solution if one exists, as
opposed to probabilistic heuristic approaches; of course, the age of the
universe may be a blip in the time needed!).
2001-07-04 22:11:22 +00:00
unknown
a5aa0b5261 dummy checkin for testing, please ignore 2001-07-04 16:52:02 +00:00
unknown
fee75ac4e5 Fix for SF bug #425868.
We should not depend on two spaces between words, so use the white
space after the to-be-encoded word only as lookahead and don't
actually consume it in the regular expression.
2001-07-04 10:15:58 +00:00
unknown
67bbd7a773 Clean up a bare except: clause. 2001-07-04 07:07:33 +00:00
unknown
3db163aa19 Clean up a bare except: clause. 2001-07-04 07:01:29 +00:00