Add a single underscore to your preferred names: from_ and to_
(see PEP 8)
class ExchangeRates(JsonAware):
def __init__(self, from_, to_, rate):
self.from = from_
self.to = to_
self.rate = rate
More Related Contents:
- Normal arguments vs. keyword arguments
- Passing a dictionary to a function as keyword parameters
- How to add builtin functions?
- How to use “raise” keyword in Python [duplicate]
- Finding words after keyword in python [duplicate]
- Python: SyntaxError: keyword can’t be an expression
- Why were True and False changed to keywords in Python 3
- Why doesn’t Python run my bash code?
- Dealing with multiple Python versions and PIP?
- Adding value labels on a matplotlib bar chart
- Why do backslashes appear twice?
- Pandas column of lists, create a row for each list element
- What is the difference between `sorted(list)` vs `list.sort()`?
- Converting a string representation of a list into an actual list object [duplicate]
- How to use XPath in Python?
- Multiple ModelAdmins/views for same model in Django admin
- How can I parse a time string containing milliseconds in it with python?
- How do you use the ellipsis slicing syntax in Python?
- websocket vs rest API for real time data? [closed]
- Why is my pygame display not responding while waiting for input?
- Efficient date range overlap calculation?
- Relationship between SciPy and NumPy
- Tensorflow: How to write op with gradient in python?
- Django 1.7 – makemigrations not detecting changes
- What is the difference between subprocess.popen and subprocess.run
- How to make python window run as “Always On Top”?
- How to define a __str__ method for a class?
- Accessing a function within a function(nested function?) [duplicate]
- How to draw grid lines behind matplotlib bar graph
- Multiple condition filter on dataframe