Re: [Theory] How to speed up python code execution / pypy vs GPU

2016-11-07 Thread Steve D'Aprano
On Tue, 8 Nov 2016 05:47 am, jlada...@itu.edu wrote: > On Saturday, November 5, 2016 at 6:39:52 PM UTC-7, Steve D'Aprano wrote: >> On Sun, 6 Nov 2016 09:17 am, Mr. Wrobel wrote: >> >> >> I don't have any experience with GPU processing. I expect that it will be >> useful for somethings, but for n

Re: [Theory] How to speed up python code execution / pypy vs GPU

2016-11-07 Thread Michael Torrie
On 11/05/2016 11:10 AM, Mr. Wrobel wrote: > Hi, > > Some skeptics asked my why there is a reason to use Python against of > any other "not interpreted" languages, like objective-C. As my > explanation, I have answered that there is a a lot of useful APIs, > language is modern, has advanced obje

Why are there so many Python Installers? Windows only :)

2016-11-07 Thread breamoreboy
Hi folks, an interesting blog from Steve Dower giving the history of the little beasties http://stevedower.id.au/blog/why-so-many-python-installers/ Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

Re: [Theory] How to speed up python code execution / pypy vs GPU

2016-11-07 Thread Adam M
On Saturday, November 5, 2016 at 8:58:36 PM UTC-4, Steve D'Aprano wrote: > On Sun, 6 Nov 2016 08:17 am, Ben Bacarisse wrote: > > > Steve D'Aprano writes: > > >> Here's the same program in Objective C: > >> > >> --- cut --- > >> > >> #import > >> > >> int main (int argc, const char * argv[]) > >

Lua tutorial help for Python programmer?

2016-11-07 Thread Skip Montanaro
I just got Lua scripting dumped in my lap as a way to do some server side scripting in Redis. The very most basic stuff isn't too hard (i = 1, a = {"x"=4, ...}, for i = 1,10,2 do ... end), but as soon as I get beyond that, I find it difficult to formulate questions which coax Google into useful sug

Re: [Theory] How to speed up python code execution / pypy vs GPU

2016-11-07 Thread jladasky
On Saturday, November 5, 2016 at 6:39:52 PM UTC-7, Steve D'Aprano wrote: > On Sun, 6 Nov 2016 09:17 am, Mr. Wrobel wrote: > > > I don't have any experience with GPU processing. I expect that it will be > useful for somethings, but for number-crushing and numeric work, I am > concerned that GPUs r

Re: constructor classmethods

2016-11-07 Thread Ethan Furman
On 11/07/2016 12:46 AM, teppo.p...@gmail.com wrote: torstai 3. marraskuuta 2016 14.45.49 UTC Ethan Furman kirjoitti: On 11/03/2016 01:50 AM, teppo wrote: The guide is written in c++ in mind, yet the concepts stands for any programming language really. Read it through and think about it. If

Re: constructor classmethods

2016-11-07 Thread David Palao
>> >> If the class in question has legitimate, non-testing, reasons to specify >> different Queues, then make it a default argument instead: >> >> def __init__(self, ..., queue=None): >> if queue is None: >> queue = Queue() >> self.queue = queue > > I already stated that this is

Re: [PyQT] After MessageBox app quits...why?

2016-11-07 Thread Demosthenes Koptsis
i answered my own question. On 11/07/2016 11:44 AM, Demosthenes Koptsis wrote: because there is no window open and quits by default. You have to do two things: 1) Make sure that your SystemTray class has parent a QWidget w = QtGui.QWidget() trayIcon = SystemTrayIcon(QtGui.QIcon("

Re: [PyQT] After MessageBox app quits...why?

2016-11-07 Thread Demosthenes Koptsis
because there is no window open and quits by default. You have to do two things: 1) Make sure that your SystemTray class has parent a QWidget w = QtGui.QWidget() trayIcon = SystemTrayIcon(QtGui.QIcon("virtualdvd.png"), w) 2) set quit to false app.setQuitOnLastWindowClosed(False)

Re: constructor classmethods

2016-11-07 Thread teppo . pera
torstai 3. marraskuuta 2016 14.47.18 UTC Chris Angelico kirjoitti: > On Thu, Nov 3, 2016 at 7:50 PM, wrote: > > Little bit background related to this topic. It all starts from this > > article: > > http://misko.hevery.com/attachments/Guide-Writing%20Testable%20Code.pdf > > > > The guide is writt

Re: [PyQT] After MessageBox app quits...why?

2016-11-07 Thread Anssi Saari
Demosthenes Koptsis writes: > Hello, i have a PyQT systray app with a menu and two actions. > > Action1 is Exit and action2 display a MessageBox with Hello World message. > > When i click OK to MessageBox app quits...why? > > http://pastebin.com/bVA49k1C I haven't done anything with Qt in a whil

Re: constructor classmethods

2016-11-07 Thread teppo . pera
torstai 3. marraskuuta 2016 14.45.49 UTC Ethan Furman kirjoitti: > On 11/03/2016 01:50 AM, teppo wrote: > > > The guide is written in c++ in mind, yet the concepts stands for any > > programming language really. Read it through and think about it. If > > you come back to this topic and say: "yea

Re: Confused with installing per-user in Windows

2016-11-07 Thread eryk sun
On Mon, Nov 7, 2016 at 1:11 AM, ddbug wrote: > > In Windows, the user-local directory for scripts is %APPDATA%\Python\Scripts. > It is not in > PATH by default and finding it is hard (because Microsoft made it hidden in > their infinite > wisdom). POSIX "~/.local" is hidden as well, by conventi

Re: Force virtualenv pip to be used

2016-11-07 Thread Alec Taylor
On Monday, November 7, 2016 at 1:07:12 AM UTC+11, Chris Angelico wrote: > On Sun, Nov 6, 2016 at 10:19 PM, Peter Otten <__pete...@web.de> wrote: > > Chris Angelico wrote: > > > >> On Sun, Nov 6, 2016 at 9:17 PM, Alec Taylor > >> wrote: > >>> Running Ubuntu 16.10 with Python 2.7.12+ (default one) a