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
Andrew M. Kuchling [Fri, 29 Nov 2002 19:45:58 +0000 (19:45 +0000)]
Fix mode on scripts to have the read bit set (noted by Nicholas Riley)
Andrew M. Kuchling [Fri, 29 Nov 2002 19:43:45 +0000 (19:43 +0000)]
Fix value of 'propagate' (noted by Chris Reedy)
Rewrite paragraph
Walter Dörwald [Fri, 29 Nov 2002 16:39:07 +0000 (16:39 +0000)]
Fix typo.
Jack Jansen [Thu, 28 Nov 2002 23:23:14 +0000 (23:23 +0000)]
Fixed two silly bugs in the PEP252 support code, added an assert
that basechain isn't set, and made the output a bit prettier.
Just van Rossum [Thu, 28 Nov 2002 18:56:50 +0000 (18:56 +0000)]
fixed typo and wrapping
Just van Rossum [Thu, 28 Nov 2002 11:30:56 +0000 (11:30 +0000)]
- Rewrote bootstapping code in sh so we're really independent of an
installed Python. So we don't use os.execve any longer, which means
we need an actual executable in <myapp>.app/Contents/MacOS. For applets
we make a symlink to the Python executable used to build the applet,
for standalone apps we simply copy it.
- Added support for the new any_missing_maybe() feature of modulefinder.py,
which is pending as patch #643711. Its use is optional so it still works
with the existing version of modulefinder.py
Greg Ward [Wed, 27 Nov 2002 22:19:15 +0000 (22:19 +0000)]
Allow the device name to be passed to linuxaudiodev.open(), for
consistency with the built-in open() (and every other sane open()
function, for that matter). The two valid ways to call this open() are
now open(mode) and open(device, mode).
For backwards compatibility, retain the old open(mode) calling syntax --
this makes the error message when you call open(device) a bit confusing,
but oh well.
This is the first half of SF patch #644977.
Neal Norwitz [Wed, 27 Nov 2002 19:38:00 +0000 (19:38 +0000)]
Add missing decref
Andrew M. Kuchling [Wed, 27 Nov 2002 19:11:10 +0000 (19:11 +0000)]
Mention dict.fromkeys()
Various edits
Andrew M. Kuchling [Wed, 27 Nov 2002 18:53:38 +0000 (18:53 +0000)]
Update e-mail address
Michael W. Hudson [Wed, 27 Nov 2002 16:29:26 +0000 (16:29 +0000)]
Nudge getting __module__ and __name__ for new-style classes so that
the results of *setting* __name__ are not so surprising.
If people can suggest more tests, that'd be grand, or is what's there
sufficient?
Neal Norwitz [Wed, 27 Nov 2002 15:47:10 +0000 (15:47 +0000)]
SF #641170, reST version of Lib/test/README
Convert test/README to reST
Michael W. Hudson [Wed, 27 Nov 2002 15:40:09 +0000 (15:40 +0000)]
I don't know why staring at the email to python-checkins made me
see problems with my code that I didn't see before the checkin, but:
When a subtype .mro() fails, we need to reset the type whose __bases__
are being changed, too. Fix + test.
Michael W. Hudson [Wed, 27 Nov 2002 15:20:19 +0000 (15:20 +0000)]
Readjustments to the way we cope with exceptions from subclasses'
mro() methods. Now any exception aborts the whole __bases__ change.
And more tests.
Andrew M. Kuchling [Wed, 27 Nov 2002 13:45:26 +0000 (13:45 +0000)]
[Part of patch #641685] Add .dylib as an extension for shared libraries
Andrew M. Kuchling [Wed, 27 Nov 2002 13:43:46 +0000 (13:43 +0000)]
[Patch #641685] setup.py contained code for finding libraries, instead
of using the CCompiler.find_library_file() provided by the Distutils.
This patch fixes it to use the Distutils method at the cost of some
additional glue.
(The duplication resulted in the SSL module not being automatically
built on Macs; the Distutils knew that shared libraries on OS X have a
.dylib extension, but the setup.py code didn't.)
Andrew M. Kuchling [Wed, 27 Nov 2002 13:34:20 +0000 (13:34 +0000)]
Bug #643631: MacOS 9 details missing from inst.tex
Fill in the missing details. (From Jack Jansen)
Guido van Rossum [Wed, 27 Nov 2002 13:10:40 +0000 (13:10 +0000)]
Rephrase dict.fromkeys() news.
Michael W. Hudson [Wed, 27 Nov 2002 10:24:44 +0000 (10:24 +0000)]
I had the inheritance cycle stuff backwards. Oops!
Martin v. Löwis [Wed, 27 Nov 2002 08:30:25 +0000 (08:30 +0000)]
Patch #639112: fixes for None locale and tz.
Raymond Hettinger [Wed, 27 Nov 2002 08:29:11 +0000 (08:29 +0000)]
Bring UserDict in-sync with changes to dict.
Constructor accepts optional keyword arguments after a optional items list.
Add fromkeys() as an alternate constructor from an iterable over keys.
Expand related unittests.
Raymond Hettinger [Wed, 27 Nov 2002 07:29:33 +0000 (07:29 +0000)]
SF Patch 643443. Added dict.fromkeys(iterable, value=None), a class
method for constructing new dictionaries from sequences of keys.
Fred Drake [Wed, 27 Nov 2002 05:26:46 +0000 (05:26 +0000)]
Clarify the interpretation of the __getstate__() return value for
new-style classes.
Closes SF bug #637941.
Guido van Rossum [Wed, 27 Nov 2002 04:00:59 +0000 (04:00 +0000)]
The MRO conflict error message depends on dictionary hash order.
Avoid depending on this in the test.
Fred Drake [Tue, 26 Nov 2002 22:13:41 +0000 (22:13 +0000)]
Add missing dependency information for the "What's New" document.
Martin v. Löwis [Tue, 26 Nov 2002 22:12:12 +0000 (22:12 +0000)]
Avoid including tclInt.h.
Fred Drake [Tue, 26 Nov 2002 22:07:35 +0000 (22:07 +0000)]
Noted the support for resource exclusion for regrtest. Some people
use regrtest, so it might be interesting.
Fred Drake [Tue, 26 Nov 2002 21:44:56 +0000 (21:44 +0000)]
Add a way to say "use any resource except A". For example, to run
allow the use of any resource except bsddb, give the option
"-uall,-bsddb".
Martin v. Löwis [Tue, 26 Nov 2002 21:39:48 +0000 (21:39 +0000)]
Rename want_objects to wantobjects throughout, for consistency.
Fred Drake [Tue, 26 Nov 2002 21:28:23 +0000 (21:28 +0000)]
Use "is" to test type objects, not "==".
Gustavo Niemeyer [Tue, 26 Nov 2002 18:14:35 +0000 (18:14 +0000)]
* Doc/ref/ref5.tex
Fixed minor bug preventing documentation compilation.
Michael W. Hudson [Tue, 26 Nov 2002 17:49:11 +0000 (17:49 +0000)]
Initialize a variable. Hope this makes things work for Guido.
It's odd that gcc on my ibook didn't complain about this.
Andrew M. Kuchling [Tue, 26 Nov 2002 17:45:19 +0000 (17:45 +0000)]
Fix for bug #410541: bdist builds bogus .zips
This adds a --relative option to the bdist_dumb command that defaults
to false; if true, the .tar.gz or .zip will be assembled using relative
paths.
Andrew M. Kuchling [Tue, 26 Nov 2002 17:42:48 +0000 (17:42 +0000)]
Part of the fix for bug #410541: add ensure_relative() function
Michael W. Hudson [Tue, 26 Nov 2002 14:48:23 +0000 (14:48 +0000)]
This is not part of my patch
[ 635933 ] make some type attrs writable
but should have been!
News about the above.
Michael W. Hudson [Tue, 26 Nov 2002 14:47:27 +0000 (14:47 +0000)]
This is my patch:
[ 635933 ] make some type attrs writable
Plus a couple of extra tests beyond what's up there.
It hasn't been as carefully reviewed as it perhaps should, so all readers
are encouraged, nay exhorted, to give this a close reading.
There are still a couple of oddities related to assigning to __name__,
but I intend to solicit python-dev's opinions on these.
Andrew M. Kuchling [Tue, 26 Nov 2002 12:31:09 +0000 (12:31 +0000)]
Fix typo
Just van Rossum [Tue, 26 Nov 2002 09:53:16 +0000 (09:53 +0000)]
refactor universal line endings detection
Martin v. Löwis [Tue, 26 Nov 2002 09:47:25 +0000 (09:47 +0000)]
Report Tkinter changes.
Martin v. Löwis [Tue, 26 Nov 2002 09:28:05 +0000 (09:28 +0000)]
Patch #518625: Return objects in Tkinter.
Martin v. Löwis [Tue, 26 Nov 2002 09:05:36 +0000 (09:05 +0000)]
Patch #632973: Implement _getdefaultlocale for OS X.
Thomas Heller [Tue, 26 Nov 2002 08:06:50 +0000 (08:06 +0000)]
Polish some bits to silence pychecker.
Thomas Heller [Tue, 26 Nov 2002 08:05:09 +0000 (08:05 +0000)]
Don't look for modules in the registry any longer.
Mark writes in private email:
"Modules listed in the registry was a dumb idea. This whole scheme
can die. AFAIK, no one in the world uses it (including win32all
since the last build)."
(See also SF #643711)
Just van Rossum [Tue, 26 Nov 2002 00:34:52 +0000 (00:34 +0000)]
added support for building standalone applications
- requires modulefinder.py to be on sys.path
- does *not* work for Python.framework (yet), only for static builds
Guido van Rossum [Mon, 25 Nov 2002 21:38:52 +0000 (21:38 +0000)]
A tweaked version of Jeremy's patch #642489, to produce better error
messages about MRO conflicts. (Tweaks here: don't print the message,
but compare it with an expected string.)
Guido van Rossum [Mon, 25 Nov 2002 21:36:54 +0000 (21:36 +0000)]
A tweaked version of Jeremy's patch #642489, to produce better error
messages about MRO conflicts. (The tweaks include correcting spelling
errors, some refactoring to get the name of classic classes, and a
style nit or two.)
Tim Peters [Mon, 25 Nov 2002 21:13:13 +0000 (21:13 +0000)]
Added Marius Gedminas, for contributions to the datetime code.