Re: Auto execute python in USB flash disk

2007-03-27 Thread Ene
On Mar 27, 9:56 am, "Brian Erhard" <[EMAIL PROTECTED]> wrote:
> I am still fairly new to python and wanted to attempt a home made
> password protection program.  There are files that I carry on a USB
> flash drive that I would like to password protect.  Essentially, I
> would like to password protect an entire directory of files.  Is there
> a way to auto execute a python script after a user double clicks to
> open a folder on the USB drive? How can you capture that double click
> event on a specific folder?
>
> Thanks.

Install the free PortablePython from http://www.portablepython.com/ on
your USB
flash drive, and go from there.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Numeric Soup

2007-03-27 Thread Ene
On Mar 27, 9:49 am, "Erik Johnson" <[EMAIL PROTECTED]> wrote:
> I am just starting to explore doing some scientific type data analysis
> using Python, and am a little confused by the different incarnations of
> modules (e.g., try Google("Python numeric").
>
> There is SciPy, NumPy, NumArray, Numeric...  I know some of these are
> related and some are separate, some are oudated, etc. but can someone sort
> of give a general run-down in layman's terms of what's what, what's used for
> what, what depends on what, and what's current?
>
> At this point my interest is just sort of general, fast array
> manipulation and DSP.
>
> Thanks!

Numeric was slow at large-arrays, so numarray was born.  Well numarray
turned out to be slow at small arrays, so numpy was born. It is trying
to merge Numeric and Numpy together. As it stands Matplotlib does not
support numpy (thus my suggestion to install two of the three - my
choice: numarray + numpy)

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Character set woes with binary data

2007-04-01 Thread Ene
On Apr 1, 11:44 am, John Nagle <[EMAIL PROTECTED]> wrote:
> Michael B. Trausch wrote:
> > In short:  How do I create a string that contains raw binary content
> > without Python caring?  Is that possible?
>
> Given where we're now at with strings in Python, Python should
> really have a "byte" type and a way to deal with arrays of bytes,
> independent of the string operators.
>
> Efficient handling of lists of bytes would do it.
>
> John Nagle

Python has a module base64 that allows you to handle binary data as a
string.

-- 
http://mail.python.org/mailman/listinfo/python-list