[Tutor] Question

2010-06-18 Thread Independent Learner
~After doing a google search, I could not find any good solid anwsers. So I 
will apologize ahead of time since this is not really a Python specific 
question. However...

~I was wondering if I should try to learn 2 programming languages at once, 
Python and C++. Obviously I am working on learning python right now, I have 
gotten up to Classes(I am studying from Learning Python 3rd and 4th editions 
from Mark Lutz on Safari online books), and feel like I have a pretty good idea 
of everything before classes. Yea there are still a lot of things I am not 
really fully comprehending, but like I said I have a pretty good idea. 

~Perhaps it is also worth nothing Python is pretty much my first real 
Programming Language. Yea I took an intro to comp sci class(like 2 years ago) 
and a computer programming logic class(also like 2 years ago) both 
using pseudocode and have since dabbled in C(I started a programming class for 
school but dropped out twice after about 1/3 of  the semester, for two 
consecutive semesters about 9 months ago) So here I am, a computer 
engineering major failure who had to change my major to Physics so I wouldn't 
have to take all those dammed comp sci classes Figured I could just teach 
myself. I mention this because I want to make clear I have the logic and 
critical thinking skills down, and in my opinion the aptitude as well. 

~So is it better to learn 1 programming language first, then learn another. Or 
better to pretty much learn them at the same time? And why? 

++Thank you so much if you have actually taken the time to read this. =) P.S. 
Julius Hernandez


  ___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Importing files not located on the home directory or standardard library

2010-06-17 Thread Independent Learner
I am having trouble figuring out how to import modules not located on the home 
directory or standard library of modules. Meaning say I write a module and 
instead of saving it on the home directory I save in a folder in my desktop. I 
do not know how to retrieve it by way of the import statement. I know it has 
something to do with the PYTHONPATH or .pth,  however I am not sure how to 
configure these, right now I am reading Learning Pythong 3rd ed. by Mark Lutz 
and unfortnately that book has a lot more words then examples so I am usually 
left to figure alot of the concepts myself while rereading word for word to try 
to figure out how the heck it applies to IDLE and practical uses for code. I 
thoroughly understand modules and how to import them when they are in the home 
directory or standard library, thats pretty simple, however like I said I do 
not know how to import files outside of these directories. I am using windows 7 
and python 2.6.5

Lets say I want to load a file called quiz located in C:\Users\Julius 
Hernandez\Desktop\Python2.6.5\Online Course\Chp.4

How would I configure PYTHONPATH or .pth  or what ever to import this file from 
IDLE

I am also having slight trouble understanding module packages as well, though I 
suspect it has something to do with not knowing how to configure PYTHONPATH or 
.pth files

Thanks =) ~Julius H. 


  ___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor