[Tutor] Methods defined in my class are affecting all the objects at runtime.

2011-10-29 Thread Brian Stovall
Hello world! I obviously don't understand something important and basic, but I am having trouble figuring it out myself... I am running python v3.2.2 on a Win XP machine. My code: import card_model import random class Pile: """An Object reperesenting a list of 'Card' Objects: could be a han

Re: [Tutor] Methods defined in my class are affecting all the objects at runtime.

2011-10-29 Thread Peter Otten
Brian Stovall wrote: > Hello world! > > I obviously don't understand something important and basic, but I am > having trouble figuring it out myself... I am running python v3.2.2 on > a Win XP machine. > > My code: > > import card_model > import random > > class Pile: > """An Object repere

Re: [Tutor] Methods defined in my class are affecting all the objects at runtime.

2011-10-29 Thread Steven D'Aprano
Brian Stovall wrote: Hello world! I obviously don't understand something important and basic, but I am having trouble figuring it out myself... I am running python v3.2.2 on a Win XP machine. [...] I had been testing it with single objects favorably, but when I instantiate two Pile objects, me

Re: [Tutor] Methods defined in my class are affecting all the objects at runtime.

2011-10-29 Thread Brian Stovall
Thanks for all the wonderful help, everyone! On 10/29/11, Peter Otten <__pete...@web.de> wrote: > Brian Stovall wrote: > >> Hello world! >> >> I obviously don't understand something important and basic, but I am >> having trouble figuring it out myself... I am running python v3.2.2 on >> a Win XP

[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

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

2011-10-29 Thread Peter Otten
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 a few tutorials and watched the Google Python 2 day class on > Youtube. (List of classes: http:

[Tutor] PyQt book advise

2011-10-29 Thread Albert-Jan Roskam
Hi, I'm looking for a book about PyQt. Can anybody recommend a good book? My shortlist is: Rapid GUI Programming with Python and QT: The Definitive Guide to PyQt Programming (Prentice Hall Open Source Software Development by Mark Summerfield Introduction to Python Programming and Developing GU

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

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

2011-10-29 Thread xDog Walker
On Saturday 2011 October 29 11:28, Joel Montes de Oca wrote: > After looking at the Python module documentation for sqlite3 > (http://docs.python.org/library/sqlite3.html#module-sqlite3), it seems > to me it's the best way to make the small database that I am looking for. First, have a look at she

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

2011-10-29 Thread Alan Gauld
On 29/10/11 19:28, Joel Montes de Oca wrote: After looking at the Python module documentation for sqlite3 (http://docs.python.org/library/sqlite3.html#module-sqlite3), it seems to me it's the best way to make the small database that I am looking for. SQLlite is a great way to build small scale

[Tutor] Installing the uncertainties module

2011-10-29 Thread Richard D. Moores
The uncertainties module () is now available for 64-bit Python 3.2. I've downloaded uncertainties-1.8.tar.gz. I need some utility that will handle both .gz and .tar, I presume. Looking for recommendations. Dick Moores Python 3.2.2 64-bit Win 7 ___

Re: [Tutor] Installing the uncertainties module

2011-10-29 Thread Steven D'Aprano
Richard D. Moores wrote: The uncertainties module () is now available for 64-bit Python 3.2. I've downloaded uncertainties-1.8.tar.gz. I need some utility that will handle both .gz and .tar, I presume. Looking for recommendations. Winzip handles .tar.g

Re: [Tutor] Installing the uncertainties module

2011-10-29 Thread Richard D. Moores
On Sat, Oct 29, 2011 at 18:31, Richard D. Moores wrote: > The uncertainties module () > is now available for 64-bit Python 3.2. I've downloaded > uncertainties-1.8.tar.gz. I need some utility that will handle both > .gz and .tar, I presume. Looking for r

Re: [Tutor] Installing the uncertainties module

2011-10-29 Thread Lie Ryan
On 10/30/2011 12:31 PM, Richard D. Moores wrote: The uncertainties module () is now available for 64-bit Python 3.2. I've downloaded uncertainties-1.8.tar.gz. I need some utility that will handle both .gz and .tar, I presume. Looking for recommendations. 7zip has always been my multi-format com

Re: [Tutor] Installing the uncertainties module

2011-10-29 Thread Richard D. Moores
On Sat, Oct 29, 2011 at 21:37, Richard D. Moores wrote: > > > On Sat, Oct 29, 2011 at 18:31, Richard D. Moores wrote: >> >> The uncertainties module () >> is now available for 64-bit Python 3.2. I've downloaded >> uncertainties-1.8.tar.gz. I need some ut

Re: [Tutor] Installing the uncertainties module

2011-10-29 Thread Lie Ryan
On 10/30/2011 03:55 PM, Richard D. Moores wrote: On Sat, Oct 29, 2011 at 21:37, Richard D. Moores wrote: On Sat, Oct 29, 2011 at 18:31, Richard D. Moores wrote: The uncertainties module () is now available for 64-bit Python 3.2. I've downloaded un

Re: [Tutor] Installing the uncertainties module

2011-10-29 Thread Richard D. Moores
On Sat, Oct 29, 2011 at 22:06, Lie Ryan wrote: > On 10/30/2011 03:55 PM, Richard D. Moores wrote: >> >> Hm. Problem: >> > import tarfile > tar = tarfile.open("C:\Users\Richard\Desktop\uncertainties-1.8.tar.gz") >> >>   File "", line 1 >> SyntaxError: (unicode error) 'unicodeescape' codec