Re: [Tutor] Programming Ideas, need some focus

2008-01-18 Thread Danny Navarro
http://www.pythonchallenge.com/ is a great way to learn Python. Danny On Jan 16, 2008 4:58 PM, Fiyawerx [EMAIL PROTECTED] wrote: I've been over google for hours now, and I'm sort of at a lull in my learning, as I don't really have a current goal. I know I could set some easy goal like to

Re: [Tutor] data structure question

2008-01-18 Thread Tiger12506
snip class Task(object): def __init__(self, cargo, children=[]): self.cargo = cargo self.children = children def __str__(self): s = '\t'.join(self.cargo) return s def add_child(self,child): self.children = self.children + [child] This is an excellent start. self.children =

Re: [Tutor] Converting binary file date into a file?

2008-01-18 Thread Eric Brunson
Ole Jensen wrote: Hi I made a small python program at home and tried to send by email attachments to my studymates. The attachment however shows up as a strange text the first lines look like this: M1F]R_AG(#(@+2 R(=E;F5R871OF5R([EMAIL PROTECTED]R#0H@5!I[EMAIL PROTECTED])4!O

[Tutor] Converting binary file date into a file?

2008-01-18 Thread Ole Jensen
Hi I made a small python program at home and tried to send by email attachments to my studymates. The attachment however shows up as a strange text the first lines look like this: M1F]R_AG(#(@+2 R(=E;F5R871OF5R([EMAIL PROTECTED]R#0H@5!I[EMAIL PROTECTED])4!O

Re: [Tutor] data structure question

2008-01-18 Thread Terry Carroll
On Fri, 18 Jan 2008, Alexander wrote: I'm trying to write a small todo list/task manager... Hi, Alexander. Not to derail your actual question, but have you looked at Task Coach? It's a small todo list/task manager, written in Python using wxPython. It does much, perhaps all, of what you're

[Tutor] interview questions

2008-01-18 Thread Varsha Purohit
Hello All, I have an interview in python program development. Can i know some interview questions in python ? If you know any website where i can refer that would be helpful. thanks, -- Varsha Purohit, Graduate Student ___ Tutor maillist -

[Tutor] [tutor] Interview questions in python and wxpython

2008-01-18 Thread Varsha Purohit
Hello All, I have an interview in python program development. Can i know some interview questions in python ? If you know any website where i can refer that would be helpful. thanks, -- Varsha Purohit, Graduate Student ___ Tutor maillist -

Re: [Tutor] Converting binary file date into a file?

2008-01-18 Thread Tiger12506
Many email clients encode attachments in base-64. I think there are standard modules in python which should be able to decode this. Hi I made a small python program at home and tried to send by email attachments to my studymates. The attachment however shows up as a strange text the

Re: [Tutor] data structure question

2008-01-18 Thread Tiger12506
def recursive_print(self, level=0): print \t*level + self.cargo for x in self.children: recursive_print(x,level+1) Whoops. should be for x in self.children: x.recursive_print(level+1) ___ Tutor maillist -

[Tutor] Teach-yourself game design site... for Python?

2008-01-18 Thread James Newton
Hi folks, I've just come across this article on the BBC site: http://news.bbc.co.uk/2/hi/technology/7189694.stm You can see some of the games that are either created collaboratively or designed to be improved collaboratively at: http://www.myglife.org/usa/Boulder-GameDev/en/play/othergames

Re: [Tutor] Programming Ideas, need some focus

2008-01-18 Thread Simón A. Ruiz
I'll second that. It's quite an interesting mental gymnastics challenge, and will get you familiar with a lot of the modules. They also have helpful forums for when you get stuck. Simón Danny Navarro wrote: http://www.pythonchallenge.com/ is a great way to learn Python. Danny On Jan

Re: [Tutor] data structure question

2008-01-18 Thread Kent Johnson
Alexander wrote: * A list of tasks, where each task has a number of attributes. Each task should be able to have subtasks. Sounds like you should keep the Task objects in a list :-) Possibly just the top-level tasks should be in the list... * A way to filter/search on the attributes of the

Re: [Tutor] Programming Ideas, need some focus

2008-01-18 Thread Michael Langford
For those of you interested in hacking on the OLPC, IBM is putting up a tutorial that goes through all the stuff with Qemu etc: http://www.ibm.com/developerworks/linux/edu/l-dw-linux-xo-python-i.html?S_TACT=105AGX03S_CMP=HP%3Cbr%3E On 1/16/08, Fiyawerx [EMAIL PROTECTED] wrote: I've been over

Re: [Tutor] data structure question

2008-01-18 Thread Alan Gauld
Tiger12506 [EMAIL PROTECTED] wrote class Task(object): ... def recursive_print(self, level=0): print \t*level + self.cargo for x in self.children: recursive_print(x,level+1) x.recursive_print(level+1) Is what you meant I think :-) Alan G.

Re: [Tutor] data structure question

2008-01-18 Thread Alan Gauld
Tiger12506 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] def recursive_print(self, level=0): print \t*level + self.cargo for x in self.children: recursive_print(x,level+1) Whoops. should be for x in self.children: x.recursive_print(level+1) Ah,