Jason Coggins wrote:
> In the example listed below, reproduced from the web page you recommended,
> what does `cp`, `cp` and `/dev/null` do? I am assuming `index.html` is the
> name of the program that will be launched.
>
> example:--
> os.spawnlp(os.
> There where some values I did not want saved to the character file. A couple
> where values that are for all characters, so I put them into their own class.
>
> ###
> class Master_stats:
> def __init__(self, year, month):
> self.year = year
> self
In the example listed below, reproduced from the web page you recommended,
what does `cp`, `cp` and `/dev/null` do? I am assuming `index.html` is the
name of the program that will be launched.
example:--
os.spawnlp(os.P_WAIT, 'cp', 'cp', 'index.html',
"Jason Coggins" <[EMAIL PROTECTED]> wrote
> Would someone please provide me a short, simple
> example of the spawn statement.
> I am having trouble figuring the syntax out.
There are two examples in the os module documentation.
http://docs.python.org/lib/os-process.html
What part do you not
Danny Yoo wrote:
I will work at your suggestions and will get back to you if I have any
problems.
Good! Keep the folks on Python-Tutor up to date with your progress.
Here is the code changes I made based on your suggestions:
I put all the values together into a class
###
Picio wrote:
> Salve, qualcuno sa dirmi se esiste una API in python per google gear?
> code.google.com/apis/gears
>
A similar question was asked on py-gwt. Here is the thread. I suggest
you subscribe to py-gwt and follow the thread.
http://pyworks.org/mailman/listinfo/py-gwt
On Thu, 31 May 20
Would someone please provide me a short, simple example of the spawn statement.
I am having trouble figuring the syntax out.
Jason___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
>> All these values "belong" together. Rather than pass them separately,
>> glue them together as a "structure". In Python, can we use a class to
>> glue things together...
>
> Okay, that makes good sense :) This should be a good exercise for OOP
> Programming :)
Just to clarify: structures
Danny Yoo wrote:
>
>
>> I have attached what I got so far if you feel like taking a look, but
>> it is probably nasty by your standards :)
>
> Good, this is exactly what I want. Yes, there are a few things here
> that you will want to learn how to fix. Let me point out one or two,
> and I'm
> I have attached what I got so far if you feel like taking a look, but it
> is probably nasty by your standards :)
Good, this is exactly what I want. Yes, there are a few things here that
you will want to learn how to fix. Let me point out one or two, and I'm
sure others here on the list c
Danny Yoo wrote:
is there any way in Python to simply add or subtract one from a
variable like i++ or i--? I don't mind doing a i = i + 1, but would
prefer something more simple and faster.
Out of curiosity, why are you incrementing variables?
Actually, it is mostly just my curiosity :)
> is there any way in Python to simply add or subtract one from a
> variable like i++ or i--? I don't mind doing a i = i + 1, but would
> prefer something more simple and faster.
Out of curiosity, why are you incrementing variables? I know this might
sound silly, but I'm just curious.
Hi
You can use
i += 1
or
i -=1
HTH
Paulo
scott wrote:
> Hi,
>
> is there any way in Python to simply add or subtract one from a
> variable like i++ or i--? I don't mind doing a i = i + 1, but would
> prefer something more simple and faster.
>
>
___
scott wrote:
> Hi,
>
> is there any way in Python to simply add or subtract one from a
> variable like i++ or i--? I don't mind doing a i = i + 1, but would
> prefer something more simple and faster.
i += 1
There are no ++ or -- operators in Python.
Kent
__
Hi,
is there any way in Python to simply add or subtract one from a
variable like i++ or i--? I don't mind doing a i = i + 1, but would
prefer something more simple and faster.
--
Your friend,
Scott
Sent to you from a Linux computer using Kubuntu Version 7.04 (Feisty Fawn)
__
Carlos wrote:
> Hello,
>
> I'm trying to generate two classes, one of them is a given object and
> the other is a 'factory' of those objects. I'm doing this because I'm
> working with huge amounts of objects and would like to have a loop
> generating them. The problem is that I fear that my und
Hello,
I'm trying to generate two classes, one of them is a given object and
the other is a 'factory' of those objects. I'm doing this because I'm
working with huge amounts of objects and would like to have a loop
generating them. The problem is that I fear that my understanding of OOP
is just
Salve, qualcuno sa dirmi se esiste una API in python per google gear?
code.google.com/apis/gears
Daniele
--
http://picio.gotdns.com ...Il mio blog su NSLU2
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
[EMAIL PROTECTED] wrote:
>> From: Lee Jones
>> Subject: [Tutor] urlencode
>> Hello,
>> I am trying to urlencode a string. In python the only thing I can see
> is the urllib.urlencode(). But this takes a dictionary, and returns
>> "key=value", which is not what I want. I only want to url-encode a
Kent Johnson wrote:
Here is a solution that uses a generator to create the ranges:
>
> def ranges(data):
> i = iter(data)
> first = last = i.next()
> try:
> while 1:
> next = i.next()
> if next > last+1:
> yield (first, last)
>
Thanks, Alan.
The whole situation is clear as day now.
Alexander Kapshuk
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
>From: Lee Jones
>Subject: [Tutor] urlencode
>Hello,
>I am trying to urlencode a string. In python the only thing I can see
is the urllib.urlencode(). But this takes a dictionary, and returns
>"key=value", which is not what I want. I only want to url-encode a
string. Does any one know how to d
Hello,
I am trying to urlencode a string. In python the only thing I can see
is the urllib.urlencode(). But this takes a dictionary, and returns
"key=value", which is not what I want. I only want to url-encode a
string. Does any one know how to do this in python
Thanks
Lee
_
23 matches
Mail list logo