"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),
> 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
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
"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
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
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
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
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