[Tutor] Fun with Cookies

2007-09-07 Thread Alex Ezell
mpleCookie instances, etc. and I always get this error on that line: __init__() takes at least 17 arguments (2 given) Thanks for your time. Alex Ezell ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Fun with Cookies

2007-09-07 Thread Alex Ezell
ame, value, domain and path), it seems messy to have a bunch of "None"s in there. Thanks again, Alex On 9/7/07, Kent Johnson <[EMAIL PROTECTED]> wrote: > Alex Ezell wrote: > > Hi all, > > I am trying to create a cookie and send it a long with a request. > > >

[Tutor] Calling a Method with a Reserved Name

2007-10-24 Thread Alex Ezell
I am working on building a SOAP client. Unfortunately, one of the methods the SOAP server provides is named "import." The SOAP server is written in PHP. So, my problem is that Python really doesn't like me using the word "import" to call the SOAP method. The call should look something like this:

Re: [Tutor] Calling a Method with a Reserved Name

2007-10-24 Thread Alex Ezell
On 10/24/07, Kent Johnson <[EMAIL PROTECTED]> wrote: > Alex Ezell wrote: > > I am working on building a SOAP client. Unfortunately, one of the > > methods the SOAP server provides is named "import." The SOAP server is > > written in PHP. > > > > So,

Re: [Tutor] Calling a Method with a Reserved Name

2007-10-24 Thread Alex Ezell
Oops, meant to send to the list. Sorry, Kent. > > > >>> I am working on building a SOAP client. Unfortunately, one of the > > > >>> methods the SOAP server provides is named "import." The SOAP server is > > > >>> written in PHP. > > > >>> > > > >>> So, my problem is that Python really doesn't like

Re: [Tutor] Calling a Method with a Reserved Name

2007-10-24 Thread Alex Ezell
On 10/24/07, Kent Johnson <[EMAIL PROTECTED]> wrote: > Alex Ezell wrote: > > ># TODO figure out how to call this soap method with reserved name > >self.call_response = self.soap.import(self.soap_auth, > > file_name, import_groups, soap_flags

Re: [Tutor] New Introductory Book

2007-11-06 Thread Alex Ezell
On 11/6/07, Chris Calloway <[EMAIL PROTECTED]> wrote: > Michael H. Goldwasser wrote: > >We are pleased to announce the release of a new Python book. > > Why is this book $102? Supply and demand aside, I suspect the market for this, based on both the publisher and the author's employment, is mo

[Tutor] Truncate First Line of File

2008-02-27 Thread Alex Ezell
I must be missing some simple method on a file object or something. What I need to do is to truncate the first line of a file which has an unknown number of lines and an unknown size. The only thing I can think to do is to readlines() and then slice off the first line in the resulting list, then

Re: [Tutor] Truncate First Line of File

2008-02-27 Thread Alex Ezell
On Wed, Feb 27, 2008 at 5:01 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > > Alex Ezell wrote: > > I must be missing some simple method on a file object or something. > > > > What I need to do is to truncate the first line of a file which has an > > unknown

Re: [Tutor] Truncate First Line of File

2008-02-27 Thread Alex Ezell
Thanks to everyone for the help. My coworker seems to really prefer doing it via some system call. She seems to think it's possible quickly with csplit, which I've never used. I'll be investigating it in the morning, because she's really good at what she does. :) /alex On Wed, Feb 27, 2008 at 6:

Re: [Tutor] Doubts about Pylint

2008-04-09 Thread Alex Ezell
On Wed, Apr 9, 2008 at 11:43 AM, Dick Moores <[EMAIL PROTECTED]> wrote: > Comments? Since we started using code profilers and checkers like pyLint etc., we've had a motto: "This is a guide. It is not the gospel." Take from pylint what you think helps and ignore the rest. It's just a tool and yo