Message50966
Logged In: YES
user_id=764593
(1) Shouldn't classmethod Parameter.__tuple2param use cls
rather than self?
(2) Should Parameter objects have an (optional, but
standardizing a name) current_value attribute, so that they
can be used to describe an execution frame as well as
function objects? (Or does the desire not to cache this
information mean that bindings is is the best available
API?)
(3) Why
>>> self.var_args = argspec[1] if argspec[1] else ''
instead of just
>>> self.var_args = argspec[1] or ''
(I keep expecting the if argspec[1] to be if argspec[1:]
verifying that something is there.)
(4) Why does (private) __tuple_bind_OK raise IndexError
just so that its only caller (private __positional_bind)
can catch and raise TypeError instead?
(5) Why does bind insist that non-default arguments be
passed as positionally (parts of *args) rather than by name
(part of **kwargs)? Is this safe because of how/when it
gets called?
(6) Should signature objects have a returns attribute for
the (parameter object representing the) return value, just
to standardize the name?
(7) Can getsignature assume that it can create a new
attribute on func (or im_func)? Or should it use a temp
variable, and wrap the caching inside a try-except?
|
|
| Date |
User |
Action |
Args |
| 2007-08-23 15:54:18 | admin | link | issue1544909 messages |
| 2007-08-23 15:54:18 | admin | create | |
|