-
-
Notifications
You must be signed in to change notification settings - Fork 29.5k
/
ChangeLog
3195 lines (2026 loc) · 107 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Thu Apr 6 16:34:28 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Objects/classobject.c (instancemethod_compare): change the way
instance methods are compared -- don't apply cmpobject() to
im_self but do a simple pointer compare
* Objects/object.c: move counting of free'd objects (#ifdef
COUNT_ALLOCS) from DELREF() to UNREF()
* Include/object.h (_Py_ForgetReference()): add counting of free'd
objects (#ifdef COUNT_ALLOCS)
Tue Apr 4 13:53:47 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Objects/frameobject.c (newframeobject): changed dictlookup()
with constant C string arg to mappinglookup() with static Python
string (Sjoerd)
Fri Mar 31 12:26:03 1995 Guido van Rossum <guido@voorn.cwi.nl>
* irix5/tmp/lib/python/lib/frozenmain.c: carried through renaming
phase 3
Thu Mar 30 11:44:23 1995 Guido van Rossum <guido@voorn.cwi.nl>
* README: added warning about bash bug in certain Slackware Linux
version
* Doc/lib*.tex: reorganized into more subject-related chapters;
rewritten abstract and introduction
* Doc/myformat.sty: define \dfn{} as \em instead of \sl
* Modules/config.c.in: moved decl of realmain() out of #ifdef
* Python/pythonrun.c (print_error): added fflush(stdout) to
print_error() so output doesn't get mangled when stdout and stderr
are redirected to the same file
* Modules/selectmodule.c: fix subtle refcnt bugs with fd2obj
arrays (R Lindsay Todd)
* Include/object.h, Object/{tupleobject.c,stringobject.c},
Python/ceval.c: fix ref-count debugging (R Lindsay Todd)
* Python/sysmodule.c (sys_checkinterval): initialize to 10 as
before (major speed up!)
* Modules/cdmodule.c: use newgetargs; removed sbtoa() and
timetoa(); added msftoframe(); added constants that used to be in
standard module CD (Sjoerd)
* Modules/posixmodule.c: added WNOHANG constant
Fri Mar 24 14:55:48 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Lib/nntplib.py: rename debug() to set_debuglevel() as for
ftplib.py
Thu Mar 23 11:10:24 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Lib/posixfile.py (open): make mode default to 'r' and add
optional bufsize
========================================
==> Release 1.2 BETA 4 (21 Mar 1995) <==
========================================
Tue Mar 21 13:28:32 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Python/ceval.c (call_object): removed #ifdef'ed out code
Mon Mar 20 17:14:14 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Lib/copy.py (_copy_dispatch): fix typo in hasattr() exprs
Sat Mar 18 00:04:14 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Makefile.in: change -f Makefile.in to -f $(srcdir)/Makefile.in
Fri Mar 17 10:52:07 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Lib/tkinter/Tkinter.py: add TkVersion and TclVersion variables;
handle crash in callback different (don't drop into debugger); add
_getdoubles() and streamline _getints()
* Doc/lib*.tex: mass update
* Doc/partparse.py: fix several small things so it doesn't crash
so easily
* Modules/threadmodule.c: change exit_thread so it raises
SystemExit -- this allow proper cleanup in t_bootstrap
* Makefile.in (distclean): add -f Makefile.in (John Interrante)
Thu Mar 16 13:35:25 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Doc/ref*.tex: made palatable to latex2html -- basically rewrote
all math using \code{} and \var{} (and pow() and some integer
literals), and added braces to some \item[]s containing \tt
* Modules/socketmodule.c: fixed up comments describing interface
* Lib/test/test_signal.py: new module to test signal module
Wed Mar 15 11:07:43 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Modules/signalmodule.c (PySignal_Signal): use PyCallable_Check
where suitable; split some lines
* Lib/posixfile.py (open) defaults mode='r', bufsize=-1
Tue Mar 14 10:42:39 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Lib/copy.py: rename copy.Error to copy.error
* Lib/cgi.py: correct some typos that broke escape() and print_form()
* Lib/string.py: add (unsupported) optional base argument to
atoi() and atol(); be more careful about very negative start
indices in [r]find() and count()
* Modules/timemodule.c: tiny additions for Windows 3.1
* Modules/gdbmmodule.c: plugged some memory leaks (Steve Clift)
* Modules/socketmodule.c (makefile): made mode optional and added
optional buffer size, like built-in open()
Mon Mar 13 11:26:20 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Lib/pickle.py: added ability to pickle classes (could be used
for exceptions in RPC); made format_version non-hidden variable,
added compatible_formats variable, added shorthand functions
dump(), load(), dumps() and loads() -- similar to marshal
* Python/pythonrun.c (fatal): In NT, write msg to debugging device
* Doc/lib*.tex: small changes by Soren Larsen
Thu Mar 9 15:06:02 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Lib/pickle.py: added explicit exception for unpicklable object
type: PicklingError; raise EOFError when end of file read
* Lib/profile.py: runcall(): return the function's return value
* Lib/rexec.py: support calling __import__ with 4 args
* Lib/shelve.py: fix typo in close() (self.db should be self.dict)
* Python/{ceval.c,marshal.c}: optimized many calls to get/set
tuple items
* Include/{tupleobject.h,rename2.h}: added SETTUPLEITEM macro and
added cast to GETTUPLEITEM
* Objects/{stringobject.c,mappingobject.c}: a few peephole
optimizations
* configure(.in): added test for CC value not matching cache
* Modules/tkintermodule.c: add casts to malloc() calls in
tkintermodule.c
* Moved Demo/bgen, Demo/freeze, Demo/modulator and most of
Demo/script to new Tools/ directory
* Doc/ext.tex: revised for new naming; added new section on
reference counting
* Doc/lib*.tex: revised much of the library documentation
* Doc/ref*.tex: corrected typos and other small errors in the
reference manual
* Doc/tut.tex: corrected typos and small errors, and added a
chapter on new features in release 1.2
* Extensions/X11: MANY (incompatible) changes by Sjoerd
* Most header files, Include/allobjects.h: changed the way
DL_IMPORT is used -- it now has the object's type as a parameter
(this is done for Borland C)
* Many places: small changes for MPW and CFM-68K on the Mac
* Include/mymath.h: new header to be used instead of <math.h>
* Include/pythonrun.h: added decl for Py_FatalError()
* Include/rename2.h: added PyImport_ExecCodeModule
* Lib/cgi.py: general cleanup; translate & to "&"
* Lib/{compileall.py,tb.py,traceback.py}: don't break on class
exceptions
* Lib/types.py: added DictType as alias for DictionaryType
* Lib/cddb.py: write track artist info if given
* Lib/{pdb.py,wdb.py,stdwin/wdbframewin.py}: don't break on class
exceptions; added runeval(), generalized run to allow optional
context; deprecate runctx()
* Lib/test/{test_b1.py,test_grammar.py}: cope with 'math' not
existing; don't fail if overflow check doesn't work
* Mac/*: too many changes to log; we now support about 5 compilers
(Think C, MPW, MPW with Symantec C, CodeWarrior 68K, CodeWarrior
PPC)
* Misc/python-mode.el: cope with triple-quoted strings (sez Barry)
* Modules/Makefile.pre.in: don't exit Make if 'sharedmods' for
loop fails
* Modules/Setup.in: move posix, signal, thread and gl permanently
ahead of #*noconfig*, to avoid confusion
Mon Feb 20 13:48:50 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Objects/stringobject.c (formatstring): allow string without
formats and dictionary argument
Fri Feb 17 12:00:29 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Python/bltinmodule.c (do_pow): fixed bogus test for negative
number to the float power
* Python/ceval.c (eval_code): fix SystemError in try-finally when
a class exception was raised
* Demo/stdwin/python.py, Lib/stdwin/wdbframewin.py, Lib/pdb.py,
Lib/tb.py, Lib/traceback.py: cope with class exceptions when
printing or formatting them (R Lindsay Todd)
Thu Feb 16 11:21:45 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Doc/libshelve.tex: added/reorganized list of restrictions
* Doc/libsocket.tex: added quick list of new exported symbols
* Demo/sockets/{mcast.py,broadcast.py}: don't use modules SOCKET
or IN -- all symbols are now exported by the socket module itself
* Modules/socketmodule.c (initsocket): added INADDR_* symbols
* Include/object.h: added missing decls for PyObject_IsTrue() and
PyCallable_Check()
Wed Feb 15 14:43:24 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Python/compile.c (com_addopname): use = instead of == for
assignment
* Modules/config.c.in (COMPILER): removed bogus ## in front of
__VERSION__
* Doc/{lib.tex,libpickle.tex,libcopy.tex,libshelve.tex}:
documented some new modules (cheaply -- by slightly reformatting
their __doc__ strings)
* Lib/builtin.py: got rid of it
* Doc/tut.tex: added sections on new stuff in release 1.2
* Doc/libsignal.tex: added a lot more details about how this
works.
Tue Feb 14 13:57:28 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Python/marshal.c (w_object): change long i, n to int -- should
solve GCC problems on DEC Alpha (Paul Sijben)
* Python/{ceval.c,bltinmodule.c}: call __import__ with 4
arguments: modulename, globals, locals, list_of_from_names_or_None
(for Ken Manheimer)
* Python/ceval.c (eval_code): call locals_2_fast before doing
import from (Jim Roskind)
========================================
==> Release 1.2 BETA 3 (13 Feb 1995) <==
========================================
Mon Feb 13 12:39:16 1995 Guido van Rossum <guido@voorn.cwi.nl>
* README: removed remark on NeXT and -posix since this is now done
by configure
* Mac/config.c, Modules/config.c.in (getversion): tack compiler
name and version (where known) onto version string
* Objects/floatobject.c: work-around for NeXT Sparc 3.3 prerelease
(Barry Warsaw)
Fri Feb 10 17:08:35 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Objects/object.c (newvarobject), Include/objimpl.h: make size
argument signed
* Include/allobjects.h, several other files: introduce
Py_CHARMASK(c) which expands to c&0xff, or just c if characters
are unsigned. This should fix problems with passing negative
values to isspace() and friends for characters > 0x7f on systems
where 'char' is signed
Thu Feb 9 10:26:21 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Lib/copy.py: added __doc__ strings
* Lib/shelve.py: added __doc__ strings
* Lib/anydbm.py: added __doc__ strings and test for gdbm
* Include/longintrepr.h: remove untrue comment about
signed/unsigned ob_size
* Modules/mpzmodule.c (mpz_div_and_mod): add proper casts (Jim
Fulton)
Wed Feb 8 15:48:24 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Python/bltinmodule.c (do_pow), Objects/floatobject.c
(float_pow): move check for negative float to the float power to
the pow() function, so negative float to the integer power can be
implemented correctly (after coercion to float)
Tue Feb 7 10:14:34 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Python/import.c (init_frozen): make it non-static, so
frozenmain.c can use it. Also remove the reference to
frozenmain.o from Python/Makefile.in
* Doc/{ref6.tex,ref7.tex} (raise, except): describe classes and
instances used as exceptions (R Lindsay Todd)
* Lib/test/test_exceptions.py: added tests for raising classes (R
Lindsay Todd)
* Python/ceval.c (exec_statement): DECREF result of run_string
(Mark Lutz)
* Modules/cursesmodule.c: patches to clear errors between failing
calls to Arg_Parse (Steve Clift)
Fri Feb 3 13:48:12 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Lib/bdb.py (format_stack_entry): append () to function name if
no __args__
* Lib/pdb.py (print_stack_entry): default prompt_prefix is
line_prefix, and use the default everywhere
Thu Feb 2 15:27:15 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Python/pythonrun.c (print_error): print class name for
exceptions that are classes (R Lindsay Todd)
* Modules/tkintermodule.c: use PyCallable_Check instead of
manually checking for some callable types for callbacks; export
TK_VERSION and TCL_VERSION strings; a few Tk 4.0 specific changes
* Modules/socketmodule.c (initsocket): added a long list of socket
related constants -- better here than in a separate python module,
because the values change per system (R Lindsay Todd)
* Doc/{lib.tex,libsignal.tex}: added documentation for signal
module (Andrew Kuchling)
Tue Jan 31 13:06:59 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Include/pythonrun.h: remove declaration of (now static)
run_pyc_file
* Modules/posixmodule.c (posix_utime): correct typo in utime()
stub
Tue Jan 31 11:02:00 1995 Guido van Rossum <guido@guppie.cwi.nl>
* Modules/{pwdmodule.c,grpmodule.c} (mkpwent, mkgrent): NeXT
specific patch for little endian machines where the uid and gid
are in the wrong place in the structure (Mike Carlton)
Mon Jan 30 16:17:33 1995 Guido van Rossum <guido@voorn.cwi.nl>
* configure.in: add -posix to definition of CC when detecting Next
Mon Jan 30 13:32:07 1995 Guido van Rossum <guido@guppie.cwi.nl>
* Mac/*: not clearly logged are lots of changes to the Mac
specific modules, e.g. reworking of the interrupt detection code
and general reorganization of macglue.[ch], as well as support for
modules generated by "bgen" (see Demo/bgen), and subsequent
removal of the resource and sound interfaces from MacOS (since
they now have their own, complete, generated interface), and also
lots of development on the mactcp and macfs front
* Modules/stdwinmodule.c (initstdwin): disable python's own event
processing on the mac as soon as stdwin is imported; removed some
unused variables
* Parser/intrcheck.c: moved all mac specific stuff to
Mac/macglue.c
* Python/pythonrun.c (goaway): Think C mod to suppress pausing at
normal exit
* Python/import.c (imp_get_magic): fix glaring indexing bug
* Modules/dbmmodule.c (dbm_keys): fix memory leak and tighten
error checking (and redo lay-out)
Fri Jan 27 00:00:17 1995 Guido van Rossum <guido@zeus.cwi.nl>
* Objects/listobject.c: round up item count on resize to improve
realloc performance (dramatic effect in the Mac with Think C!)
* Include/{rename2.h,methodobject.h}, Objects/methodobject.c:
added support for chaining method lists: Py_FindMethodInChain
Thu Jan 26 12:59:51 1995 Guido van Rossum <guido@guppie.cwi.nl>
* Python/Makefile.in: removed frozenmain.o from OBJS -- it has no
business being in libPython.a. (Still build it though.)
Thu Jan 26 00:42:29 1995 Guido van Rossum <guido@zeus.cwi.nl>
* Lib/mhlib.py: fix bogus test for matching regex
* stdwinmodule.c: (re)move some unused variables
* Python/pythonrun.c (run_pyc_file): made static
(fatal): loop forever on Mac, so error message remains visible
* Python/import.c (doneimport): no need to dictclear() the
module's dictionary (that's done automatically when the module is
actually deleted)
* Objects/classobject.c (instancebinop): removed unused variables
* Objects/moduleobject.c (module_dealloc): explicitly erase a
module's dictionary when the module object disappears -- this was
formerly done in import's doneimport()
* Objects/object.c, Python/bltinmodule.c: moved callable() to
object.c (from static in bltinmodule.c) since it is generally
useful (and I needed it :-); removed some unused vars
Wed Jan 25 13:20:52 1995 Guido van Rossum <guido@zeus.cwi.nl>
* Modules/posixmodule.c (posix_utime): Be more robust in the light
of unusual types for uname struct members and 64-bit longs
* Python/ceval.c (eval_code): mods to allow using classes as
exceptions (R Lindsay Todd)
Mon Jan 23 20:48:16 1995 Guido van Rossum <guido@zeus.cwi.nl>
* configure.in (LDSHARED): add case for OSF/1 (Bob Kras);
(socket libraries): add conditional for IRIX 5, where -lsocket
exists but doesn't seem to work properly
* Python/compile.c (get_docstring): add missing case for
file_input, so __doc__ strings in modules work
Sun Jan 22 20:45:40 1995 Guido van Rossum <guido@zeus.cwi.nl>
* Modules/regexmodule.c (reg_dealloc): free the compiled pattern
buffer -- plugs a memory leak
Sun Jan 22 01:44:01 1995 Guido van Rossum <guido@zeus.cwi.nl>
* Modules/signalmodule.c (sigcheck): renamed to PyErr_CheckSignals
-- signal checking was broken because of this!
Sat Jan 21 15:10:08 1995 Guido van Rossum <guido@zeus.cwi.nl>
* Python/getargs.c (seterror): don't overwrite error if one is
already set (e.g. by O& handler)
(convertsimple1): return "(unspecified)" instead of empty string
for type description of "O&" object
Fri Jan 20 15:27:51 1995 Guido van Rossum <guido@zeus.cwi.nl>
* Modules/Makefile.pre.in (sharedinstall): add command to make the
$(DESTSHARED) directory
* README: change NeXT hint to add -posix to C compiler flags
* Python/import.c: document the fact that almost all functions
returning a module object (except add_module()) increment its
reference count, and add missing INCREF calls here and there
* Python/bltinmodule.c (builtin___import__): don't INCREF the
module -- import_module() has already done that
* Python/ceval.c (eval_code, RAISE_EXCEPTION): add missing INCREF
after gettupleitem() call (R Lindsay Todd)
* configure.in: added check for working getopt (R Lindsay Todd);
modernize all tests to use cache and report outcome (John
Interrante)
* Include/{classobject.h,listobject.h}: corrected two unconverted
names (found by John Interrante)
Thu Jan 19 01:31:46 1995 Guido van Rossum <guido@zeus.cwi.nl>
* configure.in (LDSHARED): added case for Sequent DYNIX (Jaap
Vermeulen)
* Mac/macglue.c (Pstring): truncate string to 255 bytes
* Objects/listobject.c (list_dealloc): Fix NULL dereference in
case of out-of-memory condition (Jack)
* Parser/intrcheck.c (intrpeek): new Mac specific routine to test
for interrupt without clearing the interrupt flag (Jack)
* Python/errors.c (strerror): #undef it first on the Mac (Jack)
* Lib/ftplib.py: don't break if os.environ doesn't exist (Jack)
* Modules/timemodule.c (inittime): fix memory leaks (should decref
new objects passed to dictinsert)
* Python/compile.c (optimize): fix memory leak (forgot to decref
localmap)
* Objects/funcobject.c (func_dealloc): fix memory leak (forgot to
decref func_name)
* Python/importdl.c: added changes for NetBSD dynamic linking
(David Hobley); removed shared linking for NeXT (incompatible with
the -posix flag)
* Modules/mathmodule.c: removed empty #ifdef macintosh...#endif
* Parser/parsetok.c (parsetok): avoid uninitialized memory read
* Mac: various stuff to port Jack's mods back to THINK C, as well
as my own changes for apple events
* Python/modsupport.c: support "O&" taking an object constructor
and a void* (sort of inverse of O& in getargs)
* configure.in, Makefile.in: mods to define and use
INSTALL_PROGRAM and INSTALL_DATA as well as INSTALL (John
Interrante)
Wed Jan 18 12:01:20 1995 Guido van Rossum <guido@zeus.cwi.nl>
* Mac: lots of new stuff checked in by jack
* configure.in: added test for genuine getopt (R Lindsay Todd)
* Python/Makefile.in: removed getopt.o from OBJS (but left in
getopt.o: getopt.c rule)
* Python/getopt.c: don't use function prototypes (Anthony Baxter)
* Modules/arraymodule.c: make the routines static now that their
forward declarations are! (Anthony Baxter)
========================================
==> Release 1.2 BETA 2 (17 Jan 1995) <==
========================================
Tue Jan 17 11:24:23 1995 Guido van Rossum <guido@zeus.cwi.nl>
* Include/patchlevel.h: set version to 1.2-beta-2
* Python/Makefile.in: added getopt to list of objects
* Makefile.pre.in: be more careful about building
Modules/Makefile.pre
* Objects/floatobject.c: test for __STDC__ instead of macintosh de
decide whether to declare fmod() and pow() -- this works in
mathomodule.c so why not here...
* Objects/rangeobject.c: made a few things static
* Objects/longobject.c, Include/{longobject.h,rename2.h}:
long_scan is now a macro that calls long_escan; long_scan no
longer exists
* Objects/object.c (strobject): use tp_str and only try __str__ if
it's an instance
* configure.in: hopefully final changes for Sequent's -linet
* README: add hint for NeXT users to use --without-gcc
* Python/{bltinmodule.c,ceval.c}, Objects/frameobject.c:
initialize __builtins__ from built-in *module* instead of *dict*,
to prevent interactive vars() call to loop recursively
* Python/bltinmodule.c: fix Alpha bug in range and xrange --
sizeof(int) != sizeof(long)
* Python/mystrtoul.c: include rename2.h
* Modules/*: made things static and general clean-up for new
naming scheme
* Include/*.h: new names for lots of new functions
* Lib/rexec.py: no need for distrusting dir() or vars(), changed
open() to allow everything (for reading) except /etc/*
* Mac/macmain.c: include rename2.h
* */Makefile*in: added harmless $& to $(LIB) target for Sequent
parallel make
* Parser/tokenizer.c: fix loop on unterminated triple quotes
* Parser/intrcheck.c: made 'interrupted' flag static again
* Objects/listobject.c (list_ass_slice): free recycling bin when
making early exit due to memory error
* Objects/listobject.c, Include/{listobject.h,rename2.h}: added
reverselist, C interface to list.reverse().
* Object/listobject.c (list_ass_slice): fixed re-entrancy bug
(noticed by Jim Roskind)
Sat Jan 14 11:21:29 1995 Guido van Rossum <guido@zeus.cwi.nl>
* Python/modsupport.c (PyEval_CallMethod): changed method argument
name to methodname -- since method is also a typedef and some
compiler choke on this (e.g. HP) (Andrew Kuchling)
* Python/thread.c: added #include thread_nt.h (Mark Hammond)
* Demo/scripts/h2py.py: support $include or $INCLUDE path instead
of only using /usr/include (Mark Hammond)
* Python/ceval.c (eval_code/PRINT_EXPR): fix messed output when
x.__repr__() prints something and repr(x) is called at the prompt
========================================
==> Release 1.2 BETA 1 (12 Jan 1995) <==
========================================
Thu Jan 12 12:27:23 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Python/pythonrun.c (initmain), Python/import.c
(exec_code_module): use getbuiltins(), not getbuiltindict() to
initialize new modules
* Python/ceval.c (getbuiltins): return getbuiltindict() instead of
NULL if no current frame
* Modules/cryptmodule.c: removed redundant include of modsupport.h
* Modules/signalmodule.c: remove unwanted trigraph from comment
* Modules/Setup.in: clarify status of dlmodule.c
* Objects/object.c (cmpobject): properly implement cmp() for class
instances
Wed Jan 11 10:56:12 1995 Guido van Rossum <guido@voorn.cwi.nl>
* README: removed references to --with-svr4; added docs for
--without-gcc
* Modules/mathmodule.c: rearrange declarations somewhat
Tue Jan 10 11:34:23 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Include/*.h, Python/getmtime.c, Modules/<several>.c: THE GREAT
RENAMING (inspired by Jun Hamano). One now either includes
"Python.h" and then uses new names only, or one includes
"allobjects.h" and uses old names. "rename1.h" no longer exists;
instead, "rename2.h" performs the reverse mapping.
* Python/bltinmodule.c (builtin_filter): fix subtle refcount big
in filter() (Tim MacKenzie)
* Include/mymalloc.h, Modules/{Makefile.pre.in,config.c.in}:
change to make things palatable for C++ (Tim MacKenzie)
* Modules/socketmodule.c: only call hstrerror() if it exists
* Modules/tkintermodule.c: added interface to Tk_DoOneEvent() (R
Lindsay Todd)
* Objects/longobject.c (long_pow): some defensive programming
(Eric Siegerman)
* Objects/intobject.c (int_pow): fix memory leak in ternary pow()
(Eric Siegerman)
* Modules/posixmodule.c (posix_fdopen, posix_popen): add optional
argument to specify buffer size as for __builtin__.open(); also
make mode argument optional (default "r")
* Objects/classobject.c (instance_coerce): implement coercions
involving instances properly
* Objects/object.c, Python/bltinmodule.c: moved coerce() to
objects.c, where it belongs
* Doc/libfuncs.tex: added execfile(); reformulated eval() somewhat
* Python/bltinmodule.c (builtin_{execfile,eval}): fix
globals/locals defaults to match the manual again; also allow None
to mean the same as the default
* Lib/nntplib.py: fix comments for list command (should be last,
first instead of first, last)
* Lib/test/test_grammar.py: fix exec test so presence of
__builtins__ doesn't break it
Mon Jan 9 14:20:16 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Objects/{funcobject.c,methodobject.c,classobject.c}: don't
expose certain internals (e.g. __dict__) in restricted mode.
* Python/thread_pthread.h: Alpha OSF/1 fix
* Python/importdl.c (load_dynamic_module): removed bogus check for
reloading of dynamically loaded modules (tested uninitialized
local variable)
* Include/{frameobject.h,ceval.h,bltinmodule.h,rename1},
Python/{ceval.c,import.c,pythonrun.c,bltinmodule.c},
Object/frameobject.c: changed handling of builtins. Each frame
now has a pointer to the dictionary of builtins to be used in that
frame, initialized from __builtins__ in the globals passed to the
frame. Only run_node() and exec_code_module() initialize
__builtins__ to the dictionary of the real __builtin__ module.
Furthermore, a frame is in "restricted" mode if its builtins are
not the real __builtin__ module. In restricted mode, some other
modules and object types restrict their interfaces. Subtle
change: eval_code() no longer automatically fills in the default
globals; this must be done by the caller (who can then also
explicitly stick in the builtins if needed). bltinmodule.c no
longer exports {get,set}builtin() but instead exports
getbuiltindict(). ceval.c export getbuiltins() and
getrestricted() in analogy of getglobals().
* Include/sysmodule.h, Python/{sysmodule.c,ceval.c},
Doc/libsys.tex: change sys.check_interval Python variable into
Python function sys.setcheckinterval(interval) and C variable
sys_checkinterval
* Mac/macosmodule.c: use new getargs interface; add
{Get,Set}FileInfo
Sat Jan 7 09:40:24 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Python/compile.c: support import A.B...Z; added doc strings to
modules, classes and function
* Python/ceval.c: use new instancebinop interface
* Python/bltinmodule.c: restructured coerce(), divmod(), pow() to
use new instancebinop interface
* Objects/classobject.c: added 5th (function) parameter to
instancebinop, to support things like Rational * float; added
documentation strings to classes and methods
* Objects/methodobject.c: changed drastically, the object now
contains a pointer to the struct methodlist (which must be
static); added attributes __name__, __doc__ and __self__
* Objects/funcobject.c: added __doc__ attribute (alias func_doc),
initialized from first constand in code object if it is a string,
else to None
* Objects/moduleobject.c: initialize __doc__ to None
* Objects/typeobject.c: added getattr(), supporting __doc__ and
__name__
* Objects/object.c: raise AttributeError, not TypeError for object
without attributes
* Python/modsupport.c, Include/modsupport.h: add doc string
parameter to initmodule3 (renamed from initmodule2); new
newmethodobject() interface
* Modules/signalmodule.c (initsignal): don't call
newmethodobject() directly -- rely on initmodule()
* Modules/newmodule.c: rationalize argument checking, redo
lay-out, add __doc__ strings
* Include/object.h: added tp_str (to implement str()), tp_doc, and
some dummy fields
* Include/methodobject.h: added ml_doc member to struct methodlist
and renamed ml_varargs to ml_flags; changed newmethodobject() to
take a struct methodlist * argument instead of individual parts;
got rid of ML_FREENAME again
* Include/funcobject.h: added func_doc struct member
* Include/classobject.h: added 5th (function) parameter to
instancebinop, to support things like Rational * float
* Grammar/Grammar: changed import to support NAME.NAME...NAME
* Python/importdl.c (load_dynamic_module): NT dlls have extension
.pyd, not .dll
Thu Jan 5 11:00:13 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Demo/scripts/mboxconvert.py: invent Message-ID if none present
Wed Jan 4 18:23:09 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Python/modsupport.c (initmodule2), Include/methodobject.h,
Objects/methodobject.c: introduced METH_FREENAME bit passed to
newmethodobject to indicate that if the object is freed the name
pointer must also be freed (this saves a long standing memory leak
in initmodule2)
* Modules/structmodule.c (struct_pack, struct_unpack): use memcpy
instead of double precision assignment (since a string isn't
always double-aligned, e.g. when debug fields are present in the
object header)
* Objects/floatobject.c (float_hash): changed a constant to avoid
float->long conversion overflow
* Python/bltinmodule.c (builtin_pow): fix coerce() ref count
nightmare (core dumps on Linux)
* Python/pythonrun.c: call flushline() in print_error(), after
fetching the exception info, since flushline() can mask an
exception; move flushline() calls around so they are not between
the detection and printing of the exception
Tue Jan 3 12:55:28 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Modules/config.c.in (getcopyright): Change copyright to include
1995
Mon Jan 2 20:15:39 1995 Guido van Rossum <guido@voorn.cwi.nl>
* Objects/mappingobject.c (mappingremove): don't call
lookmapping() for empty dictionary
* Doc/libsocket.tex (section{Built-in Module \sectcode{socket}}):
documented gethostbyaddr()
* Modules/mpzmodule.c (mpz_power): made it ternary
* Modules/mathmodule.c: only use hypot() if it exists
* Modules/Makefile.pre.in (sharedinstall): fix bug (sh can't loop
over empty list) when $(SHAREDMODS) is empty
* Python/errors.c: added hook for better mac error messages
* Python/pythonrun.c (run_script): removed extraneous fclose() in
case of .pyc file argument
* Include/{object.h,stringobject.h}: changed refcnt and sizes from
unsigned to int (i.e. signed)
* Objects/fileobject.c (newfileobject): use HAVE_FOPENRF instead
of USE_FOPENRF
* Lib/test/test_b1.py: test eval() and execfile() with globals,
locals arguments
* Lib/mhlib.py: added movemessage(), copymessage(), added copy
fallback for refilemessages(), and updated the docs
Fri Dec 30 16:19:17 1994 Guido van Rossum <guido@voorn.cwi.nl>
* Parser/tokenizer.c (tok_nextc): zap tok->buf after freeing
* Include/traceback.h: added struct _frame declaration for ANSI C
* Include/bitset.h: move definition of testbit() around
Thu Dec 29 10:09:25 1994 Guido van Rossum <guido@voorn.cwi.nl>
* Objects/mappingobject.c (mapping_has_key): don't call
lookmapping() for empty dictionary
* Modules/Makefile.pre.in: use new style @prefix@ substitution
(sharedinstall): fix case of loop over empty $(SHAREDMODS)
* Several files: removed redundant variables etc. (Sam Leffler)
Wed Dec 28 12:09:10 1994 Guido van Rossum <guido@voorn.cwi.nl>
* Modules/threadmodule.c (t_bootstrap): XDECREF the return value;
(thread_exit_thread): DECREF the frame returned by save_thread()
* Modules/md5module.c, Doc/libmd5.tex: renamed md5.md5() to md5.new()
Wed Dec 21 13:30:47 1994 Guido van Rossum <guido@voorn.cwi.nl>
* Python/ceval.c (build_class): add hook for Donald Beaudry
Mon Dec 19 17:35:13 1994 Guido van Rossum <guido@voorn.cwi.nl>
* Doc/libposixfile.tex: the fileopen function was erroneously
documented as openfile
Tue Dec 13 11:46:03 1994 Guido Van Rossum <guido@tesla>
* config.h.in, configure: rewritten *by* autoconf 2.0
* configure.in: parts rewritten for autoconf 2.0; strip spaces
from uname output for QNX; test for some new things like
ftruncate, truncate and va_list as array
* acconfig.h: some reordering to get things in alphabetical order;
added GETTIMEOFDAY_NO_TZ and VA_LIST_IS_ARRAY
* README: Added SCO notes
* Python/thread_solaris.h (start_new_thread): create new threads
with THR_DETACHED option instead of THR_NEW_LWP -- else there's a
limit to the number of threads you can create in total, ever, per
process
* Python/traceback.c (tb_print): don't store in sys.last_traceback
(that's done in pythonrun.c:print_error() now)
* Python/pythonrun.c (print_error): use fatal() instead of
abort(); use err_fetch() instead of err_get(); call tb_print()
instead of going through ceval.c:printtraceback()
* Python/modsupport.c: fix vmkvalue() for systems where va_list is
an array; add support for creating lists and dictionaries; added
convenience functions for calling functions/methods with format
and argument list
* Python/marshal.c (rd[s]_object): add trap for calls while an
exception condition is still set
* Python/{import.c,importdl.c}: completely restructured: moved
all dynamic loading stuff to importdl.c; added public interface
to the functionality through module 'imp' (for __import__ hack)
* Modules/threadmodule.c (t_bootstrap): fix leak of result value
(still a massive leak left I think)
* Python/errors.c: don't declare strerror on NT
* Python/getargs.c (vgetargs[1]): fix for systems where va_list
is an array
* Python/compile.c: use fatal() instead of abort(); use
err_{fetch,restore}
* Python/ceval.c: move some (X)DECREF's around for improved
re-entrancy; call built-in __import__ to implement IMPORT_NAME;
use err_{fetch,restore}; fix call to __rshift__ in __lshift__;
check for string left arg before anything else in rem()
* Python/ceval.c, Include/ceval.h: get rid of printtraceback
* Python/bltinmodule.c: added __import__ built-in function;
restructured argument parsing of most built-ins to use
newgetargs()
* Python/Makefile.in: add importdl.o to OBJS; special-case
compilation of importdl.c instead of import.c
* Parser/{pgen.c,parser.c,grammar.c}: use fatal() instead of abort()
* Objects/object.c: use fatal() instead of abort()
* Objects/mappingobject.c: fix re-entrancy bugs (allow ma_table
and ma_size to be 0)
* Objects/listobject.c: fix some re-entrancy bugs (not complete)
* Objects/frameobject.c: use err_{fetch,restore} everywhere; use
fatal() instead of abort()
* Objects/fileobject.c (file_truncate): new method (only of
ftruncate() is in libc)
* Objects/classobject.c (instance_getattr): add err_clear() when
retrying after failing instance_getattr1() call; use
err_{fetch,restore} everywhere
* Modules/tkintermodule.c: use PyErr_{Fetch,Restore} instead of
{GetAndClear,SetObject}; fix NULL dereference in TimerHandler