pylint-dev / pylint-dev/astroid
Understand version and platform checks
- Dominant language
- Python
- Stars
- 582
- Forks
- 357
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 23
Description
Originally reported by: **Claudiu Popa (BitBucket: [PCManticore](http://bitbucket.org/PCManticore), GitHub: @PCManticore)**
---
(This is useful for flow control analysis)
Understand version and platform checks:
```
#!python
* if PY3 / PY2
* if sys.version_info..
* if os.name ==
* if platform.platform ==
```
These could be built-in in the flow inference.
---
- Bitbucket: https://bitbucket.org/logilab/astroid/issue/113
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the flow-inference code and reviewing how conditional checks are currently represented. Compare that behavior with the listed PY2/PY3, sys.version_info, os.name, and platform.platform cases. Done should mean these version and platform checks are understood by flow inference for static analysis.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100