While going through the enhancement notebook, I got the following error:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/IPython/core/interactiveshell.py", line 2963, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-2-4845daa72c0e>", line 1, in <module>
from fastai.conv_learner import *
File "/home/ranakhalil/fastai/courses/dl2/fastai/conv_learner.py", line 56
def name(self): return f'{self.f.__name__}_{self.xtra_cut}'
^
SyntaxError: invalid syntax
Traced it to the following line:
@property
def name(self): return f'{self.f.__name__}_{self.xtra_cut}'
I fixed it simply to:
@property
def name(self):
return '{self.f.__name__}_{self.xtra_cut}'
I can’t tell though if this is a real bug, or perhaps am missing something in my env? It does look like a bug to me, just confirming!
Thanks!