Re: [Tutor] Bug in python, or is it just 3am

2006-04-21 Thread Liam Clarke
Hi Ryan, I see what confused you; the " >>> number + 1 6 >>> print number 5 " part. Yeah, it's only evaluating the the first one. So you're asking it "What's number + 1"? Whereas, >>> number = number + 1 or >>> number += 1 Is saying "Make number equal number plus 1" Ha, it's all a learning

Re: [Tutor] looking to hire a tutor

2006-04-21 Thread Danny Yoo
> How would I go about hiring a python tutor who: > > Spends time critiquing my code and providing detailed feedback. Hi Meenakshi, People here are usually suprisingly gracious with their time, and will be happy to look and critique code. You may want to try your hand at showing us some code.

[Tutor] looking to hire a tutor

2006-04-21 Thread meenakshi
Hi, I apologize if this has been covered before. I am a postdoctoral research scientist learning Python programming. I would like to hire a tutor who can spend 1-2 hours a week with me going overand critiquing my programming. I have looked for online Python programming classes (not free tu

Re: [Tutor] Cancel Subscription

2006-04-21 Thread Daniel McQuay
Aguilar Arcadio wrote: > Please delete my e-mail from the tutor@python.org > mailing list. Thank you!! > To unsubscribe you will have to visit: http://mail.python.org/mailman/options/tutor > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the

Re: [Tutor] Creating a graphical interface to database of gene coordinates

2006-04-21 Thread Liam Clarke
For graphing you can't really beat Scipy. On 4/22/06, Srinivas Iyyer <[EMAIL PROTECTED]> wrote: > Dear group, > I am happy that I am slowly finding pyhonian projects > related to my research area. > > Problem: > 1. I have a database of human gene coordinates on > chromosomes. > 2. I have gene exp

[Tutor] Creating a graphical interface to database of gene coordinates

2006-04-21 Thread Srinivas Iyyer
Dear group, I am happy that I am slowly finding pyhonian projects related to my research area. Problem: 1. I have a database of human gene coordinates on chromosomes. 2. I have gene expression data from my lab concerning the genes I mentioned above. 3. I want to visualize expression data laid

[Tutor] Cancel Subscription

2006-04-21 Thread Aguilar Arcadio
Please delete my e-mail from the tutor@python.org mailing list. Thank you!! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Tutor maillist - T

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Mike Hansen
> - > > I need help; I'm getting an error in my program. What should I do? > > > > If you are getting an error in your Python program that you don't > > understand, post the error message and any relevant code. Post the > > exac

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Alan Gauld
I suspect the best way to generate a scientific list of FAQ is by scanning the subjects in the list archives. But here are a few more: Special function _xxx_ doesn't work - double underscore needed Lack of indentation or inconsistent indents - inc tabs and spaces How to name an object based on

Re: [Tutor] locations

2006-04-21 Thread Carroll, Barry
Hi, Linda, > -Original Message- > I have a question. in the LIST M= > [[1,1,1,1], > [0,1,1,1], > [1,1,0,1], > [1,1,1,1]] > If treat them as the locations of 16 points, I want to generate another > list > N to hold the corresponding value for each point to its nearest 0. > For example: > th

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Kent Johnson
Mike Hansen wrote: > - > I need help; I'm getting an error in my program. What should I do? > > If you are getting an error in your Python program that you don't > understand, post the error message and any relevant code. Post th

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Mike Hansen
> > Maybe this could be integrated with the main Python FAQ in a > > beginner's section? Fredrik Lundh is experimenting with a > FAQ wiki here: > > http://pyfaq.infogami.com/ > > Actually I put something about this on PyFAQ just the other day. > Fredrik was quite keen on the idea, but I've b

Re: [Tutor] Version of a .pyc file

2006-04-21 Thread Terry Carroll
On Fri, 21 Apr 2006, Don Taylor wrote: > That did it, and it was a .pyd file that was giving me problems, thanks > once again Terry. Great to hear! ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Invoking Excel Macro

2006-04-21 Thread Mike Hansen
In the macro, you might try Application.DisplayAlerts = False  and reset it to True after you save. I think it might be trying to display a dialog box before it saves.   Mike From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of arunSent: Friday, April 21, 2006 1:44 AM

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Danny Yoo
> I assume Kent, Alan and Danny don't mind their answers being reused in > the wiki, but it would probably best to get explicit permission from > them (and other people) to re-use text from their answers. I give explicit permission for any of my replies to be reused this way. ___

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Ed Singleton
On 21/04/06, Kent Johnson <[EMAIL PROTECTED]> wrote: > Ed Singleton wrote: > > If anyone here > > has ideas for questions that get asked a lot (like "How do I write a > > program that prints a word backwards") then just posting them in this > > thread would be a good start. > > We should be careful

Re: [Tutor] locations

2006-04-21 Thread Alan Gauld
I should have added that this solution quickly explodes for large matrixes. There are tweaks such as factoring in the distance between subsequent zeros etc to keep the calculation size down. But for 4x4 sizes it should be adequate in its simple state. Alan G. - Original Message - From:

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Alan Gauld
I hereby give my permission for any answer I've ever posted to this list or to any other Python list or newsgroup to be used in any Python related FAQ anyone cares to produce! :-) Alan G. - Original Message - From: "Ed Singleton" <[EMAIL PROTECTED]> To: Sent: Friday, April 21, 2006 2:

Re: [Tutor] locations

2006-04-21 Thread Alan Gauld
> - I have a question. in the LIST M= [[1,1,1,1], [0,1,1,1], [1,1,0,1], [1,1,1,1]] If treat them as the locations of 16 points, I want to generate another list N to hold the corresponding value for each point to its nearest 0. > -- Your explanation of the proble

Re: [Tutor] Brain In Vice: Why is this so fun to me?

2006-04-21 Thread doug shawhan
That works wonderfully! Thanks!On 4/20/06, Liam Clarke <[EMAIL PROTECTED]> wrote: Trick is, to limit them very carefully by specifying what they are to match.Watch .* - I always use .*? myself.For instance, for one of your strings, which ends with the ESC=character>k(some whitespace or not)0 \x1b.*

Re: [Tutor] Version of a .pyc file

2006-04-21 Thread Don Taylor
Terry Carroll wrote: > I've had some pretty good luck using Process Explorer, freeware from That did it, and it was a .pyd file that was giving me problems, thanks once again Terry. Process Explorer is _very_ nice and will certainly stay on my machine. Don. _

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Kent Johnson
Ed Singleton wrote: > If anyone here > has ideas for questions that get asked a lot (like "How do I write a > program that prints a word backwards") then just posting them in this > thread would be a good start. We should be careful about posting solutions to homework problems, which this could e

Re: [Tutor] GUI

2006-04-21 Thread Don Taylor
Eric Walker wrote: > Ok, > If I can get it for free, I might as well go with say wxPython. Thanks However, you really should spend a few bucks buying the recently published "wxPython In Action" book by Noel Rappin and Robin Dunn (the designer of wxPython). It will save you lots of time. You a

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Ed Singleton
On 20/04/06, Kent Johnson <[EMAIL PROTECTED]> wrote: > Mike Hansen wrote: > > I'd like to send a big Thank You to Danny, Alan, Kent and others(whos names > > escape me) for being such an asset to the Python community by relentlessly > > answering questions on the tutor list.(Do these guys sleep? Th

[Tutor] locations

2006-04-21 Thread linda.s
I have a question. in the LIST M= [[1,1,1,1], [0,1,1,1], [1,1,0,1], [1,1,1,1]] If treat them as the locations of 16 points, I want to generate another list N to hold the corresponding value for each point to its nearest 0. For example:the nearest 0 point to M[0][0] is M[1][0], so N[0][0]=1; M[0][1]

Re: [Tutor] Brain In Vice: Why is this so fun to me?

2006-04-21 Thread Ron Phillips
Regex aside, just for a moment — the subject line gets my vote for "Most Succinct Description of Programmer Mindset", if there's a competition on.   Ron ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Invoking Excel Macro

2006-04-21 Thread Alan Gauld
Hi arun, Although you are invoking this from Python it is really more of a COM/Excel issue. I think you might have more success asking on an Excel forum. The Pythonwin community might be able to help too, buit it looks to me like the problem is in the macro itself. It seems to have dependencies

Re: [Tutor] Bug in python, or is it just 3am

2006-04-21 Thread Alan Gauld
> But when i use a number = number + 1 > right after the value stays the same, I'm not sure what you mean by that. > Now i thought that number = number + 1 just wasn't > vailed in python untill i tried it again and it > worked, variable = variable + 1 is perfectly valid. It is not the normal ma

Re: [Tutor] Use iterator to refer to an object's attribute?

2006-04-21 Thread Ron Britton
Alan Thanks for the thorough reply. > Hi Ron, I'm confused and may be missing something but it > sounds to me like a classic tree structure that you are trying > to build for each module. It seems like a tree to me. > I''m not sure why you put filling the database into a separate > function rat

Re: [Tutor] Bug in python, or is it just 3am

2006-04-21 Thread Danny Yoo
On Fri, 21 Apr 2006, ryan luna wrote: > HA! ignore me, im stupid, XD i knew i should have waited untill morning > =P, No bug, the number = number was just point to the old number which > was one number lower, sorry. night =P Get some sleep. *grin*

Re: [Tutor] Invoking Excel Macro

2006-04-21 Thread arun
I'm sorry , there is something realy wrong with 'Run-time error 1004':. I have fixed it now but still it throws an error while trying to save the workbook. On 4/21/06, arun <[EMAIL PROTECTED]> wrote: Hi, I tried invoking a macro from my python script and  It is  throwing  an error message that r

[Tutor] Invoking Excel Macro

2006-04-21 Thread arun
Hi, I tried invoking a macro from my python script and  It is  throwing  an error message that reads 'Run-time error 1004':   "This operation requires the merged cells to be identically sized"   My script looks like this   from win32com.client import Dispatchxl = Dispatch('Excel.Application')xl.W

[Tutor] Bug in python, or is it just 3am

2006-04-21 Thread ryan luna
HA! ignore me, im stupid, XD i knew i should have waited untill morning =P, No bug, the number = number was just point to the old number which was one number lower, sorry. night =P Oh i see someone replied -_- sorry lol ___ Tutor maillist - Tutor@py

[Tutor] Bug in python, or is it just 3am

2006-04-21 Thread ryan luna
Hey everyone, i believe i might have found a bug in python? im not sure, heres a screen shot. http://img151.imageshack.us/img151/4268/pythonbug8by.jpg When i type number + 1 and print it, It adds one, But when i use a number = number + 1 right after the value stays the same, Now i thought that numb