Re: [Tutor] can i run the last saved input again

2010-07-24 Thread Alan Gauld
"Steven D'Aprano" wrote Actually, you can change a lot in Python, but often you shouldn't. OK, I'll compromise and say you can change a bit. But I define Python as the interpreter and standard library. Any module you import, including builtins, can be monkey-patched (modified on the fly),

Re: [Tutor] can i run the last saved input again

2010-07-24 Thread Lee Harr
> hey this is a crazy question but i want to know it.. > suppose i have this code > > a=raw_input("enter the string :") > print a > > then i type python prog.py > > output: > enter the string:hello > hello > > > now i want to ask is there's any way that python remembers the input i gave > it t

Re: [Tutor] can i run the last saved input again

2010-07-24 Thread Steven D'Aprano
On Sat, 24 Jul 2010 06:00:21 pm Alan Gauld wrote: > "ANKUR AGGARWAL" wrote > > > hey this is a crazy question but i want to know it.. > > suppose i have this code > > > > a=raw_input("enter the string :") > > print a > > > > now i want to ask is there's any way that python remembers the > > in

Re: [Tutor] can i run the last saved input again

2010-07-24 Thread Alan Gauld
"ANKUR AGGARWAL" wrote hey this is a crazy question but i want to know it.. suppose i have this code a=raw_input("enter the string :") print a now i want to ask is there's any way that python remembers the input i gave it to last time and it just give me the output when i again run pyth

Re: [Tutor] can i run the last saved input again

2010-07-23 Thread Shashwat Anand
On Sat, Jul 24, 2010 at 11:16 AM, ANKUR AGGARWAL wrote: > hey this is a crazy question but i want to know it.. > suppose i have this code > > a=raw_input("enter the string :") > print a > > then i type python prog.py > > output: > enter the string:hello > hello > > > now i want to ask is there

Re: [Tutor] can i run the last saved input again

2010-07-23 Thread Steven D'Aprano
On Sat, 24 Jul 2010 03:46:15 pm ANKUR AGGARWAL wrote: [...] > now i want to ask is there's any way that python remembers the input > i gave it to last time and it just give me the output when i again > run python prog.py?? i mean i dont need to give input again. I > just need to give input only

Re: [Tutor] can i run the last saved input again

2010-07-23 Thread vishwajeet singh
On Sat, Jul 24, 2010 at 11:16 AM, ANKUR AGGARWAL wrote: > hey this is a crazy question but i want to know it.. > suppose i have this code > > a=raw_input("enter the string :") > print a > > then i type python prog.py > > output: > enter the string:hello > hello > > > now i want to ask is there

[Tutor] can i run the last saved input again

2010-07-23 Thread ANKUR AGGARWAL
hey this is a crazy question but i want to know it.. suppose i have this code a=raw_input("enter the string :") print a then i type python prog.py output: enter the string:hello hello now i want to ask is there's any way that python remembers the input i gave it to last time and it just gi