We need to talk about what Red Green Refactor actually means.
First change is to say fill in rather then create the __init__ method in the Token class.
Rabbit Hole for the python object model.
Potential Example for Rabbit Hole
# Rabbit Hole:
# Python is kind of interesting in that there's a number of built in functions like `str()` and
# `next()`, `help()` that implicitly call what are called "Magic method." These are methods in a
# class which have special names associated with Python's builtin functions.
# An example of this is that the `str()` function calls the `__str__()` method of an object.
# >>> str(1)
# '1'
# >>> a = 1
# >>> a.__str__() # str(1) is equivalent to a.__str__()
# '1'
Our examples don't include imports and break because of it.
Remove all relative imports.
Our chosen indentation style is spaces instead of tabs. Which means if you use nano without any configuration it'll probably break things.
Rabbit Hole for implicit returns. This is specifically for init methods.
Type-o for assignment 2 are vague about indicating that assignment 1 tests shouldn't fail when you move on to assignment 2.
We need to talk about what Red Green Refactor actually means.
First change is to say fill in rather then create the
__init__
method in theToken
class.Rabbit Hole for the python object model.
Potential Example for Rabbit Hole
Our examples don't include imports and break because of it.
Remove all relative imports.
Our chosen indentation style is spaces instead of tabs. Which means if you use nano without any configuration it'll probably break things.
Rabbit Hole for implicit returns. This is specifically for init methods.
Type-o for assignment 2 are vague about indicating that assignment 1 tests shouldn't fail when you move on to assignment 2.