sys.version_info problem
- Dominant language
- Python
- Stars
- 16.8k
- Forks
- 603
- Avg merge
- 4d 23h
- Merged PRs (30d)
- 6
Description
I'm new to codon and just testing around. I wonder why there is no discussion on this:
```
#!/usr/bin/python3
import sys
try:
print(sys.version_info)
except Exception as e:
print(f"Error type: {type(e).__name__}")
print(f"Error message: {e}")
print("version_info in codon not available ...")
print("Hello World!")
hw.py:5 (11-27): error: cannot import name 'version_info' from 'sys'
```
There seems not to be any setting to catch this on runtime, is there? If I use codon on existing code, I would prefer to change as little as possible code to be compatible - probably one could add some @ decorator ...
Maybe this is one of only a little number of not available functions but it was this first i stumbled on.
Contributor guide
Assessment
This issue has not been assessed yet.