Commit Graph

25211 Commits

Author SHA1 Message Date
Raymond Hettinger e03e5b1f91 Remove assumption that cls is a subclass of dict.
Simplifies the code and gets Just van Rossum's example to work.
2002-12-07 08:10:51 +00:00
Tim Peters 4e52ca82ae A patch from Kevin Jacobs, plugging several leaks discovered when
running the sandbox datetime tests.

Bugfix candidate.
2002-12-07 02:43:28 +00:00
Tim Peters 61ce0a9bae slot_tp_hash(): In the normal path, this leaked a reference to the
integer hash object returned by __hash__().  This accounts for some of
the "mystery leaks" in the sandbox datetime tests, but probably not
all of them.
2002-12-06 23:38:02 +00:00
Thomas Heller ead60e5d1c Typo: propogate -> propagate
Bugfix candidate.
2002-12-06 22:42:13 +00:00
Kurt B. Kaiser 0930c43e43 M PyShell.py
1. Format and print exceptions raised in user code.

M rpc.py
1. Additional debug messages in rpc.py
2. Move debug message enable switch from SocketIO to Client and Server
   to allow separate activation.
3. Add indication of origin (client or server) to debug message
4. Add sequence number to appropriate debug messages

5. Pass string exception arg as a string rather than a tuple.
2002-12-06 21:45:24 +00:00
Fred Drake edb635ff5c Remove extra ")" in example. 2002-12-06 18:52:28 +00:00
Fred Drake 08d10f985e Typo: "dead lock" --> "deadlock" 2002-12-06 16:45:05 +00:00
Martin v. Löwis 9e43730ca3 Don't include <ioctl.h> unless on __VMS. 2002-12-06 12:57:26 +00:00
Martin v. Löwis 79acb9edfa Patch #614055: Support OpenVMS. 2002-12-06 12:48:53 +00:00
Martin v. Löwis 468742878f Patch #649184: Update to tix-8.1.4 RC3. 2002-12-06 10:33:45 +00:00
Martin v. Löwis 05d4d562d7 Search in standard library and include dirs for Sleepycat stuff.
Fixes #590377.
2002-12-06 10:25:02 +00:00
Walter Dörwald 6d5f30eaed Document that the second argument to PyObject_IsInstance
may be a tuple. This closes SF patch
http://www.python.org/sf/649095

Backport to release22-maint will follow.
2002-12-06 10:09:16 +00:00
Jack Jansen 5f61a05d7f Fixed so the Res.Resource() accepts either another resource, a string
or no argument (giving an empty resource).
2002-12-05 23:26:38 +00:00
Jack Jansen dd888a6cff Fixed typo. 2002-12-05 23:20:12 +00:00
Michael W. Hudson a69c030c15 The final tweaks before closing
[ 633152 ] list slice ass ignores subtypes of list

Allow arbitrary sequences on the RHS of extended slices.
2002-12-05 21:32:32 +00:00
Skip Montanaro 7bc2e1dad7 add logmerge.py (pydoc is already installed) 2002-12-05 21:12:34 +00:00
Jason Tishler d0ebd7edb1 Patch #649060: Cygwin bz2module patch
This patch enables the bz2 module to build cleanly under Cygwin.
2002-12-05 20:31:53 +00:00
Jason Tishler e257ec9ef7 Patch #648998: test_commands ACL patch
Although motived by Cygwin, this patch will prevent
test_commands from failing on Unixes that support
ACLs. For example, the following is an excerpt from
the Solaris ls manpage:

	...
	-rwxrwxrwx+ 1 smith dev 10876 May 16 9:42 part2

	The plus sign indicates that there is an ACL associated
	with the file.
	...
