Bug 322245

Summary: "with:" doesn't support creating multiple variables
Product: [Developer tools] kdev-python Reporter: Sven Brauch <mail>
Component: Language supportAssignee: Sven Brauch <mail>
Status: RESOLVED FIXED    
Severity: normal CC: antonis+kdebugs, lbeltrame
Priority: NOR    
Version First Reported In: git master   
Target Milestone: 1.6.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Sven Brauch 2013-07-11 15:34:28 UTC
example code: with (x, y) as (a, b): ...
will not create declarations for a, b.

The proper fix is to create a generic visitVariableTuple function which visits all names in a tuple as variable declarations, and assigns proper types to them. We have this functionality spread across two or three places here, and we shouldn't add another one.

Reproducible: Always
Comment 1 Sven Brauch 2014-01-20 11:16:32 UTC
Fixed in Python 3, not gonna fix it for 2.