This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random_thoughts | |
def current_thoughts(): | |
'My current thoughts' | |
return random_thoughts.current() | |
def idiomatic_python_thoughts(): | |
'Turns thoughts into idiomatic Python' | |
return random_thoughts.idiomatic_python() |
I've been watching videos of Python masters teaching their great wisdom. Of note is the work of Raymond Hettinger. I've learned a lot from watching him talk about writing beautiful Python code. I am only 7 years or so into my Python practice, so I'm not yet an expert. I am entering into the "intermediary" territory, though, because I can read almost any Python code and pretty much know what it's doing, and I can write code to solve problems I encounter every day. I still can't write a packaged app, a full-blown executable, with interface and everything. But I am beginning to truly understand Python, which is still a big accomplishment for me.
My dream is to think Pythonic thoughts. I want to turn my thoughts into mathematical expressions, and be able to execute them using Python as a programming language. Hence the thought experiment on the random_thoughts module. It's not really good Python code, but it's a start. The idea is that there would be a function I could use to turn my thoughts directly into idiomatic Python.