On 08 July 2001, Tim Peters said: > "The problem" comes up again and again, and in every release (this isn't > something new!), in the specific context of instance objects. Like what do > you do for > > class C: > pass > > c = C() > print len(c) Good point -- this is one place where AttributeError is misused and confusing. +1 on changing it to TypeError -- this sounds like a definite usability increase. (IOW, it won't break *my* code. ;-) Greg -- Greg Ward - Unix nerd gward@python.net http://starship.python.net/~gward/ I repeat myself when under stress I repeat myself when under stress I repeat---
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