Skip to content
This repository was archived by the owner on Apr 24, 2018. It is now read-only.

Commit

Permalink
Add wo0dyn's
Browse files Browse the repository at this point in the history
  • Loading branch information
wo0dyn committed Sep 26, 2014
1 parent f8f2b17 commit f38e798
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions wo0ydn/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Dreams

## Unicode operators

| Old python operator | New awesome one |
|:-------------------:|:---------------:|
| >= ||
| <= ||
| != ||
| not | ¬ |
| x ** 1/2 | √x |
| x ** 2 ||
| x ** 3 ||

```python
if x ≥ 10 and ¬found:
# code

if x² ≠ 10:
# code
```

## More greek letters

Because, it would be awesome to write:

```python
from datetime import datetime

start = datetime.now()
# code
∆t = datetime.now() - start
print("Time: {}ms".format(∆t))
```

## Redefine assignment/equality

| Operation | Old python | New awesome one |
|:----------:|:----------:|:---------------:|
| Assignment | = | : |
| Equality | == | = |

```python
start: datetime.now()
# code
∆t: datetime.now() - start

if ∆t = 0:
print("WOW, that was fast!")
```

## Others

* Easy packaging
* All libraries available in Python3
* More cleaner API on some stdlib (like logging.getLogger → logging.get_logger)

0 comments on commit f38e798

Please sign in to comment.