OpenAstronomy / python-3-for-scientists

http://python-3-for-scientists.readthedocs.org
76 stars 32 forks source link

Expand and correct discussion of unicode variable names #14

Closed ngoldbaum closed 8 years ago

ngoldbaum commented 8 years ago

The wording isn't this section wasn't totally accurate. I've fixed that and expanded the discussion a bit.

astrofrog commented 8 years ago

Looks good! I wonder if it would be worth actually showing more scientific examples - I saw someone the other day who had a Python function where the keyword arguments were the greek letters and phi and theta, which actually looked readable. I know it's still not great practice, but at least the example would be useful to a scientist to understand where it could even be useful?

ngoldbaum commented 8 years ago

I added an example where using a greek letter makes a function definition somewhat easier to read.

astrofrog commented 8 years ago

👍