On 18 May 2013 20:33, "Dennis Lee Bieber" wrote:
> Python threads work fine if the threads either rely on intelligent
> DLLs for number crunching (instead of doing nested Python loops to
> process a numeric array you pass it to something like NumPy which
> releases the GIL while crunching
On 20May2013 13:23, Greg Ewing wrote:
| Cameron Simpson wrote:
| >It's an int _subclass_ so that it is no bigger than an int.
|
| If you use __slots__ to eliminate the overhead of an
| instance dict, you'll get an object consisting of a
| header plus one reference, which is probably about the
| s
On 19May2013 09:01, Peter Otten <__pete...@web.de> wrote:
| Cameron Simpson wrote:
|
| > TL;DR: I think I want to modify an int value "in place".
| >
| > Yesterday I was thinking about various "flag set" objects I have
| > floating around which are essentially bare "object"s whose attributes
| >
Terry Jan Reedy wrote:
>> Do you think tkinter is going to be the standard python built-in gui
>> solution as long as python exists?
>
> AT the moment, there is nothing really comparable that is a realistic
> candidate to replace tkinter.
FLTK? (http://www.fltk.org/index.php)
--
ZeD
--
http:
On 19May2013 20:54, Avnesh Shakya wrote:
|How to run a python script twice randomly in a day? Actually
| I want to run my script randomly in a day and twice only. Please
| help me.. how is it possible.
Do you mean "run twice a day, each at random times"?
If so, do the obvious: at midnight, p
>How to run a python script twice randomly in a day? Actually I want to run
> my script randomly in a day and twice only
I can think of two basic approaches.
One, use crontab or some other similar functionality to call it exactly twice.
Two, use crontab or some other similar functionality to
hi,
How to run a python script twice randomly in a day? Actually I want to run
my script randomly in a day and twice only. Please help me.. how is it possible.
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
Carlos Nepomuceno wrote:
>Python really writes '\n\r' on Windows. Just check the files.
It actually writes \r\n, but it's not Python that's doing it. It's the C
runtime library.
And, of course, you can eliminate all of that by opening the file in binary
mode open(name,'wb').
--
Tim Roberts, t
Cameron Simpson wrote:
It's an int _subclass_ so that it is no bigger than an int.
If you use __slots__ to eliminate the overhead of an
instance dict, you'll get an object consisting of a
header plus one reference, which is probably about the
size of an int. But you'll also need an int to put i
On 05/19/2013 07:36 PM, killybear...@gmail.com wrote:
One more question. Function np.argmax returns max of non-complex numbers ?
Because FFT array of my signal is complex.
It'd be easier to track the thread if you actually replied to the
message you're responding to, and also if you included
killybear...@gmail.com wrote:
One more question. Function np.argmax returns max of non-complex numbers ?
Because FFT array of my signal is complex.
You'll want the magnitudes of the complex numbers.
Actually the squares of the magnitudes (assuming the
data from the oscilloscope represents volta
On 05/19/2013 05:46 PM, Dennis Lee Bieber wrote:
On Sun, 19 May 2013 10:38:14 +1000, Chris Angelico
declaimed the following in gmane.comp.python.general:
On Sun, May 19, 2013 at 10:02 AM, Carlos Nepomuceno
wrote:
I didn't know Python threads aren't preemptive. Seems to be something really
o
On 5/16/13 2:30 PM, Chris Angelico wrote:
On Fri, May 17, 2013 at 4:17 AM, wrote:
anyone?
--
http://mail.python.org/mailman/listinfo/python-list
You're firing off a bunch of minimal-content threads that ask other
people to do work for you. I recommend you put a bit more thought into
your pos
One more question. Function np.argmax returns max of non-complex numbers ?
Because FFT array of my signal is complex.
--
http://mail.python.org/mailman/listinfo/python-list
On 5/19/2013 6:49 PM, Oscar Benjamin wrote:
import numpy as np
Create a square wave signal:
x = np.zeros(50)
x[:25] = -1
x[25:] = +1
x
array([-1., -1., -1., -1., -1., -1., -1., -1., -1., -1., -1., -1., -1.,
-1., -1., -1., -1., -1., -1., -1., -1., -1., -1., -1., -1., 1.,
1.
Got it working, thanks alot :)
--
http://mail.python.org/mailman/listinfo/python-list
Yes, sorry logged from another account.
Would that work on a numpy array ? Because this signal was imported from
oscilloscope as a numpy array.
Best regards,
--
http://mail.python.org/mailman/listinfo/python-list
On 19 May 2013 23:25, wrote:
> How can i at least find a peek in FFT spectrum of a square wave ?
> From there i could easily build formula. Sorry for bothering but i am new to
> Python.
Are you the same person who posted the original question?
You probably want to use numpy for this. I'm not s
How can i at least find a peek in FFT spectrum of a square wave ?
>From there i could easily build formula. Sorry for bothering but i am new to
>Python.
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, May 20, 2013 at 7:46 AM, Dennis Lee Bieber
wrote:
> On Sun, 19 May 2013 10:38:14 +1000, Chris Angelico
> declaimed the following in gmane.comp.python.general:
>> With interpreted code eg in CPython, it's easy to implement preemption
>> in the interpreter. I don't know how it's actually do
On Fri, 17 May 2013 11:48:19 +1000, Chris Angelico wrote:
> (Caveat: I am not a Catholic, so I haven't much of a clue as to how
> confession usually goes.)
Forgive OP Father, for he has sinned...
--
http://mail.python.org/mailman/listinfo/python-list
On May 17, 1:06 am, Citizen Kant wrote:
> rusi said:
>
> > And let me suggest that you follow your own advise -- Can you say what
> > you have to say in 1/10th the number of words? Ok if not 1/10th then
> > 1/5th? 1-third?
>
> Thanks for the suggestion. I apologize for being that expansive; maybe
On 19/05/2013 04:53, Carlos Nepomuceno wrote:
Date: Sat, 18 May 2013 22:41:32 -0400
From: da...@davea.name
To: python-list@python.org
Subject: Re: How to write fast into a file in python?
On 05/18/2013 01:00 PM, Carlos Nepomuceno wrote:
Python really wr
On Sun, May 19, 2013 at 8:52 PM, Anti Log wrote:
> total distortion of a harmonics
I selected this part of your post, right-clicked, and Chrome offered
to do a Google search for those words. And, surprise surprise, the
first hit is a page that appears to have the mathematics behind it.
Now, I don
In article ,
Ned Batchelder wrote:
> So here's a question for people who remember coming up from beginner: as
> you moved from exercises like those in Learn Python the Hard Way, up to
> your own self-guided work on small projects, what project were you
> working on that made you feel independ
On 5/18/13 11:01 PM, llanitedave wrote:
I'm curious about how commonly tkinter is actually used among Python app
developers as compared to wx, Pyside, or PyQT. I get the impression that more
distributed apps are built with wxPython, at least, than tkinter. My
impression is far from actual kn
Hi,
I have a task to calculate total distortion of a harmonics, of a signal that i
imported from oscilloscope as numpy array. I had no problem drawing its
spectrum, and time domain graph, but cant seem to find any functions that
calculate TDH.
Any help?
Best regards
--
http://mail.python.org/m
ooops! I meant to say Cython. nevermind...
> Date: Sun, 19 May 2013 19:21:54 +1000
> Subject: Re: How to write fast into a file in python?
> From: ros...@gmail.com
> To: python-list@python.org
>
> On Sun, May 19, 2013 at 3:31 PM, Carlos Nepomuceno
> wrote:
On Sun, May 19, 2013 at 3:31 PM, Carlos Nepomuceno
wrote:
> Thanks Dan! I've never used CPython or PyPy. Will try them later.
CPython is the "classic" interpreter, written in C. It's the one
you'll get from the obvious download links on python.org.
ChrisA
--
http://mail.python.org/mailman/listi
Cameron Simpson wrote:
> TL;DR: I think I want to modify an int value "in place".
>
> Yesterday I was thinking about various "flag set" objects I have
> floating around which are essentially bare "object"s whose attributes
> I access, for example:
>
> flags = object()
> flags.this = True
>
30 matches
Mail list logo