| Summary: | class varaibles are not recognized as default values in method definition | ||
|---|---|---|---|
| Product: | [Developer tools] kdev-python | Reporter: | Hai Zaar <haizaar> |
| Component: | Language support | Assignee: | Sven Brauch <mail> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 1.7.1 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| URL: | http://i.imgur.com/d0jHl7Q.png | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | attachment-15167-0.html | ||
Probably related to me not even knowing you could do this. ;) Thanks for the report. Created attachment 92739 [details] attachment-15167-0.html Funny, Just recently learned about this myself :) On Wed, May 20, 2015 at 9:56 PM, Sven Brauch <mail@svenbrauch.de> wrote: > https://bugs.kde.org/show_bug.cgi?id=348026 > > Sven Brauch <mail@svenbrauch.de> changed: > > What |Removed |Added > > ---------------------------------------------------------------------------- > Ever confirmed|0 |1 > Status|UNCONFIRMED |CONFIRMED > > --- Comment #1 from Sven Brauch <mail@svenbrauch.de> --- > Probably related to me not even knowing you could do this. ;) > Thanks for the report. > > -- > You are receiving this mail because: > You reported the bug. > *** This bug has been marked as a duplicate of bug 363999 *** |
Consider the following snippet: class A: foo = 1 def bar(self, bar=foo): pass on def... line, foo will be shown with error saying "Undefined variable: foo". Thanks, Zaar Verified on latest build from 1.7.1-py3 branch with kdevelop 4.7.1 Reproducible: Always