daviis / PyDucker

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

Unable to call top level functions #72

Closed daviis closed 9 years ago

daviis commented 9 years ago

These look like

print()
range()

Really it just is any function with out an object wrapping it up. They come from visit_Name instead of visit_Attribute from visit_Call.

daviis commented 9 years ago

Ability to make those calls now exitsts. Still have issue with calling variables like

x = print
x()

y = 1
y()

because this will do a scope look up and then try to find a call method if it is an object or just call it if it is a FunDefBean.