0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 11:15:56 +01:00
Commit Graph

106 Commits

Author SHA1 Message Date
Guido van Rossum
a9df32ab2a Minor changes. 1991-12-31 13:13:35 +00:00
Guido van Rossum
54a41d6366 Don't rely on <string.h> 1991-12-24 13:29:10 +00:00
Guido van Rossum
4135e78204 Use IOError and ImportError when import fails. 1991-12-24 13:26:56 +00:00
Guido van Rossum
86d8e63433 EOF while parsing should raise EOFError, not SyntaxError. 1991-12-24 13:26:15 +00:00
Guido van Rossum
98256aa518 Negative subscript are now allowed as in slices.
Added ImportError.
1991-12-24 13:25:19 +00:00
Guido van Rossum
ed7711b7cb Sorted exceptions; added ImportError. 1991-12-24 13:24:53 +00:00
Guido van Rossum
6e93c07a06 Change RuntimeError into IOError when module file not found on reload. 1991-12-16 15:43:47 +00:00
Guido van Rossum
fb905c3ebf Regularize exceptions. 1991-12-16 15:42:38 +00:00
Guido van Rossum
efb087b13f Changed some RuntimeErrors. 1991-12-16 15:41:41 +00:00
Guido van Rossum
c06022966f Add "varargs" attribute. 1991-12-16 13:07:24 +00:00
Guido van Rossum
3ddee714d1 New magic word; and check it. 1991-12-16 13:06:34 +00:00
Guido van Rossum
b954c2c39f Use SyntaxError. 1991-12-16 13:05:50 +00:00
Guido van Rossum
288a60f973 New argument passing. 1991-12-16 13:05:10 +00:00
Guido van Rossum
9c7b861a00 New argument passing mechanism. 1991-12-16 13:04:47 +00:00
Guido van Rossum
c02e15c45e Added "apply"; added "SyntaxError"; changed table lay-out. 1991-12-16 13:03:00 +00:00
Guido van Rossum
7177657bf2 Added sys.version object. 1991-12-10 14:00:21 +00:00
Guido van Rossum
87e7ea72a6 Use new exceptions. 1991-12-10 14:00:03 +00:00
Guido van Rossum
c5e96291d0 Implement 'global' and new class syntax. 1991-12-10 13:53:51 +00:00
Guido van Rossum
32c6cdf776 Added STORE_GLOBAL and DELETE_GLOBAL.
Exceptions may now also be tuples.
1991-12-10 13:52:46 +00:00
Guido van Rossum
50afb7a216 Added new exceptions. 1991-12-10 13:52:31 +00:00
Guido van Rossum
7928cd7636 Added shift and mask ops. 1991-10-24 14:59:31 +00:00
Guido van Rossum
006bcd42ac Made dir() more robust.
Added hex() and oct().
1991-10-24 14:54:44 +00:00
Guido van Rossum
7e3090cf08 newclassobject() gets a third argument 1991-10-20 20:26:16 +00:00
Guido van Rossum
2f1d87e9c2 Added __members__ secret attribute 1991-10-20 20:24:14 +00:00
Guido van Rossum
5063bab973 Check for EINTR and turn it into KeyboardInterrupt
in err_errno().
1991-10-20 20:14:56 +00:00
Guido van Rossum
01cfd447d0 Comment out 'abort()' call.
Changed comparison operators.
1991-10-20 20:12:38 +00:00
Guido van Rossum
dc8a108a36 Protect dir() against non-directory __dict__ attributes. 1991-10-20 20:11:03 +00:00
Guido van Rossum
c5da350310 getlonglongargs --> getlonglongarg
Added getlongobjectarg.
1991-09-10 14:56:32 +00:00
Guido van Rossum
b881314b6f Use dict2lookup. 1991-08-16 09:01:55 +00:00
Guido van Rossum
f0ada4a130 Use more dict2 functions./ 1991-08-16 09:01:08 +00:00
Guido van Rossum
831632507a Use dmore dict2lookup. 1991-08-16 08:58:43 +00:00
Guido van Rossum
df62e44f38 Changed many calls to dict stufff to dict2 variants.
*** Somehow the call to printobject was changed back to fwrite?!?! ***
1991-08-16 08:56:04 +00:00
Guido van Rossum
a57fb011f1 Change getbuiltin interface to get the name as an object;
call dict2lookup insteead of dictlookup.
1991-08-16 08:54:58 +00:00
Guido van Rossum
139e57b2a4 Support for long integers 1991-07-27 21:39:31 +00:00
Guido van Rossum
ef098519ed New grammar (semicolons, continue, no multiple NEWLINES) 1991-07-27 21:37:24 +00:00
Guido van Rossum
4bad92cc8a New syntax: semicolons, continue statement.
For the latter we must keep track of the current block's type.
(We can't continue through a try statement, sigh.()
1991-07-27 21:34:52 +00:00
Guido van Rossum
76a00af3f2 Support for long integers 1991-07-27 21:34:00 +00:00
Guido van Rossum
83bf35cb27 Add interface to call a Python function (or other callable) object
from C.
1991-07-27 21:32:34 +00:00
Guido van Rossum
a60810973d Call printobject instead of fwrite to print strings. 1991-07-22 11:48:07 +00:00
Guido van Rossum
ef0068ff9d Added getintintintarg() (3 int args) 1991-07-01 18:47:30 +00:00
Guido van Rossum
efc0bd02e5 Check for identical types before comparing objects to see if they
are the same -- 0 and 0.0 compare equal but should be considered different
here!
1991-07-01 18:44:20 +00:00
Guido van Rossum
89d55cad95 Call coerce() in arithmetic operations, to support mixed mode arithmetic 1991-07-01 18:43:13 +00:00
Guido van Rossum
c6bb8f7ab2 Add and use coerce() routine for mixed mode arithmetic 1991-07-01 18:42:41 +00:00
Guido van Rossum
d6a15ada72 Generalize to macintosh. 1991-06-24 22:30:42 +00:00
Guido van Rossum
247ff718df Don't use printobject() to print a string (filename).
Print ';' instead of ',' between file and line for MPW.
1991-06-24 22:25:27 +00:00
Guido van Rossum
d783a46d73 printobject now returns an error code 1991-06-07 22:35:42 +00:00
Guido van Rossum
909336104b printobject now returns an error code 1991-06-07 16:10:43 +00:00
Guido van Rossum
689e701919 Add run_command() to implement "-c command". 1991-06-07 13:59:53 +00:00
Guido van Rossum
64b4552069 Add marshalling for dictionaries. 1991-06-07 13:58:22 +00:00
Guido van Rossum
065d71e271 Declare errno, for prehistoric systems. 1991-06-04 20:23:28 +00:00