https://github.com/codewithswastik/better-python
Adds more functionality to Python and an easy to use wrapper for forbiddenfruit.
https://github.com/codewithswastik/better-python
python
Last synced: 11 months ago
JSON representation
Adds more functionality to Python and an easy to use wrapper for forbiddenfruit.
- Host: GitHub
- URL: https://github.com/codewithswastik/better-python
- Owner: CodeWithSwastik
- License: mit
- Created: 2021-08-06T13:02:34.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-06T05:41:31.000Z (about 4 years ago)
- Last Synced: 2023-03-04T05:23:09.845Z (about 3 years ago)
- Topics: python
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 11
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# better-python
Adds more functionality to Python and an easy to use wrapper for forbiddenfruit.
```py
from betterpython import modify
@modify(str)
def remove(self, substr):
return self.replace(substr, "")
print("This is a string".remove("i")) # Ths s a strng
```