Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8a30adc

Browse files
committed
the usual
1 parent 6135a87 commit 8a30adc

3 files changed

Lines changed: 101 additions & 7 deletions

File tree

BUGS

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,11 @@ DECREF can cause recursive calls to methods of the object being
2828
modified. Other files too. [Only partially fixed -- listobject.c is
2929
still suspect.]
3030

31-
(-) struct module aligns doubles wrongly when compiled with -DDEBUG on
32-
sparc
33-
3431
(-) if __getattr__ prints something, calling repr(x) from cmd line
3532
forgets a newline
3633

37-
(-) doneimport() should be called *before* the Py_AtExit code is called
34+
(-) doneimport() should be called *before* the Py_AtExit code is
35+
called [problem: what if other threads are still active?]
3836

3937
Environmental bugs
4038
------------------
@@ -55,12 +53,15 @@ Environmental bugs
5553
doesn't create it
5654

5755
(-) HP doesn't compile out of the box (needs LIBS=-ldld or
58-
LIBS=/usr/lib/libdld.sl)
56+
LIBS=/usr/lib/libdld.sl) [hard to test without a HP machine handy]
5957

6058
======================================================================
6159
BUGS present in 1.1.1 and fixed in 1.2
6260
--------------------------------------
6361

62+
(*) struct module aligns doubles wrongly when compiled with -DDEBUG on
63+
sparc
64+
6465
(*) memory leak (namebuf) in initmodule2
6566

6667
(*) hash() of float values returns bogus values

ChangeLog

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,98 @@
1+
Mon Jan 9 14:20:16 1995 Guido van Rossum <[email protected]>
2+
3+
* Python/thread_pthread.h: Alpha OSF/1 fix
4+
5+
* Python/importdl.c (load_dynamic_module): removed bogus check for
6+
reloading of dynamically loaded modules (tested uninitialized
7+
local variable)
8+
9+
* Include/{frameobject.h,ceval.h,bltinmodule.h,rename1},
10+
Python/{ceval.c,import.c,pythonrun.c,bltinmodule.c},
11+
Object/frameobject.c: changed handling of builtins. Each frame
12+
now has a pointer to the dictionary of builtins to be used in that
13+
frame, initialized from __builtins__ in the globals passed to the
14+
frame. Only run_node() and exec_code_module() initialize
15+
__builtins__ to the dictionary of the real __builtin__ module.
16+
Furthermore, a frame is in "restricted" mode if its builtins are
17+
not the real __builtin__ module. In restricted mode, some other
18+
modules and object types restrict their interfaces. Subtle
19+
change: eval_code() no longer automatically fills in the default
20+
globals; this must be done by the caller (who can then also
21+
explicitly stick in the builtins if needed). bltinmodule.c no
22+
longer exports {get,set}builtin() but instead exports
23+
getbuiltindict(). ceval.c export getbuiltins() and
24+
getrestricted() in analogy of getglobals().
25+
26+
* Include/sysmodule.h, Python/{sysmodule.c,ceval.c},
27+
Doc/libsys.tex: change sys.check_interval Python variable into
28+
Python function sys.setcheckinterval(interval) and C variable
29+
sys_checkinterval
30+
31+
* Mac/macosmodule.c: use new getargs interface; add
32+
{Get,Set}FileInfo
33+
34+
Sat Jan 7 09:40:24 1995 Guido van Rossum <[email protected]>
35+
36+
* Python/compile.c: support import A.B...Z; added doc strings to
37+
modules, classes and function
38+
39+
* Python/ceval.c: use new instancebinop interface
40+
41+
* Python/bltinmodule.c: restructured coerce(), divmod(), pow() to
42+
use new instancebinop interface
43+
44+
* Objects/classobject.c: added 5th (function) parameter to
45+
instancebinop, to support things like Rational * float; added
46+
documentation strings to classes and methods
47+
48+
* Objects/methodobject.c: changed drastically, the object now
49+
contains a pointer to the struct methodlist (which must be
50+
static); added attributes __name__, __doc__ and __self__
51+
52+
* Objects/funcobject.c: added __doc__ attribute (alias func_doc),
53+
initialized from first constand in code object if it is a string,
54+
else to None
55+
56+
* Objects/moduleobject.c: initialize __doc__ to None
57+
58+
* Objects/typeobject.c: added getattr(), supporting __doc__ and
59+
__name__
60+
61+
* Objects/object.c: raise AttributeError, not TypeError for object
62+
without attributes
63+
64+
* Python/modsupport.c, Include/modsupport.h: add doc string
65+
parameter to initmodule3 (renamed from initmodule2); new
66+
newmethodobject() interface
67+
68+
* Modules/signalmodule.c (initsignal): don't call
69+
newmethodobject() directly -- rely on initmodule()
70+
71+
* Modules/newmodule.c: rationalize argument checking, redo
72+
lay-out, add __doc__ strings
73+
74+
* Include/object.h: added tp_str (to implement str()), tp_doc, and
75+
some dummy fields
76+
77+
* Include/methodobject.h: added ml_doc member to struct methodlist
78+
and renamed ml_varargs to ml_flags; changed newmethodobject() to
79+
take a struct methodlist * argument instead of individual parts;
80+
got rid of ML_FREENAME again
81+
82+
* Include/funcobject.h: added func_doc struct member
83+
84+
* Include/classobject.h: added 5th (function) parameter to
85+
instancebinop, to support things like Rational * float
86+
87+
* Grammar/Grammar: changed import to support NAME.NAME...NAME
88+
89+
* Python/importdl.c (load_dynamic_module): NT dlls have extension
90+
.pyd, not .dll
91+
92+
Thu Jan 5 11:00:13 1995 Guido van Rossum <[email protected]>
93+
94+
* Demo/scripts/mboxconvert.py: invent Message-ID if none present
95+
196
Wed Jan 4 18:23:09 1995 Guido van Rossum <[email protected]>
297

398
* Python/modsupport.c (initmodule2), Include/methodobject.h,

TODO

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
(-) modules should be able to define a module destructor hook
2222

23-
(-) goaway() / cleanup() should call AtExit funcs *after* doneimport()
24-
2523
(-) destroy modules in reverse order of importation
2624

2725
(-) make array a standard built-in object

0 commit comments

Comments
 (0)