[Tutor] spam, eggs, and my text adventure

2005-12-02 Thread david
hello :) i have some questions that are more about programming in general than python specifically. suppose, for whatever reason, you had a burning desire to write a simple text adventure. how would you start? would you just start writing some code? i knew i wanted a room structure or object

[Tutor] my text adventure

2005-12-02 Thread david
well i have got some things to work, thanks for the help. at this point i am just making things worse so thats it for tonight. any comments, suggestions, bug fixes, improvements, or ideas on how my program can add to the quality of all our lives are, as always, most greatly appreciated.    

Re: [Tutor] Request For Suggestions

2005-12-02 Thread Danny Yoo
> > I am planning to make a Python CD for advocating Python, and I need > > your suggestions about this, the objective is to build a CD that > > contains the basic material for Python beginner (e.g. Python 2.4.2 for > > different platforms) with some advocating material (e.g. videos), and > > her

[Tutor] tkFileDialog bug on windows

2005-12-02 Thread Fred Lionetti
Hi everyone, I may have found a strange bug with tkFileDialog, and I'm wondering if anyone has a workaround for the problem. It happens when you have a button (or any other clickable widget) directly behind the askopenfilename dialog box and double click on a file. The button (behind the open fi

Re: [Tutor] Request For Suggestions

2005-12-02 Thread Christopher Arndt
Basem Narmok schrieb: > Hi all, > > I am planning to make a Python CD for advocating Python, and I need your > suggestions about this, the objective is to build a CD that contains the > basic material for Python beginner (e.g. Python 2.4.2 for different > platforms) with some advocating materia

[Tutor] Does anyone have any experience with ezPyCrypto?

2005-12-02 Thread Nathan Pinno
Does anyone have any experience with ezPyCrypto? If so, can you please tell me whether or not I can use it to encrypt dictionaries (i.e. user:password or site:username password for examples)?   Thanks, Nathan Pinno, Co-owner/co-operator of The Web Surfer's Store. http://www.the-web-surfers-s

Re: [Tutor] Request For Suggestions

2005-12-02 Thread Basem Narmok
Murtog wrote: >PyGame and videos about it would be good too. > > cool I will do it :) >2005/12/2, Basem Narmok <[EMAIL PROTECTED]>: > > >>Hi all, >> >>I am planning to make a Python CD for advocating Python, and I need your >>suggestions about this, the objective is to build a CD that contain

Re: [Tutor] Request For Suggestions

2005-12-02 Thread Nelson, Scott
You could include the Pygame module. If this CD is for beginners, nothing like writing a game to provide a little bit of motivation! Plus, Pygame provides a lot of multimedia features all in one place (graphics, sound, keyboard, mouse, joystick, CD, mixer) http://www.pygame.org/ I'm sure everyon

Re: [Tutor] Is it a good idea to use TKInter to change my password program into a GUI?

2005-12-02 Thread Nathan Pinno
I like the Toolkit, is there anywhere where there is a how to use it?   Thanks, Nathan Pinno, Co-owner/co-operator of The Web Surfer's Store. http://www.the-web-surfers-store.com/ MSN Messenger: [EMAIL PROTECTED] Yahoo! Messenger: spam_swatter31 AIM: f3mighty ICQ: 199020705     From: Adam [

[Tutor] Request For Suggestions

2005-12-02 Thread Basem Narmok
Hi all, I am planning to make a Python CD for advocating Python, and I need your suggestions about this, the objective is to build a CD that contains the basic material for Python beginner (e.g. Python 2.4.2 for different platforms) with some advocating material (e.g. videos), and here is what

Re: [Tutor] my text adventure

2005-12-02 Thread Danny Yoo
> i am attempting to write a dig function that will create rooms. > i have succeeded only in getting a headache :) > any suggestions on where i am going wrong would > be super helpful. Hi David, You may want to write a unit test to make sure that all the methods of your class are doing the righ

[Tutor] my text adventure

2005-12-02 Thread david
i am attempting to write a dig function that will create rooms. i have succeeded only in getting a headache :) any suggestions on where i am going wrong would be super helpful. thanks, david world = {}class Room:    def __init__(self,name,coords):    self.contents = []    self.name =

Re: [Tutor] Beautiful Soup, inserting a node?

2005-12-02 Thread Kent Johnson
Bob Tanner wrote: > Kent Johnson wrote: > > >>>Is there a way to insert a node with Beautiful Soup? >> >>BS doesn't really seem to be set up to support this. The Tags in a soup >>are kept in a linked > > > What would the appropriate technology to use? You might also email the author of BS and

Re: [Tutor] Malformed CSV

2005-12-02 Thread Jan Eden
Kent Johnson wrote on 02.12.2005: >Jan Eden wrote: >>I guess I need to notify the engineer responsible for the CSV >>output and have the quoting corrected. > >If that is possible it is a much better solution. I hate to hack >around bad data - much better to correct the source of the data if >possi

Re: [Tutor] Malformed CSV

2005-12-02 Thread Kent Johnson
Jan Eden wrote: > I guess I need to notify the engineer responsible for the CSV output > and have the quoting corrected. If that is possible it is a much better solution. I hate to hack around bad data - much better to correct the source of the data if possible. In fact you may have little choic

Re: [Tutor] Malformed CSV

2005-12-02 Thread Jan Eden
Kent Johnson wrote on 02.12.2005: >I'm not entirely sure how you want to interpret the data above. One >possibility is to just change the double "" to single " before >processing with csv. For example: > ># data is the raw data from the whole file >data = '''""hotel,hamburg"","1","0","0" >""hotel,

Re: [Tutor] Malformed CSV

2005-12-02 Thread Kent Johnson
Jan Eden wrote: > Hi, > > I need to parse a CSV file using the csv module: > > "hotel","9,463","95","1.00" > "hotels","7,033","73","1.04" > "hotels hamburg","2,312","73","3.16" > "hotel hamburg","2,708","42","1.55" > "Hotels","2,854","41","1.44" > "hotel berlin","2,614","31","1.19" > > Unfortuna

[Tutor] Malformed CSV

2005-12-02 Thread Jan Eden
Hi, I need to parse a CSV file using the csv module: "hotel","9,463","95","1.00" "hotels","7,033","73","1.04" "hotels hamburg","2,312","73","3.16" "hotel hamburg","2,708","42","1.55" "Hotels","2,854","41","1.44" "hotel berlin","2,614","31","1.19" The idea is to use each single keyword (field 1)

Re: [Tutor] Beautiful Soup, inserting a node?

2005-12-02 Thread Kent Johnson
Bob Tanner wrote: > Kent Johnson wrote: > > >>>Is there a way to insert a node with Beautiful Soup? >> >>BS doesn't really seem to be set up to support this. The Tags in a soup >>are kept in a linked > > > What would the appropriate technology to use? Fredrik Lundh's elementtidy uses the Tidy

Re: [Tutor] Beautiful Soup, inserting a node?

2005-12-02 Thread Bob Tanner
Kent Johnson wrote: >> Is there a way to insert a node with Beautiful Soup? > > BS doesn't really seem to be set up to support this. The Tags in a soup > are kept in a linked What would the appropriate technology to use? I tried the xml modules, but they fail on the parsing of the html. -- B