2017-02-07 16:34 GMT+01:00 Rafael Skovron :
> I'm trying to learn how to use Classes but I keep getting NameErrors no
> matter what code I put into the script.
>
> Any ideas why?
>
> My general workflow is I edit in vim, then invoke python3 interpreter,
> import the module and try to use the Clas
On 2017-02-07 07:34, Rafael Skovron wrote:
I'm trying to learn how to use Classes but I keep getting NameErrors
no
matter what code I put into the script.
Any ideas why?
Assuming the code you've edited using vim is in a file mymodule.py
And after invoking the interpreter you issue the follow
On 07/02/17 15:34, Rafael Skovron wrote:
> My general workflow is I edit in vim, then invoke python3 interpreter,
> import the module and try to use the Class and methods from the class.
>
> For example, importing customer.py and assigning this object yields:
>
rafael = Customer('rafael',10
I'm trying to learn how to use Classes but I keep getting NameErrors no
matter what code I put into the script.
Any ideas why?
My general workflow is I edit in vim, then invoke python3 interpreter,
import the module and try to use the Class and methods from the class.
For example, importing cus