Re: [Tutor] Cookielib - CookieJar objects

2005-06-29 Thread Kent Johnson
Danny Yoo wrote: > Yes, whenever the documentation talks about something being "iterable", > they really mean that we can use a for loop across it. It does seem a > little odd that this appears to be a primary way to access the cookies in > a cookie jar: > > http://www.python.org/doc/lib/node

Re: [Tutor] Alternative File I/O for Tuples (fwd)

2005-06-29 Thread Kent Johnson
Don Parris wrote: > On Tue, 28 Jun 2005 05:50:54 -0400 > Kent Johnson <[EMAIL PROTECTED]> wrote: >>The problem is you are just passing one record to indent(). It processes >>the whole table at once so you have to pass the list of records, i.e. >>mbrPhone.write(indent(Results, hasHeader=Fals

Re: [Tutor] Alternative File I/O for Tuples (fwd)

2005-06-29 Thread Don Parris
On Wed, 29 Jun 2005 06:38:36 -0400 Kent Johnson <[EMAIL PROTECTED]> wrote: > Don Parris wrote: > > On Tue, 28 Jun 2005 05:50:54 -0400 > > Kent Johnson <[EMAIL PROTECTED]> wrote: Thanks for the explanation of indentation! I kind of understood that, but wanted to be sure I understood correctly w

Re: [Tutor] Alternative File I/O for Tuples (fwd)

2005-06-29 Thread Kent Johnson
Don Parris wrote: > On Wed, 29 Jun 2005 06:38:36 -0400 > Kent Johnson <[EMAIL PROTECTED]> wrote: >>Don Parris wrote: > However, it seems that the function doesn't like the > value I give it. > > ### Using Results as the argument to indent() ### > Traceback (most recent call last): > File "ekkles

Re: [Tutor] Alternative File I/O for Tuples (fwd)

2005-06-29 Thread Don Parris
On Wed, 29 Jun 2005 12:37:45 -0400 Kent Johnson <[EMAIL PROTECTED]> wrote: > Don Parris wrote: > > On Wed, 29 Jun 2005 06:38:36 -0400 > > Kent Johnson <[EMAIL PROTECTED]> wrote: > >>Don Parris wrote: > > This is a tough one to interpret. The value being returned from wrapfunc() > is expected to

Re: [Tutor] Alternative File I/O for Tuples (fwd)

2005-06-29 Thread Kent Johnson
Don Parris wrote: > ### playing with wrapfunc (all other args are the same) ### > wrapfunc=lambda x:wrap_onspace(str(rows), x)) > > also > wrapfunc=lambda x:str(wrap_onspace(rows, x))) This is way off base. wrap_onspace takes two arguments - the string to wrap, and the width to wrap to. You are

Re: [Tutor] Cookielib - CookieJar objects

2005-06-29 Thread D. Hartley
first attempt - myjar has no attribute 'value' second attempt - re: myjar = cookielib.CookieJar() for cookie in myjar: print cookie.value In this case the above code should print a single 'B'. This does work. However, it only ever returns me one value. For instance, the first three are

[Tutor] python/ pygame on XP: window not responding

2005-06-29 Thread Tony & Bec Krawczyk
Title: python/ pygame on XP: window not responding I am a new python/ pygame user. In attempting the simple command pygame.display.set_mode((640,480)) The newly created window is not responding. I am using these programs with the Windows XP operating system. Can you provide any suggestion

[Tutor] Missing methods in string module?

2005-06-29 Thread Philip Carl
If I check the Python Libray Reference for String Methods (2.3.6.1) I find many methods listed e.g. decode, encode, endswith etc. that do not seem to be listed by the command line dir(string) in Python 2.4 under Windows XP, although many other methods e.g. capitalize and center are. Why i

Re: [Tutor] python/ pygame on XP: window not responding

2005-06-29 Thread R. Alan Monroe
> I am a new python/ pygame user. In attempting the simple > command pygame.display.set_mode((640,480)) > The newly created window is not responding. I am using these programs with > the Windows XP operating system. Can you provide any suggestions or help > with this issue?? Does the chimp.py ex

Re: [Tutor] Missing methods in string module?

2005-06-29 Thread Brian van den Broek
Philip Carl said unto the world upon 29/06/2005 15:32: > If I check the Python Libray Reference for String Methods (2.3.6.1) I > find many methods listed e.g. decode, encode, endswith etc. that do not > seem to be listed by the command line dir(string) in Python 2.4 under > Windows XP, althoug

Re: [Tutor] Alternative File I/O for Tuples (fwd)

2005-06-29 Thread Don Parris
On Wed, 29 Jun 2005 14:09:41 -0400 Kent Johnson <[EMAIL PROTECTED]> wrote: > Don Parris wrote: > > ### playing with wrapfunc (all other args are the same) ### > > wrapfunc=lambda x:wrap_onspace(str(rows), x)) > > > > also > > wrapfunc=lambda x:str(wrap_onspace(rows, x))) > > This is way off base