Menu

#568 Special support for namedtuple

open
nobody
None
5
2012-03-05
2012-03-05
Eike Welk
No

The function `collections.namedtuple` is a generator for classes, that are used like records or C-Structs. As these classes are generated at runtime Pydev does currently know nothing about them. Especially name completion does not work.

Therefore Pydev should get special knowledge about `namedtuple`:

* It should show the generated classes as classes, in the outline view.

* It should know the generated data attributes of the instances, and be able
to complete their names.

* It should know the (also generated) methods: `_replace`, `_asdict`,
`_fields`, and `_make`.

Discussion