[IPython-User] ipython3 notebook does not load attributes from class = AttributeError: but it works fine in IDLE3

Thomas Kluyver takowl@gmail....
Tue Mar 19 06:08:48 CDT 2013


On 19 March 2013 10:51, Dennis Daniels <dennisgdaniels@gmail.com> wrote:

> when I try
> student1.attendDay()
>
> I get in Ipython3 notebook
> AttributeError: 'Student' object has no attribute 'attendDay'
>

Works fine here.

Looking at your video, you don't show the definition line, i.e. student1 =
Student('Fred') . I guess you created student1 with an older version of the
Student class, before you added that method.

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20130319/26498977/attachment.html 


More information about the IPython-User mailing list