Re: Why has __new__ been implemented as a static method?

2014-05-03 Thread Steven D'Aprano
On Sun, 04 May 2014 11:21:53 +1200, Gregory Ewing wrote: > Steven D'Aprano wrote: >> I'm not entirely sure what he means by "upcalls", but I believe it >> means to call the method further up (that is, closer to the base) of >> the inheritance tree. > > I think it means this: > > def __new__(

Re: Why has __new__ been implemented as a static method?

2014-05-03 Thread Gregory Ewing
Steven D'Aprano wrote: I'm not entirely sure what he means by "upcalls", but I believe it means to call the method further up (that is, closer to the base) of the inheritance tree. I think it means this: def __new__(cls): MyBaseClass.__new__(cls) which wouldn't work with a class met

[ANNC] pybotwar-0.9 : now using pybox2d-2.3b0

2014-05-03 Thread Lee Harr
pybotwar is a fun and educational game where players write computer programs to control simulated robots. http://pybotwar.googlecode.com/ The focus of this release is updating to use the latest available pybox2d version: 2.3b0 pybotwar uses pybox2d for the physical simulation. It can be run in

Re: Python Image Registration and Cropping?

2014-05-03 Thread Mark Lawrence
On 03/05/2014 22:47, mikejohnrya...@gmail.com wrote: Hello, Is there a Python tool or function that can register two images together (line them up visually), and then crop them to the common overlap area? I'm assuming this can probably be done with Python Imaging Library but I'm not very fami

Python Image Registration and Cropping?

2014-05-03 Thread mikejohnryan08
Hello, Is there a Python tool or function that can register two images together (line them up visually), and then crop them to the common overlap area? I'm assuming this can probably be done with Python Imaging Library but I'm not very familiar with it yet. Any help or advice is appreciated!

Re: [Call for Paper - SCOPUS/ISI THOMSON] ICESTI 2014, September 10-13, 2014, Kuta Bali - Indonesia

2014-05-03 Thread Terry Reedy
On 5/3/2014 1:23 PM, Steven D'Aprano wrote: On Sat, 03 May 2014 15:50:40 +, Denis McMahon wrote: On Sat, 03 May 2014 06:51:02 -0700, icesti2014editor wrote: sharing best practice in the field of Engineering, Science, and Technology towards sustainable development. The first event of th

Re: Why has __new__ been implemented as a static method?

2014-05-03 Thread Terry Reedy
On 5/3/2014 6:37 AM, Jurko Gospodnetić wrote: Hi all. I was wandering why Python implements its __new__ method as a static and not a class method? For a technical internal reason that Guido and maybe others have explained on pydev (more than once). I forget the details partly because I

Re: [Call for Paper - SCOPUS/ISI THOMSON] ICESTI 2014, September 10-13, 2014, Kuta Bali - Indonesia

2014-05-03 Thread Chris Angelico
On Sun, May 4, 2014 at 3:23 AM, Steven D'Aprano wrote: > On Sat, 03 May 2014 15:50:40 +, Denis McMahon wrote: > >> On Sat, 03 May 2014 06:51:02 -0700, icesti2014editor wrote: >> >>> sharing best practice in the field of Engineering, Science, and >>> Technology towards sustainable development.

Re: [Call for Paper - SCOPUS/ISI THOMSON] ICESTI 2014, September 10-13, 2014, Kuta Bali - Indonesia

2014-05-03 Thread Steven D'Aprano
On Sat, 03 May 2014 15:50:40 +, Denis McMahon wrote: > On Sat, 03 May 2014 06:51:02 -0700, icesti2014editor wrote: > >> sharing best practice in the field of Engineering, Science, and >> Technology towards sustainable development. > >> The first event of this conference series (ICESTI 2014)

Re: [Call for Paper - SCOPUS/ISI THOMSON] ICESTI 2014, September 10-13, 2014, Kuta Bali - Indonesia

2014-05-03 Thread Denis McMahon
On Sat, 03 May 2014 06:51:02 -0700, icesti2014editor wrote: > sharing best practice in the field of Engineering, Science, and > Technology towards sustainable development. > The first event of this conference series (ICESTI 2014) will be held in > Bali, Indonesia Let's all fly to Bali in the nam

Re: Why has __new__ been implemented as a static method?

2014-05-03 Thread Steven D'Aprano
On Sat, 03 May 2014 12:37:24 +0200, Jurko Gospodnetić wrote: > Hi all. > >I was wandering why Python implements its __new__ method as a static > and not a class method? Have you read Guido's tutorial on it? https://www.python.org/download/releases/2.2.3/descrintro [quote] Factoid: __new__

Re: Number of objects grows unbouned...Memory leak

2014-05-03 Thread ptb
Turns out one of the libraries I am using has a cache system. If I shut if off then my problem goes away... On Saturday, May 3, 2014 7:15:59 AM UTC-6, ptb wrote: > Hello all, > > > > I'm using Python 3.4 and am seeing the memory usage of my program grow > unbounded. Here's a snippet of the

[Call for Paper - SCOPUS/ISI THOMSON] ICESTI 2014, September 10-13, 2014, Kuta Bali - Indonesia

2014-05-03 Thread icesti2014editor
International Conference on Engineering, Science and Technology Innovation (ICESTI 2014) 10-13 September 2014, Bali, Indonesia http://www.icesti.org/ Contact Email: icesti2...@icesti.org Online Submission: http://www.icesti.org/online-submission ICESTI 2014 will provide a forum for accessing

Number of objects grows unbouned...Memory leak

2014-05-03 Thread ptb
Hello all, I'm using Python 3.4 and am seeing the memory usage of my program grow unbounded. Here's a snippet of the loop driving the main computation opt_dict = {'interior':cons_dict['int_eq'],'lboundary':cons_dict['lboundary'], 'rboundary':cons_dict['rboundary'], 'mate

Why has __new__ been implemented as a static method?

2014-05-03 Thread Jurko Gospodnetić
Hi all. I was wandering why Python implements its __new__ method as a static and not a class method? __new__ always accepts a cls parameter, which lead me to believe it was a class method. Also, implementing __new__ as a class method seems natural when thinking about __new__ as 'a meth

Re: Unicode in Python

2014-05-03 Thread wxjmfauth
Le vendredi 2 mai 2014 05:50:40 UTC+2, Michael Torrie a écrit : > Can't help but feed the troll... forgive me. > > > > On 04/28/2014 02:57 AM, wxjmfa...@gmail.com wrote: > > > Python 2.7 + cp1252: > > > - Solid and coherent system (nothing to do with the Euro). > > > > Except that cp1252 is