[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 296118] New: Target variable in comprehensions isn't recognized if followed by attribute refere
From: Nicolás Alvarez <nicolas.alvarez () gmail ! com>
Date: 2012-03-16 0:54:15
Message-ID: bug-296118-17878 () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=296118
Bug ID: 296118
Severity: normal
Version: unspecified
Priority: NOR
CC: svenbrauch@googlemail.com
Assignee: kdevelop-bugs@kdevelop.org
Summary: Target variable in comprehensions isn't recognized if
followed by attribute reference
Classification: Unclassified
OS: Linux
Reporter: nicolas.alvarez@gmail.com
Hardware: Compiled Sources
Status: UNCONFIRMED
Component: general
Product: kdev-python
In a list comprehension, if the target variable appears in the main expression
followed by an attribute access, the target variable is not recognized.
Example: [foo.bar() for foo in somelist]
The first 'foo' is underlined in yellow.
This happens even if the attribute expression doesn't apply to this variable.
For example:
[foo.bar(item) for item in lst] # this works
[foo(item).bar for item in lst] # this doesn't work
--
You are receiving this mail because:
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic