Re: Perl Hacker, Python Initiate

2011-02-02 Thread wander.lairson
2011/2/2 Gary Chambers : > All, > > Given the following Perl script: > > #!/usr/bin/perl > > %dig = ( >    solaris => "/usr/sbin/dig", >    linux   => "/usr/bin/dig", >    darwin  => "/usr/bin/dig" > ); > > $DIG = $dig{"$^O"}; > $DOMAIN = "example.com"; > $DNS = "ns.example.com"; > $DIGCMD = qq/$DI

ctypes and cygwin

2011-01-11 Thread wander.lairson
Hello, I was trying to use the libusb 1.0 with cygwin environments and noticed that this library uses stdcall calling convention, but ctypes does not have WinDLL object for cygwin. As far as I know, libusb builds with stdcall calling convention on cygwin by default. My question is if ctypes should

PyPi question

2011-01-04 Thread wander.lairson
Dear all, I am the PyUSB author and recently I was asked to update pyusb package in the PyPi. The point is that I am not the maintainer and don't know who is. Now I need to contact the current package maintainer but I could not find how to do so through PyPi (as maintainer's email does not show).

PyUSB 1.0.0 alpha 1 release

2010-12-29 Thread wander.lairson
Dear all, PyUSB 1.0.0 alpha 1 is out. Since alpha 0, this version : - Standard control requests through usb.control module. - String descriptors through usb.util module. - Complete PyUSB 0.4 API emulation. - Working libusb 1.0 support under Windows. For details check the ReleaseNotes.txt and Cha

Re: array and strings in Python 3

2010-12-11 Thread wander.lairson
> The `array` module's handling of strings changed as well. Reading the > Python 3 docs @ http://docs.python.org/dev/library/array.html , we > find (all emphases added): > class array.array(typecode[, initializer]) >    [...] >    If given a list or string, the initializer is passed to the new > ar

array and strings in Python 3

2010-12-11 Thread wander.lairson
Hello, This is my first post on python mailing list. I've working in code which must run on python 2 and python 3. I am using array.array as data buffers. I am stuck with the following code line, which works on Python 2, but not on Python 3.1.2: >>> import array >>> array.array('B', 'test') Trace