summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - reworked the object unpacking code, now supports new-style objects moreJust van Rossum2002-12-011-34/+46
| | | | | or less decently/completely. - cleaned up a little.
* The new imp.[gs]et_frozenmodules() will be utterly redundant if theJust van Rossum2002-12-011-1/+2
| | | | zipfile import stuff get in. I'll probably back it out again.
* Add ossaudiodev; fix typoAndrew M. Kuchling2002-12-011-1/+7
|
* Expunge any remaining mentions of linuxaudiodev -- it's ossaudiodev now!Greg Ward2002-11-301-7/+7
|
* Rename LinuxAudioError to OSSAudioError ('ossaudiodev.error').Greg Ward2002-11-301-25/+25
| | | | | | 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.
* Added mode 'rw' for full-duplex (play and record at the same time) mode.Greg Ward2002-11-301-21/+97
| | | | | | | | | | | | 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.
* * Don't put the device in non-blocking mode at open() time; this makesGreg Ward2002-11-301-46/+184
| | | | | | | | | | | | | | | | | | | | | 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.
* ossaudiodev -- Python interface to the OSS (Open Sound System) API.Greg Ward2002-11-301-0/+524
| | | | | | | | 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.
* - found a case where sys.path[0] isn't set to Contents/Resources,Just van Rossum2002-11-301-2/+8
| | | | | so search the entire path. - only add modules if we're building a standalone application.
* Cleanup:Neal Norwitz2002-11-301-9/+5
| | | | | | * Remove unused imports * Convert some more 1/0 to True/False * Shorten up a long line
* Remove unused importNeal Norwitz2002-11-301-5/+6
| | | | | Remove unused variables since they were the return value from grid(), which is always None
* Convert string exceptions to classes, string exceptions are deprecatedNeal Norwitz2002-11-302-8/+16
|
* Convert some more 1/0 to True/FalseNeal Norwitz2002-11-302-14/+14
|
* Add missing self for method callNeal Norwitz2002-11-301-2/+2
|
* Port Martin von Loewis checkin from Python:Neal Norwitz2002-11-301-5/+24
| | | | Add --check-tkinter to setup.py. Install IDLE. Fixes #634078.
* Port Martin von Loewis checkin from python: Support sdist.Neal Norwitz2002-11-301-0/+4
|
* M PyShell.pyKurt B. Kaiser2002-11-302-17/+20
| | | | | | M rpc.py SF Bug 629987: Idle not printing prompts following SyntaxError
* getdoc():Ka-Ping Yee2002-11-302-7/+15
| | | | | | Remove leading whitespace from first line; remove leading and trailing blank lines from docstrings. (Patch 645938 submitted by David Goodger.)
* Lots of minor tweaks for the pep252 checkins, mainly because QdJack Jansen2002-11-3025-61/+60
| | | | attributes are no longer supported.
* Build _AE too.Jack Jansen2002-11-291-0/+4
|
* Converted the Carbon modules to use PEP252-style objects, withJack Jansen2002-11-2948-2507/+2447
| | | | | | | | | | | | | | | | 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.
* Correct an error introduced at Rev 1.30. The keyword arg is necessaryKurt B. Kaiser2002-11-291-6/+8
| | | | to freeze the value of orig_checkcache. Otherwise infinite recursion.
* Forgot to do os.path.basename() on mainprogram: a nonworking app was built ↵Just van Rossum2002-11-291-7/+6
| | | | if the mainprogram wan't in the current directory. Fixed.
* Slightly improved version of patch #642578: "Expose PyImport_FrozenModulesJust van Rossum2002-11-293-0/+167
| | | | | in imp". This adds two functions to the imp module: get_frozenmodules() and set_frozenmodules().
* added Thomas H's LOADER code for importing extension (sub)modules; little tweaksJust van Rossum2002-11-291-21/+27
|
* Fix mode on scripts to have the read bit set (noted by Nicholas Riley)Andrew M. Kuchling2002-11-291-1/+1
|
* Fix value of 'propagate' (noted by Chris Reedy)Andrew M. Kuchling2002-11-291-8/+10
| | | | Rewrite paragraph
* Fix typo.Walter Dörwald2002-11-291-1/+1
|
* Fixed two silly bugs in the PEP252 support code, added an assertJack Jansen2002-11-281-3/+10
| | | | that basechain isn't set, and made the output a bit prettier.
* fixed typo and wrappingJust van Rossum2002-11-281-1/+2
|
* - Rewrote bootstapping code in sh so we're really independent of anJust van Rossum2002-11-281-40/+54
| | | | | | | | | | 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
* Allow the device name to be passed to linuxaudiodev.open(), forGreg Ward2002-11-271-7/+19
| | | | | | | | | | | | 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.
* Add missing decrefNeal Norwitz2002-11-271-0/+1
|
* Mention dict.fromkeys()Andrew M. Kuchling2002-11-271-18/+29
| | | | Various edits
* Update e-mail addressAndrew M. Kuchling2002-11-273-3/+3
|
* Nudge getting __module__ and __name__ for new-style classes so thatMichael W. Hudson2002-11-272-18/+33
| | | | | | | 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?
* SF #641170, reST version of Lib/test/READMENeal Norwitz2002-11-271-89/+99
| | | | Convert test/README to reST
* I don't know why staring at the email to python-checkins made meMichael W. Hudson2002-11-272-9/+16
| | | | | | | 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.
* Readjustments to the way we cope with exceptions from subclasses'Michael W. Hudson2002-11-272-12/+111
| | | | | | mro() methods. Now any exception aborts the whole __bases__ change. And more tests.
* [Part of patch #641685] Add .dylib as an extension for shared librariesAndrew M. Kuchling2002-11-271-1/+1
|
* [Patch #641685] setup.py contained code for finding libraries, insteadAndrew M. Kuchling2002-11-271-8/+24
| | | | | | | | | | 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.)
* Bug #643631: MacOS 9 details missing from inst.texAndrew M. Kuchling2002-11-271-18/+7
| | | | Fill in the missing details. (From Jack Jansen)
* Rephrase dict.fromkeys() news.Guido van Rossum2002-11-271-4/+5
|
* I had the inheritance cycle stuff backwards. Oops!Michael W. Hudson2002-11-272-4/+14
|
* Patch #639112: fixes for None locale and tz.Martin v. Löwis2002-11-272-61/+154
|
* Bring UserDict in-sync with changes to dict.Raymond Hettinger2002-11-272-6/+25
| | | | | | Constructor accepts optional keyword arguments after a optional items list. Add fromkeys() as an alternate constructor from an iterable over keys. Expand related unittests.
* SF Patch 643443. Added dict.fromkeys(iterable, value=None), a classRaymond Hettinger2002-11-274-1/+97
| | | | method for constructing new dictionaries from sequences of keys.
* Clarify the interpretation of the __getstate__() return value forFred Drake2002-11-271-3/+9
| | | | | new-style classes. Closes SF bug #637941.
* The MRO conflict error message depends on dictionary hash order.Guido van Rossum2002-11-271-4/+4
| | | | Avoid depending on this in the test.
* Add missing dependency information for the "What's New" document.Fred Drake2002-11-261-2/+2
|