new python contracts library

2011-07-12 Thread Rodney Gomes
Hey I recently created a contracts library for python and was wondering if anyone finds it useful or wants to have additional features added ? Feel free to open new issues on the github project. https://github.com/rlgomes/contracts This is just a v0.1 and I welcome any and all suggestions to m

Re: Extended slicing and Ellipsis - where are they used?

2007-09-15 Thread Rodney Maxwell
On Sep 13, 5:50 pm, James Stroud <[EMAIL PROTECTED]> wrote: > Rodney Maxwell wrote: > > The following are apparently legal Python syntactically: > >L[1:3, 8:10] > >L[1, ..., 5:-2] > > > But they don't seem to work on lists: > >>>>

Re: Extended slicing and Ellipsis - where are they used?

2007-09-15 Thread Rodney Maxwell
On Sep 13, 5:50 pm, James Stroud <[EMAIL PROTECTED]> wrote: > Rodney Maxwell wrote: > > The following are apparently legal Python syntactically: > >L[1:3, 8:10] > >L[1, ..., 5:-2] > > > But they don't seem to work on lists: > >>>>

Extended slicing and Ellipsis - where are they used?

2007-09-13 Thread Rodney Maxwell
>>> l[...] Traceback (most recent call last): File "", line 1, in TypeError: list indices must be integers So where is this extended slicing used? -- Rodney -- http://mail.python.org/mailman/listinfo/python-list

Why is 'None' not assignable but 'True'/'False' are?

2006-01-02 Thread Rodney Maxwell
In Python 2.4.1: >>> None = 99 SyntaxError: assignment to None >>> True = 99 >>> False = 99 >>> True == False True --- So why is 'None' special? -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie - SOAP return message with embedded ZIP file

2005-12-31 Thread Rodney
I actually tried both SOAPpy and ZSI but both return a error message with the incoming SOAP message that basicly said it was not a proper SOAP message. "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Rodney schrieb: >> Hi again,

Newbie - SOAP return message with embedded ZIP file

2005-12-29 Thread Rodney
Hi again, thanks for the help with figuring out how to parse a SOAP return message. I know have a return message that has an embedded ZIP file in it. Can anyone help me figure out how to extract this file from the SOAP return message. The message looks as following: '\x0c \x00\x00\x00)\x00)\

Re: Newbie needs help extracting data from XML

2005-12-29 Thread Rodney
Thanks for the help This was a SOAP Webservice message. I used httplib instead of SOAPpy or ZSI because SOAPpy cann't do arrays of complex type and ZSI was confusing. Thanks again "Rodney" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, >

Newbie needs help extracting data from XML

2005-12-28 Thread Rodney
Hi, Im a Python newbie and am trying to get the data out of a series of XML files. So for example the xml is: http://schemas.xmlsoap.org/soap/envelope/"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:tns="http://www.ExchangeNetwork.net/schema/v1.0/node.wsdl"; xmlns:types="

SOAPpy SOAP and/or WSDL Question

2005-12-03 Thread Rodney
Hi all, I am relatively weak in Python and I need some help with this. I have built a series of SOAP client functions that ping, authenticate (password username), and query a SOAP server. All works well but I cannt figure out on part of the download SOAP outgoing message. I also tried WSDL a

Re: SOAP - Beginner Desperately looking for Help

2005-11-26 Thread Rodney Garland
Thanks :-) "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> I wanted to attach these - however, taht didn't work for NNTP, so I mail >> them to you. > > Didn't work - my mail server won't let me send these to you. So you're on > your own here. Shouldn't be too

SOAP - Beginner Desperately looking for Help

2005-11-26 Thread Rodney Garland
cann't figure out how to do this. I have tried SOAPpy and httplib and I cann't send the correct XML outgoing message. Any help with this would be greatly appreciated. Following is the needed outgoing XML file and my successful SOAPpy code. Thank you, Rodney ([EMAIL PROTECTED])

Re: python.exe on Mac OS X!?

2005-04-17 Thread Rodney Maxwell
> The default file system on MacOSX is case insensitive. As a result the .exe > extension is required to disambiguate the generated executable from the > Python directory in the source distro. OK. I got it. -- http://mail.python.org/mailman/listinfo/python-list

Re: python.exe on Mac OS X!?

2005-04-17 Thread Rodney Maxwell
>> executable produced was 'python.exe'. Can someone tell me whether this >> is a bug, feature, or UserError? > I'm not sure. Why don't you grab the binary? > http://www.python.org/ftp/python/2.4.1/MacPython-OSX-2.4.1-1 .dmg Because I need to keep multiple versions of Python on this machine, and

python.exe on Mac OS X!?

2005-04-17 Thread Rodney Maxwell
I did a source code build of Python 2.4.1 on OS X (10.3.8) and the executable produced was 'python.exe'. Can someone tell me whether this is a bug, feature, or UserError? % ./configure % make % ./python.exe Python 2.4.1 (#1, Apr 17 2005, 12:14:12) [GCC 3.3 20030304 (Apple Computer, Inc. build 14

Re: How to turn a variable name into a string?

2005-03-11 Thread Rodney Maxwell
> c = None (result of an assignment after the os.environ.get() returned a KeyError). Why not trap the KeyError? -- http://mail.python.org/mailman/listinfo/python-list

None in string formatting

2005-03-08 Thread rodney . maxwell
Was doing some string formatting, noticed the following: >>> x = None >>> "%s" % x 'None' Is there a reason it maps to 'None'? I had expected ''. -- http://mail.python.org/mailman/listinfo/python-list

Video Catalogue

2004-11-30 Thread Rodney Dangerfield
Greetz! Recently I started creating a CGI application for my gf that she would use for indexing and keeping track of her video collection. I am relatively new to python so I started with the basics. I figured out how to extract the form field values in a script and how to save to a file. My ques