<table><tr><td style="">flherne edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-ulwgjzyqf3q7x7z/" rel="noreferrer">(Show Details)</a>
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D6949" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">This causes the correct</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Rewrite</span> declarati<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">on to be found in some unusual cases that previously failed.</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">onForName()</span><br />
<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">This causes the correct declaration to be found in some unusual cases that previously failed.<br />
<br />
Only names declared before a function definition, or at module scope,</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">* Names can be use</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">were foun</span>d in <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">a function</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">its</span> body<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);"> before their definition,</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">.</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">provided that they're defined</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Names may be declared later (but</span> before the function is called<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">.</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">);</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">T</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">t</span>hese were<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">n'</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> no</span>t fo<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">und unless declared at module scope.</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">und.<br />
</span><br />
BUG: 378083<br />
<br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);"> </span>* Class attributes from any enclosing class definition were found in default arguments<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">.</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">,</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Only</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">not only</span> those from a method's parent class<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);"> should be found</span>.<br />
<br />
* Class or instance attributes were, correctly, not directly visible inside a method body (only with `self.` or similar)<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">.</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">,</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">They did however hid</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">but hid declarations of the sam</span>e name<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">s from</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> in</span> outer contexts <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">other than module scope</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">that should be found</span>.</div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R53 KDevelop: Python Support</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D6949" rel="noreferrer">https://phabricator.kde.org/D6949</a></div></div><br /><div><strong>To: </strong>flherne, brauch<br /><strong>Cc: </strong>kdevelop-devel<br /></div>