Message49587
Logged In: YES
user_id=5296
I changed the wrap_index function so that in Pyhton the
__index__ method for long returns the object itself should
it be too large for a Py_ssizet. I'm sorry I didn't
understand what you wanted before.
* added Lib/test/test_index.py
* removed '\' used to split C-lines (where I could find them)
* put spaces around '==' sign
* check for an error at the start of _long_as_ssize_t so
that both _PyLong_AsSize_t() and long_index return an
error if one was pre-existing. That way the errors are
carefully controlled in _long_assize_t and different things
are done (ignoring overflow or raising an error) depending
on the what calls _long_as_ssize_t.
|
|
Date |
User |
Action |
Args |
2007-08-23 15:46:00 | admin | link | issue1436368 messages |
2007-08-23 15:46:00 | admin | create | |
|