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

Re: [Tutor] data structure question

2008-01-18 Thread Tiger12506
> > 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 = self

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;F5R871O PROTECTED])4"!O > M;&EE<'5M<&4)4"!V86YD<'5M<&4

[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;F5R871Ohttp://groups.google.com/groups/unlock?msg=c42d7058ff6b0c28&hl=en&_done=/group/gruppe-b

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 - Tuto

[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 - Tut

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 > >

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@

[Tutor] data structure question

2008-01-18 Thread Alexander
Hi all, I'm trying to write a small todo list/task manager and I'm having trouble creating the right data structure to hold the tasks. The program should have a command line interface. This is what I want it to do: * A list of tasks, where each task has a number of attributes. Each task should b

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

2008-01-18 Thread bhaaluu
Greetings, There are several beginning tutorials at the PyGame site: http://pygame.org/news.html -- b h a a l u u at g m a i l dot c o m http://www.geocities.com/ek.bhaaluu/python/index.html On Jan 18, 2008 3:23 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > James Newton wrote: > > Hi folks, > > >

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

2008-01-18 Thread Kent Johnson
James Newton wrote: > Hi folks, > > I've just come across this article on the BBC site: > > > So my question is: is there something similar in the Python community? I don't know of a collaborative, teaching community like that. There are a co

[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: You can see some of the games that are either created collaboratively or designed to be improved collaboratively at:

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 Ja

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=105AGX03&S_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

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_pr