AeroEng43 / shedskin

Automatically exported from code.google.com/p/shedskin
0 stars 0 forks source link

input() #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.i type script code: a = input() 
2. when i compile i have the error unbound interfinied 'input'
3. why i have this error ? sorry for my english i'm french

What is the expected output? What do you see instead?
nothing

What version of the product are you using? On what operating system?
python 2.6 and shedskin 0.30

Please provide any additional information below.

Original issue reported on code.google.com by Vanessa1...@googlemail.com on 12 Jan 2009 at 1:05

GoogleCodeExporter commented 8 years ago
hi vanessa,

thanks for reporting! unfortunately, input uses eval, which is not be supported 
by
shedskin (as it's too dynamic.) what you can do instead is use raw_input. if you
always want an integer, for example, you might use this something like this:

a = int(raw_input())

merci beaucoup!
mark.

Original comment by mark.duf...@gmail.com on 12 Jan 2009 at 2:55

GoogleCodeExporter commented 8 years ago
merci :D

Original comment by Vanessa1...@googlemail.com on 12 Jan 2009 at 3:49