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)
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
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
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
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
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
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
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
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
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:
"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
"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
"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.
> 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
14 matches
Mail list logo