daviis / PyDucker

A static ducking tool for python 3 source code
2 stars 2 forks source link

Doc string parser update #21

Closed JakeAlbee closed 9 years ago

JakeAlbee commented 9 years ago

Added the ability to check if a doc string is holding a list or dictionary type by checking for a * or \ at the beginning or end of the variable type. Also added a return type parameter that defaults to returning a list of VarBeans, non-default returns a ScopeLevelBean.

Currently throws errors when attempting to return a ScopeLevel as that wasn't in the branch that I was working off of.

Also removed some unnessecary assignments and re-assignments in hopes of keeping memory usage down.

Also fixed a typo in Bean.py's init

This is to fix a bug and add an enhancement in #4