Re: Populating huge data structures from disk

2007-11-06 Thread Hrvoje Niksic
"Chris Mellon" <[EMAIL PROTECTED]> writes: > It is a little annoying that there's no way to pre-allocate an > array. It doesn't over-allocate, either, so building on a few bytes > at a time is pretty much worst case behavior. The fine source says: array_resize(arrayobject *self, Py_ssize_t news

finding bluetooth serial port

2007-11-06 Thread Paul Sijben
To automate/ease configuration in my app I am trying to find out to which serial port a certain bluetooth device is connected. With pybluez I can find out which bluetooth devices I have, but it will not tell me the serial port they are mapped to. Is there a way to figure this out from python? (I a

Re: LaTeX tutorial updated

2007-11-06 Thread Byung-Hee HWANG
On Wed, 2007-11-07 at 00:10 +, [EMAIL PROTECTED] wrote: > On Nov 6, 12:30 pm, Nicola Talbot <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I've updated my "Using LaTeX to write a PhD thesis" tutorial. Both PDF > > and HTML versions can be reached via > > http://theoval.cmp.uea.ac.uk/~nlct/latex/ >

Re: How do I get the PC's Processor speed?

2007-11-06 Thread Matthieu Brucher
> > Executing the CPUID instruction may be helpful if you can figure out how > these guys are using it: > http://www.cpuid.com/cpuz.php > Numpy has an interface for this function. Matthieu -- French PhD student Website : http://miles.developpez.com/ Blogs : http://matt.eifelle.com and http:/

Re: manually cutting a picture

2007-11-06 Thread Amit Khemka
On 11/6/07, Joseph king <[EMAIL PROTECTED]> wrote: > I have a kinda hard question i am trying to build a jigsaw game with > python, i would like to give the option for people to create there own > puzzle piece does anyone know how to accomplish this it is becoming > increasingly difficult f

Mail System Error - Returned Mail

2007-11-06 Thread james
This Message was undeliverable due to the following reason: Your message was not delivered because the destination computer was not reachable within the allowed queue period. The amount of time a message is queued before it is returned depends on local configura- tion parameters. Most likely ther

Re: Get Only the Last Items in a Traceback

2007-11-06 Thread [EMAIL PROTECTED]
On Sep 12, 10:35 am, Peter Otten <[EMAIL PROTECTED]> wrote: > Am Wed, 12 Sep 2007 15:09:02 + schrieb [EMAIL PROTECTED]: > > > On Sep 12, 5:17 am, Peter Otten <[EMAIL PROTECTED]> wrote: > > >> Your assessment is wrong. You only get the extra lines in the traceback if > >> you don't immediately w

Re: why did these companies choose Tcl over Python

2007-11-06 Thread VernM
On Oct 30, 1:25 pm, chewie54 <[EMAIL PROTECTED]> wrote: > Hello, > > As an electronics engineer I use some very expensive EDA CAD tool > programs that are scriptable using Tcl. I was wondering why these > companies have choose to use Tcl instead of Python. Some of these > are: > >Mentor Grap

Re: Confused about closures and scoping rules

2007-11-06 Thread Michele Simionato
On Nov 6, 7:37 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > On Nov 6, 2007 6:23 PM, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > > Lots of people ask about this. The behavior you observed is the expected > > (by the implementors, anyway) behavior. > > Are there languages where closures *don

Re: Bill Gates was never the Richest man on earth

2007-11-06 Thread David R Tribble
Zionist wrote: >> Zionazi obviously tries to shift blame and confuse the picture. William Hughes wrote: > One way to recognize a dupe of the Bavarian Illuminati is > their tendency to characterize everyone as Zionists. Another way is their tendency to proclaim quite loudly and emphatically that t

private data stashed in local/global execution context of PyEval_EvalCode disappears down the execution stack

2007-11-06 Thread sndive
i naively created execution context: PyObject *execcontext = PyDict_New(); stuffed a handle in it: PyObject *ih = PyCObject_FromVoidPtr(handle, NULL); int st= PyDict_SetItemString(res, "interp", ih); and later on in a function for a module that i defined expected to extract that handle

RE: Parallel Python environments..

2007-11-06 Thread bruce
hi gabriel... i have my reasons, for some testing that i'm doing on a project. that said, i'm still trying to figure out how to make this occur... thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Gabriel Genellina Sent: Tuesday, November 06, 2007 2

7000+ beautiful Russian women

2007-11-06 Thread brewer
7000+ beautiful Russian women http://groups.google.com/group/all-good-things/web/beautiful-girls-and-ladies -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for a good Python environment

2007-11-06 Thread Jens
Just wrote a mini "review" of three Python code editors on my blog... http://pyminer.blogspot.com/2007/11/python-code-editors.html I use PSPad or Notepad++ for quick editing, and Komodo Edit 4.2 for longer sessions. Komodo Edit is the only one with code completion - a very nice feature. You can p

Re: Python good for data mining?

2007-11-06 Thread Jens
> > Jens, > > You might be interested in this > bookhttp://www.oreilly.com/catalog/9780596529321/index.html > which is new, I just ordered my copy. From the contents shown online, > it has lot of applicability to data mining, using Python, although it > its primary topic is data mining the web, it

zipfile handling

2007-11-06 Thread ad-hoc
is there a rename utility for zipfile that can rename a directory inside a zipfile? also what's the best way to change the a file content inside a zip? So if i have the following file in the zip file: A/a1.txt A/a2.txt B/b1.txt I want to rename A to be A1, and B to be B1, as well as changing the

command-line arguments in IDLE

2007-11-06 Thread Russ P.
Is it possible to pass command-line arguments when running a program in IDLE? The "Run" menu does not seem to provide that option. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Bill Gates was never the Richest man on earth

2007-11-06 Thread William Hughes
On Nov 6, 6:56 pm, [EMAIL PROTECTED] wrote: > Zionazi obviously tries to shift blame and confuse the picture. One way to recognize a dupe of the Bavarian Illuminati is their tendency to characterize everyone as Zionists. - William Hughes -- http://mail.python.org/mailman/lis

Re: Confused about closures and scoping rules

2007-11-06 Thread Fernando Perez
Diez B. Roggisch wrote: > It's a FAQ. The reason is that the created closures don't capture the > _value_, but the _name_. Plus of course the locals()-dictionary outside > the function a to perform the lookup of that name. Which has the value > bound to it in the last iteration. > > Common cure

Re: Confused about closures and scoping rules

2007-11-06 Thread Chris Mellon
On Nov 6, 2007 6:23 PM, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > On Tue, 06 Nov 2007 17:07:47 -0700, Fernando Perez <[EMAIL PROTECTED]> wrote: > > [snip] > > > >This struck me as counterintuitive, but I couldn't find anything in the > >official docs indicating what the expected behavior sho

Re: Populating huge data structures from disk

2007-11-06 Thread Paul Rubin
"Michael Bacarella" <[EMAIL PROTECTED]> writes: > > The way I do it is run a separate process that mmaps the file and > > reads one byte from each page every half hour or so. You are right > > that it makes a huge difference. > > Why not just disable swap? The system is demand paged. If swap is

Re: Confused about closures and scoping rules

2007-11-06 Thread Diez B. Roggisch
Fernando Perez schrieb: > Hi all, > > consider the following small example: > > """ > Small test to try to understand a strange subtlety with closures > """ > > def outer(nmax): > > aa = [] > for n in range(nmax): > > def a(y): > return (y,n) > print 'Closur

Re: Confused about closures and scoping rules

2007-11-06 Thread Jean-Paul Calderone
On Tue, 06 Nov 2007 17:07:47 -0700, Fernando Perez <[EMAIL PROTECTED]> wrote: > [snip] > >This struck me as counterintuitive, but I couldn't find anything in the >official docs indicating what the expected behavior should be. Any >feedback/enlightenment would be welcome. This problem appeared deep

Re: LaTeX tutorial updated

2007-11-06 Thread zionist . news2
On Nov 6, 12:30 pm, Nicola Talbot <[EMAIL PROTECTED]> wrote: > Hi, > > I've updated my "Using LaTeX to write a PhD thesis" tutorial. Both PDF > and HTML versions can be reached viahttp://theoval.cmp.uea.ac.uk/~nlct/latex/ > > I have added/deleted sections, so if you have any links to document > nod

Re: Wanted: Software Engineers in San Jose, CA

2007-11-06 Thread James Matthews
Please use monster.com! or linkedin On Nov 6, 2007 10:49 PM, Peter Hsu <[EMAIL PROTECTED]> wrote: > I hope job posting is appropriate on this mailing list. I couldn't find > anything indicating otherwise. > > > > I'm looking for software engineers of all levels to help create a > next-generatio

Confused about closures and scoping rules

2007-11-06 Thread Fernando Perez
Hi all, consider the following small example: """ Small test to try to understand a strange subtlety with closures """ def outer(nmax): aa = [] for n in range(nmax): def a(y): return (y,n) print 'Closure and cell id:',id(a.func_closure),\ id(a.

Re: Bill Gates was never the Richest man on earth

2007-11-06 Thread zionist . news2
Benjamin Freedman speech with Slide Show (40 Minute Excerpt) http://video.google.com/videoplay?docid=3552214685532803163 Free pdf book: THE MANUFACTURE AND SALE of Saint Einstein @ http://jewishracism.com/SaintEinstein.htm Author interviews @ http://jewishracism.com/interviews.htm Rothschilds co

Re: Looking for a good Python environment

2007-11-06 Thread Jeff
Pida is a nice looking IDE for Python, written in Python with GTK. Emacs is decent, Eclipse has support, too. SciTE is a nice editor if you are looking for something minimal (such as no debugger). -- http://mail.python.org/mailman/listinfo/python-list

Next meeting of the Hamburg Python User Group

2007-11-06 Thread Gerhard Häring
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, if you happen to be in Hamburg, Germany at November, 14th, and you'd like to meet fellow Pythonistas, you should come to Jarrestraße 46 at DDD design, who are generously hosting us again. We will start at 19:30 and this time we will have a pre

Looking for a good Python environment

2007-11-06 Thread [EMAIL PROTECTED]
Hey, I'm looking for a good Python environment. That is, at least an editor and a debugger, and it should run on Windows. Does anyone have any idea? -- http://mail.python.org/mailman/listinfo/python-list

Re: PyObject sanitizer (CPython 2.4.4)

2007-11-06 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > I get this from valgrind (no suppression file but thgis probably is > not covered by the suppressor anyway): > ==6108== Invalid read of size 4 > ==6108==at 0x48D19F4: lookdict_string (dictobject.c:359) > ==6108==by 0x48D1B59: PyDict_GetItem (dictobject.c:554) >

Re: Populating huge data structures from disk

2007-11-06 Thread Chris Mellon
On Nov 6, 2007 3:42 PM, Michael Bacarella <[EMAIL PROTECTED]> wrote: > > > Note that you're not doing the same thing at all. You're > > pre-allocating the array in the C code, but not in Python (and I don't > > think you can). Is there some reason you're growing a 8 gig array 8 > > bytes at a time?

RE: Populating huge data structures from disk

2007-11-06 Thread Michael Bacarella
> > Very sure. If we hit the disk at all performance drops > > unacceptably. The application has low locality of reference so > > on-demand caching isn't an option. We get the behavior we want when > > we pre-cache; the issue is simply that it takes so long to build > > this cache. > > The way I

RE: global name is not defined

2007-11-06 Thread Looney, James B
Looks like you forgot to import EMR_globals, EMR_main, etc. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > ] On Behalf Of barronmo > Sent: Tuesday, November 06, 2007 2:57 PM > To: python-list@python.org > Subject: global name is not defined > > I'm getting

Re: global name is not defined

2007-11-06 Thread Gabriel Genellina
En Tue, 06 Nov 2007 18:57:12 -0300, barronmo <[EMAIL PROTECTED]> escribió: > I'm getting an error msg I don't understand, "global name EMR_globals > is not defined", and could use some help. > > I've separated the application I'm building into several modules. One > of the modules holds variables

Re: How do I get the PC's Processor speed?

2007-11-06 Thread kyosohma
On Nov 6, 3:56 pm, "Michael Bacarella" <[EMAIL PROTECTED]> wrote: > > > This information is hardware dependent and probably unreliable. > > > > Why not run a benchmark and report the results instead? > > > Like bogomips? http://en.wikipedia.org/wiki/Bogomips> > > > That's an interesting idea, but

PyObject sanitizer (CPython 2.4.4)

2007-11-06 Thread sndive
I get this from valgrind (no suppression file but thgis probably is not covered by the suppressor anyway): ==6108== Invalid read of size 4 ==6108==at 0x48D19F4: lookdict_string (dictobject.c:359) ==6108==by 0x48D1B59: PyDict_GetItem (dictobject.c:554) ==6108==by 0x48B1657: instance_geta

Re: Populating huge data structures from disk

2007-11-06 Thread Paul Rubin
"Michael Bacarella" <[EMAIL PROTECTED]> writes: > Very sure. If we hit the disk at all performance drops > unacceptably. The application has low locality of reference so > on-demand caching isn't an option. We get the behavior we want when > we pre-cache; the issue is simply that it takes so lon

Wanted: Software Engineers in San Jose, CA

2007-11-06 Thread Peter Hsu
I hope job posting is appropriate on this mailing list. I couldn't find anything indicating otherwise. I'm looking for software engineers of all levels to help create a next-generation spam filtering solution for Abaca Technology. Abaca is located in San Jose, CA. The job posting for the sen

Re: Parallel Python environments..

2007-11-06 Thread Gabriel Genellina
En Tue, 06 Nov 2007 18:43:10 -0300, bruce <[EMAIL PROTECTED]> escribió: > if i have python 2.4.3 installed, it gets placed in the python2.4 dir.. > if i > don't do anything different, and install python 2.4.2, it too will get > placed in the python2.4 tree... which is not what i want. Any rea

global name is not defined

2007-11-06 Thread barronmo
I'm getting an error msg I don't understand, "global name EMR_globals is not defined", and could use some help. I've separated the application I'm building into several modules. One of the modules holds variables I need to pass from one module to another and is called 'EMR_globals'. Several othe

RE: How do I get the PC's Processor speed?

2007-11-06 Thread Michael Bacarella
> > This information is hardware dependent and probably unreliable. > > > > Why not run a benchmark and report the results instead? > > Like bogomips? http://en.wikipedia.org/wiki/Bogomips> > > That's an interesting idea, but this is in a login script, so I can't > exactly run benchmarks while lo

Re: Populating huge data structures from disk

2007-11-06 Thread Hrvoje Niksic
"Michael Bacarella" <[EMAIL PROTECTED]> writes: > cPickle with protocol 2 has some promise but is more complicated because > arrays can't be pickled. This is not true: >>> import array >>> a = array.array('L') >>> a.extend(xrange(10)) >>> a array('L', [0L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L]) >>

RE: Populating huge data structures from disk

2007-11-06 Thread Michael Bacarella
> Note that you're not doing the same thing at all. You're > pre-allocating the array in the C code, but not in Python (and I don't > think you can). Is there some reason you're growing a 8 gig array 8 > bytes at a time? > > They spend about the same amount of time in system, but Python spends 4.7

Re: Populating huge data structures from disk

2007-11-06 Thread Neil Cerutti
On 2007-11-06, Michael Bacarella <[EMAIL PROTECTED]> wrote: > And there's no solace in lists either: > > $ time python eat800.py > > real4m2.796s > user3m57.865s > sys 0m3.638s > > $ cat eat800.py > #!/usr/bin/python > > import struct > > d = [] > f = open('/dev/zero') > for i in xr

Re: How do I change elements in a list?

2007-11-06 Thread Bruno Desthuilliers
Just Another Victim of the Ambient Morality a écrit : > How do you change certain elements in a list? I'm looking to do the > Python equivalent of this Ruby code: > > > -> first = [1, 2] > => [1, 2] > -> second = first > => [1, 2] > -> first.map! {|i| i + 1} > => [2, 3] > -> first >

RE: Parallel Python environments..

2007-11-06 Thread bruce
thorsten... if i have python 2.4.3 installed, it gets placed in the python2.4 dir.. if i don't do anything different, and install python 2.4.2, it too will get placed in the python2.4 tree... which is not what i want. i'm running rhel4/5... so.. i still need to know what to do/change in order to

Re: How do I get the PC's Processor speed?

2007-11-06 Thread Chris Mellon
On Nov 6, 2007 3:09 PM, <[EMAIL PROTECTED]> wrote: > On Nov 6, 2:51 pm, "Michael Bacarella" <[EMAIL PROTECTED]> wrote: > > > On the problem PCs, both of these methods give me the same information > > > (i.e. only the processor name). However, if I go to "System > > > Properties" and look at the "G

RE: Parallel Python environments..

2007-11-06 Thread bruce
i'm running rhel... so there isn't a python-config script as far as i know.. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Tuesday, November 06, 2007 8:26 AM To: python-list@python.org Subject: Re: Parallel Python environments..

Re: How do I change elements in a list?

2007-11-06 Thread Dan
On Nov 6, 4:11 pm, "Just Another Victim of the Ambient Morality" <[EMAIL PROTECTED]> wrote: > How do you change certain elements in a list? I'm looking to do the > Python equivalent of this Ruby code: > > -> first = [1, 2] > => [1, 2] > -> second = first > => [1, 2] > -> first.map! {|i| i

Re: How do I change elements in a list?

2007-11-06 Thread kyosohma
On Nov 6, 3:11 pm, "Just Another Victim of the Ambient Morality" <[EMAIL PROTECTED]> wrote: > How do you change certain elements in a list? I'm looking to do the > Python equivalent of this Ruby code: > > -> first = [1, 2] > => [1, 2] > -> second = first > => [1, 2] > -> first.map! {|i| i

Re: How do I get the PC's Processor speed?

2007-11-06 Thread Martin v. Löwis
> Is this a WMI function or a PyWin32 function? I guess I'm not seeing > how to actually implement this in Python. Sounds intriguing though. Neither, nor. It's a Win32 function, period (not Py). You would have to use ctypes or some such to call it. See http://msdn2.microsoft.com/en-us/library/ms

Re: How do I get the PC's Processor speed?

2007-11-06 Thread kyosohma
On Nov 6, 3:02 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > On the problem PCs, both of these methods give me the same information > > (i.e. only the processor name). However, if I go to "System > > Properties" and look at the "General" tab, it lists the CPU name and > > processor speed. Do

How do I change elements in a list?

2007-11-06 Thread Just Another Victim of the Ambient Morality
How do you change certain elements in a list? I'm looking to do the Python equivalent of this Ruby code: -> first = [1, 2] => [1, 2] -> second = first => [1, 2] -> first.map! {|i| i + 1} => [2, 3] -> first => [2, 3] -> second => [2, 3] I need to change a list, in place, so o

Re: How do I get the PC's Processor speed?

2007-11-06 Thread kyosohma
On Nov 6, 2:51 pm, "Michael Bacarella" <[EMAIL PROTECTED]> wrote: > > On the problem PCs, both of these methods give me the same information > > (i.e. only the processor name). However, if I go to "System > > Properties" and look at the "General" tab, it lists the CPU name and > > processor speed.

Re: How do I get the PC's Processor speed?

2007-11-06 Thread Martin v. Löwis
> On the problem PCs, both of these methods give me the same information > (i.e. only the processor name). However, if I go to "System > Properties" and look at the "General" tab, it lists the CPU name and > processor speed. Does anyone else know of another way to get at this > information? I'm no

Re: Python launcher not working on Mac after Leopard upgrade?

2007-11-06 Thread Cliff Harris
On Nov 5, 11:57 am, [EMAIL PROTECTED] wrote: > On Nov 3, 7:57 am, André <[EMAIL PROTECTED]> wrote: > > > I just installed Leopard on my Mac. I already was using Python 2.5. > > I can run a Python script from a terminal window by typing "python > > script.py" as one would expect ... but not using

Re: Populating huge data structures from disk

2007-11-06 Thread Chris Mellon
On Nov 6, 2007 2:40 PM, Michael Bacarella <[EMAIL PROTECTED]> wrote: > > > > For various reasons I need to cache about 8GB of data from disk into > core on > > > application startup. > > > > Are you sure? On PC hardware, at least, doing this doesn't make any > > guarantee that accessing it actually

RE: How do I get the PC's Processor speed?

2007-11-06 Thread Michael Bacarella
> On the problem PCs, both of these methods give me the same information > (i.e. only the processor name). However, if I go to "System > Properties" and look at the "General" tab, it lists the CPU name and > processor speed. Does anyone else know of another way to get at this > information? This i

Re: subprocess chokes on spaces in path

2007-11-06 Thread Gabriel Genellina
En Tue, 06 Nov 2007 17:32:33 -0300, BartlebyScrivener <[EMAIL PROTECTED]> escribió: > Using bash on Debian Etch. > > If word_doc = sys.argv[1] and it's a file name like My\ Word.doc this > function reads My and Word as two separate files unless the second > '%s' is quoted. Took me a lot of tria

Re: subprocess chokes on spaces in path

2007-11-06 Thread Thorsten Kampe
* BartlebyScrivener (Tue, 06 Nov 2007 20:32:33 -) > Using bash on Debian Etch. > > If word_doc = sys.argv[1] and it's a file name like My\ Word.doc this > function reads My and Word as two separate files unless the second > '%s' is quoted. Took me a lot of trial and error to discover. Is this

RE: Populating huge data structures from disk

2007-11-06 Thread Michael Bacarella
> > For various reasons I need to cache about 8GB of data from disk into core on > > application startup. > > Are you sure? On PC hardware, at least, doing this doesn't make any > guarantee that accessing it actually going to be any faster. Is just > mmap()ing the file a problem for some reason? >

Re: How do I get the PC's Processor speed?

2007-11-06 Thread kyosohma
On Nov 6, 2:27 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > On Nov 6, 2007 2:12 PM, <[EMAIL PROTECTED]> wrote: > > > > > On Nov 6, 1:35 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > > > > On Nov 6, 2007 1:18 PM, <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > We use a script here at work

subprocess chokes on spaces in path

2007-11-06 Thread BartlebyScrivener
Using bash on Debian Etch. If word_doc = sys.argv[1] and it's a file name like My\ Word.doc this function reads My and Word as two separate files unless the second '%s' is quoted. Took me a lot of trial and error to discover. Is this the most elegant way to do it? I was using popen originally, th

Re: How do I get the PC's Processor speed?

2007-11-06 Thread Jeff McNeil
http://www.linuxhardware.org/features/01/10/09/1514233.shtml AMD has historically used model numbers that are slightly higher than the actual clock speed. I have a 2300 that runs at 1.9. -Jeff On Nov 6, 2007, at 3:27 PM, Chris Mellon wrote: > On Nov 6, 2007 2:12 PM, <[EMAIL PROTECTED]> wro

Re: How do I get the PC's Processor speed?

2007-11-06 Thread Chris Mellon
On Nov 6, 2007 2:12 PM, <[EMAIL PROTECTED]> wrote: > On Nov 6, 1:35 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > > > On Nov 6, 2007 1:18 PM, <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi, > > > > > We use a script here at work that runs whenever someone logs into > > > their machine that log

Re: How do I get the PC's Processor speed?

2007-11-06 Thread kyosohma
On Nov 6, 1:35 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > On Nov 6, 2007 1:18 PM, <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > We use a script here at work that runs whenever someone logs into > > their machine that logs various bits of information to a database. One > > of those bits is th

Re: How do I get the PC's Processor speed?

2007-11-06 Thread Chris Mellon
On Nov 6, 2007 1:18 PM, <[EMAIL PROTECTED]> wrote: > Hi, > > We use a script here at work that runs whenever someone logs into > their machine that logs various bits of information to a database. One > of those bits is the CPU's model and speed. While this works in 95% of > the time, we have some

How do I get the PC's Processor speed?

2007-11-06 Thread kyosohma
Hi, We use a script here at work that runs whenever someone logs into their machine that logs various bits of information to a database. One of those bits is the CPU's model and speed. While this works in 95% of the time, we have some fringe cases where the only thing returned is the processor nam

Re: Bill Gates was never the Richest man on earth

2007-11-06 Thread William Hughes
On Nov 6, 12:53 pm, [EMAIL PROTECTED] wrote: > The world have been after Bill Gates for no reason. The richest group > was and remains the Zionist jew Rothschilds family who own HALF the > worlds total wealth through numerous frontmen zionists. Everyone should know that the Zionists (among others

Re: Populating huge data structures from disk

2007-11-06 Thread Chris Mellon
On Nov 6, 2007 12:18 PM, Michael Bacarella <[EMAIL PROTECTED]> wrote: > > > > > For various reasons I need to cache about 8GB of data from disk into core on > application startup. > Are you sure? On PC hardware, at least, doing this doesn't make any guarantee that accessing it actually going to be

Re: [Python.NET] What can I do with DLL?

2007-11-06 Thread Christian Heimes
jane janet wrote: > I'm a student. I wanna know how to do about my project. > I implemented aplication using Ironpython because I have to use .NET library > and c# code but I also have to use this application with another Python > implemented application. My teacher want me to create DLL file of

Rothschilds own half the worlds wealth directly and indirectly thru zionist proxies Re: Bill Gates was never the Richest man on earth

2007-11-06 Thread zionist . news
Rothschilds control half the world's wealth directly and indirectly using zionist proxies, and loyalty based on the zionist racist cult History of the Rothschilds part 1 http://www.youtube.com/watch?v=o_u2MaNg-EQ History of the Rothschilds part 2 http://www.youtube.com/watch?v=o2cw-0N_Unk FBI, W

Populating huge data structures from disk

2007-11-06 Thread Michael Bacarella
For various reasons I need to cache about 8GB of data from disk into core on application startup. Building this cache takes nearly 2 hours on modern hardware. I am surprised to discover that the bottleneck here is CPU. The reason this is surprising is because I expect something like this to

Re: Bill Gates was never the Richest man on earth

2007-11-06 Thread David R Tribble
Zionist wrote: > The world have been after Bill Gates for no reason. The richest group > was and remains the Zionist jew Rothschilds family who own HALF the > worlds total wealth through numerous frontmen zionists. > > google video and youtube have many videos on the family. You can set > aside par

Re: Low-overhead GUI toolkit for Linux w/o X11?

2007-11-06 Thread Grant Edwards
On 2007-11-06, Damjan <[EMAIL PROTECTED]> wrote: >>> PyQt and PySDL are AFAIK not much "less weight". >> >> They don't use X11. That's a _lot_ "less weight". > > Do you mean the X11 server or the libraries? Both. -- Grant Edwards grante Yow! Bo Derek ruined

Re: regular expressions

2007-11-06 Thread Paul McGuire
On Nov 6, 11:07 am, "J. Clifford Dyer" <[EMAIL PROTECTED]> wrote: > On Tue, Nov 06, 2007 at 08:49:33AM -0800, [EMAIL PROTECTED] wrote regarding > regular expressions: > > > > > hi i am looking for pattern in regular expreesion that replaces > > anything starting with and betweeen http:// until / >

Re: Insane crazy question - printing commands

2007-11-06 Thread Donn Ingle
Thanks for the replies -- Python, is there anything it can't do? :D \d -- http://mail.python.org/mailman/listinfo/python-list

Bill Gates was never the Richest man on earth

2007-11-06 Thread zionist . news
The world have been after Bill Gates for no reason. The richest group was and remains the Zionist jew Rothschilds family who own HALF the worlds total wealth through numerous frontmen zionists. Mikhail Khodorkovsky, whom Russian President Vladimir I Putin put in jail rose from the Rothschilds mone

Re: Insane crazy question - printing commands

2007-11-06 Thread Marc 'BlackJack' Rintsch
On Tue, 06 Nov 2007 19:42:08 +0200, Donn wrote: > Tried that, but get this error. I did a dir(inspect) in the command env. and > getsource it definitely there... > > Traceback (most recent call last): > File "inspect.py", line 1, in ? > import inspect > > File > "/home/donn/Projects/py

Re: Insane crazy question - printing commands

2007-11-06 Thread Guilherme Polo
2007/11/6, Donn <[EMAIL PROTECTED]>: > > import inspect > > > > class Box: > > def draw(self): > > print "hi" > > return 3 > > > > x = Box() > > print inspect.getsource(x.draw) > > Tried that, but get this error. I did a dir(inspect) in the command env. and > getsource it definitely there... > > Tr

Re: Insane crazy question - printing commands

2007-11-06 Thread Jean-Paul Calderone
On Tue, 06 Nov 2007 19:09:21 +0200, Donn Ingle <[EMAIL PROTECTED]> wrote: >Hi, >I'm doing something odd with pycairo and friends and I want to see what >commands are coming out of my objects. > >Here's some code: > >class Box: > def draw() > self.context.set_source_rgb(1, 0, 0) > self.context.rec

Re: Insane crazy question - printing commands

2007-11-06 Thread Donn
> import inspect > > class Box: >     def draw(self): >         print "hi" >         return 3 > > x = Box() > print inspect.getsource(x.draw) Tried that, but get this error. I did a dir(inspect) in the command env. and getsource it definitely there... Traceback (most recent call last): File "i

Re: Insane crazy question - printing commands

2007-11-06 Thread Guilherme Polo
2007/11/6, Donn Ingle <[EMAIL PROTECTED]>: > Hi, > I'm doing something odd with pycairo and friends and I want to see what > commands are coming out of my objects. > > Here's some code: > > class Box: > def draw() > self.context.set_source_rgb(1, 0, 0) > self.context.rectangle(0, 00, 50, 50) >

Insane crazy question - printing commands

2007-11-06 Thread Donn Ingle
Hi, I'm doing something odd with pycairo and friends and I want to see what commands are coming out of my objects. Here's some code: class Box: def draw() self.context.set_source_rgb(1, 0, 0) self.context.rectangle(0, 00, 50, 50) self.context.fill() Box.draw() draws a red box, all fine. B

Re: Low-overhead GUI toolkit for Linux w/o X11?

2007-11-06 Thread Damjan
>> PyQt and PySDL are AFAIK not much "less weight". > > They don't use X11. That's a _lot_ "less weight". Do you mean the X11 server or the libraries? The kdrive server should be fairly small (depending on features). I think it builds from the main xorg source today?? Isn't that what maemo uses.

Re: regular expressions

2007-11-06 Thread J. Clifford Dyer
On Tue, Nov 06, 2007 at 08:49:33AM -0800, [EMAIL PROTECTED] wrote regarding regular expressions: > > hi i am looking for pattern in regular expreesion that replaces > anything starting with and betweeen http:// until / > like http://www.start.com/startservice/yellow/ fdhttp://helo/abcd will > be

Re: pyuno and calc

2007-11-06 Thread Rafael Sachetto
Maybe here: http://www.broffice.org/odfpy1 On 11/6/07, luca72 <[EMAIL PROTECTED]> wrote: > > Hello > Can you tell me where i can find some example that's show how to open > an existing oocalc document and get some data from it? > > Thanks Luca > > -- > http://mail.python.org/mailman/listinfo/pytho

Re: regular expressions

2007-11-06 Thread Paul Hankin
On Nov 6, 4:49 pm, [EMAIL PROTECTED] wrote: > hi i am looking for pattern in regular expreesion that replaces > anything starting with and betweeen http:// until / > likehttp://www.start.com/startservice/yellow/fdhttp://helo/abcdwill > be replaced as > p/startservice/yellow/ fdp/abcd What have you

Re: python equivalent to heckle

2007-11-06 Thread Simon Brunning
On 11/6/07, rustom <[EMAIL PROTECTED]> wrote: > heckle in ruby is inspired by jester for java. I quote: > > Heckle is a mutation tester. It modifies your code and runs your tests > to make sure they fail. The idea is that if code can be changed and > your tests don't notice, either that code isn't

Re: *** Will DEVASTATE and BANKRUPT any Brit daring to get out of line ***

2007-11-06 Thread zionist . news
Thanks for the useful info ... appreciate your efforts. On Oct 26, 10:37 am, [EMAIL PROTECTED] wrote: > http://www.ft.com/cms/s/0/56cb5b92-10a7-11dc-96d3-000b5df10621.html?n... > > Harvard legal expert vows to sue lecturers boycotting Israel > > By Jon Boone > > Published: June 2 2007 03:00 > > A

Re: Parallel Python environments..

2007-11-06 Thread Diez B. Roggisch
bruce wrote: > Hi.. > > If I wanted to be able to build/test/use parallel python versions, what > would I need to do/set (paths/libs/etc...) and where would I need to place > the 2nd python version, so as not to screw up my initial python dev env. > > I'd like to be able to switch back/forth bet

Re: Is pyparsing really a recursive descent parser?

2007-11-06 Thread asdfjehqwjerhqjwljekrh
On Nov 2, 6:47 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > Well I'll be darned! All this time, I thought "recursive descent" > described the recursive behavior of the parser, which pyparsing > definitely has. I never knew that backing up in the face of parse > mismatches was a required part of

Re: Parallel Python environments..

2007-11-06 Thread [EMAIL PROTECTED]
In Gentoo Linux you can select between installed python version using python-config script. -- http://mail.python.org/mailman/listinfo/python-list

python equivalent to heckle

2007-11-06 Thread rustom
heckle in ruby is inspired by jester for java. I quote: Heckle is a mutation tester. It modifies your code and runs your tests to make sure they fail. The idea is that if code can be changed and your tests don't notice, either that code isn't being covered or it doesn't do anything. from http://gl

Re: Parallel Python environments..

2007-11-06 Thread Thorsten Kampe
* bruce (Tue, 6 Nov 2007 07:13:43 -0800) > If I wanted to be able to build/test/use parallel python versions, what > would I need to do/set (paths/libs/etc...) nothing > and where would I need to place the 2nd python version, so as not to > screw up my initial python dev env. Anywhere you like (

Re: Drawing charts in Qt

2007-11-06 Thread David Boddie
On Tue Nov 6 15:46:07 CET 2007, Michel Albert wrote: [PyQwt and matplotlib] > PyQwt looks much more interesting, but I have trouble installing it. > On my machine it complains that sipconfig "has no attribute > '_pkg_config'". Is the configuration script finding the sipconfig file for SIP 3 or S

pyuno and calc

2007-11-06 Thread luca72
Hello Can you tell me where i can find some example that's show how to open an existing oocalc document and get some data from it? Thanks Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: How to use list as key of dictionary?

2007-11-06 Thread Steven D'Aprano
On Tue, 06 Nov 2007 11:25:29 +, Duncan Booth wrote: > Steven D'Aprano <[EMAIL PROTECTED]> wrote: > > > >> Not quite, because that will also convert strings to tuples, which may >> not be what you want for a general solution. > > I take it you didn't actually try the original code then. N

Re: Is pyparsing really a recursive descent parser?

2007-11-06 Thread Neil Cerutti
On 2007-11-05, Just Another Victim of the Ambient Morality <[EMAIL PROTECTED]> wrote: > "Kay Schluehr" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> I'm not sure one needs to start again with a naive approach >> just to avoid any parser theory. For a user of a parser it is >> qu

  1   2   >