guide sample code is entered incorrectly
fuhaha opened this issue · 2 comments
fuhaha commented
hi
guide sample code is wrong
https://github.com/google/python-fire/blob/master/docs/guide.md#accessing-properties
sample code
self.name = dict(airports).get(self.code)
to
self.name = dict(airports.airports).get(self.code)
Adityakhalkar commented
As its a from airports import airports
import , we do not need to call airports module for referencing the airports
member.
fuhaha commented
my mistake
In my code, airports.py was in the airports directory.
If airports.py is in the same directory, you should be fine.