At 12:03 AM -0400 8/4/03, Michal Wallace wrote:
nd in the PMC vtable, it maps this way:

  in = get_*_keyed, set_*_keyed, delete_keyed_*
  on = getprop / setprop / delprop

Is that right?

For Python, yep.


the _keyed stuff is for access to container things--hashes and arrays, generally, though anything that can be accessed via a key of some sort is fair game here. (Since keys can be integers, strings, or PMCs)

The get/set/delprop is for properties on PMCs, which pretty much correspond to Python's attributes. (Or slots, depending on how you think about them)

( Any reason it's not del_*_keyed? :) )

We were shooting for completeness consistency rather than length consistency. :) We apparently were shooting for a different sort of consistency with the property stuff...
--
Dan


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to