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
Tim Peters
92e4dd8657
s/_alloca/alloca/g; Windows doesn't need the former, at least not unless
...
__STDC__ is defined (or something like that ...).
2002-10-05 01:47:34 +00:00
Martin v. Löwis
a7a76d3d9e
Patch #618347 : Work around Solaris 2.6 pthread.h bug. Will backport to 2.2.
2002-10-04 07:21:24 +00:00
Mark Hammond
3d61a06aa2
Fix [ 616716 ] Bug in PyErr_SetExcFromWindows
...
Ensure that even if FormatMessage fails we (a) don't crash, and (b) provide something useful.
Bugfix candidate.
2002-10-04 00:13:02 +00:00
Mark Hammond
da7efaa681
Fix errors to pep277 checkin identified by Neal Norwitz.
2002-10-04 00:09:38 +00:00
Michael W. Hudson
ca803a0dd7
One last tweak to the tracing machinery: this actually computes what I intended
...
all along. Before instr_lb tended to be too high.
I don't think this actually makes any difference, given what the compiler
produces, but it makes me a bit happier.
2002-10-03 09:53:11 +00:00
Michael W. Hudson
3ae3315f44
Clamp code objects' tp_compare result to [-1, 1].
...
Bugfix candidate.
2002-10-03 09:50:47 +00:00
Mark Hammond
c2e85bd4e2
Patch 594001: PEP 277 - Unicode file name support for Windows NT.
2002-10-03 05:10:39 +00:00