On Tue, Sep 11, 2007, Eric Brunson wrote:
>
>Just my opinion, but I didn't mind the attachments, I felt they added
>quite a bit to the discussion and I certainly appreciated the input on
>the application of the libraries.
>
>My opinion on your tone, I'll keep to myself.
Figure out the total size
Just my opinion, but I didn't mind the attachments, I felt they added
quite a bit to the discussion and I certainly appreciated the input on
the application of the libraries.
My opinion on your tone, I'll keep to myself.
Dave Kuhlman wrote:
> On Wed, Sep 12, 2007 at 01:57:35AM +0200, Eike Welk
I'm not sure I understnad your quesiton..
You can put classes into lists, dictionaries, et cetera. For example:
##
class Foo(object):
pass
class Bar(object):
pass
class Baz(object):
pass
my_classes = { 'foo':Foo, 'bar':Bar, 'baz':Baz }
thing = my_classes['bar']()
##
It seems qui
Thank you for your help on classes. I am working on an old program I
started in 2005. This time around I am trying to model cell behavior
using a PD model. I have the main program and then a file called
yeast_cell.py that contains the classes I want to instance.
In the main program at the function
On Wed, Sep 12, 2007 at 01:57:35AM +0200, Eike Welk wrote:
> I have attached the program, the input image, and the output image.
>
Please do not stuff 1 MB emails in my mailbox. Either (1) post the
images on the Web and provide a link or (2) ask before emailing
large attachments.
Thank you.
D
sacha rook wrote:
> Hi I wonder if anyone can help with the following
>
> I am trying to read a html page extract only fully qualified hostnames
> from the page and output these hostnames to a file on disk to be used
> later as input to another program.
I would use BeautifulSoup to parse out t
As far as making something run automatically at various times, if
you're certain that you want to do it in a Mac-only way, Apple's
recommended method for timing jobs is described here:
http://developer.apple.com/macosx/launchd.html
"Getting started with launchd"
otherwise use cron or at, as Tom
Ryan wrote:
> Jan Erik Moström wrote:
>> Ryan <[EMAIL PROTECTED]> 07-09-10 15:35
>>
>>> Once I edit the config files for cgi scripts the browser says I don't
>>> have permission to access the file.
>> You must make sure that the script file has execute/read permissions
>> for the process/user who
sacha rook wrote:
> Hi I wonder if anyone can help with the following
>
> I am trying to read a html page extract only fully qualified hostnames
> from the page and output these hostnames to a file on disk to be used
> later as input to another program.
>
> I have this so far
>
> import url
"chinni" <[EMAIL PROTECTED]> wrote
> I am working on MAC OS x my project is updating all ready installed
> products.I have to automate this in python.so,can any one will give
> some
sounds fair.
> project is ... i think u all know that there will be a plist file
> for each
> product in mac.
Are you looking for a method to automate the execution of your Python
program? Is that the question?
If yes, have you tried using cron or at jobs (man cron or man at).
Tom
On 9/11/07, chinni <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I am working on MAC OS x my project is updating all ready insta
Hi all,
I am working on MAC OS x my project is updating all ready installed
products.I have to automate this in python.so,can any one will give some
suggestions and some examples how to automate.some basic things of my
project is ... i think u all know that there will be a plist file for each
prod
Hi I wonder if anyone can help with the following
I am trying to read a html page extract only fully qualified hostnames from the
page and output these hostnames to a file on disk to be used later as input to
another program.
I have this so far
import urllib2f=open("c:/tmp/newfile.txt", "w"
Rikard Bosnjakovic wrote:
> On 10/09/2007, Lawrence Barrott <[EMAIL PROTECTED]> wrote:
>
>> is it possible to run other non-python files using python such as .exe or
>> other files.
>
> Have a look at os.system().
>
Or more generally, the subprocess module.
--
~noufal
Latasha Marks wrote:
> need help writting a program of pick up sticks.
That is pretty vague. What help do you need? What do you want the
program to do?
Kent
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
need help writting a program of pick up sticks.
-
Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search.___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Jan Erik Moström wrote:
> Ryan <[EMAIL PROTECTED]> 07-09-10 15:35
>
>> Once I edit the config files for cgi scripts the browser says I don't
>> have permission to access the file.
>
> You must make sure that the script file has execute/read permissions
> for the process/user who runs the apache s
Thanks very much! This may be exactly what I need, and in any case will be a
great starting point!
-Sam
___
- Original Message
From: "Carnell, James E" <[EMAIL PROTECTED]>
To: tutor@python.org
Sent: Tuesday, September 11, 2007 9:45:30 AM
Subject: Re: [Tutor] Imag
> Not sure what you mean by "standard encoding" (is this an Ubuntu
> thing?) but essentially whenever you're pulling stuff into Python
As it was lined out by others I was printing to a linux terminal which
had the encoding set to UTF-8.
Therefore and for further processing of the data I had to ope
Also keep in mind that if you want your code to work, your grammar
and punctuation in code has to be absolutely flawless. Writing
English well is excellent practice for writing code well; writing
English poorly is excellent practice for writing code poorly.
You get what you pay for. If you
"wormwood_3" <[EMAIL PROTECTED]> wrote
> I need some way to analyze an image for color patterns.
>
> My only lead right now is PIL, and I am not sure if it will meet my
> needs.
I am using PIL and numpy
# something hat at least looks sorta like
import numpy
import PIL
myImage = Image.
János Juhász wrote:
> Dear All,
>
> I would like to convert my DOS txt file into pdf with reportlab.
> The file can be seen correctly in Central European (DOS) encoding in
> Explorer.
>
> My winxp uses cp852 as default codepage.
>
> When I open the txt file in notepad and set OEM/DOS script for
Dear All,
I would like to convert my DOS txt file into pdf with reportlab.
The file can be seen correctly in Central European (DOS) encoding in
Explorer.
My winxp uses cp852 as default codepage.
When I open the txt file in notepad and set OEM/DOS script for terminal
fonts, it shows the file co
Ok, just found your message in the archives. Thanks very much for that! By way
of response--
>>That may be because your question ventures into fairly deep areas of
>>
networking
>>
that most folk who are just learning Python(ie readers of this list)
>>
have probably
>>
not encountered.
True
max baseman wrote:
> lol sorry i was born with bad grammar and hand writing (although it's
> the bit after being born that matters)
>
Just imagine you're talking instead of writing. Everywhere you'd put a
pause, put a comma. If it seems like the end of a sentence, put a
period. In most ca
>I did send you a response and it is listed on the gmane archive
>so if you didn't see it something has gone adrift somewhere.
Just searched all my mail, for some reason I did not get this. I will check the
archive. Thanks!
>The solution you posted seems to bear no resemblence
>to the problem yo
lol sorry i was born with bad grammar and hand writing (although it's
the bit after being born that matters)
On Sep 10, 2007, at 10:41 PM, Eric Brunson wrote:
>
> When you get done with this math problem you should consider a book
> on punctuation. Not using it makes your sentences run togeth
Tim Golden wrote:
> Ah, I see. I'm so used to Windows where there is, technically an encoding
> for the console window, but you can't really do anything about
> it (apart from the awkward chcp) and it isn't really in your face. I
> do *use* Linux sometimes, but I don't really think in it :)
Actua
le dahut wrote:
> I noticed that it is possible to write this :
> """
> file('/tmp/myfile', 'w').write('Hello world\n')
ISTM I have had trouble with this. I always explicitly close a file that
is open for writing.
> contnt = file('/tmp/sourcefile').read()
I use this often but never in any kind
Kent Johnson wrote:
> Tim Golden wrote:
>> Not sure what you mean by "standard encoding" (is this an Ubuntu
>> thing?)
>
> Probably referring to the encoding the terminal application expects -
> writing latin-1 chars when the terminal expects utf-8 will not work well.
Ah, I see. I'm so used to
Tim Golden wrote:
> Tim Michelsen wrote:
>> Hello,
>> I want to process some files encoded in latin-1 (iso-8859-1) in my
>> python script that I write on Ubuntu which has UTF-8 as standard encoding.
>
> Not sure what you mean by "standard encoding" (is this an Ubuntu
> thing?)
Probably referrin
"le dahut" <[EMAIL PROTECTED]> wrote
>I noticed that it is possible to write this :
> """
> file('/tmp/myfile', 'w').write('Hello world\n')
> contnt = file('/tmp/sourcefile').read()
> """
Yes, it just creates temporary objects and relies on
garbage collection to close/dispose of them.
> inste
I noticed that it is possible to write this :
"""
file('/tmp/myfile', 'w').write('Hello world\n')
contnt = file('/tmp/sourcefile').read()
"""
instead of :
"""
fh = file('/tmp/myfile', 'w')
fh.write('Hello world\n')
fh.close()
fh = file('/tmp/sourcefile')
contnt = fh.read()
fh.close()
"""
is ther
Eric Brunson wrote:
> ALAN GAULD wrote:
>
>> Forwarding to the list
>>
>> NB Use Reply-All when replying to the tutor list.
>>
>> Alan G.
>>
>> - Forwarded Message
>> From: Ryan <[EMAIL PROTECTED]>
>> To: Alan Gauld <[EMAIL PROTECTED]>
>> Sent: Tuesday, 11 September, 2007 5:32:33 AM
ALAN GAULD wrote:
> Forwarding to the list
>
> NB Use Reply-All when replying to the tutor list.
>
> Alan G.
>
> - Forwarded Message
> From: Ryan <[EMAIL PROTECTED]>
> To: Alan Gauld <[EMAIL PROTECTED]>
> Sent: Tuesday, 11 September, 2007 5:32:33 AM
> Subject: Re: [Tutor] Apache, CGI-B
Tim Michelsen wrote:
> Hello,
> I want to process some files encoded in latin-1 (iso-8859-1) in my
> python script that I write on Ubuntu which has UTF-8 as standard encoding.
Not sure what you mean by "standard encoding" (is this an Ubuntu
thing?) but essentially whenever you're pulling stuff in
"wormwood_3" <[EMAIL PROTECTED]> wrote
> I need some way to analyze an image for color patterns.
>
> My only lead right now is PIL, and I am not sure if it will meet my
> needs.
PIL should be usable but I think there is also a Pyton wrapper
for ImageMagick and I think it has some colour managem
Forwarding to the list
NB Use Reply-All when replying to the tutor list.
Alan G.
- Forwarded Message
From: Ryan <[EMAIL PROTECTED]>
To: Alan Gauld <[EMAIL PROTECTED]>
Sent: Tuesday, 11 September, 2007 5:32:33 AM
Subject: Re: [Tutor] Apache, CGI-BIN, Python
Alan Gauld wrote:
> "Ryan
"Ashley Booth" <[EMAIL PROTECTED]> wrote
> So far I can get it to read the directory fine but it ends up just
> opening the script I want the files to be fed into instead of giving
> it the input and output to run and running it. Any ideas?
>
> Here is what I have so far:
>
> import sys, os
>
> i
"max baseman" <[EMAIL PROTECTED]> wrote
> basically the problem is to find a bunch of ways to put 1,2,3,4,5
> into different math problems to that equal 1-25, i haven't spent to
> much time thinking about how to do this but i cant think of a way to
> do it it without writing making the program rat
"wormwood_3" <[EMAIL PROTECTED]> wrote
> Have not gotten any responses on this,
I did send you a response and it is listed on the gmane archive
so if you didn't see it something has gone adrift somewhere.
> But, I did find a decent recipe on ASPN that serves the purpose,
The solution you posted
41 matches
Mail list logo