[Python-Dev] Re: PEP 246: LiskovViolation as a name (original) (raw)
Chermside, Michael mchermside at ingdirect.com
Thu Jan 13 16:42:44 CET 2005
- Previous message: [Python-Dev] Feed style codec API
- Next message: [Python-Dev] frame.f_locals is writable
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Phillip writes:
IMO, it's simpler to handle this use case by letting conform return None, since this allows people to follow the One Obvious Way to not conform to a particular protocol.
Then, there isn't a need to even worry about the exception name in the
first place, either...
+1. Writing a default conform for object is reasonable.
Alex writes:
I'd rather not make a change to built-in ``object'' a prereq for PEP 246
Why not? Seems quite reasonable. Before conform existed, there wasn't one for object; now that it exists, object needs one.
-- Michael Chermside
This email may contain confidential or privileged information. If you believe you have received the message in error, please notify the sender and delete the message without copying or disclosing it.
- Previous message: [Python-Dev] Feed style codec API
- Next message: [Python-Dev] frame.f_locals is writable
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]