mirror of
https://github.com/kennethreitz/dream-python.git
synced 2026-06-05 23:20:18 +00:00
37 lines
1.3 KiB
Markdown
37 lines
1.3 KiB
Markdown
CCC's Dream Python
|
|
==================
|
|
|
|
Community
|
|
---------
|
|
|
|
* Push harder to get all useful third party libraries/modules fully ported to Python3.
|
|
* Twisted, gevent
|
|
* Put Python2 out to pasture so that we can unify and press forward.
|
|
* Move to something more modern/powerful than tkinter as the bundled UI. Today there are way too many UI options which is increasing the learning curve, fostering duplication of effort, and stalling innovation.
|
|
* Tkinter, Pygame, PyQt, PySide, PyGObject, PyGtk. kivy, etc.
|
|
* Python as one of the top languages used for game development.
|
|
* More support for and progress on speeding up Python execution (Pypy3, etc.)
|
|
* More rapid support for new Python and Pypy releases on PaaS systems like Bluemix, Heroku, etc.
|
|
|
|
Technical
|
|
---------
|
|
|
|
* An easier syntax for bounding a variable between a min and a max. See below.
|
|
* Pervasive support for `with open()` syntax throughout the standard library.
|
|
* e.g. in aifc.py, wave.py, shelve.py, etc.
|
|
* Support Python3 in [Pythonista](http://www.omz-software.com/pythonista/index.html) so we can hack Python3 on our iPads while on the move.
|
|
|
|
On bounding a variable between a min and a max
|
|
==============================================
|
|
|
|
```
|
|
x = -3 |> x <| 5
|
|
# would be equal to:
|
|
x = min(max(x, -3), 5)
|
|
|
|
# other approaches
|
|
x = -3 | x | 5
|
|
# or
|
|
x = -3 |>= x <=| 5
|
|
```
|