Guido van Rossum
633d90c7a3
Oops. Roll back that last change. It wasn't ready for release. :-(
2002-12-23 16:51:42 +00:00
Guido van Rossum
9c8a0866c9
Add warning for assignment to None, True and False. This is patch
...
549213 by Jeremy (checking in for him since he's away and busy).
2002-12-23 16:35:23 +00:00
Neal Norwitz
06982221bb
SF # 654960, remove unnecessary static variable
...
The static variable (implicit) was not necessary.
The c_globals can be None or True now.
2002-12-18 01:18:44 +00:00
Gustavo Niemeyer
78429a6aa6
Fixing bug
...
[#448679 ] Left to right
* Python/compile.c
(com_dictmaker): Reordered evaluation of dictionaries to follow strict
LTR evaluation.
* Lib/compiler/pycodegen.py
(CodeGenerator.visitDict): Reordered evaluation of dictionaries to
follow strict LTR evaluation.
* Doc/ref/ref5.tex
Documented the general LTR evaluation order idea.
* Misc/NEWS
Documented change in evaluation order of dictionaries.
2002-12-16 13:54:02 +00:00
Jack Jansen
c389ec8d55
Got rid of old (non-carbon-ppc and even cfm68k) file extensions for
...
extension modules.
2002-12-16 13:16:25 +00:00
Just van Rossum
bbfd859521
Fixed potential crash: v can be NULL here, so use Py_XDECREF rather than Py_DECREF
2002-12-15 13:45:32 +00:00
Jack Jansen
72f3b7a5de
Added missing casts.
2002-12-13 15:23:10 +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
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