Guido van Rossum
bfc725bf64
Changed PySequence_List() and PySequence_Tuple() to support
...
"indefinite length" sequences. These should still have a length, but
the length is only used as a hint -- the actual length of the sequence
is determined by the item that raises IndexError, which may be either
smaller or larger than what len() returns. (This is a novelty; map(),
filter() and reduce() only allow the actual length to be larger than
what len() returns, not shorter. I'll fix that shortly.)
1998-07-10 16:22:44 +00:00
Jack Jansen
df901dfdea
Added a function SetUserItemHandler: this takes a function(dialog,
...
item) as parameter and returns a handle suitable for passing to
SetDialogItem as a user-item redraw routine. Note that you can
only make one of these, for now.
1998-07-10 15:47:48 +00:00
Guido van Rossum
ba0d0611e7
Add macros for direct access to the members of CFunction objects.
1998-07-10 15:47:08 +00:00
Guido van Rossum
d4ba73c75b
Move the definition of PyMethodObject to classobject.h, so it can define
...
macros for more efficient access to the fields.
1998-07-10 15:46:33 +00:00
Guido van Rossum
9223351617
Marc-Andre Lemburg's patch to move the typedef for PyCFunctionObject
...
to the .h file and add macros there for inlined access to the fields.
1998-07-10 15:21:55 +00:00
Guido van Rossum
eeb64287f1
(1) Added a sys.exc_info() emulation. (It returns None for the traceback.)
...
(2) Made the test script a bit fancier -- you can now use it to run
arbitrary scripts in restricted mode, and it will do the right thing.
(The interactive mode is still pretty lame; should integrate this with
code.interact().)
1998-07-09 13:52:38 +00:00
Fred Drake
f029548ac2
Added item about index item/subitem separation.
1998-07-08 21:42:41 +00:00
Fred Drake
5da5a68325
Fix suggested by Lorenzo M. Catucci <lorenzo@argon.roma2.infn.it> to keep the
...
large letter at the top of each index section with at least the first entry
for that letter.
1998-07-08 21:37:25 +00:00
Guido van Rossum
fa00e958fd
# In case BINARY_SUBSCR, use proper PyList_GET* macros instead of inlining.
1998-07-08 15:02:37 +00:00
Guido van Rossum
7859f87fdb
Marc-Andre Lemburg's patch to support instance methods with other
...
callable objects than regular Pythonm functions as their im_func.
1998-07-08 14:58:16 +00:00
Guido van Rossum
bb71ab68f9
Reindented some OS/2 and hpux code that looked ugly or at least
...
inconsistent.
1998-07-08 13:47:12 +00:00
Guido van Rossum
7ba30431ec
Recompute the special getattr/setattr/delattr cache slots after
...
changing __dict__ *or* __bases__.
1998-07-08 13:34:48 +00:00
Guido van Rossum
b77a68e6b1
Rewrite to support multiple suckers, each with their own thread.
1998-07-08 03:05:22 +00:00
Guido van Rossum
125700addb
Instead of printint, use self.message() or self.note().
1998-07-08 03:04:39 +00:00
Guido van Rossum
0fd9408c40
Needed.
1998-07-08 02:56:20 +00:00
Guido van Rossum
5e32a77fcd
Minor change for windows; set extensions_c later and set
...
frozendllmain_c at the right place.
1998-07-07 22:47:38 +00:00
Guido van Rossum
b84ef9bc61
Put back the call to report_unbalanced() that was lost when
...
parse_endtag() was restructured in parse_endtag() and finish_endtag().
1998-07-07 22:46:11 +00:00
Guido van Rossum
d94c2dc5e8
# Bump version because of checkin to faqwiz.py. :-(
1998-07-07 22:39:47 +00:00
Guido van Rossum
0922a56965
Don't add <...> around mail addresses; they may already be there.
1998-07-07 22:39:21 +00:00
Guido van Rossum
e79cf323c7
Added hints about building your own DLL.
1998-07-07 22:35:03 +00:00
Guido van Rossum
233f4b54d3
Two error messages still used the old name of the functio mkvalue() --
...
which is now Py_BuildValue().
1998-07-07 22:32:19 +00:00
Guido van Rossum
c821d1ecc0
Add a cast that a picky SGI compiler found was necessary.
1998-07-07 22:25:47 +00:00
Guido van Rossum
9f29990a90
Fix a benign problem found by a picky SGI compiler (unreachable break
...
after a return).
1998-07-07 22:23:22 +00:00
Guido van Rossum
04e00a4cf4
Fix benign problems found by a picky SGI compiler (unreachable break
...
after a return or goto).
1998-07-07 22:22:22 +00:00
Guido van Rossum
c69bac539c
Fix benign problems found by a picky SGI compiler (unreachable break
...
after a return).
1998-07-07 22:21:45 +00:00