Martin v. Löwis [Sat, 7 Dec 2002 14:41:17 +0000 (14:41 +0000)]
Correct db3 /opt/sfw library path. Link ndbm with libc only if ndbm.h
is present and libndbm is not. Add runtime libs to dbm if linked against
Berkeley DB.
Raymond Hettinger [Sat, 7 Dec 2002 10:33:42 +0000 (10:33 +0000)]
Add another test which exercises the whole suite with a
heapsort and verifies the result against list.sort().
Raymond Hettinger [Sat, 7 Dec 2002 10:05:27 +0000 (10:05 +0000)]
Fix typo in abstract.c which caused __rpow__ to not be invoked.
Added related testcase.
Closes SF bug #643260.
Raymond Hettinger [Sat, 7 Dec 2002 09:39:15 +0000 (09:39 +0000)]
Add __all__ to Reference Manual index.
Closes SF 643227.
Raymond Hettinger [Sat, 7 Dec 2002 09:25:05 +0000 (09:25 +0000)]
Clarify and speedup test.
Raymond Hettinger [Sat, 7 Dec 2002 09:04:29 +0000 (09:04 +0000)]
Cleaned up test (removing bogus argument list).
Raymond Hettinger [Sat, 7 Dec 2002 08:10:51 +0000 (08:10 +0000)]
Remove assumption that cls is a subclass of dict.
Simplifies the code and gets Just van Rossum's example to work.
Tim Peters [Sat, 7 Dec 2002 02:43:28 +0000 (02:43 +0000)]
A patch from Kevin Jacobs, plugging several leaks discovered when
running the sandbox datetime tests.
Bugfix candidate.
Tim Peters [Fri, 6 Dec 2002 23:38:02 +0000 (23:38 +0000)]
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.
Thomas Heller [Fri, 6 Dec 2002 22:42:13 +0000 (22:42 +0000)]
Typo: propogate -> propagate
Bugfix candidate.
Kurt B. Kaiser [Fri, 6 Dec 2002 21:45:24 +0000 (21:45 +0000)]
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.
Fred Drake [Fri, 6 Dec 2002 18:52:28 +0000 (18:52 +0000)]
Remove extra ")" in example.
Fred Drake [Fri, 6 Dec 2002 16:45:05 +0000 (16:45 +0000)]
Typo: "dead lock" --> "deadlock"
Martin v. Löwis [Fri, 6 Dec 2002 12:57:26 +0000 (12:57 +0000)]
Don't include <ioctl.h> unless on __VMS.
Martin v. Löwis [Fri, 6 Dec 2002 12:48:53 +0000 (12:48 +0000)]
Patch #614055: Support OpenVMS.
Martin v. Löwis [Fri, 6 Dec 2002 10:33:45 +0000 (10:33 +0000)]
Patch #649184: Update to tix-8.1.4 RC3.
Martin v. Löwis [Fri, 6 Dec 2002 10:25:02 +0000 (10:25 +0000)]
Search in standard library and include dirs for Sleepycat stuff.
Fixes #590377.
Walter Dörwald [Fri, 6 Dec 2002 10:09:16 +0000 (10:09 +0000)]
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.
Jack Jansen [Thu, 5 Dec 2002 23:26:38 +0000 (23:26 +0000)]
Fixed so the Res.Resource() accepts either another resource, a string
or no argument (giving an empty resource).
Jack Jansen [Thu, 5 Dec 2002 23:20:12 +0000 (23:20 +0000)]
Fixed typo.
Michael W. Hudson [Thu, 5 Dec 2002 21:32:32 +0000 (21:32 +0000)]
The final tweaks before closing
[ 633152 ] list slice ass ignores subtypes of list
Allow arbitrary sequences on the RHS of extended slices.
Skip Montanaro [Thu, 5 Dec 2002 21:12:34 +0000 (21:12 +0000)]
add logmerge.py (pydoc is already installed)
Jason Tishler [Thu, 5 Dec 2002 20:31:53 +0000 (20:31 +0000)]
Patch #649060: Cygwin bz2module patch
This patch enables the bz2 module to build cleanly under Cygwin.
Jason Tishler [Thu, 5 Dec 2002 20:18:39 +0000 (20:18 +0000)]
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.
...
Tim Peters [Thu, 5 Dec 2002 17:20:25 +0000 (17:20 +0000)]
Add a Cygwin skip mentioned by Jason Tishler.
Jason Tishler [Thu, 5 Dec 2002 15:18:15 +0000 (15:18 +0000)]
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.
Skip Montanaro [Thu, 5 Dec 2002 02:58:36 +0000 (02:58 +0000)]
simple setup.py to install some interesting scripts in $(prefix)/bin.
Skip Montanaro [Thu, 5 Dec 2002 02:43:14 +0000 (02:43 +0000)]
* when given, port should be converted to int
* when connecting, if the port is non-standard, display it as well
Skip Montanaro [Thu, 5 Dec 2002 02:37:23 +0000 (02:37 +0000)]
allow optional port specified as part of the hostname, e.g.,
"www.zope.org:8021".
Martin v. Löwis [Wed, 4 Dec 2002 19:54:36 +0000 (19:54 +0000)]
Decode untyped strings from UTF-8.
Andrew MacIntyre [Wed, 4 Dec 2002 12:40:49 +0000 (12:40 +0000)]
history update
Andrew MacIntyre [Wed, 4 Dec 2002 12:37:17 +0000 (12:37 +0000)]
make BSDDB 1.85 module buildable again after BSDDB3 module import
Andrew MacIntyre [Wed, 4 Dec 2002 12:29:37 +0000 (12:29 +0000)]
reformat for PEP-7 style conformance
Andrew MacIntyre [Wed, 4 Dec 2002 12:27:06 +0000 (12:27 +0000)]
typo fix: declaration required for VACPP not EMX+gcc
Raymond Hettinger [Wed, 4 Dec 2002 07:32:25 +0000 (07:32 +0000)]
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.
Tim Peters [Wed, 4 Dec 2002 04:00:12 +0000 (04:00 +0000)]
Added _ssl.lib to the installer too. Restored alphabetical order of
DLL and lib sections.
Tim Peters [Wed, 4 Dec 2002 03:26:57 +0000 (03:26 +0000)]
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.
Tim Peters [Wed, 4 Dec 2002 03:16:37 +0000 (03:16 +0000)]
Explain what's probably a problem unique to Win9x in building _ssl.
Tim Peters [Wed, 4 Dec 2002 02:39:52 +0000 (02:39 +0000)]
Clarify _ssl instructions.
Jack Jansen [Tue, 3 Dec 2002 23:40:22 +0000 (23:40 +0000)]
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).
Jack Jansen [Tue, 3 Dec 2002 23:35:22 +0000 (23:35 +0000)]
Added PEP253 support.
Kurt B. Kaiser [Tue, 3 Dec 2002 23:09:23 +0000 (23:09 +0000)]
Enable Check Module
Fred Drake [Tue, 3 Dec 2002 22:57:37 +0000 (22:57 +0000)]
Fix problem in example code. It's minor in this particular example,
but can lead to mysterious problems in real applications.
Mark Hammond [Tue, 3 Dec 2002 21:00:29 +0000 (21:00 +0000)]
Don't make all the OpenSSL executables, just the library we need.
Contributed by David Bolen.
Mark Hammond [Tue, 3 Dec 2002 20:59:46 +0000 (20:59 +0000)]
Add the SSL libraries as dependencies.
Kurt B. Kaiser [Tue, 3 Dec 2002 20:34:43 +0000 (20:34 +0000)]
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"
Fred Drake [Tue, 3 Dec 2002 18:49:17 +0000 (18:49 +0000)]
Fix example regular expressions that simulate scanf() constructs.
Martin v. Löwis [Tue, 3 Dec 2002 18:09:02 +0000 (18:09 +0000)]
Patch #646824: Remove extra \end.
Andrew M. Kuchling [Tue, 3 Dec 2002 13:35:17 +0000 (13:35 +0000)]
Bug #647387: corrections to the logging section by Vinay Sanjip
Guido van Rossum [Tue, 3 Dec 2002 10:24:56 +0000 (10:24 +0000)]
Some more expected skips on OSX.
Guido van Rossum [Tue, 3 Dec 2002 09:34:54 +0000 (09:34 +0000)]
Lose references to knee (no longer exists) and pyclbr (has its own
test suite now).
Guido van Rossum [Tue, 3 Dec 2002 09:28:36 +0000 (09:28 +0000)]
Get rid of 1.5.2 compatibility hack. :-)
Marc-André Lemburg [Tue, 3 Dec 2002 08:45:11 +0000 (08:45 +0000)]
Adding Python <= 2.2 support back in.
Guido van Rossum [Tue, 3 Dec 2002 08:16:50 +0000 (08:16 +0000)]
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.
Guido van Rossum [Tue, 3 Dec 2002 08:14:35 +0000 (08:14 +0000)]
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.
Mark Hammond [Tue, 3 Dec 2002 06:29:48 +0000 (06:29 +0000)]
Ensure the ssl temp directory exists!
Mark Hammond [Tue, 3 Dec 2002 06:16:08 +0000 (06:16 +0000)]
_ssl.pyd added for Windows.
Mark Hammond [Tue, 3 Dec 2002 06:13:35 +0000 (06:13 +0000)]
_ssl.pyd available for Windows.
Mark Hammond [Tue, 3 Dec 2002 06:02:59 +0000 (06:02 +0000)]
Add _ssl.pyd to the list of files to be installed by Wise.
Mark Hammond [Tue, 3 Dec 2002 05:47:26 +0000 (05:47 +0000)]
Add _ssl build process for Windows.
Mark Hammond [Tue, 3 Dec 2002 05:39:49 +0000 (05:39 +0000)]
My MSVC seems to like writing the project names in quotes. Letting it do
this before I add the _ssl project, so that checkin is cleaner.
Martin v. Löwis [Mon, 2 Dec 2002 22:23:56 +0000 (22:23 +0000)]
Avoid semicolon usage in echo.
Martin v. Löwis [Mon, 2 Dec 2002 22:17:01 +0000 (22:17 +0000)]
Add compile-time errors for unsupported systems.
Guido van Rossum [Mon, 2 Dec 2002 16:17:46 +0000 (16:17 +0000)]
In class bsdTableDB, add class variables db and env (set to None) to
prevent close() called from __del__ from bombing out when __init__()
fails early.
Guido van Rossum [Mon, 2 Dec 2002 16:08:54 +0000 (16:08 +0000)]
Fix typo in except clause (_db should be _bsddb).
Guido van Rossum [Mon, 2 Dec 2002 15:49:13 +0000 (15:49 +0000)]
Add XXX note about Sleepycat's BSDDB.
Guido van Rossum [Mon, 2 Dec 2002 14:54:20 +0000 (14:54 +0000)]
Moderately heavy reorganization of pyclbr to fix package-related bugs.
- The _modules cache now uses the full module name.
- The meaning of the (internal!!!) inpackage argument is changed: it
now is the parent package name, or None. readmodule() doesn't
support this argument any more.
- The meaning of the path argument is changed: when inpackage is set,
the module *must* be found in this path (as is the case for the real
package search).
- Miscellaneous cleanup, e.g. fixed __all__, changed some comments and
doc strings, etc.
- Adapted the unit tests to the new semantics (nothing much changed,
really). Added some debugging code to the unit tests that print
helpful extra info to stderr when a test fails (interpreting the
test failures turned out to be hard without these).
Guido van Rossum [Mon, 2 Dec 2002 13:08:53 +0000 (13:08 +0000)]
Add a better columnizer to print_topics().
Guido van Rossum [Mon, 2 Dec 2002 10:42:30 +0000 (10:42 +0000)]
Require 'largefile' resource for Mac OSX as well.
Guido van Rossum [Mon, 2 Dec 2002 09:56:21 +0000 (09:56 +0000)]
On Max OSX, try increasing the stack limit to 2048 so test_re and
test_sre won't die with a SegFault.
Kurt B. Kaiser [Mon, 2 Dec 2002 05:08:54 +0000 (05:08 +0000)]
Remove dead code in get_stack().
Modify get_stack() and get_exception to be StackTreeItem methods.
SF Bug 610756. Neal Norwitz.
Neal Norwitz [Mon, 2 Dec 2002 04:42:58 +0000 (04:42 +0000)]
Fix SF # 646578, Documentation Typo
Kurt B. Kaiser [Mon, 2 Dec 2002 04:41:29 +0000 (04:41 +0000)]
Fix beep.
Then remove annoying beep, not needed with breakpoint highlighting.
Neal Norwitz [Mon, 2 Dec 2002 04:40:21 +0000 (04:40 +0000)]
Remove unused variable
Skip Montanaro [Mon, 2 Dec 2002 00:27:10 +0000 (00:27 +0000)]
correct wording of comments about old bsddb (now bsddb185) module
Just van Rossum [Sun, 1 Dec 2002 22:10:36 +0000 (22:10 +0000)]
- reworked the object unpacking code, now supports new-style objects more
or less decently/completely.
- cleaned up a little.
Just van Rossum [Sun, 1 Dec 2002 21:43:13 +0000 (21:43 +0000)]
The new imp.[gs]et_frozenmodules() will be utterly redundant if the
zipfile import stuff get in. I'll probably back it out again.
Andrew M. Kuchling [Sun, 1 Dec 2002 14:00:21 +0000 (14:00 +0000)]
Add ossaudiodev; fix typo
Greg Ward [Sat, 30 Nov 2002 23:20:09 +0000 (23:20 +0000)]
Expunge any remaining mentions of linuxaudiodev -- it's ossaudiodev now!
Greg Ward [Sat, 30 Nov 2002 23:17:10 +0000 (23:17 +0000)]
Rename LinuxAudioError to OSSAudioError ('ossaudiodev.error').
Use OSSAudioError much less frequently -- all real I/O errors (ie. any
time open(), read(), write(), ioctl(), or select() return an error)
become IOError. OSSAudioError is only used now for bad open() mode.
Greg Ward [Sat, 30 Nov 2002 23:05:26 +0000 (23:05 +0000)]
Added mode 'rw' for full-duplex (play and record at the same time) mode.
Added _EXPORT_INT macro to export an integer constant to Python-space.
Use it for all the AFMT_* constants, and update the list of AFMT_*
constants to match what's in Linux 2.4: add AFMT_{QUERY,IMA_ADPCM,
MPEG,AC3}. This should probably be tested with older versions of OSS,
eg. with Linux 2.2 and 2.0.
Export all SNDCTL_* ioctl numbers (where "all" is the set found in
/usr/include/linux/soundcard.h on my Debian 3.0 system -- again
Linux 2.4). Again needs to be tested with older OSS versions.
Greg Ward [Sat, 30 Nov 2002 22:56:44 +0000 (22:56 +0000)]
* Don't put the device in non-blocking mode at open() time; this makes
it impossible to access blocking mode!
* Rename write() to writeall(), and add a write() method that just
does one write().
* Rearrange/simplify writeall(): in particular, don't supply a timeout
to select(). Let it block forever if it has to.
* Add a bunch of simple ioctl() wrappers: nonblock(), setfmt(),
getfmts(), channels(), speed(), sync(), reset(), post(). These
wrap, respectively, SNDCTL_DSP_NONBLOCK, SNDCTL_DSP_SETFMT,
SNDCTL_DSP_GETFMTS, etc.
* Reduce flush() (which was a wrapper for the SNDCTL_DSP_SYNC ioctl) to
an alias for sync().
* Rearrange the lad_methods list to reflect the order in which the
methods are defined, and add some grouping comments.
Greg Ward [Sat, 30 Nov 2002 22:47:45 +0000 (22:47 +0000)]
ossaudiodev -- Python interface to the OSS (Open Sound System) API.
This module is a replacement for linuxaudiodev, which will eventually
be deprecated.
Initial revision is rev 2.20 of linuxaudiodev.c, with a rewritten
header comment.
Just van Rossum [Sat, 30 Nov 2002 19:56:14 +0000 (19:56 +0000)]
- found a case where sys.path[0] isn't set to Contents/Resources,
so search the entire path.
- only add modules if we're building a standalone application.
Neal Norwitz [Sat, 30 Nov 2002 19:18:46 +0000 (19:18 +0000)]
Cleanup:
* Remove unused imports
* Convert some more 1/0 to True/False
* Shorten up a long line
Neal Norwitz [Sat, 30 Nov 2002 19:12:41 +0000 (19:12 +0000)]
Remove unused import
Remove unused variables since they were the return value from grid(),
which is always None
Neal Norwitz [Sat, 30 Nov 2002 19:10:19 +0000 (19:10 +0000)]
Convert string exceptions to classes, string exceptions are deprecated
Neal Norwitz [Sat, 30 Nov 2002 19:04:07 +0000 (19:04 +0000)]
Convert some more 1/0 to True/False
Neal Norwitz [Sat, 30 Nov 2002 18:49:10 +0000 (18:49 +0000)]
Add missing self for method call
Neal Norwitz [Sat, 30 Nov 2002 17:54:17 +0000 (17:54 +0000)]
Port Martin von Loewis checkin from Python:
Add --check-tkinter to setup.py. Install IDLE. Fixes #634078.
Neal Norwitz [Sat, 30 Nov 2002 17:51:41 +0000 (17:51 +0000)]
Port Martin von Loewis checkin from python: Support sdist.
Kurt B. Kaiser [Sat, 30 Nov 2002 06:18:00 +0000 (06:18 +0000)]
M PyShell.py
M rpc.py
SF Bug 629987: Idle not printing prompts following SyntaxError
Ka-Ping Yee [Sat, 30 Nov 2002 03:53:15 +0000 (03:53 +0000)]
getdoc():
Remove leading whitespace from first line; remove leading and
trailing blank lines from docstrings. (Patch 645938 submitted
by David Goodger.)
Jack Jansen [Sat, 30 Nov 2002 00:01:29 +0000 (00:01 +0000)]
Lots of minor tweaks for the pep252 checkins, mainly because Qd
attributes are no longer supported.
Jack Jansen [Fri, 29 Nov 2002 23:58:51 +0000 (23:58 +0000)]
Build _AE too.
Jack Jansen [Fri, 29 Nov 2002 23:40:48 +0000 (23:40 +0000)]
Converted the Carbon modules to use PEP252-style objects, with
descriptors in stead of manual getattr hooks to get at attributes
of the objects.
For Qd I have in stead gotten rid of most of the attribute access
in favor of the carbon-style accessor methods (with the exception
of visRgn, to be done later), and of the Carbon.Qd.qd global object,
for which accessor functions are also available.
For List I have fixed the fact that various methods were incorrectly
generated as functions.
CF is untouched: PEP252 doesn't allow "poor-mans-inheritance" with
basechain, so it will have to wait for PEP253 support.
Kurt B. Kaiser [Fri, 29 Nov 2002 22:10:53 +0000 (22:10 +0000)]
Correct an error introduced at Rev 1.30. The keyword arg is necessary
to freeze the value of orig_checkcache. Otherwise infinite recursion.
Just van Rossum [Fri, 29 Nov 2002 21:22:33 +0000 (21:22 +0000)]
Forgot to do os.path.basename() on mainprogram: a nonworking app was built if the mainprogram wan't in the current directory. Fixed.
Just van Rossum [Fri, 29 Nov 2002 20:47:40 +0000 (20:47 +0000)]
Slightly improved version of patch #642578: "Expose PyImport_FrozenModules
in imp". This adds two functions to the imp module: get_frozenmodules()
and set_frozenmodules().
Just van Rossum [Fri, 29 Nov 2002 20:06:52 +0000 (20:06 +0000)]
added Thomas H's LOADER code for importing extension (sub)modules; little tweaks