[Python-Dev] Deprecating string exceptions

Skip Montanaro skip@pobox.com
2002年3月27日 15:09:03 -0600


 GvR> I think string exceptions are used enough that we should deprecate
 GvR> them on a slower schedule.
 BAW> Is there any controversy that string exceptions should, eventually,
 BAW> be deprecated?
Taking a quick peek at my own code, the only place I see that strings are
raised is in code that works with ZServer (e.g. "raise 'redirect'"). I was
not speedy to get rid of string exceptions in my own code, but except for
external compatibility, I think they are all gone now. Does Zope (clearly
the 800-pound gorilla in most backward compatibility discussions) still use
them heavily?
Skip

AltStyle によって変換されたページ (->オリジナル) /