Re: [Tutor] Python and unicode

2006-03-11 Thread Ferry Dave Jäckel
Hi Michael and Kent, thanks to your tips I was able to solve my problems! It was quite easy at last. For those interested and struggling with utf-8, ascii and unicode: After knowing the right way of - string.decode() upon input (if in question) - string.encode() upon output (more often th

[Tutor] Python and unicode

2006-03-09 Thread Ferry Dave Jäckel
Hello list, I try hard to understand python and unicode support, but don't get it really. What I thought about this until yesterday :) If I write my script in unicode encoding and put the magic # -*- coding: utf-8 -*- at its start, I can just use unicode everywhere without problems. Reading str

Re: [Tutor] Talking to hardware with python

2005-05-11 Thread Ferry Dave Jäckel
Hi Alan, Am Montag, 9. Mai 2005 08:07 schrieb Alan Gauld: > The only advice I'd offer is to stick to a C interface rather > than C++ and provide the OO wrapper at the Python layer. But thats another layer. A c-interface, swig, and python-abstraction. As Python function calls are rather slow and

[Tutor] Talking to hardware with python

2005-05-08 Thread Ferry Dave Jäckel
Hello list, I want to talk to a custom usb-device (cypress CY7C63001A with firmware from ak modulbus) with python on win32 and linux (and maybe mac). For win32 there is a driver (as sys-file) and for linux an old deprecated driver which I'm going to rewrite for kernel 2.6.x. As I have only min