25089 Commits

Author SHA1 Message Date
Jack Jansen
72f3b7a5de Added missing casts. 2002-12-13 15:23:10 +00:00
Jack Jansen
747c3d3f02 We need macglue on MacPython-OS9 too. 2002-12-13 15:20:53 +00:00
Jack Jansen
fcbe5e55f5 Outdated. 2002-12-13 15:18:04 +00:00
Jack Jansen
32f614b895 Got rid of unused Compat files. 2002-12-13 15:16:59 +00:00
Just van Rossum
feddf77ad2 another wrong assumption fixed 2002-12-13 15:14:22 +00:00
Jack Jansen
68c8138e89 Still used the old config file. Fixed. 2002-12-13 15:14:00 +00:00
Jack Jansen
04543deb6c Compatibility files that haven't been used in a long time. 2002-12-13 15:05:00 +00:00
Jack Jansen
65cbf93fce Get rid of support for Universal Headers older than 3.4 and various other
outdated things.
2002-12-13 15:02:02 +00:00
Jack Jansen
55309a31df Get rid of 2.2 "poor mans universal newlines" now that the real thing
is implemented.
2002-12-13 13:57:35 +00:00
Jack Jansen
8bf053fead It was an old MacPython artefact that these files were still in the source
tree. Removed them, anyone really desparate to recover them can get them
from the CVS repository.
2002-12-13 13:38:28 +00:00
Jack Jansen
bb3e4cb14b Tkinter isn't supported under Carbon. Under MacOSX native it is, but
that version doesn't need these workarounds.
2002-12-13 13:35:33 +00:00
Jack Jansen
5e13951ad7 Very outdated: this is a 68K support file. 2002-12-13 13:33:34 +00:00
Andrew M. Kuchling
6c50df2d90 Add Tkinter threading change
Fix markup errors
Rewrite a sentence
2002-12-13 12:53:16 +00:00
Just van Rossum
71fd01c099 and now the real fix... 2002-12-13 11:07:20 +00:00
Just van Rossum
61fcf76294 fixed bool browsing bug, sf bug #652591 2002-12-13 10:58:10 +00:00
Chui Tey
067d734f9e Prevent debugger from stepping into Idle rpc code 2002-12-12 20:53:19 +00:00
Martin v. Löwis
de3337913f Patch #536661: Improve performance of splitext. Add test_macpath. 2002-12-12 20:30:20 +00:00
Martin v. Löwis
427a290c9a Patch #629126: Detect BLT by also looking for libBLT. 2002-12-12 20:23:38 +00:00
Martin v. Löwis
00b6127097 Patch #650653: Raise always value error if the table is not 256 bytes long. 2002-12-12 20:03:19 +00:00
Thomas Heller
63b4dd33c9 Description of description was really confusing, and added some markup. 2002-12-12 19:35:00 +00:00
Kurt B. Kaiser
e54710bd72 M CallTipWindow.py
M CallTips.py

Calltip fetch was erroring when an Edit window was used without a Shell.
Also, fix CallTipWindow.py so test code will run and add a comment about a
bug which causes the calltip window to override all others.
2002-12-12 19:15:39 +00:00
Walter Dörwald
7e5c6a02eb Change issubclass() so that recursive tuples (directly or indirectly
containing class objects) are allowed as the second argument.
This makes issubclass() more similar to isinstance() where recursive
tuples are allowed too.
2002-12-12 19:14:08 +00:00
Thomas Heller
1b3b49d132 Mention the bdist_wininst postinstall script. 2002-12-12 19:13:44 +00:00
Martin v. Löwis
7d1349553b Always initialize objc. 2002-12-12 19:05:48 +00:00
Thomas Heller
2c3bfc2a1a Raw documentation for the bdist_wininst postinstallation script.
People are already using it, so these docs are certainly better than
no docs at all. Markup is mostly missing and the layout is probably
ugly, but this can be fixed later.

Question: there are references to MS docs for the CSIDL_... constants
and the IShellLink interface. Are these pointers sufficient, or should
the MS docs reworded and repeated here?
2002-12-12 18:54:19 +00:00
Jason Tishler
e4a070a320 Patch #551960: Add check for setrlimit() support
test_resource calls resource.setrlimit() to change the file size limits.
This fails on Cygwin, which supports setrlimit() and getrlimit(), just not
changing that particular setting. (The same would apply to any other
platform that has those functions but not that particular feature.)

