Re: [Tutor] Python Best Practice/Style Guide question

2008-04-30 Thread Alan Gauld
"Arthur" <[EMAIL PROTECTED]> wrote i like to write variable the kamelWay (i learned it from some javascript book some time ago) Camel case is fine. I thionk it actually originated in smalltalk 74 so its been around a long time. but i never use spaces even in between : variableName=variableV

[Tutor] Strip?

2008-04-30 Thread Hansen, Mike
strip( s[, chars]) Return a copy of the string with leading and trailing characters removed. If chars is omitted or None, whitespace characters are removed. If given and not None, chars must be a string; the characters in the string will be stripped from the both ends of the string thi

Re: [Tutor] Strip?

2008-04-30 Thread Wolfram Kraus
Am 30.04.2008 16:18, Hansen, Mike schrieb: strip( s[, chars]) Return a copy of the string with leading and trailing characters removed. If chars is omitted or None, whitespace characters are removed. If given and not None, chars must be a string; the characters in the string will be

Re: [Tutor] Strip?

2008-04-30 Thread Alan Gauld
"Hansen, Mike" <[EMAIL PROTECTED]> wrote What characters are included as whitespace characters? Spaces? Tabs? Newlines? For some reason, I was reading whitespace as just spaces. See wikipedia for miore info but: "...C defines whitespace to be "... space, horizontal tab, new-line, vertical t

Re: [Tutor] Strip?

2008-04-30 Thread Alan Gauld
"Wolfram Kraus" <[EMAIL PROTECTED]> wrote What characters are included as whitespace characters? Spaces? Tabs? Newlines? For some reason, I was reading whitespace as just spaces. "whitespace A string containing all characters that are considered whitespace. On most systems this includ

[Tutor] send and receive HTTP POST

2008-04-30 Thread shawn bright
Hey there all, I have been spending some time trying to get my head around how to send info by POST and read the result. These are examples of what i need to read and write . I think i can pull off the writing part, but how do i call it? POST /soap/SMS.asmx HTTP/1.1 Host: api.upsidewireless.com

Re: [Tutor] send and receive HTTP POST

2008-04-30 Thread Kent Johnson
> POST /soap/SMS.asmx HTTP/1.1 > Host: api.upsidewireless.com > Content-Type: text/xml; charset=utf-8 > Content-Length: length > SOAPAction: "http://upsidewireless.com/webservice/sms/Send_Plain"; It looks like you need SOAPpy: http://diveintopython.org/soap_web_services/ Kent ___