Hw5 shestakoff

5 task.
Ок. Да не выдержано по стандарту.
On 20.11.14 14:16, Volodymyr Vakulenko wrote:
>
> In o_shestakoff/hw5/hw5_solution1.py:
>
> > +#!/usr/bin/env python
> > +# -*- coding: utf-8 -*-
> > +
> > +from datetime import datetime
> > +
> > +
> > +class Person(object):
> > +    def __init__(self, surName, firstName, birth_date, nickname=None):
> > +        self.surname = surName
> > +        self.first_name = firstName
> > +        self.birth_date = datetime.strptime(birth_date, '%Y-%m-%d').date()
> > +        if nickname is not None:
> > +            self.nickname = nickname
> > +
> > +    def get_age(self):
> > +        return str(int(((datetime.now() - datetime(self.birth_date.year, self.birth_date.month, self.birth_date.day)).days / 365.0)))
>
> Превышение максимальной длины строки!
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/pybursa/homeworks/pull/50/files#r20641529>.
>