eval()

maximilianscherr MaximilianScherr at T-Online.de
Wed Mar 20 15:31:46 EST 2002


what does eval exactly do?

could it do somehting like opening a text file with this:

hello = 1
if hello = 1:
  print 'yeah'

eval(readline()[:-1])
...

?

like external scripts?





More information about the Python-list mailing list