Since getrlimit() works and setrlimit() can be used for other reasons, a
check for ValueError was added to that part of the test.
2002-12-12 18:13:36 +00:00
Marc-André Lemburg
20b91358e5 News item for the change to turn _codecs into a builtin module. 2002-12-12 18:01:43 +00:00
Marc-André Lemburg
b28de0d79f Patch to make _codecs a builtin module. This is necessary since
Python 2.3 will support source code encodings which rely on the
builtin codecs being available to the parser.

Remove struct dependency from codecs.py
2002-12-12 17:37:50 +00:00
Greg Ward
b69bb3d019 Typo fix. 2002-12-12 17:35:45 +00:00
Greg Ward
afd44de812 Hardcode the recognized whitespace characters to the US-ASCII whitespace
chars.  See the comment for rationale.
2002-12-12 17:24:35 +00:00
Martin v. Löwis
b5bfb9f38c Support threads-enabled Tcl installations. 2002-12-12 17:07:58 +00:00
Walter Dörwald
d9a6ad3beb Enhance issubclass() and PyObject_IsSubclass() so that a tuple is
supported as the second argument. This has the same meaning as
for isinstance(), i.e. issubclass(X, (A, B)) is equivalent
to issubclass(X, A) or issubclass(X, B). Compared to isinstance(),
this patch does not search the tuple recursively for classes, i.e.
any entry in the tuple that is not a class, will result in a
TypeError.

This closes SF patch #649608.
2002-12-12 16:41:44 +00:00
Just van Rossum
b083cb3901 Patch #651621, approved by MvL.
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.
2002-12-12 12:23:32 +00:00
Jack Jansen
6c7e326eaa Getting rid of pre-Carbon (MacOS8) support. All code depending on
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).
2002-12-12 10:31:54 +00:00
Jeremy Hylton
6bf45c6752 Correct buggy module docstring.
Replace use of homebrew boolean with True/False.

Reflow lots more long lines.
2002-12-11 21:43:13 +00:00
Jeremy Hylton
89f1d6c04e Fix one bug and reformat lots of code.
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.
2002-12-11 21:28:32 +00:00
Martin v. Löwis
135594648f This is not used anymore. 2002-12-11 19:55:48 +00:00
Tim Peters
b4f0a12974 Made the _ssl subproject depend on the w9xpopen subproject, because
build_ssl.py requires os.popen().
2002-12-11 17:50:24 +00:00
Greg Ward
3d9994d3b0 Add OSS mixer interface (from Nicholas FitzRoy-Dale <wzdd@lardcave.net>):
* 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
2002-12-11 15:12:01 +00:00
Andrew M. Kuchling
449a87d791 Various additions and changes suggested by Raymond Hettinger 2002-12-11 15:03:51 +00:00
Greg Ward
da9f853b49 Prepare for the coming mixer support patch: change _do_ioctl_0() and
_do_ioctl_1() so they take a file descriptor rather than an oss_t
pointer.
2002-12-11 14:49:59 +00:00
Greg Ward
8c6b6a9f1e Finish expunging the 'linuxaudiodev' name:
* 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>.
2002-12-11 14:43:13 +00:00
Martin v. Löwis
95292d6caa Constify filenames and scripts. Fixes #651362. 2002-12-11 14:04:59 +00:00
Greg Ward
0e88c9f65d Tweak generation of unicode_whitespace_trans -- clearer, more
efficient.  Suggested by MAL.
2002-12-11 13:54:20 +00:00
Martin v. Löwis
32b4a1ba62 Constify char* API. Fixes #651363. 2.2 candidate. 2002-12-11 13:21:12 +00:00
Martin v. Löwis
b023381466 Patch #650415: Avoid redefinition of macros. 2002-12-11 13:12:30 +00:00
Martin v. Löwis
cf8f47ea95 Patch #650422: Use Posix AF_ constants instead of PF_ ones. 2002-12-11 13:10:57 +00:00
Martin v. Löwis
6233c9b470 Patch #650834: Document 'U' in file mode, remove stale variables. 2002-12-11 13:06:53 +00:00
Martin v. Löwis
0479104a91 Patch #651006: Better explain what component might be empty. 2002-12-11 12:55:53 +00:00
Martin v. Löwis
79f3c53ee8 Patch #651289: Fix quoting errors. 2002-12-11 12:51:58 +00:00