Re: Write bits in file

2008-05-18 Thread Monica Leko
On May 18, 2:20 pm, Ken Starks <[EMAIL PROTECTED]> wrote: > You want your file considered as a sequence of bits rather > than a sequence of 8-bit bytes, do you? Yes. > is the 10-bit > bit-pattern to be stored at an arbitrary bit-position in > the file Yes. I need arbitrary, 8bits, than 10 bits

Write bits in file

2008-05-18 Thread Monica Leko
Hi I have a specific format and I need binary representation. Does Python have some built-in function which will, for instance, represent number 15 in exactly 10 bits? -- http://mail.python.org/mailman/listinfo/python-list

Unit testing Web applications

2008-03-05 Thread Monica Leko
Hi! Does Python has some testing frameworks for testing Web applications (like Cactus and HttpUnit for Java), generating requests and checking if the response is correct? -- http://mail.python.org/mailman/listinfo/python-list

Exception or not

2008-03-03 Thread Monica Leko
Suppose you have some HTML forms which you would like to validate. Every field can have different errors. For example, this are the forms: username password etc And you want to validate them with some class. Is this good pattern: class Foo(object): def validateUsername(username): if username