[Tutor] confusion about cloning (graphics)

2009-02-01 Thread David
Hello list, I continue my reading of Harrington. In section 2.4. he is making a point about the need to clone, as otherwise the object associated to parameter corner (the point (20, 50)) takes the same value as corner2. That is: corner2 changes corner, which in turn changes the point (20, 50)

Re: [Tutor] Re : Is instance of what?

2009-02-01 Thread spir
Le Sat, 31 Jan 2009 15:00:02 -0500, Kent Johnson a écrit : > On Sat, Jan 31, 2009 at 2:47 PM, spir wrote: > > >> > o.__class__ (or rather o.__class__.__name__) will work. > >> Understood. Thank you. > >> tj > > > > type(a) has been changed (since 2.2?) to return the same value as > > a.__class

[Tutor] Precision with Decimal

2009-02-01 Thread gslindstrom
I am using the decimal module to work with money (US dollars and cents) and do not understand the precision. The documentation states: "The decimal module incorporates a notion of significant places so that 1.30 + 1.20 is 2.50. The trailing zero is kept to indicate significance. This is the

Re: [Tutor] confusion about cloning (graphics)

2009-02-01 Thread David
Dear list members, thanks for all your replies, following your comments and links I will do some more research into this issue! Kent Johnson wrote: Harrington explains immediately after the program you cite; did you see his explanation? Yes, though the explanation didn't give me enough depth

Re: [Tutor] string fomatting

2009-02-01 Thread Kent Johnson
On Sat, Jan 31, 2009 at 1:44 PM, Jay Jesus Amorin wrote: > Thanks bob. > > I want to search any characters in test after https://www.localhost.org/ and > the search will end after it finds another / > > and when i print it will display testmodule. If *all* you want is the first element of the pat

Re: [Tutor] Precision with Decimal

2009-02-01 Thread Kent Johnson
On Sat, Jan 31, 2009 at 10:05 PM, wrote: > I am using the decimal module to work with money (US dollars and cents) and > do not understand the precision. The documentation states: > > "The decimal module incorporates a notion of significant places so that 1.30 > + 1.20 is 2.50. The trailing zero

Re: [Tutor] Precision with Decimal

2009-02-01 Thread Sander Sweers
On Sun, Feb 1, 2009 at 04:05, wrote: > "The decimal module incorporates a notion of significant places so that 1.30 > + 1.20 is 2.50. The trailing zero is kept to indicate significance. This is > the customary presentation for monetary applications." > > But I get: from decimal import Decima

Re: [Tutor] confusion about cloning (graphics)

2009-02-01 Thread Kent Johnson
On Sun, Feb 1, 2009 at 3:34 AM, David wrote: > This behaviour stuns me, because I was always following the belief that when > variable2 refers to another variable1, the value of variable1 would NOT > change, even as I operate on variable2 > So here is my question: what have I failed to grasp? Ar

[Tutor] Python 3 tutorials

2009-02-01 Thread Kent Johnson
I added a page to the Python.org wiki to list tutorials that address Python 3: http://wiki.python.org/moin/Python3.0Tutorials Please add any I have missed. (Alan, that mean you - I couldn't find a link to your work-in-progress update.) Kent ___ Tutor ma

Re: [Tutor] confusion about cloning (graphics)

2009-02-01 Thread spir
Le Sun, 01 Feb 2009 16:34:10 +0800, David a écrit : > Hello list, > > I continue my reading of Harrington. In section 2.4. he is making a > point about the need to clone, as otherwise the object associated to > parameter corner (the point (20, 50)) takes the same value as corner2. > That is:

Re: [Tutor] IDLE vs PythonWin

2009-02-01 Thread Alan Gauld
"Wayne Watson" wrote Hi, sorry, but I have no idea what vim is, Yes, its just a text editor that runs in its own window. Its a very very powerful text editor, one of perhaps 3 or 4 that are universally used by professional programmers on any operating system they may need to work with, and

Re: [Tutor] Python 3 tutorials

2009-02-01 Thread Alan Gauld
"Kent Johnson" wrote Please add any I have missed. (Alan, that mean you - I couldn't find a link to your work-in-progress update.) I've literally just started last week so there's really nothing to note yet. It usually takes jme a week or two per topic to do a major update. So once I get

Re: [Tutor] PyCon2009 Tutorial: An Introduction to Object-OrientedProgramming

2009-02-01 Thread Alan Gauld
"wesley chun" wrote David Letscher and I will be leading a tutorial at this year's PyCon titled "An Introduction to Object-Oriented Programming." likewise, i'll be doing one on network programming, Such fun! I just wish I could afford the trip to the US! :-) Alan G.

Re: [Tutor] PyCon2009 Tutorial: An Introduction to Object-OrientedProgramming

2009-02-01 Thread wesley chun
> Such fun! I just wish I could afford the trip to the US! :-) PyCons are such a great way to (re)connect with the community and so many opportunities to learn from the masters (and mistresses) of Python. the conferences are so incredible that once you go, you have to go every year thereafter. as