18 lines
374 B
Markdown
18 lines
374 B
Markdown
|
# yes-thats-what-i-meant
|
||
|
When Python knows what you meant
|
||
|
|
||
|
Usage example:
|
||
|
```python
|
||
|
>>> from yes import yes
|
||
|
>>> print 3
|
||
|
File "<stdin>", line 1
|
||
|
print 3
|
||
|
^
|
||
|
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(3)?
|
||
|
>>> yes
|
||
|
>>> print(3)
|
||
|
3
|
||
|
```
|
||
|
It will automagically do what you meant :^)
|
||
|
(The corrected print after the yes is not written by you)
|