Merge branch 'master' of https://github.com/dabeaz-course/practical-python
This commit is contained in:
@@ -149,7 +149,7 @@ TypeError: __init__() takes exactly 4 arguments (2 given)
|
|||||||
|
|
||||||
This is easily fixed using `*data` instead. Try this:
|
This is easily fixed using `*data` instead. Try this:
|
||||||
|
|
||||||
``python
|
```python
|
||||||
>>> s = Stock(*data)
|
>>> s = Stock(*data)
|
||||||
>>> s
|
>>> s
|
||||||
Stock('GOOG', 100, 490.1)
|
Stock('GOOG', 100, 490.1)
|
||||||
@@ -230,4 +230,4 @@ Now, try silencing the errors:
|
|||||||
>>>
|
>>>
|
||||||
```
|
```
|
||||||
|
|
||||||
[Contents](../Contents.md) \| [Previous (6.4 Generator Expressions)](../06_Generators/04_More_generators.md) \| [Next (7.2 Anonymous Functions)](02_Anonymous_function.md)
|
[Contents](../Contents.md) \| [Previous (6.4 Generator Expressions)](../06_Generators/04_More_generators.md) \| [Next (7.2 Anonymous Functions)](02_Anonymous_function.md)
|
||||||
|
|||||||
Reference in New Issue
Block a user