Share

SELFISH: Prototype-based OOP

Tracker: Bugs

5 Slots don't know their own names - ID: 212900
Last Update: Tracker Item Submitted ( tlilley )

In order to conserve space, I neglected to let slots know their own
name(s). I need to either add a find-name function that will probe the dict
and discover the name of the slot (would have to look in parents, too), or
start storing the slot name with the slot (space-hog, and I'm not sure how
often code will need the name).

Another alternative would be to add a flag to setattr such that code that
needed the slot name could be explicitly added with the slot name. That
might be the best compromise. It would, of course, need to carry that flag
across object->object copies, so that it would always know what slot
name it was in if it originally requested such knowledge. Think about this.


Tripp Lilley ( tlilley ) - 2000-08-28 04:45

5

Open

None

Tripp Lilley

selfish.core.py

Inconsistencies with Pythonism

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.