Re: python loops

2006-08-31 Thread AlbaClause
Putty wrote: > In C and C++ and Java, the 'for' statement is a shortcut to make very > concise loops. In python, 'for' iterates over elements in a sequence. > Is there a way to do this in python that's more concise than 'while'? > > C: > for(i=0; i > > python: > while i < length: > i += 1 for

Re: Learning Python - Have Question.

2006-08-27 Thread AlbaClause
Tal Einat wrote: > iapain wrote: >> First thing you have to remember while using python is "everything is >> an object". os.join.path concatenates one or more path for example >> os.path.join("c:", "myfolder") represent a path relative to current dir >> on c: drive. >> > > Actually, os.path.join

Re: Learning Python - Have Question.

2006-08-26 Thread AlbaClause
iapain wrote: >> I'm just learning Python, and I have a question about >> os.path.join(dirpath, >> name) and its use. Simply put, I haven't figured out how to use it. > > First thing you have to remember while using python is "everything is > an object". os.join.path concatenates one or more pat

Learning Python - Have Question.

2006-08-26 Thread AlbaClause
I'm just learning Python, and I have a question about os.path.join(dirpath, name) and its use. Simply put, I haven't figured out how to use it. I was looking through the Python reference material in the wee hours of the morning and checking out some of the modules. I was keenly interested in the

Re: Permission Denied

2006-08-20 Thread AlbaClause
Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, AlbaClause wrote: > >> Then, to execute the file from from the shell prompt, I had to create a >> 'bin' directory in my home folder, cuz I didn't want to litter >> my /usr/local/bin f

Re: Permission Denied

2006-08-19 Thread AlbaClause
hiaips wrote: > > Tom Strickland wrote: >> Hopefully this is a simple question. I've started to program in Python >> after an absence of about a year, so I'm very rusty. I wrote a short >> program and tried to run it using Python2.4 in Linux. I keep getting >> "permission denied" messages after e

Re: Mega Newbie Questions: Probably FAQs

2006-08-14 Thread AlbaClause
Zeph wrote: > ajaksu wrote: > I do intend to start small and build up, but I want to front load my > learning curve, usually makes the other side of the curve more productive. Did you ever play on teeter-totters when you were a kid? I think that's what they're called. Those board like things

Re: yet another noob question

2006-08-14 Thread AlbaClause
mike_wilson1333 wrote: > I would like to generate every unique combination of numbers 1-5 in a 5 > digit number and follow each combo with a newline. So i'm looking at > generating combinations such as: (12345) , (12235), (4) and so on. > What would be the best way to do this? So, basically i

Re: Mega Newbie Questions: Probably FAQs

2006-08-14 Thread AlbaClause
Zeph wrote: > 4) There are a lot of books and tutorials out there, but they are of the > proof-of-concept type. Specifically, a tutorial might teach me Hello > World, but not really care about the framework, because it's a very > simple item, and the point is simply to get me coding. I'd like t

Re: looking for a simple way to load a program from another python program..

2006-08-14 Thread AlbaClause
[EMAIL PROTECTED] wrote: > I was looking for a simple way to load a simple python program from > another python program. > > I tried > > os.system(cabel) > > The file name is cabel.py a csound instrument editor.. > > The error I am getting is > > Traceback (most recent call last): > Fil

Re: Easy to use distributed system?

2006-08-14 Thread AlbaClause
Jim Jones wrote: > I am looking for a system in Python that will easily allow me to > distribute > processes across multiple systems?So, if I have a function 'foo', I'd > like to be able to call something along the lines of > > distribute(foo(x)) > > And have the system figure out which node

Re: Read a file with open command

2006-08-12 Thread AlbaClause
[EMAIL PROTECTED] wrote: > AlbaClause wrote: >> jean-jeanot wrote: >> > > >> Ummm, he did not say that your question was stupid. The Zappa quote is >> included as part of what we refer to as a 'signature'. In the case of >> Sybren Stuvel&#x

Re: Make $1000's Monthly!

2006-08-12 Thread AlbaClause
[EMAIL PROTECTED] wrote: > Make $1000's Monthly! > Over 600 work at home firms are in need of survey takers, product > assemblers, home mailers, mystery > shopping > Data entry and more! Report contains complete contact details for over > 650 companies now hiring! > For this complete report of ov

Re: Read a file with open command

2006-08-11 Thread AlbaClause
jean-jeanot wrote: > Dear Sybrel, > > I am delighted to know that you have been enlighted through my > question. > I am aware of my stupidity and I would say of my ignorance.If all > Python users were not ignorant I suppose the Python group would be > superfluous. I would suggest that if if you

Re: Password authentication systems

2006-08-10 Thread AlbaClause
[EMAIL PROTECTED] wrote: > This may only be tangentially related to Python, but since I am coding > a password authentication system in Python, I thought I would ask here. > > In Linux (and presumably other *NIX systems that support it), when > shadow passwords are enabled, the actual password is

Re: reading from sockets

2006-08-10 Thread AlbaClause
AndrewTK wrote: > Hello, > > I'm trying to read data from a socket and I'm not seeing what I'm > expecting it seems to skip the first line of data. I am new to > Python and just trying to test what I can do with it... and it's not > looking pretty. > > > I have some Python code: > [