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
Guido van Rossum
dce2e3d8f5
Initial revision
1991-06-04 19:42:30 +00:00
Guido van Rossum
a082ce40a6
Changed and exported newcodeobject() interface, for ".pyc" files.
1991-06-04 19:41:56 +00:00
Guido van Rossum
3caa6e35cf
Added fclose to newopenfileobject() calls.
1991-06-04 19:40:59 +00:00
Guido van Rossum
c405b7b2fa
Support ".pyc" files: cached compilation results.
...
(Similar to Emacs ".elc" files.)
1991-06-04 19:39:42 +00:00
Guido van Rossum
2cfd356f0a
Removed Think C 3.0 stuff and wish list.
1991-06-04 19:38:58 +00:00
Guido van Rossum
067b9c0aef
Remove test for unimplemented sq_repeat method (see tupleobject comments)
1991-06-04 19:36:54 +00:00
Guido van Rossum
ad40531aa1
Fix conversion of double to long; stylistic changes.
1991-06-03 10:58:01 +00:00
Guido van Rossum
fb8edfce22
Don't optimize <string> and <stdin> code
1991-05-14 11:56:03 +00:00
Guido van Rossum
4965bc8ac4
Declare ticker as int; made testbool generic for all numeric types
1991-05-14 11:51:49 +00:00
Guido van Rossum
eb4361af6c
Defined path delimiter for MS-DOS as semicolon
1991-05-05 20:14:35 +00:00
Guido van Rossum
175a9ea8c8
Pre-define MS-DOS separator
1991-05-05 20:07:59 +00:00
Guido van Rossum
e3a204fe47
Added long integer support.
1991-05-05 20:05:35 +00:00
Guido van Rossum
e8122f19a0
Renamed class methods to instance methods (which they are)
1991-05-05 20:03:07 +00:00
Guido van Rossum
d4905454cc
Added long() and support for longs in int() and float();
...
turned abs() and divmod() into generic versions;
added pow().
1991-05-05 20:00:36 +00:00
Guido van Rossum
753e2bfbbf
Initial revision
1991-04-16 08:45:40 +00:00
Guido van Rossum
a5900aa549
Move allobjects.h to front (needed by THINK C precompiled headers)
1991-04-16 08:42:06 +00:00
Guido van Rossum
0a697f686f
BUGFIX! Instructions are unsigned bytes.
1991-04-16 08:39:12 +00:00
Guido van Rossum
26203aa422
Use fileobject's filegetline() to implement unlimited raw_input().
1991-04-04 15:20:41 +00:00
Guido van Rossum
e6c67a7263
Added isatty() for MPW.
1991-04-04 10:47:59 +00:00
Guido van Rossum
282914b7b0
Added error checking for numeric constants; added local/global variable
...
optimization.
1991-04-04 10:42:56 +00:00
Guido van Rossum
374a92261b
Moved support functions after main function; added prototypes;
...
Fixed 'needspace' hack to use a flag in the stdout file object;
added local and global variable lookup cases.
1991-04-04 10:40:29 +00:00
Guido van Rossum
7a904edcbf
Moved get*doublearg() routines here from mathmodule.c
1991-04-03 19:06:26 +00:00
Guido van Rossum
66f1fa83f1
Added forward declaration (to satisfy Standard C).
1991-04-03 19:03:52 +00:00
Guido van Rossum
62d4624ea3
Create code string with initial size of 1000 instead of 0.
1991-04-03 19:00:23 +00:00
Guido van Rossum
b8824952cb
Define and use GETNAMEV macro.
1991-04-03 18:59:50 +00:00
Guido van Rossum
e7ef22ef41
Include patchlevel.h (to ensure it is distributed with the rest).
1991-03-06 13:09:35 +00:00
Guido van Rossum
f70e43a073
Added copyright notice.
1991-02-19 12:39:46 +00:00
Guido van Rossum
7927384a1d
Added version that opens a pipe to /bin/pwd.
1991-02-19 12:28:18 +00:00
Guido van Rossum
7f133ed073
Call the init function of a built-in module here.
...
,
1991-02-19 12:23:57 +00:00
Guido van Rossum
865828d7cf
Reversed min and max (to alphabetical order).
1991-02-19 12:21:50 +00:00
Guido van Rossum
4c4177865d
Fix bug in input(); add comments to cases in compile().
1991-01-21 16:09:22 +00:00
Guido van Rossum
86cd6e646e
File name shortening.
1991-01-21 15:12:35 +00:00
Guido van Rossum
de9775af8f
Initial revision
1991-01-21 14:27:52 +00:00
Guido van Rossum
73531a3bae
Return -1 for errors.
1990-12-20 23:12:40 +00:00
Guido van Rossum
6c4f4a92ac
Changes for THINK C 4.0.
...
Don't call inittime() and initmath(), let config_*.c decide about those.
1990-12-20 23:11:33 +00:00
Guido van Rossum
f22120ab74
Changed include of <errno.h>
1990-12-20 23:05:40 +00:00
Guido van Rossum
40d0b7e904
Change div() into divide(); div() is a Standard C function.
1990-12-20 23:03:11 +00:00
Guido van Rossum
3f5da24ea3
"Compiling" version
1990-12-20 15:06:42 +00:00
Guido van Rossum
5b3138bec0
Empty all modules' symbol tables, so most circular references are
...
cleared up.
(A function definition references its module's symbol table but
the symbol table of course references the function...)
1990-11-18 17:41:40 +00:00
Guido van Rossum
c6aa9e90ad
Some extra DECREFs.
1990-11-18 17:40:32 +00:00
Guido van Rossum
3304975647
Add extra DECREF.
1990-11-18 17:36:26 +00:00
Guido van Rossum
d6f3bc2aae
Compile class definitions.
...
Document and fix code generation for try statements.
Use two bytes for all arguments.
Avoid duplicate entries in lists of constants and names.
1990-11-18 17:35:03 +00:00
Guido van Rossum
e9736fc8a1
Free parse tree after compiling.
...
Added support for class definitions.
Reorganized main interpreter loop to fetch op and arg once at the head.
Use two bytes for arguments (see ceval.c).
1990-11-18 17:33:06 +00:00
Guido van Rossum
da0c6bdfe3
Moved configuration-dependent initializations (etc.) to config_*.c
1990-11-18 17:28:24 +00:00
Guido van Rossum
10dc2e8097
Initial revision
1990-11-18 17:27:39 +00:00
Guido van Rossum
f1ac403c4d
Reformulated err_badarg error message.
1990-11-09 15:05:53 +00:00
Guido van Rossum
3d54f2d3d9
Added provision for THINK C which doesn't have sys_nerrors or sys_errlist.
1990-11-02 17:51:17 +00:00
Guido van Rossum
f5401bd49e
Added prototype for strerror.
1990-11-02 17:50:28 +00:00
Guido van Rossum
3ccb6172f8
removed dir statement. Function arguments may now be tests.
1990-10-26 15:01:05 +00:00
Guido van Rossum
8d15b5d036
Added reload() functionality.
1990-10-26 14:58:58 +00:00
Guido van Rossum
17e66f6d87
Added intobject.h and tupleobject.h includes.
1990-10-26 14:53:07 +00:00
Guido van Rossum
683a072642
Added err_badcall().
1990-10-21 22:09:12 +00:00
Guido van Rossum
536d5d3523
Call asa_done() in goaway().
1990-10-14 20:05:00 +00:00
Guido van Rossum
68c35d01d6
Move err_badarg() and err_nomme() to errors.c.
1990-10-14 20:02:48 +00:00
Guido van Rossum
7d310eb081
Adde dconvenience functions.
1990-10-14 20:00:05 +00:00
Guido van Rossum
85a5fbbdfe
Initial revision
1990-10-14 12:07:46 +00:00