Guido van Rossum
e2966a6362
The cl_bases member of a class object is now never NULL.
1991-12-10 13:53:23 +00:00
Guido van Rossum
c6913e7da2
Made the sign use one's complement; implemented shifting and masking operators.
1991-11-19 20:26:46 +00:00
Guido van Rossum
670ceb30d3
Deleted unused local variable.
1991-11-19 20:26:11 +00:00
Guido van Rossum
8aff84a100
Call write(fileno(fp), ...) instead of fwrite for LARGE writes.
1991-11-12 15:42:49 +00:00
Guido van Rossum
7928cd7636
Added shift and mask ops.
1991-10-24 14:59:31 +00:00
Guido van Rossum
3d3037d51a
Changed convert to add '0' or '0x' prefix for oct/hex.
...
Added NULL function pointers for shift and mask ops.
1991-10-24 14:55:57 +00:00
Guido van Rossum
27acb3379e
Added NULL function pointers for shift and mask ops.
1991-10-24 14:55:28 +00:00
Guido van Rossum
e9c430fd3b
Implemented __methods__ attribute
1991-10-20 20:21:15 +00:00
Guido van Rossum
e6f7d18e6b
Added count() method.
...
Changed some conditional INCREFs into XINCREFs.
1991-10-20 20:20:40 +00:00
Guido van Rossum
15ecff4c5e
Finally implemented divmod().
1991-10-20 20:16:45 +00:00
Guido van Rossum
9430839acc
Add several secret __*__ attributes
1991-10-20 20:11:48 +00:00
Guido van Rossum
18a372f04c
getlonglongargs --> getlonglongarg
1991-09-10 14:55:58 +00:00
Guido van Rossum
278ef59110
Check for write errors after printing a value
1991-07-27 21:40:24 +00:00
Guido van Rossum
2fe53f7fec
The print operation now returns status!
1991-07-01 18:52:31 +00:00
Guido van Rossum
9fb036811a
Change cmpobject() to coerce numerical values before comparing them
1991-07-01 18:48:04 +00:00
Guido van Rossum
49e85146e2
printobject now returns an error code
...
Remove superfluous err_nomem() call
,
1991-06-07 22:59:30 +00:00
Guido van Rossum
bcaa31c411
printobject now returns an error code
...
Remove superfluous err_nomem() call
1991-06-07 22:58:57 +00:00
Guido van Rossum
909336104b
printobject now returns an error code
1991-06-07 16:10:43 +00:00
Guido van Rossum
27dec7e376
Export float_buf_repr() interface, for marshalling of floats.
1991-06-04 19:42:53 +00:00
Guido van Rossum
a1ab7fae44
In support of popen(), file objects are now parametrized with a close
...
function on creation. (There's a funny thing about the return
value of the close function that should be resolved.)
Also added 'isatty' method.
1991-06-04 19:37:39 +00:00
Guido van Rossum
f380e66c0f
Fix comments in string_as_sequence
1991-06-04 19:36:32 +00:00
Guido van Rossum
b8393da8f8
Finally implement tuple*number. From now on all sequence types
...
must (pretend to) support all operations except assignments;
if you don't want to support an operation you have to provide
a dummy function that raises an exception...
1991-06-04 19:35:24 +00:00
Guido van Rossum
149e9ea24c
Added dnewlongobject(), function to convert double to long int.
1991-06-03 10:58:24 +00:00
Guido van Rossum
76ad8ed51d
Call clearerr() after EOF seen.
1991-06-03 10:54:55 +00:00
Guido van Rossum
c7ec9c98e2
Fix off-by-one error in long_repr.
...
Implement long_pow.
1991-05-28 21:58:16 +00:00
Guido van Rossum
70d934601f
Fix special cases in pow()
1991-05-28 21:57:39 +00:00
Guido van Rossum
23d6f0e8e7
Many small changes
1991-05-14 12:06:49 +00:00
Guido van Rossum
0bff015ac3
Added nonzero test
1991-05-14 12:05:32 +00:00
Guido van Rossum
50b4ef64eb
Added nonzero test
1991-05-14 11:57:01 +00:00
Guido van Rossum
05ab111b1d
Enabled (and fixed) newvarobject()
1991-05-05 20:10:41 +00:00
Guido van Rossum
edcc38aac5
Initial revision
1991-05-05 20:09:44 +00:00
Guido van Rossum
0046695d0c
Added divmod and abs, fixed negative powers
1991-05-05 20:08:27 +00:00
Guido van Rossum
eba1b5efe1
Added (dummy) divmod and (functional) abs.
...
Fixed comments in number methods list
1991-05-05 20:07:00 +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
bfe14c5c92
Add warning about Lambert's bug.
1991-04-16 08:41:06 +00:00
Guido van Rossum
569fce7901
Rename class methods to instance methods (at least where user-visible)
1991-04-16 08:38:43 +00:00
Guido van Rossum
0bd2441e00
Added external interface to readline, for raw_input().
1991-04-04 15:21:57 +00:00
Guido van Rossum
daa8bb334d
Optimized single-character strings gotten from s[i].
1991-04-04 10:48:33 +00:00
Guido van Rossum
eb183da74f
Added 'softspace' interface to replace 'needspace' printing hack.
1991-04-04 10:44:06 +00:00
Guido van Rossum
21ed88cfe2
Change ugly 'class member' to more normal 'instance'.
1991-04-04 10:42:10 +00:00
Guido van Rossum
4a450d06c7
Swapped list_ass_item and list_ass_slice to satisfy Standard C.
1991-04-03 19:05:18 +00:00
Guido van Rossum
b6a6bdc7db
Optimized stringitem.
1991-03-06 13:15:02 +00:00
Guido van Rossum
ed98d48027
Added repeat (for list*integet).
...
Added methods remove(), reverse() and index().
1991-03-06 13:07:53 +00:00
Guido van Rossum
ce5ba841d9
Fixed read() and readline() to do arbitrarily long reads.
...
And readline() now reads null bytes correctly.
Added tell(), seek() and flush().
1991-03-06 13:06:18 +00:00
Guido van Rossum
f70e43a073
Added copyright notice.
1991-02-19 12:39:46 +00:00
Guido van Rossum
a08095ab02
Hack to open resource fork on the Mac: open(filename, '*rb').
1991-02-13 23:25:27 +00:00
Guido van Rossum
253919f3b7
Fix stringcompare when strings contain null bytes.
1991-02-13 23:18:39 +00:00
Guido van Rossum
94726d55c1
Changed bogus ref to textobject into xxobject.
1991-01-02 15:12:51 +00:00
Guido van Rossum
320a5ccbdc
Fixed a bit (still no warranties).
1991-01-02 15:11:48 +00:00
Guido van Rossum
59b3590711
Think C 4.0 fixes a bug in 3.0 that we programmed around.
1991-01-02 13:51:41 +00:00