Re: [Tutor] Python 2.7 on Ubuntu 11.10 - Do not unintall

2011-11-02 Thread Joel Montes de Oca
On 11/02/2011 02:26 AM, spa...@gmail.com wrote: Shouldn't this be treated as a bug then? As a user I should be allowed to uninstall the software I want to. Or you uninstalled other things by mistake? On Wed, Nov 2, 2011 at 6:18 AM, Joel Montes de Oca mailto:joelmonte...@gmail.com>

Re: [Tutor] Python 2.7 on Ubuntu 11.10 - Do not unintall

2011-11-01 Thread Joel Montes de Oca
On Tue 01 Nov 2011 08:56:41 PM EDT, Max gmail wrote: Heh, yeah. It's usually a bad idea to do stuff like that (I know a guy (Windows) who deleted his OS of his system). On Nov 1, 2011, at 7:40 PM, Joel Montes de Oca wrote: I just discovered that it is a bad idea to complete uninstall P

[Tutor] Python 2.7 on Ubuntu 11.10 - Do not unintall

2011-11-01 Thread Joel Montes de Oca
I just discovered that it is a bad idea to complete uninstall Python 2.7 on Ubuntu 11.10. If you do, expect a lot of things not to work, mainly your system. haha I just reinstalled Python 2.7 and I hope things are not so bad now when I reboot. -- -Joel M. ___

Re: [Tutor] login window using Tk

2011-11-01 Thread Joel Montes de Oca
On 11/01/2011 02:18 PM, Alan Gauld wrote: On 01/11/11 18:09, Alexander Etter wrote: Hi, hopefully a more experience hacker can provide clarity, but how secure does this login need to be? I dont much about python in DRAM but your login sounds like it could be easily hacked. That depends entire

Re: [Tutor] Paper Rock Scissors game - User's choice not returned properly

2011-10-31 Thread Joel Montes de Oca
On 10/31/2011 07:10 PM, Steven D'Aprano wrote: Alan Gauld wrote: On 31/10/11 20:22, Peter Otten wrote: Alan Gauld wrote: if choice.lower() not in ('prs'): # NB use a single string That's not a good idea. If a user accidentally enters PR (for example) your version will mistake that for a v

Re: [Tutor] Paper Rock Scissors game - User's choice not returned properly

2011-10-31 Thread Joel Montes de Oca
On 10/31/2011 02:14 PM, Marc Tompkins wrote: On Mon, Oct 31, 2011 at 10:57 AM, Joel Montes de Oca wrote: I came up with this to solve the problem. def UserChoice ():# The function that returns the choice from the user while 1: print 'Please select (P) for paper, (R

Re: [Tutor] Paper Rock Scissors game - User's choice not returned properly

2011-10-31 Thread Joel Montes de Oca
On 10/31/2011 02:13 PM, Prasad, Ramit wrote: Just a minor note, this break is redundant. Breaks are used to exit (for/while) loops but keep control in the function. A return exits the function immediately. if choice.lower() in ('p', 'r','s'):# Converts the user's choice to lowerca

Re: [Tutor] Paper Rock Scissors game - User's choice not returned properly

2011-10-31 Thread Joel Montes de Oca
On 10/31/2011 11:41 AM, Joel Montes de Oca wrote: Hello everyone, I am having a little trouble with a block of code that isn't behaving the way I would expect. Maybe you can give me a hand and point where it is going wrong. The function that is not working correctly belongs to a Paper

Re: [Tutor] Paper Rock Scissors game - User's choice not returned properly

2011-10-31 Thread Joel Montes de Oca
On Mon 31 Oct 2011 12:14:40 PM EDT, Hugo Arts wrote: On Mon, Oct 31, 2011 at 4:41 PM, Joel Montes de Oca wrote: Hello everyone, I am having a little trouble with a block of code that isn't behaving the way I would expect. Maybe you can give me a hand and point where it is going

Re: [Tutor] Tutor Digest, Vol 92, Issue 127

2011-10-31 Thread Joel Montes de Oca
On Mon 31 Oct 2011 11:59:47 AM EDT, Asokan Pichai wrote: From: Joel Montes de Oca mailto:joelmonte...@gmail.com>> To: Tutor Python mailto:tutor@python.org>> Subject: [Tutor] Paper Rock Scissors game - User's choice not returned properly Message-I

[Tutor] Paper Rock Scissors game - User's choice not returned properly

2011-10-31 Thread Joel Montes de Oca
Hello everyone, I am having a little trouble with a block of code that isn't behaving the way I would expect. Maybe you can give me a hand and point where it is going wrong. The function that is not working correctly belongs to a Paper Rock Scissor game I am making. This particular functio

Re: [Tutor] Method to create small and simple database

2011-10-29 Thread Joel Montes de Oca
On Sat Oct 29 14:14:24 2011, Joel Montes de Oca wrote: On Sat Oct 29 13:29:59 2011, Peter Otten wrote: Joel Montes de Oca wrote: Hello everyone, About me: This is the first time I post to Tutor@Python.org. I am brand spanking new to Python. I can create simple application, gone through

[Tutor] Method to create small and simple database

2011-10-29 Thread Joel Montes de Oca
Hello everyone, About me: This is the first time I post to Tutor@Python.org. I am brand spanking new to Python. I can create simple application, gone through a few tutorials and watched the Google Python 2 day class on Youtube. (List of classes: http://goo.gl/Ud5rg) Just yesterday I figured