Re: [Tutor] attribute overwrite

2011-12-09 Thread Prasad, Ramit
Investment Bank | Currencies Technology 712 Main Street | Houston, TX 77002 work phone: 713 - 216 - 5423 -- From: tutor-bounces+ramit.prasad=jpmorgan@python.org [mailto:tutor-bounces+ramit.prasad=jpmorgan@python.org] On Behalf Of rail shafigulin Sent: Friday, December 09, 2011 4:15 PM T

Re: [Tutor] attribute overwrite

2011-12-09 Thread rail shafigulin
On Fri, Dec 9, 2011 at 4:43 PM, rail shafigulin wrote: > i need to overwrite and attribute from the inherited class. i also need to > run the constructor of the super class. here is the code > > import datetime > > class DateTime(datetime.datetime): > def __init__(self, year, month, day, *args):