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
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
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
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
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
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
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
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
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
[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
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
[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
[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
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
[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
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:
> [
16 matches
Mail list logo