|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
I am just learning OOP and am writing this script and keep running into this problem.
To reproduce: Run PUMASS_ObjLib.py a = [] a.append(Schedule().Add()) a.append(Schedule().Add()) print a.AllDates[0] print a.AllDates[1] What happens is that when you add a new Date object, all other Date objects in the list turn into the one you just made. Does any1 know how to fix this? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > OOP Probs |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|