how to create this dependency table from ast?

Ho Yeung Lee jobmattcon at gmail.com
Sun Jul 2 09:59:28 EDT 2017


On Sunday, July 2, 2017 at 9:53:50 PM UTC+8, Ho Yeung Lee wrote:
> On Sunday, July 2, 2017 at 9:32:36 PM UTC+8, ad... at python.org wrote:
> > admin at python.org:
> > > Hi, Ho!
> > 
> > 
> > it is crucial that you dump that fucking Windows of yours and become
> > real pythonic under Linux !
> 
> i do not understand what is difference in result if run in window and linux
> 
> goal is to create a table 
> 
> graph = {'A': ['C'], 
>              'B': ['C'], 
>              'C': ['D'], 
>              'C': ['E']} 
> 
> from 
> 
> a = 1 
> b = 1 
> c = a + b 
> d = c 
> e = c 
> 
> Python 2.7.6 (default, Oct 26 2016, 20:30:19)
> [GCC 4.8.4] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import ast
> >>> parseprint("a = 1")
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> NameError: name 'parseprint' is not defined
> 
> actually running in bash subsystem of window
> there is no parseprint to see which attributes for craft the goal


in fact, i had myself only. i do not know others. of course dump my own window result.



More information about the Python-list mailing list