On 2009-08-08 19:34:44 -0400, "Alan Gauld" said:
"pedro" wrote
is one thing I am not really sure how to do. I want to be able to drop
a file onto a python script (or app I guess) and have the python script
use the path to the file that was dropped on it as sys.argv[1]
I may be wrong but
"malathi selvaraj" wrote
i am new one to this programming language.
Hello and welcome.
what i do to learn python in proper manner.
First of all make sure you download Python v2.6
rather than v3. v3 is not ideal for learning just yet
it is still rather new.
Do you know any other progra
Allen Fowler wrote:
>>> FWIW:
>>>
>>> When using relative paths I got extra ../../ terms, so I changed
>> join_relative() to:
>>> def join_relative(base, path):
>>> return os.path.normpath(os.path.join(script_dir(base), path))
>>>
>>>
>>> Seems to work...
>>
>> Yeah, good catch ... looks grea
Alan Gauld wrote:
"Mark Young" wrote
Thanks everybody, I didn't know modules ran code when you imported
them, I
just thought they defined the functions, etc. in them.
They do that too.
But in Python a function definition is created by running the code!
So you write
def foo():
return
i am new one to this programming language.
i like to learn python,what i do?
what i do to learn python in proper manner.
--
Regards,
S.Malathi.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
"Mark Young" wrote
Thanks everybody, I didn't know modules ran code when you imported them,
I
just thought they defined the functions, etc. in them.
They do that too.
But in Python a function definition is created by running the code!
So you write
def foo():
return 42
To define foo y