Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jdonaldson/pure_python
Detecting only the purest of python functions.
https://github.com/jdonaldson/pure_python
Last synced: about 1 month ago
JSON representation
Detecting only the purest of python functions.
- Host: GitHub
- URL: https://github.com/jdonaldson/pure_python
- Owner: jdonaldson
- Created: 2024-10-15T17:55:54.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-15T18:08:24.000Z (3 months ago)
- Last Synced: 2024-10-17T02:15:01.481Z (3 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pure python
```
import pure# Example usage
class Example:
def pure_method(self, a, b):
return a + bdef impure_method(self, item):
self.some_list.append(item)# Test the purity checker
print(pure.is_method_pure(Example.pure_method))
print(pure.is_method_pure(Example.impure_method))```