Steven Taschuk wrote: > Quoth Aahz: > [...] > >> raise Found() >>except Found: > > [...] > >>I find that extra set of parentheses unnecessary and ugly. It implies a >>callable where it's not really being used that way, [...] > > > In > raise Found > Found *is* being used as a callable under the hood; an instance of > Found is created implicitly. You just happen not to care about > that instance. Yes, I think that this is precisely the reason that I don't like implicit instantiation. The syntax can put the user in the wrong mental model. An object _is_ being created. Python has an object instantiation syntax. It is unclear to me what you gain by avoiding the syntax used for object instantiation everywhere else. Paul Prescod
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4