[Tutor] Logger object not passed between modules

2011-07-25 Thread Luke Thomas Mergner
Hi, Python 2.7.2 wxPython 2.9.1.1 OS X 10.7 I am very new to Python and programming, basically just a curious hobbyist. I am building a learning app that hopefully will include a wxPython GUI. Right now I am trying to understand my code better by including print statements. Now I know that

Re: [Tutor] Don't understand this class/constructor call syntax

2011-07-25 Thread dave
Is it even possible to replace the implicit self argument of the initializer by passing something else? If so, what would be the syntax. If you want to look at the code its all here: https://www.cgran.org/browser/projects/ucla_zigbee_phy/trunk/src The cc2420_txtest.py is in ./examples and the c

Re: [Tutor] [python-win32] Good Book

2011-07-25 Thread Mark Curphey
I strongly recommend Thinking in Python - http://www.greenteapress.com/thinkpython/thinkpython.html I recently wrote a blog about my experiences learning - http://www.curphey.com/2011/07/learn-core-python-in-a-week-my-way/ Sent from my iPhone On Jul 25, 2011, at 5:27 PM, Bill Allen wrote: >>

Re: [Tutor] [python-win32] Good Book

2011-07-25 Thread Bill Allen
> > Dear All Pythonist, > > I'm strarting learn python programming and I have been found many > resources on it but I have a problem. I don't know, what is the best > complete book for new learner like me. > > I need your recommendation, thanks before . . . > > Ryan, Here some more good free bo

Re: [Tutor] Copying Variables

2011-07-25 Thread Prasad, Ramit
From: tutor-bounces+ramit.prasad=jpmchase@python.org [mailto:tutor-bounces+ramit.prasad=jpmchase@python.org] On Behalf Of naheed arafat Sent: Monday, July 25, 2011 10:17 AM To: Steven D'Aprano Cc: Tutor@python.org Subject: Re: [Tutor] Copying Variables I got a question in this context. s

Re: [Tutor] Copying Variables

2011-07-25 Thread Sander Sweers
On 25 July 2011 17:17, naheed arafat wrote: > I got a question in this context. > suppose > a={'a': 3, 'b': [1, 2], 5: 100} > --b=a --    vs-- > b=copy.copy(a) > > b[5]=6  

Re: [Tutor] Copying Variables

2011-07-25 Thread naheed arafat
I got a question in this context. suppose a={'a': 3, 'b': [1, 2], 5: 100} --b=a --vs-- b=copy.copy(a) b[5]=6 b[5]=6 output: --

Re: [Tutor] Basic program question

2011-07-25 Thread Timo
On 24-07-11 22:59, Alexander Quest wrote: Hello- I am running Python v 3.1.1. As an exercise, I wrote a simple coin flipper program, where the computer flips a coin 100 times and then prints out the number of heads and tails. My program crashes immediately if I run it normally through the comma

Re: [Tutor] List problem

2011-07-25 Thread Peter Otten
David Merrick wrote: > def append(self,item): > '''Adds an item to the end of the List''' > > current = self.head > previous = None > while current.getNext() != None: > previous = current > current = current.getNext() > if