Re: multithreading in python ???
On Jul 3, 12:40 pm, Laszlo Nagy <[EMAIL PROTECTED]> wrote: > Abhishek Asthana wrote: > > > Hi all , > > > I have large set of data computation and I want to break it into > > small batches and assign it to different threads .I am implementing it > > in python only. Kindly help what all libraries should I refer to > > implement the multithreading in python. > > You should not do this. Python can handle multiple threads but they > always use the same processor. (at least in CPython.) In order to take > advantage of multiple processors, use different processes. > > L or use parallelpython module, very good in multi processor| multimachine prog. in python -- http://mail.python.org/mailman/listinfo/python-list
Re: CTypes, 64 bit windows, 32 bit dll
On Mar 31, 4:22 pm, rdahlstrom <[EMAIL PROTECTED]> wrote: > So I have a 64 bit Windows 2003 system, running python 2.5.1.1. > > I can import a Windows .dll (msvcrt or whatever) using ctypes, but > when attempting to import another application-specific .dll (tibrv.dll > if anyone is familiar with it), I receive the error WindowsError: > [Error 193] %1 is not a valid Win32 application. > > I know there's a Windows on Windows (wow) which allows 32 bit > processes to run on 64 bit windows - is there a way to work this in > somehow? Maybe I'm barking up the wrong tree? > > Code is simple, and works on 32 bit systems no > > from ctypes import * > #this doesn't work > tibrv = cdll.tibrv > #this does work > msvcrt = cdll.msvcrt all dlls and python must be 32bit or 64bit, no mixed ... -- http://mail.python.org/mailman/listinfo/python-list
Re: a name error
or import sys from urllib2 import * try: r=urllib2.urlopen("http://un-know-n.com/";) except URLError,e: print str(e) sys.exit(1) print r.info() se python scope and namespaces .. -- http://mail.python.org/mailman/listinfo/python-list
Re: what does int means for python ?
On May 11, 12:05 pm, alefajnie <[EMAIL PROTECTED]> wrote: > > try arr[2][3] instead. > > > basically your version is trying to index an array with a tuple argument > > (2,3). > > > --irmen > > oh, you're right. > > btw, is any simple way to create multi-dimension array ? > any built-in function ? test numpy from scipy package :) on www.scipy.org -- http://mail.python.org/mailman/listinfo/python-list