yes-thats-what-i-meant/README.md

19 lines
371 B
Markdown
Raw Permalink Normal View History

2018-04-25 13:19:48 +02:00
# yes-thats-what-i-meant
When Python knows what you meant
2018-04-25 13:23:04 +02:00
Requires python 3.6 and above.
2018-04-25 13:19:48 +02:00
Usage example:
```python
2018-04-25 14:36:38 +02:00
>>> import yes
2018-04-25 13:19:48 +02:00
>>> print 3
File "<stdin>", line 1
print 3
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(3)?
>>> yes
2018-04-25 14:50:13 +02:00
>>> print(3) # <-- Automagically inserted
2018-04-25 13:19:48 +02:00
3
```
It will automagically do what you meant :^)