Menu

#1396 import defaultdict not available as Quck Fix

open
Editor (491)
5
2011-09-29
2011-09-29
Jay Hacker
No

If I create a new PyDev project with an empty Python module and type:

d = defaultdict(list)

It highlights that as an error because it doesn't know what defaultdict is. No problem. I press Ctrl-1 for a Quick Fix, but there is no option to import defaultdict (collections). Fail.

A similar experiment with namedtuple, also in collections, works fine.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.