Re: Unit Testing in Python

2005-02-18 Thread Lion Kimbro
No-nonsense PyUnit skeleton: http://www.python.org/moin/PyUnit Copy & Paste. Though there's a new module, [http://codespeak.net/py/current/doc/test.html py.test,] that's easier in many ways. -- http://mail.python.org/mailman/listinfo/python-list

Re: unicode and socket

2005-02-18 Thread Lion Kimbro
You probably want to use UTF-16 or UTF-8 on both sides of the socket. See http://www.python.org/moin/Unicode for more information. So, we have a Unicode string... >>> mystring=u'eggs and ham' >>> mystring u'eggs and ham' Now, we want to send it over: >>> to_send=mystring.encode('utf-8') >>> to_s