Re: How to install pip for python3 on OS X?

2013-11-20 Thread Craig Yoshioka
Mavericks? Homebrew all the way. Google Homebrew and install it brew install python3 pip3 install pyserial Craig reporting from the road 10550 N Torrey Pines Rd La Jolla CA 92037 work: 858 784 9208 cell: 619 623 2233 > On Nov 19, 2013, at 10:55 PM, Travis Griggs wrote: > > OSX (Mavericks) ha

Re: Beowulf clusters

2013-01-13 Thread Craig Yoshioka
When you write HPC code the GIL isn't an issue, but you'll have plenty of others. Craig reporting from the road 10550 N Torrey Pines Rd La Jolla CA 92037 work: 858 784 9208 cell: 619 623 2233 On Jan 13, 2013, at 6:22 PM, Mark Janssen wrote: > On Sun, Jan 13, 2013 at 8:19 PM, Oscar Benjamin >

Re: RIse and fall of languages in 2012

2013-01-10 Thread Craig Yoshioka
At one point or another I'm pretty sure I've googled "_ sucks" for every language I've ever used- even the ones I like. ie: Python easily more than once. Craig reporting from the road 10550 N Torrey Pines Rd La Jolla CA 92037 work: 858 784 9208 cell: 619 623 2233 On Jan 10, 2013, at 3:32 P

Re: alternative to with statement?

2012-02-28 Thread Craig Yoshioka
till coordinate their activity, by waiting for each other to finish, and reusing the cached results, etc. On Feb 28, 2012, at 1:04 PM, Craig Yoshioka wrote: > I see that there was previously a PEP to allow the with statement to skip the > enclosing block... this was shot down, and I

alternative to with statement?

2012-02-28 Thread Craig Yoshioka
I see that there was previously a PEP to allow the with statement to skip the enclosing block... this was shot down, and I'm trying to think of the most elegant alternative. The best I've found is to abuse the for notation: for _ in cachingcontext(x): # create cached resources here # return

Re: help with multiprocessing pool

2011-01-27 Thread Craig Yoshioka
011, at 10:38 AM, Philip Semanchuk wrote: > > On Jan 27, 2011, at 1:12 PM, Craig Yoshioka wrote: > >> The code will be multi-platform. The OSXisms are there as an example, >> though I am developing on OS X machine. >> >> I've distilled my problem down to a sim

Re: help with multiprocessing pool

2011-01-27 Thread Craig Yoshioka
g out here. This means that some examples, such as themultiprocessing.Pool examples will not work in the interactive interpreter. Thanks. On Jan 27, 2011, at 6:39 AM, Philip Semanchuk wrote: > > On Jan 25, 2011, at 8:19 PM, Craig Yoshioka wrote: > >> Hi all, >> >>

help with multiprocessing pool

2011-01-25 Thread Craig Yoshioka
Hi all, I could really use some help with a problem I'm having. I wrote a function that can take a pattern of actions and it apply it to the filesystem. It takes a list of starting paths, and a pattern like this: pattern = { InGlob('Test/**'):{ MatchRemove('DS_Store'

Re: lambdas

2010-06-14 Thread Craig Yoshioka
Sorry, the first example should be: class Status(object): def __init__(self,definitions): for key,function in definitions: setattr(self,key,property(function)) On Jun 14, 2010, at 3:06 PM, Craig Yoshioka wrote: > I'm trying to write

lambdas

2010-06-14 Thread Craig Yoshioka
I'm trying to write a class factory to create new classes dynamically at runtime from simple 'definition' files that happen to be written in python as well. I'm using a class factory since I couldn't find a way to use properties with dynamically generated instances, for example: I would prefer