On 1/16/06, Alan Gauld <[EMAIL PROTECTED]> wrote:
> > Has anyone got an easy way of printing the Python documentation in PDF
> > format. Its all in HTML and is time consuming to print.
>
> You can buy it in paper book form.
> It's a lot cheaper than trying to print the online stuff page by page!
>
On Tue, 17 Jan 2006, andy senoaji wrote:
> I'm back to my home machine, and ran again the open method, just to test
> my sanity Here are the results:
[cut]
Hi Andy,
Unfortunately, there are a few things that might be happening here. You
mentioned earlier that:
> I know for sure that the fil
> > The terminology that the original poster uses ("references to another
> > object") sounds a lot like the original usage of symbolic "soft"
> > references in Perl.
> > (http://www.perl.com/doc/manual/html/pod/perlref.html)
> >
> > Perl programmers, for the most part, avoid them now because they'
>>> f=open(r'c:\Test.txt','r')
Traceback (most recent call last):
File "", line 1, in ?
IOError: [Errno 2] No such file or directory: 'c:\\Test.txt'
Its pretty determined that Test.txt doesn't exist.
What happens if you do:
import os
os.listdir('C:\\')
In other words does Python see the file
I'm back to my home machine, and ran again the open method, just to test my sanity Here are the results:>>> f=open(r'c:\Test.txt','r')Traceback (most recent call last): File "", line 1, in ?
IOError: [Errno 2] No such file or directory: 'c:\\Test.txt'>>> f=open(r'c:\\Test.txt','r')Traceback (most
Hi Danny,
On Tue, 2006-01-17 at 16:03 -0800, Danny Yoo wrote:
> > > My problem is I want to make a string object into a reference to
> > > another object. To be more specific, I'm reading through a text file
> > > of amino acids. The first item on each line is the amino acid name,
> > > and a la
all i needed to know, thanks very much
shawn
On Tue, 2006-01-17 at 21:53 -0500, Kent Johnson wrote:
> nephish wrote:
> > Hey there, i have a program written in python that uses four threads
> > that run all at the same time. Now i want to add a new thread with the
> > same basic structure (threa
nephish wrote:
> Hey there, i have a program written in python that uses four threads
> that run all at the same time. Now i want to add a new thread with the
> same basic structure (threading.thread) that will run only when needed.
> This one will not run in a loop, it will just run once and quit.
"Liam Clarke" <[EMAIL PROTECTED]> said:
>Hi all,
>
[...]
>So... does anyone know how to pipe stderr in a cmd.exe console to a file?
>foo.exe > bob.txt only pipes stdout, stderr is still hitting the screen.
>
To have stderr go to a separate file:
foo.exe > bob.txt &2>err.txt
To ha
Hey there, i have a program written in python that uses four threads
that run all at the same time. Now i want to add a new thread with the
same basic structure (threading.thread) that will run only when needed.
This one will not run in a loop, it will just run once and quit.
So, i may need this to
Hi all,
After having a frustrating night last night trying to install pyid3lib
on XP, which I think is due to something in distutils.core, I'm
wondering how I should report it.
I have the dotNET framework 2.0 installed, which should give distutils
access to the MSVC++ compiler, but it's searching
> > My problem is I want to make a string object into a reference to
> > another object. To be more specific, I'm reading through a text file
> > of amino acids. The first item on each line is the amino acid name,
> > and a later item is its exposed surface area.
Hi Victor,
It sounds like we'd
Ooops. Did not respond to the mailing list.
Here is my replied-to post.
--
Hi Kirk,
There is nothing as a dumb question.
I am assuming your source file will have a amino acid residue ('CYS' or
'TRP'), followed by a space, and then the corresponding surface area.
You have to define a va
Pujo,
I think your solution does not address Kirk's problem. You don't mention
the addition of surface areas. If for any reason he had more than two
types of amino acids, then he would need to use a dictionary for the
totals, with each key being a specific amino acid.
The actual steps to follow a
Check this:
###
import random
print "Welcome to 'Guess Your Number'!"print "\nThink of a number between 1 and 100."print "And I will try and guess it!\n"print "Valid inputs are: higher, lower and correct."
raw_input("\n\nPress enter once y
On 1/17/06, Alan Gauld <[EMAIL PROTECTED]> wrote:
> > > you are using GET instead of POST? GET is the default
> > > submission method but POST is nearly always better and
> > > should avoid the problem here. (I think, I haven't tried it!)
> >
> > I believe the python CGI module is submission-method
Hello Kirk,If I'm not mistaken your idea is referencing two columns: first column is your acid name and the later is your surface area.Later you want to connect the surface area if you name the acid name.If that what you want another question arises... is your acid name is unique.
If it is you can
> Where/how/when is 'def next(self(:' called?
The 'for' loop statement does this internally when it marches across an
iterable thing. We can write something something like this:
##
for item in thing:
print item
##
Python is doing something like this
At 09:23 AM 1/17/2006, Paul Kraus wrote:
>On Tuesday 17 January 2006 12:11 pm, andy senoaji wrote:
> > I am starting to pull my hair here. There were some postings in the past,
> > similar to my problem, but the response was not clear enough. Sorry if you
> > thingk I am reposting this.
> >
> > I a
(replying back to the list also)
On Tue, 2006-01-17 at 10:03 -0800, andy senoaji wrote:
> Sorry for the inconsistent error message. I think I may pasted
> incorretcly. I am now in a different machine, and have tested Paul's
> suggestion, and it worked. But would the 'r' tackles the escape
> sequenc
> One small correction: Pointer should have an __iter__() method that
> returns self; this is part of the iterator protocol. See PEP 234
> http://www.python.org/peps/pep-0234.html
Hi Kent,
Ah, thank you! Ok, the corrected code is:
#
class MyListOf
-- Forwarded message --
Date: Tue, 17 Jan 2006 09:47:58 +0100
From: Rinzwind <[EMAIL PROTECTED]>
To: Danny Yoo <[EMAIL PROTECTED]>
Subject: Re: PIL, fonts and making images
That's not good.
Well I guess it does what it is suppose to do: make it able to create
diagrams and the pe
>>>Nothing unless its implementation uses a while loop
>>>and index, but thats unlikely.
>>
>>
>> But that is pretty close to what actually happens, according to the
>> language ref docs for 'in' (see my previous post).
Only in certain cases. The point I was making (or trying to) is
that both
> I am trying to run (on an XP box) a simple open file using this:
> f = open(r'C:\Test.txt', 'r')
> IOError: [Errno 2] No such file or directory: 'C:\Test.txt'
> I know for sure that the file is there
> Furthermore, how does Python assumes the search path?
There is no search, you have specifi
>> I am trying to run (on an XP box) a simple open file using this:
>> f = open(r'C:\Test.txt', 'r')Newbie here but shouldn't it be.
>
> Newbie Here
>
> f = open( r'C:\\Test.txt','r')
>
> I think you are escaping the T with \T.
The r in front of the string should prevent that problem.
If the r
On Tue, 2006-01-17 at 09:11 -0800, andy senoaji wrote:
> I am starting to pull my hair here. There were some postings in the
> past, similar to my problem, but the response was not clear enough.
> Sorry if you thingk I am reposting this.
>
> I am trying to run (on an XP box) a simple open file usi
Hi, just joined. I've got a question that I'm guessing there's a
ridiculously easy answer to, but I'm having trouble (no excuses, I'm
just dumb!)...
My problem is I want to make a string object into a reference to
another object. To be more specific, I'm reading through a text
file of amino acid
On Tue, 17 Jan 2006, Paul Kraus wrote:
> On Tuesday 17 January 2006 12:11 pm, andy senoaji wrote:
> > I am starting to pull my hair here. There were some postings in the past,
> > similar to my problem, but the response was not clear enough. Sorry if you
> > thingk I am reposting this.
> >
> > I a
On Tuesday 17 January 2006 12:11 pm, andy senoaji wrote:
> I am starting to pull my hair here. There were some postings in the past,
> similar to my problem, but the response was not clear enough. Sorry if you
> thingk I am reposting this.
>
> I am trying to run (on an XP box) a simple open file us
I am starting to pull my hair here. There were some postings in the past, similar to my problem, but the response was not clear enough. Sorry if you thingk I am reposting this.I am trying to run (on an XP box) a simple open file using this:
f = open(r'C:\Test.txt', 'r')
but it keeps give me naggi
> > you are using GET instead of POST? GET is the default
> > submission method but POST is nearly always better and
> > should avoid the problem here. (I think, I haven't tried it!)
>
> I believe the python CGI module is submission-method agnostic
Thats true, but to frig it you would need to kno
Kent Johnson wrote:
> Alan Gauld wrote:
>>>What does 'in' have to do with indexing?
>>
>>
>>Nothing unless its implementation uses a while loop
>>and index, but thats unlikely.
>
>
> But that is pretty close to what actually happens, according to the
> language ref docs for 'in' (see my previous
On 1/17/06, Jon Moore <[EMAIL PROTECTED]> wrote:
> Hi
>
> I hope someone can help me!
>
> I am currently learning Python using a book by Michael Dawson. In one of the
> exercises I have to right a program that will guess a number chosen by the
> user.
>
> It is partly working, however it does not s
Danny Yoo wrote:
>
> On Mon, 16 Jan 2006, Christopher Spears wrote:
>
>
>>I'm not sure if I understand __iter__. You use it to create an object
>>that iterates through itself using a next menthod ?
>
>
> Hi Chris,
>
> Yes, that's one application.
>
>
> But __iter__() doesn't necessarily ha
Alan Gauld wrote:
>>map calls, list comprehension, etc. For loops, etc.
>>work by indexing a sequences from zero to a higher
>>index until out-of-bounds is reached.
>
>
> What makes you think that?
> So far as I know for loops work by calling next on
> an iterator until nothing gets returned
HiI hope someone can help me!I am currently learning
Python using a book by Michael Dawson. In one of the exercises I have
to right a program that will guess a number chosen by the user.It
is partly working, however it does not seem to keep state of numbers
that should have already been ruled out a
danny: my apologies for sending this to your email instead of the list!!
(There I was looking at the list going: WTF DOES IT TAKE SO LONG when
it hit me...).
*cuts in* No I don't :-)
With this:
class MyListOfNumbers:
def __init__(self, data):
self.data = data
def __iter__(self):
37 matches
Mail list logo