StopIteration, ForwardToTarget, ... & symbols

Herby Vojčík herby at
Mon Nov 26 12:48:26 PST 2012


shouldn't StopIteration, ForwardToTarget from "Notification proxies" 
thread and similar ones be rather well-known unique symbols (like 
@iterator), now that we have them, instead of well-known globals?

On the more general line, I got pretty fond of (unique) symbols, they 
seem like very good things for these sentinel-like objects. Is it ok / 
preferable to use them for that? No need to use empty objects bearing 
only their identity any more, imo.


More information about the es-discuss mailing list