19 lines
371 B
Markdown
19 lines
371 B
Markdown
# yes-thats-what-i-meant
|
|
When Python knows what you meant
|
|
|
|
Requires python 3.6 and above.
|
|
|
|
Usage example:
|
|
```python
|
|
>>> 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) # <-- Automagically inserted
|
|
3
|
|
```
|
|
It will automagically do what you meant :^)
|