- 12 Dec, 2002 2 commits
-
-
Just van Rossum authored
This patch allows ZipFile.writestr() to be called with an archive file name instead of a ZipInfo instance: z = ZipFile("myarchive.zip", "w") z.writestr("foo/baz/file.ext", data) z.close() I found the old writestr() method very inconvenient for simple (but common) things. If called with a file name instead of a ZipInfo instance, the date_time is set to the current date/time, which makes sense to me for anonymous data.
-
Jack Jansen authored
TARGET_API_MAC_OS8 (or !TARGET_API_MAC_CARBON) is gone. Also some TARGET_API_MAC_OSX conditional code is gone, because it is no longer used on OSX-only Python (only in MacPython-OS9).
-
- 11 Dec, 2002 20 commits
-
-
Jeremy Hylton authored
Replace use of homebrew boolean with True/False. Reflow lots more long lines.
-
Jeremy Hylton authored
The bug is a reference to co_first_lineno that should be co_firstlineno. The only other substantial change is to speed up localtrace_count() by avoiding *costly* calls to inspect module. It's trivial to get the filename and lineno directly from the frame. Otherwise, delete commented out debug code and reflow very long lines.
-
Martin v. Löwis authored
-
Tim Peters authored
build_ssl.py requires os.popen().
-
Greg Ward authored
* add oss_mixer_t and OSSMixerType * add newossmixerobject(), oss_mixer_dealloc(), ossopenmixer() * add _do_ioctl_1_internal() to support mixer ioctls * add mixer methods: oss_mixer_{close,fileno,channels,stereo_channels, rec_channels,getvol,setvol,getrecsrc,setrecsrc}() * add oss_mixer_methods list * add oss_mixer_getattr() (why?!) * export SOUND_MIXER_* constants from soundcard.h
-
Andrew M. Kuchling authored
-
Greg Ward authored
_do_ioctl_1() so they take a file descriptor rather than an oss_t pointer.
-
Greg Ward authored
* rename oss_t to lad_t, Ladtype to OSSType, * rename lad_*() methods to oss_*() * rename lad_methods list to oss_methods Patch and impetus supplied by Nicholas FitzRoy-Dale <wzdd@lardcave.net>.
-
Martin v. Löwis authored
-
Greg Ward authored
efficient. Suggested by MAL.
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Kurt B. Kaiser authored
-
Kurt B. Kaiser authored
configuration selection. Rework the usage message to match. Also some minor code polishing.
-
- 10 Dec, 2002 6 commits
-
-
Tim Peters authored
-
Tim Peters authored
Barry agreed, and I see no reason not to.
-
Tim Peters authored
-
Greg Ward authored
-
Greg Ward authored
the obvious s/linuxaudiodev/ossaudiodev/ change made.
-
Neal Norwitz authored
-
- 09 Dec, 2002 6 commits
-
-
Tim Peters authored
Most of these patches are from Thomas Heller, with long lines folded by Tim. The change to test_descr.py is from Guido. See the bug report. Not a bugfix candidate -- METH_CLASS is new in 2.3.
-
Greg Ward authored
input, and 2) unicode input means unicode output. This closes SF bug #622831.
-
Greg Ward authored
Change LongWordTestCase.setUp() -- remove leading whitespace from text string. Comment fix.
-
Greg Ward authored
the input string is always preserved.
-
Greg Ward authored
attribute, and modify _munge_whitespace() to recognize Unicode strings and use unicode_whitespace_trans to munge them. Still need to add a test to make sure I've really fixed the bug.
-
Raymond Hettinger authored
-
- 08 Dec, 2002 2 commits
-
-
Skip Montanaro authored
suggestion by Raymond Hettinger.
-
Skip Montanaro authored
this can result in significantly smaller files. All classes as well as the open function now accept an optional binary parameter, which defaults to False for backward compatibility. Added a small test suite, updated the libref documentation (including documenting the exported classes and fixing a few other nits) and added a note about the change to Misc/NEWS.
-
- 07 Dec, 2002 4 commits
-
-
Tim Peters authored
tests. I found the logic too confusing to follow here, so rewrote more than was likely absolutely necessary. Bugfix candidate.
-
Fred Drake authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-