2002-12-05 20:18:39 +00:00
Tim Peters b0f89e05ad Add a Cygwin skip mentioned by Jason Tishler. 2002-12-05 17:20:25 +00:00
Jason Tishler 2511594060 Patch #551977: Regression exceptions for cygwin
This patch updates regrtest.py to understand which
tests are normally skipped under Cygwin. The list of
tests was verified with the Cygwin Python maintainer.
2002-12-05 15:18:15 +00:00
Skip Montanaro da760c488f simple setup.py to install some interesting scripts in $(prefix)/bin. 2002-12-05 02:58:36 +00:00
Skip Montanaro a5f8c42268 * when given, port should be converted to int
* when connecting, if the port is non-standard, display it as well
2002-12-05 02:43:14 +00:00
Skip Montanaro 7dfb02d09a allow optional port specified as part of the hostname, e.g.,
"www.zope.org:8021".
2002-12-05 02:37:23 +00:00
Martin v. Löwis e07e18d41b Decode untyped strings from UTF-8. 2002-12-04 19:54:36 +00:00
Andrew MacIntyre 7e5bf674b8 history update 2002-12-04 12:40:49 +00:00
Andrew MacIntyre e7a8cad069 make BSDDB 1.85 module buildable again after BSDDB3 module import 2002-12-04 12:37:17 +00:00
Andrew MacIntyre c4c127b850 reformat for PEP-7 style conformance 2002-12-04 12:29:37 +00:00
Andrew MacIntyre 6904959921 typo fix: declaration required for VACPP not EMX+gcc 2002-12-04 12:27:06 +00:00
Raymond Hettinger b02bb5ed0a Replace BadInternalCall with TypeError. Add a test case. Fix whitespace.
Just van Rossum showed a weird, but clever way for pure python code to
trigger the BadInternalCall.  The C code had assumed that calling a class
constructor would return an instance of that class; however, classes that
abuse __new__ can invalidate that assumption.
2002-12-04 07:32:25 +00:00
Tim Peters 21d77f5e9c Added _ssl.lib to the installer too. Restored alphabetical order of
DLL and lib sections.
2002-12-04 04:00:12 +00:00
Tim Peters b4ee4eb3b3 Rearrange test_socket_ssl so that a skip is expected iff the network
resource isn't enabled or the socket module doesn't support ssl.
2002-12-04 03:26:57 +00:00
Tim Peters 6ee68d20b7 Explain what's probably a problem unique to Win9x in building _ssl. 2002-12-04 03:16:37 +00:00
Tim Peters e8bcb25fbd Clarify _ssl instructions. 2002-12-04 02:39:52 +00:00
Jack Jansen 96cebde909 Added PEP253 support to most Carbon modules. This isn't complete yet:
some of the more compilcated cases (CF, Res) haven't been done yet. Also,
various types should inherit from each other (anything with an as_Resource
method should be a Resource subtype, the CF types should become one family).
2002-12-03 23:40:22 +00:00
Jack Jansen 99899b92b8 Added PEP253 support. 2002-12-03 23:35:22 +00:00
Kurt B. Kaiser 6eadc6cf7e Enable Check Module 2002-12-03 23:09:23 +00:00
Fred Drake a41b2bb981 Fix problem in example code. It's minor in this particular example,
but can lead to mysterious problems in real applications.
2002-12-03 22:57:37 +00:00
Mark Hammond 03cb7ee9c5 Don't make all the OpenSSL executables, just the library we need.
Contributed by David Bolen.
2002-12-03 21:00:29 +00:00
Mark Hammond 040b00a9ea Add the SSL libraries as dependencies. 2002-12-03 20:59:46 +00:00
Kurt B. Kaiser 318016be65 Don't use Alt-Fn or Ctrl-Fn keys, reserved for desktop changes in Unix.
Zoom becomes Alt-H  "height"
Check Module becomes Alt-X  "syntax"
2002-12-03 20:34:43 +00:00
Fred Drake 7af24bd237 Fix example regular expressions that simulate scanf() constructs. 2002-12-03 18:49:17 +00:00
Martin v. Löwis 71aa6d6db9 Patch #646824: Remove extra \end. 2002-12-03 18:09:02 +00:00
Andrew M. Kuchling b1e4bf9dc1 Bug #647387: corrections to the logging section by Vinay Sanjip 2002-12-03 13:35:17 +00:00
Guido van Rossum 9d4270070a Some more expected skips on OSX. 2002-12-03 10:24:56 +00:00
Guido van Rossum 6c7340552c Lose references to knee (no longer exists) and pyclbr (has its own
test suite now).
2002-12-03 09:34:54 +00:00
Guido van Rossum a1962d6efd Get rid of 1.5.2 compatibility hack. :-) 2002-12-03 09:28:36 +00:00
Marc-André Lemburg 0375079e93 Adding Python <= 2.2 support back in. 2002-12-03 08:45:11 +00:00
Guido van Rossum 7f6a439040 Add more sophistication to the comparison between pyclbr output and
real module, by filtering out aliased methods.  This, combined with
the recent fixes to pyclbr, make it possible to enable more tests with
fewer exceptions.
2002-12-03 08:16:50 +00:00
Guido van Rossum 0a6f954766 Another big update, fixing all known bugs related to nesting functions
and classes.  Also add a mini main program that dumps the results for
a given file or module.
2002-12-03 08:14:35 +00:00
Mark Hammond 4b2030fe0d Ensure the ssl temp directory exists! 2002-12-03 06:29:48 +00:00