pythonic
Like a constrictor
Pythonic describes code or programming practices that follow the conventions and philosophy of the Python programming language—emphasizing readability, simplicity, and elegance over complexity.
Python developers prize pythonic solutions as clean and idiomatic: That nested loop works, but a list comprehension would be more pythonic.
The term captures Python's design philosophy that there should be one obvious, beautiful way to accomplish a task.
Outside programming, pythonic can also mean resembling or relating to pythons, the large constricting snakes.
Acts of mentally grasping
- generatorsDevices converting motion to electricity
- decoratorsThose who style interiors
- unpackingRemoving items from containers
- lambdaEleventh Greek letter
Meditative calm
- explicitClearly and directly expressed
- simpleFree of complexity
- readabilityEase of understanding text
- flatLacking vertical variation
sparse · practicality · namespaces · batteries-included · beautiful
Free of soil
- conciseBriefly and clearly stated
- expressiveShowing feelings outwardly
- clearWithout obstruction or fog
- maintainableCapable of being kept up
documented · explicit · intuitive · self-documenting · whitespace · indentation · consistent · commented
Made maximally efficient
- performanceCarrying out a task
- scalabilityCapacity for growth
- comprehensionsActs of mentally grasping
- generatorsDevices converting motion to electricity
built-ins · vectorization · multiprocessing · profiling · map · filter
Freely viewable, editable code
- contributorsThose who give help
- GitHubWeb-based code hosting service
- meetupsArranged social gatherings
- hackathonsCompetitive rapid-development events
comprehensions
Acts of mentally grasping
- generatorsDevices converting motion to electricity
- decoratorsThose who style interiors
- unpackingRemoving items from containers
zen
Meditative calm
- explicitClearly and directly expressed
- simpleFree of complexity
- readabilityEase of understanding text
flat · sparse · practicality · namespaces · batteries-included · beautiful
clean
Free of soil
- conciseBriefly and clearly stated
- expressiveShowing feelings outwardly
- clearWithout obstruction or fog
maintainable · documented · explicit · intuitive · self-documenting · whitespace · indentation · consistent · commented · annotated
optimized
Made maximally efficient
- performanceCarrying out a task
- scalabilityCapacity for growth
- comprehensionsActs of mentally grasping
generators · built-ins · vectorization · multiprocessing · profiling · map · filter
open-source
Freely viewable, editable code
- contributorsThose who give help
- GitHubWeb-based code hosting service
- meetupsArranged social gatherings
pythonicunidiomatic
Not how natives speak
hacky · convoluted · verbose · cryptic · obfuscated
- Monty PythonBritish surreal comedy troupe
- Burmese pythonLarge Asian constrictor snake
- ball pythonCoiling African constrictor
- python skinHide of large constrictor
- royal pythonAfrican snake, curls defensively
- rock pythonLarge African constricting serpent