Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread C Smith
I wouldn't take it personally, just defend your position. I think that is what he is looking for. We are all adults here (maybe?). You guys should be able to work it out. A tangential skill to programming is being able to give and take criticism well, even if you think it crosses the line. On

Re: Dynamically swapping between two algorithms

2014-09-23 Thread C Smith
Once the runtime of SHORT starts to increase by a certain threshold, Such as 2x, 4x, or 16x its last runtime? The other ideas already proposed sound better, but I am wondering if it would work. On Tue, Sep 23, 2014 at 12:21 PM, Terry Reedy tjre...@udel.edu wrote: On 9/23/2014 10:48 AM, Steven

Re: Practice question

2014-10-06 Thread C Smith
14x=29 On Sun, Oct 5, 2014 at 4:14 PM, Ned Batchelder n...@nedbatchelder.com wrote: On 10/5/14 7:02 PM, Seymore4Head wrote: For the record, I don't want a hint. I want the answer. I see a practice question is similar to this. 15 = x 30 And it wants a similar expression that is equivalent.

Re: Practice question

2014-10-07 Thread C Smith
Steven D'Aprano wrote: With two numbers, 15 and 30, all you really need is five test cases: My solution assumed integers also, but after I posted it, I thought: What about floating points? On Tue, Oct 7, 2014 at 1:48 AM, Steven D'Aprano st...@pearwood.info wrote: On Sun, 05 Oct 2014 20:18:13

Code review

2014-11-04 Thread C Smith
I was wondering if I could get some feedback on the biggest thing I have done as an amateur Python coder. The sidepots algorithm isn't correct yet, but I haven't worked on it in a while and thought I would get some advice before diving back in. import random, os

Re: Code review

2014-11-04 Thread C Smith
PM UTC-8, John Gordon wrote: C Smith illusiontechniq...@gmail.com writes: I was wondering if I could get some feedback on the biggest thing I have done as an amateur Python coder. Comments. You need a *lot* more comments. Like, every line or two of code should have a comment explaining

Re: Matplotlib import error

2015-02-06 Thread C Smith
On Fri, Feb 6, 2015 at 10:20 AM, Chris Angelico ros...@gmail.com wrote: On Sat, Feb 7, 2015 at 3:34 AM, C Smith illusiontechniq...@gmail.com wrote: ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so, 2): Symbol

Re: Matplotlib import error

2015-02-07 Thread C Smith
On Fri, Feb 6, 2015 at 7:04 PM, Ned Deily n...@acm.org wrote: In article CAL2Y8-RVCoy-mBWAbgGqPkazo_xW-x4q0NTyG+A5sm19sg=x...@mail.gmail.com, C Smith illusiontechniq...@gmail.com wrote: I had python 2.7.6 installed on OS X yosemite, which has always worked fine, until I tried to install

Matplotlib import error

2015-02-06 Thread C Smith
I had python 2.7.6 installed on OS X yosemite, which has always worked fine, until I tried to install matplotlib with pip. I got the same error below and upgraded to 2.7.9, used pip to upgrade all the packages, but still get the same error. import matplotlib Traceback (most recent call last):

Re: 2.7.9: PhotoImage get/put

2015-10-20 Thread C Smith
>> def process(): # Ordinarily this would be process(photo,wdth,hgt) >>global wdth # but I ran into problems calling it from a button If you want to pass arguments to a command called when a button is clicked, you have to use 'lambda' in tkinter. >>global hgt #command with parameters...

Re: Problem with lists

2015-09-15 Thread C Smith
>>tabuleiro[lin][col] = peca use peca.copy() here or else a deep copy is made. On Tue, Sep 15, 2015 at 4:45 PM, Rafael David wrote: > Hi guys, > > I'm newbie in Python (but not a newbie developer). I'm facing a problem with > a bidimensional list (list of lists) containing