Re: Point Object

2008-01-06 Thread Soviut
On Jan 5, 6:37 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am nes to python and need some help. Can anyone lead me in the right direction to create and print a Point object, and then use id to print the object's unique identifier. Translate the hexadecimal form into decimal and confirm

Re: Point Object

2008-01-06 Thread bearophileHUGS
Pete: Translate the hexadecimal form into decimal and confirm that they match. No need to convert the IDs... Soviut: You shouldn't have to compare the hex IDs. Just a simple comparison operator will work: firstPoint = Point() secondPoint = Point() print(firstPoint == secondPoint)

Point Object

2008-01-05 Thread [EMAIL PROTECTED]
I am nes to python and need some help. Can anyone lead me in the right direction to create and print a Point object, and then use id to print the object's unique identifier. Translate the hexadecimal form into decimal and confirm that they match. Any help woul be much appreciated. Pete -- http

Re: Point Object

2008-01-05 Thread Marc 'BlackJack' Rintsch
On Sat, 05 Jan 2008 03:37:33 -0800, [EMAIL PROTECTED] wrote: I am nes to python and need some help. Can anyone lead me in the right direction to create and print a Point object, and then use id to print the object's unique identifier. Translate the hexadecimal form into decimal and confirm