<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Sep 14, 2013, at 12:15 PM, David Halter <<a href="mailto:davidhalter88@gmail.com">davidhalter88@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span style="font-family: Arial; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none; ">After discussions, I realized that I should probably bring this up in python-ideas, I think the current implementation can be very confusing for people trying to introspect classes with `dir`, which is IMHO its typical use case.</span></blockquote><br></div><div>The current behavior of dir() is a bit irritating when I am teaching how Python works.</div><div><br></div><div>That said, the irritation is minor and easily overcome.</div><div><br></div><div>I would not want to change the behavior and risk breaking</div><div>existing introspection code (that code is tends to be more</div><div>fragile and implementation than most other code).</div><div><br></div><div>In other words, I just don't think it is worth changing something</div><div>that has been in-place for a very long long time.  The minor</div><div>benefit doesn't want the downsides that goes with API churn.</div><div><br></div><div><br></div><div>Raymond</div></body></html>