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
Martin v. Löwis
95292d6caa
Constify filenames and scripts. Fixes #651362 .
2002-12-11 14:04:59 +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
79acb9edfa
Patch #614055 : Support OpenVMS.
2002-12-06 12:48:53 +00:00
Andrew MacIntyre
c4c127b850
reformat for PEP-7 style conformance
2002-12-04 12:29:37 +00:00
Andrew MacIntyre
6904959921
typo fix: declaration required for VACPP not EMX+gcc
2002-12-04 12:27:06 +00:00
Martin v. Löwis
779ffc066e
Add compile-time errors for unsupported systems.
2002-12-02 22:17:01 +00:00
Just van Rossum
3eb166b49b
Slightly improved version of patch #642578 : "Expose PyImport_FrozenModules
...
in imp". This adds two functions to the imp module: get_frozenmodules()
and set_frozenmodules().
2002-11-29 20:47:40 +00:00
Martin v. Löwis
52ea7e9244
Patch #632973 : Implement _getdefaultlocale for OS X.
2002-11-26 09:05:36 +00:00
Martin v. Löwis
ba2cf078d2
Properly compute array size even for --disable-unicode.
2002-11-21 23:53:25 +00:00
Walter Dörwald
dffda2eaf9
Wrap uargs declaration in a #ifdef Py_USING_UNICODE, so that
...
the --disable-unicode build doesn't complain about an
unused variable.
2002-11-21 20:23:11 +00:00
Walter Dörwald
4c6c76559d
Move three variables that are only used inside an if block into the block,
...
so the --disable-unicode build doesn't complain about unused variables.
2002-11-21 20:13:40 +00:00
Walter Dörwald
bf73db835a
Fix PEP 293 related problems with --disable-unicode builds
...
reported by Michael Hudson in
http://mail.python.org/pipermail/python-dev/2002-November/030299.html
2002-11-21 20:08:33 +00:00
Neil Schemenauer
89350a41b9
Remove _Py_ResetReferences. Fixes bug #529750 "Circular reference makes
...
Py_Init crash". refchain cannot be cleared because objects can live across
Py_Finalize() and Py_Initialize() if they are kept alive by circular
references.
2002-11-17 17:52:44 +00:00
Neal Norwitz
addfe0c09c
Make private functions static so we don't pollute the namespace
2002-11-10 14:33:26 +00:00
Michael W. Hudson
5f26dda25d
Restore to ANSI C.
2002-11-09 14:47:18 +00:00
Michael W. Hudson
006c75265f
This is Richie Hindle's patch:
...
[ 631276 ] Exceptions raised by line trace function
It conflicted with the patches from Armin I just checked it, so I had
to so some bits by hand.
2002-11-08 13:08:46 +00:00
Michael W. Hudson
019a78e76d
Assorted patches from Armin Rigo:
...
[ 617309 ] getframe hook (Psyco #1 )
[ 617311 ] Tiny profiling info (Psyco #2 )
[ 617312 ] debugger-controlled jumps (Psyco #3 )
These are forward ports from 2.2.2.
2002-11-08 12:53:11 +00:00
Jack Jansen
dde800ec4e
Got rid of the python.rsrc resource file. The error message strings and
...
dialogs are now stored in Mac/Lib, and loaded on demand through macresource.
Not only does this simplify a MacPython based on Apple's Python, but
it also makes Mac error codes come out symbolically when running command
line python (if you have Mac/Lib in your path).
The resource files are copied from Mac/Resources. The old ones will disappear
after the OS9 build procedure has been adjusted.
2002-11-07 23:07:05 +00:00
Michael W. Hudson
cbd6fb9006
Handle really big steps in extended slices.
...
Fixes a test failure on 64 bit platforms (I hope).
2002-11-06 15:17:32 +00:00
Neal Norwitz
40cac739c2
Fix SF # 551504, python -v sometimes fails to find init (HPUX)
...
Joseph Winston recommends removing DYNAMIC_PATH, since it can
cause some dynamic libraries to not load on HP-UX 11.
2002-11-02 20:58:05 +00:00
Martin v. Löwis
566f6afe9a
Patch #512981 : Update readline input stream on sys.stdin/out change.
2002-10-26 14:39:10 +00:00
Jack Jansen
8fce2ef84c
Made MacOS.Error a class style exception (at last!).
2002-10-19 22:02:21 +00:00
Fred Drake
8ed0204bc9
If we have a filename and __main__.__file__ hasn't already been set,
...
set it.
Closes SF issue #624729 .
2002-10-17 21:24:58 +00:00
Mark Hammond
8696ebcd28
Add os.path.supports_unicode_filenames for all platforms,
...
sys.getwindowsversion() on Windows (new enahanced Tim-proof <wink>
version), and fix test_pep277.py in a few minor ways.
Including doc and NEWS entries.
2002-10-08 02:44:31 +00:00